@salesforce/lds-adapters-analytics-unifiedanalytics 1.332.0-dev16 → 1.332.0-dev18
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 +1421 -700
- package/dist/es/es2018/types/src/generated/adapters/createDataAlert.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/follow.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/adapters/updateDataAlert.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/updateFollowedAsset.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/resources/patchTableauFollowFollowersFollowsByFollowerId.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/postTableauDataAlerts.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/resources/postTableauFollowFollowersFollowsByFollowerId.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/resources/putTableauDataAlertsByDataAlertId.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertConditionInputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertContentInputRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertCronScheduleInputRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertDailyScheduleInputRepresentation.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertDeliveryConfigurationInputRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertInputRepresentation.d.ts +47 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertMetricContentInputRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertMetricValueInputRepresentation.d.ts +55 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertNotificationRecipientsInputRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertRawValueInputRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertReceiversInputRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertScheduleInputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertThresholdsInputRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertValueInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertValueRightOperandInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertWeeklyScheduleInputRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/DataAssetRequestRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/FollowInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/FollowedAssetRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/FollowedTimeRangeRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/FollowerAssetRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/UnifiedFilterInputRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/UpdateFollowedAssetInputRepresentation.d.ts +37 -0
- package/package.json +3 -3
- package/sfdc/index.js +2021 -1291
- package/src/raml/api.raml +419 -1
- package/src/raml/luvio.raml +18 -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$T, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$o, typeCheckConfig as typeCheckConfig$T } 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$n = 1000;
|
|
97
|
+
const VERSION$z = "3c943f1d2e5251ceef13b3e2fdb5f916";
|
|
98
|
+
function validate$15(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$X(obj, path = 'TableauExternalMonitoringEventItemRepresentatio
|
|
|
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$B = 'TableauExternalMonitoringEventItemRepresentation';
|
|
122
|
+
function keyBuilder$1b(luvio, config) {
|
|
123
|
+
return keyPrefix + '::' + RepresentationType$B + ':' + config.id;
|
|
124
124
|
}
|
|
125
|
-
function keyBuilderFromType$
|
|
125
|
+
function keyBuilderFromType$i(luvio, object) {
|
|
126
126
|
const keyParams = {
|
|
127
127
|
id: object.id
|
|
128
128
|
};
|
|
129
|
-
return keyBuilder$
|
|
129
|
+
return keyBuilder$1b(luvio, keyParams);
|
|
130
130
|
}
|
|
131
|
-
function normalize$
|
|
131
|
+
function normalize$z(input, existing, path, luvio, store, timestamp) {
|
|
132
132
|
return input;
|
|
133
133
|
}
|
|
134
|
-
const select$
|
|
134
|
+
const select$1j = function TableauExternalMonitoringEventItemRepresentationSelect() {
|
|
135
135
|
return {
|
|
136
136
|
kind: 'Fragment',
|
|
137
|
-
version: VERSION$
|
|
137
|
+
version: VERSION$z,
|
|
138
138
|
private: [],
|
|
139
139
|
opaque: true
|
|
140
140
|
};
|
|
141
141
|
};
|
|
142
|
-
function equals$
|
|
142
|
+
function equals$z(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$z = function TableauExternalMonitoringEventItemRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
149
149
|
if (process.env.NODE_ENV !== 'production') {
|
|
150
|
-
const validateError = validate$
|
|
150
|
+
const validateError = validate$15(input);
|
|
151
151
|
if (validateError !== null) {
|
|
152
152
|
throw validateError;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
const key = keyBuilderFromType$
|
|
156
|
-
const ttlToUse = TTL$
|
|
157
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
155
|
+
const key = keyBuilderFromType$i(luvio, input);
|
|
156
|
+
const ttlToUse = TTL$n;
|
|
157
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$z, "UnifiedAnalytics", VERSION$z, RepresentationType$B, equals$z);
|
|
158
158
|
return createLink(key);
|
|
159
159
|
};
|
|
160
|
-
function getTypeCacheKeys$
|
|
160
|
+
function getTypeCacheKeys$z(rootKeySet, luvio, input, fullPathFactory) {
|
|
161
161
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
162
|
-
const rootKey = keyBuilderFromType$
|
|
162
|
+
const rootKey = keyBuilderFromType$i(luvio, input);
|
|
163
163
|
rootKeySet.set(rootKey, {
|
|
164
164
|
namespace: keyPrefix,
|
|
165
|
-
representationName: RepresentationType$
|
|
165
|
+
representationName: RepresentationType$B,
|
|
166
166
|
mergeable: false
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
function select$
|
|
171
|
-
return select$
|
|
170
|
+
function select$1i(luvio, params) {
|
|
171
|
+
return select$1j();
|
|
172
172
|
}
|
|
173
|
-
function getResponseCacheKeys$
|
|
174
|
-
getTypeCacheKeys$
|
|
173
|
+
function getResponseCacheKeys$S(storeKeyMap, luvio, resourceParams, response) {
|
|
174
|
+
getTypeCacheKeys$z(storeKeyMap, luvio, response);
|
|
175
175
|
}
|
|
176
|
-
function ingestSuccess$
|
|
176
|
+
function ingestSuccess$L(luvio, resourceParams, response) {
|
|
177
177
|
const { body } = response;
|
|
178
|
-
const key = keyBuilderFromType$
|
|
179
|
-
luvio.storeIngest(key, ingest$
|
|
178
|
+
const key = keyBuilderFromType$i(luvio, body);
|
|
179
|
+
luvio.storeIngest(key, ingest$z, body);
|
|
180
180
|
const snapshot = luvio.storeLookup({
|
|
181
181
|
recordId: key,
|
|
182
|
-
node: select$
|
|
182
|
+
node: select$1i(),
|
|
183
183
|
variables: {},
|
|
184
184
|
});
|
|
185
185
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -190,7 +190,7 @@ function ingestSuccess$I(luvio, resourceParams, response) {
|
|
|
190
190
|
deepFreeze(snapshot.data);
|
|
191
191
|
return snapshot;
|
|
192
192
|
}
|
|
193
|
-
function createResourceRequest$
|
|
193
|
+
function createResourceRequest$S(config) {
|
|
194
194
|
const headers = {};
|
|
195
195
|
return {
|
|
196
196
|
baseUri: '/services/data/v63.0',
|
|
@@ -204,13 +204,13 @@ function createResourceRequest$P(config) {
|
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
const adapterName$
|
|
207
|
+
const adapterName$S = '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$S, publish_ConfigPropertyMetadata);
|
|
212
|
+
const createResourceParams$S = /*#__PURE__*/ createResourceParams$T(publish_ConfigPropertyMetadata);
|
|
213
|
+
function typeCheckConfig$S(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$P(untrustedConfig) {
|
|
|
223
223
|
}
|
|
224
224
|
return config;
|
|
225
225
|
}
|
|
226
|
-
function validateAdapterConfig$
|
|
226
|
+
function validateAdapterConfig$S(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$S(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$S(luvio, config, options) {
|
|
240
|
+
const resourceParams = createResourceParams$S(config);
|
|
241
|
+
const request = createResourceRequest$S(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$L(luvio, resourceParams, response);
|
|
246
246
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
247
247
|
}, () => {
|
|
248
248
|
const cache = new StoreKeyMap();
|
|
249
|
-
getResponseCacheKeys$
|
|
249
|
+
getResponseCacheKeys$S(cache, luvio, resourceParams, response.body);
|
|
250
250
|
return cache;
|
|
251
251
|
});
|
|
252
252
|
}, (response) => {
|
|
@@ -256,16 +256,16 @@ function buildNetworkSnapshot$P(luvio, config, options) {
|
|
|
256
256
|
}
|
|
257
257
|
const publishAdapterFactory = (luvio) => {
|
|
258
258
|
return function publish(untrustedConfig) {
|
|
259
|
-
const config = validateAdapterConfig$
|
|
259
|
+
const config = validateAdapterConfig$S(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$S(luvio, config);
|
|
265
265
|
};
|
|
266
266
|
};
|
|
267
267
|
|
|
268
|
-
function validate$
|
|
268
|
+
function validate$14(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$W(obj, path = 'DashboardAnnotationAnchorRepresentation') {
|
|
|
279
279
|
return v_error === undefined ? null : v_error;
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
function validate$
|
|
282
|
+
function validate$13(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$V(obj, path = 'AnnotationAssetRepresentation') {
|
|
|
298
298
|
return v_error === undefined ? null : v_error;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
function validate$
|
|
301
|
+
function validate$12(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$U(obj, path = 'FileTypeOutputRepresentation') {
|
|
|
317
317
|
return v_error === undefined ? null : v_error;
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
function validate$
|
|
320
|
+
function validate$11(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$T(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$12(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$T(obj, path = 'ContentVersionOutputRepresentation') {
|
|
|
401
401
|
return v_error === undefined ? null : v_error;
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
-
function validate$
|
|
404
|
+
function validate$10(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$12(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$S(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$11(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$S(obj, path = 'ContentDocumentOutputRepresentation') {
|
|
|
441
441
|
return v_error === undefined ? null : v_error;
|
|
442
442
|
}
|
|
443
443
|
|
|
444
|
-
function validate
|
|
444
|
+
function validate$$(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$R(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$10(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$R(obj, path = 'SlackFileOutputRepresentation') {
|
|
|
550
550
|
return v_error === undefined ? null : v_error;
|
|
551
551
|
}
|
|
552
552
|
|
|
553
|
-
function validate$
|
|
553
|
+
function validate$_(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$Q(obj, path = 'SlackEmojiOutputRepresentation') {
|
|
|
674
674
|
return v_error === undefined ? null : v_error;
|
|
675
675
|
}
|
|
676
676
|
|
|
677
|
-
function validate$
|
|
677
|
+
function validate$Z(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$P(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$_(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$P(obj, path = 'SlackUserInfoOutputRepresentation') {
|
|
|
1064
1064
|
return v_error === undefined ? null : v_error;
|
|
1065
1065
|
}
|
|
1066
1066
|
|
|
1067
|
-
function validate$
|
|
1067
|
+
function validate$Y(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$O(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$Z(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$O(obj, path = 'SlackReactionOutputRepresentation') {
|
|
|
1233
1233
|
return v_error === undefined ? null : v_error;
|
|
1234
1234
|
}
|
|
1235
1235
|
|
|
1236
|
-
function validate$
|
|
1236
|
+
function validate$X(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$N(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$$(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$N(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$Y(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$N(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$Z(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$N(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$Z(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$N(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1627
1627
|
return v_error === undefined ? null : v_error;
|
|
1628
1628
|
}
|
|
1629
1629
|
|
|
1630
|
-
function validate$
|
|
1630
|
+
function validate$W(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$M(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$X(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$M(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$m = 1000;
|
|
1691
|
+
const VERSION$y = "bacc25da56cffff8126d9bdafc471a37";
|
|
1692
|
+
function validate$V(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$L(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$14(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$L(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$13(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$L(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$W(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$L(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$A = 'AnnotationRepresentation';
|
|
1742
|
+
function keyBuilder$1a(luvio, config) {
|
|
1743
|
+
return keyPrefix + '::' + RepresentationType$A + ':' + config.id;
|
|
1744
1744
|
}
|
|
1745
|
-
function keyBuilderFromType$
|
|
1745
|
+
function keyBuilderFromType$h(luvio, object) {
|
|
1746
1746
|
const keyParams = {
|
|
1747
1747
|
id: object.id
|
|
1748
1748
|
};
|
|
1749
|
-
return keyBuilder$
|
|
1749
|
+
return keyBuilder$1a(luvio, keyParams);
|
|
1750
1750
|
}
|
|
1751
|
-
function normalize$
|
|
1751
|
+
function normalize$y(input, existing, path, luvio, store, timestamp) {
|
|
1752
1752
|
return input;
|
|
1753
1753
|
}
|
|
1754
|
-
const select$
|
|
1754
|
+
const select$1h = function AnnotationRepresentationSelect() {
|
|
1755
1755
|
return {
|
|
1756
1756
|
kind: 'Fragment',
|
|
1757
|
-
version: VERSION$
|
|
1757
|
+
version: VERSION$y,
|
|
1758
1758
|
private: [],
|
|
1759
1759
|
opaque: true
|
|
1760
1760
|
};
|
|
1761
1761
|
};
|
|
1762
|
-
function equals$
|
|
1762
|
+
function equals$y(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$y = function AnnotationRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1769
1769
|
if (process.env.NODE_ENV !== 'production') {
|
|
1770
|
-
const validateError = validate$
|
|
1770
|
+
const validateError = validate$V(input);
|
|
1771
1771
|
if (validateError !== null) {
|
|
1772
1772
|
throw validateError;
|
|
1773
1773
|
}
|
|
1774
1774
|
}
|
|
1775
|
-
const key = keyBuilderFromType$
|
|
1776
|
-
const ttlToUse = TTL$
|
|
1777
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1775
|
+
const key = keyBuilderFromType$h(luvio, input);
|
|
1776
|
+
const ttlToUse = TTL$m;
|
|
1777
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$y, "UnifiedAnalytics", VERSION$y, RepresentationType$A, equals$y);
|
|
1778
1778
|
return createLink(key);
|
|
1779
1779
|
};
|
|
1780
|
-
function getTypeCacheKeys$
|
|
1780
|
+
function getTypeCacheKeys$y(rootKeySet, luvio, input, fullPathFactory) {
|
|
1781
1781
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1782
|
-
const rootKey = keyBuilderFromType$
|
|
1782
|
+
const rootKey = keyBuilderFromType$h(luvio, input);
|
|
1783
1783
|
rootKeySet.set(rootKey, {
|
|
1784
1784
|
namespace: keyPrefix,
|
|
1785
|
-
representationName: RepresentationType$
|
|
1785
|
+
representationName: RepresentationType$A,
|
|
1786
1786
|
mergeable: false
|
|
1787
1787
|
});
|
|
1788
1788
|
}
|
|
1789
1789
|
|
|
1790
|
-
const TTL$
|
|
1791
|
-
const VERSION$
|
|
1792
|
-
function validate$
|
|
1790
|
+
const TTL$l = 1000;
|
|
1791
|
+
const VERSION$x = "a80c8e970184cc7789e13f69392d6203";
|
|
1792
|
+
function validate$U(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$K(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$z = 'AnnotationCollectionRepresentation';
|
|
1818
|
+
function normalize$x(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$y(input_annotations_item, {
|
|
1825
1825
|
fullPath: input_annotations_item_id,
|
|
1826
1826
|
propertyName: i,
|
|
1827
1827
|
parent: {
|
|
@@ -1834,17 +1834,17 @@ function normalize$w(input, existing, path, luvio, store, timestamp) {
|
|
|
1834
1834
|
}
|
|
1835
1835
|
return input;
|
|
1836
1836
|
}
|
|
1837
|
-
const select$
|
|
1837
|
+
const select$1g = function AnnotationCollectionRepresentationSelect() {
|
|
1838
1838
|
return {
|
|
1839
1839
|
kind: 'Fragment',
|
|
1840
|
-
version: VERSION$
|
|
1840
|
+
version: VERSION$x,
|
|
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$1h()
|
|
1848
1848
|
},
|
|
1849
1849
|
{
|
|
1850
1850
|
name: 'total',
|
|
@@ -1853,7 +1853,7 @@ const select$1c = function AnnotationCollectionRepresentationSelect() {
|
|
|
1853
1853
|
]
|
|
1854
1854
|
};
|
|
1855
1855
|
};
|
|
1856
|
-
function equals$
|
|
1856
|
+
function equals$x(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$w(existing, incoming) {
|
|
|
1871
1871
|
}
|
|
1872
1872
|
return true;
|
|
1873
1873
|
}
|
|
1874
|
-
const ingest$
|
|
1874
|
+
const ingest$x = function AnnotationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1875
1875
|
if (process.env.NODE_ENV !== 'production') {
|
|
1876
|
-
const validateError = validate$
|
|
1876
|
+
const validateError = validate$U(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$l;
|
|
1883
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$x, "UnifiedAnalytics", VERSION$x, RepresentationType$z, equals$x);
|
|
1884
1884
|
return createLink(key);
|
|
1885
1885
|
};
|
|
1886
|
-
function getTypeCacheKeys$
|
|
1886
|
+
function getTypeCacheKeys$x(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$z,
|
|
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$y(rootKeySet, luvio, input.annotations[i]);
|
|
1897
1897
|
}
|
|
1898
1898
|
}
|
|
1899
1899
|
|
|
1900
|
-
function select$
|
|
1901
|
-
return select$
|
|
1900
|
+
function select$1f(luvio, params) {
|
|
1901
|
+
return select$1g();
|
|
1902
1902
|
}
|
|
1903
|
-
function keyBuilder$
|
|
1903
|
+
function keyBuilder$19(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$R(storeKeyMap, luvio, resourceParams, response) {
|
|
1907
|
+
getTypeCacheKeys$x(storeKeyMap, luvio, response, () => keyBuilder$19(luvio, resourceParams));
|
|
1908
1908
|
}
|
|
1909
|
-
function ingestSuccess$
|
|
1909
|
+
function ingestSuccess$K(luvio, resourceParams, response, snapshotRefresh) {
|
|
1910
1910
|
const { body } = response;
|
|
1911
|
-
const key = keyBuilder$
|
|
1912
|
-
luvio.storeIngest(key, ingest$
|
|
1911
|
+
const key = keyBuilder$19(luvio, resourceParams);
|
|
1912
|
+
luvio.storeIngest(key, ingest$x, body);
|
|
1913
1913
|
const snapshot = luvio.storeLookup({
|
|
1914
1914
|
recordId: key,
|
|
1915
|
-
node: select$
|
|
1915
|
+
node: select$1f(),
|
|
1916
1916
|
variables: {},
|
|
1917
1917
|
}, snapshotRefresh);
|
|
1918
1918
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1924,18 +1924,18 @@ function ingestSuccess$H(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1924
1924
|
return snapshot;
|
|
1925
1925
|
}
|
|
1926
1926
|
function ingestError$n(luvio, params, error, snapshotRefresh) {
|
|
1927
|
-
const key = keyBuilder$
|
|
1927
|
+
const key = keyBuilder$19(luvio, params);
|
|
1928
1928
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1929
1929
|
const storeMetadataParams = {
|
|
1930
|
-
ttl: TTL$
|
|
1930
|
+
ttl: TTL$l,
|
|
1931
1931
|
namespace: keyPrefix,
|
|
1932
|
-
version: VERSION$
|
|
1933
|
-
representationName: RepresentationType$
|
|
1932
|
+
version: VERSION$x,
|
|
1933
|
+
representationName: RepresentationType$z
|
|
1934
1934
|
};
|
|
1935
1935
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1936
1936
|
return errorSnapshot;
|
|
1937
1937
|
}
|
|
1938
|
-
function createResourceRequest$
|
|
1938
|
+
function createResourceRequest$R(config) {
|
|
1939
1939
|
const headers = {};
|
|
1940
1940
|
return {
|
|
1941
1941
|
baseUri: '/services/data/v63.0',
|
|
@@ -1949,7 +1949,7 @@ function createResourceRequest$O(config) {
|
|
|
1949
1949
|
};
|
|
1950
1950
|
}
|
|
1951
1951
|
|
|
1952
|
-
const adapterName$
|
|
1952
|
+
const adapterName$R = '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,56 +1957,56 @@ 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$R, getAnnotations_ConfigPropertyMetadata);
|
|
1961
|
+
const createResourceParams$R = /*#__PURE__*/ createResourceParams$T(getAnnotations_ConfigPropertyMetadata);
|
|
1962
|
+
function keyBuilder$18(luvio, config) {
|
|
1963
|
+
const resourceParams = createResourceParams$R(config);
|
|
1964
|
+
return keyBuilder$19(luvio, resourceParams);
|
|
1965
1965
|
}
|
|
1966
|
-
function typeCheckConfig$
|
|
1966
|
+
function typeCheckConfig$R(untrustedConfig) {
|
|
1967
1967
|
const config = {};
|
|
1968
|
-
typeCheckConfig$
|
|
1968
|
+
typeCheckConfig$T(untrustedConfig, config, getAnnotations_ConfigPropertyMetadata);
|
|
1969
1969
|
return config;
|
|
1970
1970
|
}
|
|
1971
|
-
function validateAdapterConfig$
|
|
1971
|
+
function validateAdapterConfig$R(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$R(untrustedConfig);
|
|
1979
1979
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1980
1980
|
return null;
|
|
1981
1981
|
}
|
|
1982
1982
|
return config;
|
|
1983
1983
|
}
|
|
1984
1984
|
function adapterFragment$n(luvio, config) {
|
|
1985
|
-
createResourceParams$
|
|
1986
|
-
return select$
|
|
1985
|
+
createResourceParams$R(config);
|
|
1986
|
+
return select$1f();
|
|
1987
1987
|
}
|
|
1988
1988
|
function onFetchResponseSuccess$n(luvio, config, resourceParams, response) {
|
|
1989
|
-
const snapshot = ingestSuccess$
|
|
1989
|
+
const snapshot = ingestSuccess$K(luvio, resourceParams, response, {
|
|
1990
1990
|
config,
|
|
1991
|
-
resolve: () => buildNetworkSnapshot$
|
|
1991
|
+
resolve: () => buildNetworkSnapshot$R(luvio, config, snapshotRefreshOptions)
|
|
1992
1992
|
});
|
|
1993
1993
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1994
1994
|
}
|
|
1995
1995
|
function onFetchResponseError$n(luvio, config, resourceParams, response) {
|
|
1996
1996
|
const snapshot = ingestError$n(luvio, resourceParams, response, {
|
|
1997
1997
|
config,
|
|
1998
|
-
resolve: () => buildNetworkSnapshot$
|
|
1998
|
+
resolve: () => buildNetworkSnapshot$R(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$R(luvio, config, options) {
|
|
2003
|
+
const resourceParams = createResourceParams$R(config);
|
|
2004
|
+
const request = createResourceRequest$R(resourceParams);
|
|
2005
2005
|
return luvio.dispatchResourceRequest(request, options)
|
|
2006
2006
|
.then((response) => {
|
|
2007
2007
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$n(luvio, config, resourceParams, response), () => {
|
|
2008
2008
|
const cache = new StoreKeyMap();
|
|
2009
|
-
getResponseCacheKeys$
|
|
2009
|
+
getResponseCacheKeys$R(cache, luvio, resourceParams, response.body);
|
|
2010
2010
|
return cache;
|
|
2011
2011
|
});
|
|
2012
2012
|
}, (response) => {
|
|
@@ -2014,23 +2014,23 @@ function buildNetworkSnapshot$O(luvio, config, options) {
|
|
|
2014
2014
|
});
|
|
2015
2015
|
}
|
|
2016
2016
|
function buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext) {
|
|
2017
|
-
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
2017
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$R, undefined, false);
|
|
2018
2018
|
}
|
|
2019
2019
|
function buildCachedSnapshotCachePolicy$n(context, storeLookup) {
|
|
2020
2020
|
const { luvio, config } = context;
|
|
2021
2021
|
const selector = {
|
|
2022
|
-
recordId: keyBuilder$
|
|
2022
|
+
recordId: keyBuilder$18(luvio, config),
|
|
2023
2023
|
node: adapterFragment$n(luvio, config),
|
|
2024
2024
|
variables: {},
|
|
2025
2025
|
};
|
|
2026
2026
|
const cacheSnapshot = storeLookup(selector, {
|
|
2027
2027
|
config,
|
|
2028
|
-
resolve: () => buildNetworkSnapshot$
|
|
2028
|
+
resolve: () => buildNetworkSnapshot$R(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$R(untrustedConfig, getAnnotations_ConfigPropertyNames);
|
|
2034
2034
|
// Invalid or incomplete config
|
|
2035
2035
|
if (config === null) {
|
|
2036
2036
|
return null;
|
|
@@ -2039,19 +2039,19 @@ const getAnnotationsAdapterFactory = (luvio) => function UnifiedAnalytics__getAn
|
|
|
2039
2039
|
buildCachedSnapshotCachePolicy$n, buildNetworkSnapshotCachePolicy$n);
|
|
2040
2040
|
};
|
|
2041
2041
|
|
|
2042
|
-
function select$
|
|
2043
|
-
return select$
|
|
2042
|
+
function select$1e(luvio, params) {
|
|
2043
|
+
return select$1h();
|
|
2044
2044
|
}
|
|
2045
|
-
function getResponseCacheKeys$
|
|
2046
|
-
getTypeCacheKeys$
|
|
2045
|
+
function getResponseCacheKeys$Q(storeKeyMap, luvio, resourceParams, response) {
|
|
2046
|
+
getTypeCacheKeys$y(storeKeyMap, luvio, response);
|
|
2047
2047
|
}
|
|
2048
|
-
function ingestSuccess$
|
|
2048
|
+
function ingestSuccess$J(luvio, resourceParams, response) {
|
|
2049
2049
|
const { body } = response;
|
|
2050
|
-
const key = keyBuilderFromType$
|
|
2051
|
-
luvio.storeIngest(key, ingest$
|
|
2050
|
+
const key = keyBuilderFromType$h(luvio, body);
|
|
2051
|
+
luvio.storeIngest(key, ingest$y, body);
|
|
2052
2052
|
const snapshot = luvio.storeLookup({
|
|
2053
2053
|
recordId: key,
|
|
2054
|
-
node: select$
|
|
2054
|
+
node: select$1e(),
|
|
2055
2055
|
variables: {},
|
|
2056
2056
|
});
|
|
2057
2057
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2062,7 +2062,7 @@ function ingestSuccess$G(luvio, resourceParams, response) {
|
|
|
2062
2062
|
deepFreeze(snapshot.data);
|
|
2063
2063
|
return snapshot;
|
|
2064
2064
|
}
|
|
2065
|
-
function createResourceRequest$
|
|
2065
|
+
function createResourceRequest$Q(config) {
|
|
2066
2066
|
const headers = {};
|
|
2067
2067
|
return {
|
|
2068
2068
|
baseUri: '/services/data/v63.0',
|
|
@@ -2076,7 +2076,7 @@ function createResourceRequest$N(config) {
|
|
|
2076
2076
|
};
|
|
2077
2077
|
}
|
|
2078
2078
|
|
|
2079
|
-
const adapterName$
|
|
2079
|
+
const adapterName$Q = '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$Q, createAnnotation_ConfigPropertyMetadata);
|
|
2089
|
+
const createResourceParams$Q = /*#__PURE__*/ createResourceParams$T(createAnnotation_ConfigPropertyMetadata);
|
|
2090
|
+
function typeCheckConfig$Q(untrustedConfig) {
|
|
2091
2091
|
const config = {};
|
|
2092
|
-
typeCheckConfig$
|
|
2092
|
+
typeCheckConfig$T(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$Q(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$Q(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$Q(luvio, config, options) {
|
|
2113
|
+
const resourceParams = createResourceParams$Q(config);
|
|
2114
|
+
const request = createResourceRequest$Q(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$J(luvio, resourceParams, response);
|
|
2119
2119
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2120
2120
|
}, () => {
|
|
2121
2121
|
const cache = new StoreKeyMap();
|
|
2122
|
-
getResponseCacheKeys$
|
|
2122
|
+
getResponseCacheKeys$Q(cache, luvio, resourceParams, response.body);
|
|
2123
2123
|
return cache;
|
|
2124
2124
|
});
|
|
2125
2125
|
}, (response) => {
|
|
@@ -2129,18 +2129,18 @@ function buildNetworkSnapshot$N(luvio, config, options) {
|
|
|
2129
2129
|
}
|
|
2130
2130
|
const createAnnotationAdapterFactory = (luvio) => {
|
|
2131
2131
|
return function createAnnotation(untrustedConfig) {
|
|
2132
|
-
const config = validateAdapterConfig$
|
|
2132
|
+
const config = validateAdapterConfig$Q(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$Q(luvio, config);
|
|
2138
2138
|
};
|
|
2139
2139
|
};
|
|
2140
2140
|
|
|
2141
|
-
const TTL$
|
|
2142
|
-
const VERSION$
|
|
2143
|
-
function validate$
|
|
2141
|
+
const TTL$k = 5000;
|
|
2142
|
+
const VERSION$w = "505a83d97fefa7ce68ec6512264b0543";
|
|
2143
|
+
function validate$T(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$J(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$y = 'SlackAppInfoRepresentation';
|
|
2184
|
+
function normalize$w(input, existing, path, luvio, store, timestamp) {
|
|
2185
2185
|
return input;
|
|
2186
2186
|
}
|
|
2187
|
-
const select$
|
|
2187
|
+
const select$1d = function SlackAppInfoRepresentationSelect() {
|
|
2188
2188
|
return {
|
|
2189
2189
|
kind: 'Fragment',
|
|
2190
|
-
version: VERSION$
|
|
2190
|
+
version: VERSION$w,
|
|
2191
2191
|
private: [],
|
|
2192
2192
|
selections: [
|
|
2193
2193
|
{
|
|
@@ -2214,7 +2214,7 @@ const select$19 = function SlackAppInfoRepresentationSelect() {
|
|
|
2214
2214
|
]
|
|
2215
2215
|
};
|
|
2216
2216
|
};
|
|
2217
|
-
function equals$
|
|
2217
|
+
function equals$w(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$v(existing, incoming) {
|
|
|
2247
2247
|
}
|
|
2248
2248
|
return true;
|
|
2249
2249
|
}
|
|
2250
|
-
const ingest$
|
|
2250
|
+
const ingest$w = function SlackAppInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2251
2251
|
if (process.env.NODE_ENV !== 'production') {
|
|
2252
|
-
const validateError = validate$
|
|
2252
|
+
const validateError = validate$T(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$k;
|
|
2259
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$w, "UnifiedAnalytics", VERSION$w, RepresentationType$y, equals$w);
|
|
2260
2260
|
return createLink(key);
|
|
2261
2261
|
};
|
|
2262
|
-
function getTypeCacheKeys$
|
|
2262
|
+
function getTypeCacheKeys$w(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$y,
|
|
2268
2268
|
mergeable: false
|
|
2269
2269
|
});
|
|
2270
2270
|
}
|
|
2271
2271
|
|
|
2272
|
-
function select$
|
|
2273
|
-
return select$
|
|
2272
|
+
function select$1c(luvio, params) {
|
|
2273
|
+
return select$1d();
|
|
2274
2274
|
}
|
|
2275
|
-
function keyBuilder$
|
|
2275
|
+
function keyBuilder$17(luvio, params) {
|
|
2276
2276
|
return keyPrefix + '::SlackAppInfoRepresentation:(' + ')';
|
|
2277
2277
|
}
|
|
2278
|
-
function getResponseCacheKeys$
|
|
2279
|
-
getTypeCacheKeys$
|
|
2278
|
+
function getResponseCacheKeys$P(storeKeyMap, luvio, resourceParams, response) {
|
|
2279
|
+
getTypeCacheKeys$w(storeKeyMap, luvio, response, () => keyBuilder$17());
|
|
2280
2280
|
}
|
|
2281
|
-
function ingestSuccess$
|
|
2281
|
+
function ingestSuccess$I(luvio, resourceParams, response, snapshotRefresh) {
|
|
2282
2282
|
const { body } = response;
|
|
2283
|
-
const key = keyBuilder$
|
|
2284
|
-
luvio.storeIngest(key, ingest$
|
|
2283
|
+
const key = keyBuilder$17();
|
|
2284
|
+
luvio.storeIngest(key, ingest$w, body);
|
|
2285
2285
|
const snapshot = luvio.storeLookup({
|
|
2286
2286
|
recordId: key,
|
|
2287
|
-
node: select$
|
|
2287
|
+
node: select$1c(),
|
|
2288
2288
|
variables: {},
|
|
2289
2289
|
}, snapshotRefresh);
|
|
2290
2290
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2296,18 +2296,18 @@ function ingestSuccess$F(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2296
2296
|
return snapshot;
|
|
2297
2297
|
}
|
|
2298
2298
|
function ingestError$m(luvio, params, error, snapshotRefresh) {
|
|
2299
|
-
const key = keyBuilder$
|
|
2299
|
+
const key = keyBuilder$17();
|
|
2300
2300
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2301
2301
|
const storeMetadataParams = {
|
|
2302
|
-
ttl: TTL$
|
|
2302
|
+
ttl: TTL$k,
|
|
2303
2303
|
namespace: keyPrefix,
|
|
2304
|
-
version: VERSION$
|
|
2305
|
-
representationName: RepresentationType$
|
|
2304
|
+
version: VERSION$w,
|
|
2305
|
+
representationName: RepresentationType$y
|
|
2306
2306
|
};
|
|
2307
2307
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2308
2308
|
return errorSnapshot;
|
|
2309
2309
|
}
|
|
2310
|
-
function createResourceRequest$
|
|
2310
|
+
function createResourceRequest$P(config) {
|
|
2311
2311
|
const headers = {};
|
|
2312
2312
|
return {
|
|
2313
2313
|
baseUri: '/services/data/v63.0',
|
|
@@ -2321,57 +2321,57 @@ function createResourceRequest$M(config) {
|
|
|
2321
2321
|
};
|
|
2322
2322
|
}
|
|
2323
2323
|
|
|
2324
|
-
const adapterName$
|
|
2324
|
+
const adapterName$P = '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$P, getSlackAppInfo_ConfigPropertyMetadata);
|
|
2327
|
+
const createResourceParams$P = /*#__PURE__*/ createResourceParams$T(getSlackAppInfo_ConfigPropertyMetadata);
|
|
2328
|
+
function keyBuilder$16(luvio, config) {
|
|
2329
|
+
createResourceParams$P(config);
|
|
2330
|
+
return keyBuilder$17();
|
|
2331
2331
|
}
|
|
2332
|
-
function typeCheckConfig$
|
|
2332
|
+
function typeCheckConfig$P(untrustedConfig) {
|
|
2333
2333
|
const config = {};
|
|
2334
2334
|
return config;
|
|
2335
2335
|
}
|
|
2336
|
-
function validateAdapterConfig$
|
|
2336
|
+
function validateAdapterConfig$P(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$P();
|
|
2344
2344
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2345
2345
|
return null;
|
|
2346
2346
|
}
|
|
2347
2347
|
return config;
|
|
2348
2348
|
}
|
|
2349
2349
|
function adapterFragment$m(luvio, config) {
|
|
2350
|
-
createResourceParams$
|
|
2351
|
-
return select$
|
|
2350
|
+
createResourceParams$P(config);
|
|
2351
|
+
return select$1c();
|
|
2352
2352
|
}
|
|
2353
2353
|
function onFetchResponseSuccess$m(luvio, config, resourceParams, response) {
|
|
2354
|
-
const snapshot = ingestSuccess$
|
|
2354
|
+
const snapshot = ingestSuccess$I(luvio, resourceParams, response, {
|
|
2355
2355
|
config,
|
|
2356
|
-
resolve: () => buildNetworkSnapshot$
|
|
2356
|
+
resolve: () => buildNetworkSnapshot$P(luvio, config, snapshotRefreshOptions)
|
|
2357
2357
|
});
|
|
2358
2358
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2359
2359
|
}
|
|
2360
2360
|
function onFetchResponseError$m(luvio, config, resourceParams, response) {
|
|
2361
2361
|
const snapshot = ingestError$m(luvio, resourceParams, response, {
|
|
2362
2362
|
config,
|
|
2363
|
-
resolve: () => buildNetworkSnapshot$
|
|
2363
|
+
resolve: () => buildNetworkSnapshot$P(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$P(luvio, config, options) {
|
|
2368
|
+
const resourceParams = createResourceParams$P(config);
|
|
2369
|
+
const request = createResourceRequest$P();
|
|
2370
2370
|
return luvio.dispatchResourceRequest(request, options)
|
|
2371
2371
|
.then((response) => {
|
|
2372
2372
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$m(luvio, config, resourceParams, response), () => {
|
|
2373
2373
|
const cache = new StoreKeyMap();
|
|
2374
|
-
getResponseCacheKeys$
|
|
2374
|
+
getResponseCacheKeys$P(cache, luvio, resourceParams, response.body);
|
|
2375
2375
|
return cache;
|
|
2376
2376
|
});
|
|
2377
2377
|
}, (response) => {
|
|
@@ -2379,23 +2379,23 @@ function buildNetworkSnapshot$M(luvio, config, options) {
|
|
|
2379
2379
|
});
|
|
2380
2380
|
}
|
|
2381
2381
|
function buildNetworkSnapshotCachePolicy$m(context, coercedAdapterRequestContext) {
|
|
2382
|
-
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
2382
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$P, undefined, false);
|
|
2383
2383
|
}
|
|
2384
2384
|
function buildCachedSnapshotCachePolicy$m(context, storeLookup) {
|
|
2385
2385
|
const { luvio, config } = context;
|
|
2386
2386
|
const selector = {
|
|
2387
|
-
recordId: keyBuilder$
|
|
2387
|
+
recordId: keyBuilder$16(luvio, config),
|
|
2388
2388
|
node: adapterFragment$m(luvio, config),
|
|
2389
2389
|
variables: {},
|
|
2390
2390
|
};
|
|
2391
2391
|
const cacheSnapshot = storeLookup(selector, {
|
|
2392
2392
|
config,
|
|
2393
|
-
resolve: () => buildNetworkSnapshot$
|
|
2393
|
+
resolve: () => buildNetworkSnapshot$P(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$P(untrustedConfig, getSlackAppInfo_ConfigPropertyNames);
|
|
2399
2399
|
// Invalid or incomplete config
|
|
2400
2400
|
if (config === null) {
|
|
2401
2401
|
return null;
|
|
@@ -2404,7 +2404,7 @@ const getSlackAppInfoAdapterFactory = (luvio) => function UnifiedAnalytics__getS
|
|
|
2404
2404
|
buildCachedSnapshotCachePolicy$m, buildNetworkSnapshotCachePolicy$m);
|
|
2405
2405
|
};
|
|
2406
2406
|
|
|
2407
|
-
function validate$
|
|
2407
|
+
function validate$S(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$I(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$R(obj, path = 'AnalyticsAssetsQueryResultsWorkspaceRepresentation') {
|
|
2443
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$S(obj, path);
|
|
2444
2444
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
2445
2445
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
2446
2446
|
}
|
|
@@ -2452,8 +2452,8 @@ function validate$H(obj, path = 'AnalyticsAssetsQueryResultsWorkspaceRepresentat
|
|
|
2452
2452
|
return v_error === undefined ? null : v_error;
|
|
2453
2453
|
}
|
|
2454
2454
|
|
|
2455
|
-
function validate$
|
|
2456
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
2455
|
+
function validate$Q(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation') {
|
|
2456
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$S(obj, path);
|
|
2457
2457
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
2458
2458
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
2459
2459
|
}
|
|
@@ -2494,7 +2494,7 @@ function validate$G(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation')
|
|
|
2494
2494
|
const path_workspace = path + '.workspace';
|
|
2495
2495
|
let obj_workspace_union0 = null;
|
|
2496
2496
|
const obj_workspace_union0_error = (() => {
|
|
2497
|
-
const referencepath_workspaceValidationError = validate$
|
|
2497
|
+
const referencepath_workspaceValidationError = validate$R(obj_workspace, path_workspace);
|
|
2498
2498
|
if (referencepath_workspaceValidationError !== null) {
|
|
2499
2499
|
let message = 'Object doesn\'t match AnalyticsAssetsQueryResultsWorkspaceRepresentation (at "' + path_workspace + '")\n';
|
|
2500
2500
|
message += referencepath_workspaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2524,9 +2524,9 @@ function validate$G(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation')
|
|
|
2524
2524
|
return v_error === undefined ? null : v_error;
|
|
2525
2525
|
}
|
|
2526
2526
|
|
|
2527
|
-
const TTL$
|
|
2528
|
-
const VERSION$
|
|
2529
|
-
function validate$
|
|
2527
|
+
const TTL$j = 500;
|
|
2528
|
+
const VERSION$v = "ed60d9cca169a3e5ed897c67d11a23db";
|
|
2529
|
+
function validate$P(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
|
|
2530
2530
|
const v_error = (() => {
|
|
2531
2531
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2532
2532
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2539,7 +2539,7 @@ function validate$F(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
|
|
|
2539
2539
|
for (let i = 0; i < obj_items.length; i++) {
|
|
2540
2540
|
const obj_items_item = obj_items[i];
|
|
2541
2541
|
const path_items_item = path_items + '[' + i + ']';
|
|
2542
|
-
const referencepath_items_itemValidationError = validate$
|
|
2542
|
+
const referencepath_items_itemValidationError = validate$Q(obj_items_item, path_items_item);
|
|
2543
2543
|
if (referencepath_items_itemValidationError !== null) {
|
|
2544
2544
|
let message = 'Object doesn\'t match AnalyticsAssetsQueryResultsItemRepresentation (at "' + path_items_item + '")\n';
|
|
2545
2545
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2564,68 +2564,68 @@ function validate$F(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
|
|
|
2564
2564
|
})();
|
|
2565
2565
|
return v_error === undefined ? null : v_error;
|
|
2566
2566
|
}
|
|
2567
|
-
const RepresentationType$
|
|
2568
|
-
function keyBuilder$
|
|
2569
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2567
|
+
const RepresentationType$x = 'AnalyticsAssetsQueryResultsRepresentation';
|
|
2568
|
+
function keyBuilder$15(luvio, config) {
|
|
2569
|
+
return keyPrefix + '::' + RepresentationType$x + ':' + config.searchId;
|
|
2570
2570
|
}
|
|
2571
|
-
function keyBuilderFromType$
|
|
2571
|
+
function keyBuilderFromType$g(luvio, object) {
|
|
2572
2572
|
const keyParams = {
|
|
2573
2573
|
searchId: object.queryKey
|
|
2574
2574
|
};
|
|
2575
|
-
return keyBuilder$
|
|
2575
|
+
return keyBuilder$15(luvio, keyParams);
|
|
2576
2576
|
}
|
|
2577
|
-
function normalize$
|
|
2577
|
+
function normalize$v(input, existing, path, luvio, store, timestamp) {
|
|
2578
2578
|
return input;
|
|
2579
2579
|
}
|
|
2580
|
-
const select$
|
|
2580
|
+
const select$1b = function AnalyticsAssetsQueryResultsRepresentationSelect() {
|
|
2581
2581
|
return {
|
|
2582
2582
|
kind: 'Fragment',
|
|
2583
|
-
version: VERSION$
|
|
2583
|
+
version: VERSION$v,
|
|
2584
2584
|
private: [],
|
|
2585
2585
|
opaque: true
|
|
2586
2586
|
};
|
|
2587
2587
|
};
|
|
2588
|
-
function equals$
|
|
2588
|
+
function equals$v(existing, incoming) {
|
|
2589
2589
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2590
2590
|
return false;
|
|
2591
2591
|
}
|
|
2592
2592
|
return true;
|
|
2593
2593
|
}
|
|
2594
|
-
const ingest$
|
|
2594
|
+
const ingest$v = function AnalyticsAssetsQueryResultsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2595
2595
|
if (process.env.NODE_ENV !== 'production') {
|
|
2596
|
-
const validateError = validate$
|
|
2596
|
+
const validateError = validate$P(input);
|
|
2597
2597
|
if (validateError !== null) {
|
|
2598
2598
|
throw validateError;
|
|
2599
2599
|
}
|
|
2600
2600
|
}
|
|
2601
|
-
const key = keyBuilderFromType$
|
|
2602
|
-
const ttlToUse = TTL$
|
|
2603
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2601
|
+
const key = keyBuilderFromType$g(luvio, input);
|
|
2602
|
+
const ttlToUse = TTL$j;
|
|
2603
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$v, "UnifiedAnalytics", VERSION$v, RepresentationType$x, equals$v);
|
|
2604
2604
|
return createLink(key);
|
|
2605
2605
|
};
|
|
2606
|
-
function getTypeCacheKeys$
|
|
2606
|
+
function getTypeCacheKeys$v(rootKeySet, luvio, input, fullPathFactory) {
|
|
2607
2607
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2608
|
-
const rootKey = keyBuilderFromType$
|
|
2608
|
+
const rootKey = keyBuilderFromType$g(luvio, input);
|
|
2609
2609
|
rootKeySet.set(rootKey, {
|
|
2610
2610
|
namespace: keyPrefix,
|
|
2611
|
-
representationName: RepresentationType$
|
|
2611
|
+
representationName: RepresentationType$x,
|
|
2612
2612
|
mergeable: false
|
|
2613
2613
|
});
|
|
2614
2614
|
}
|
|
2615
2615
|
|
|
2616
|
-
function select$
|
|
2617
|
-
return select$
|
|
2616
|
+
function select$1a(luvio, params) {
|
|
2617
|
+
return select$1b();
|
|
2618
2618
|
}
|
|
2619
|
-
function getResponseCacheKeys$
|
|
2620
|
-
getTypeCacheKeys$
|
|
2619
|
+
function getResponseCacheKeys$O(storeKeyMap, luvio, resourceParams, response) {
|
|
2620
|
+
getTypeCacheKeys$v(storeKeyMap, luvio, response);
|
|
2621
2621
|
}
|
|
2622
|
-
function ingestSuccess$
|
|
2622
|
+
function ingestSuccess$H(luvio, resourceParams, response) {
|
|
2623
2623
|
const { body } = response;
|
|
2624
|
-
const key = keyBuilderFromType$
|
|
2625
|
-
luvio.storeIngest(key, ingest$
|
|
2624
|
+
const key = keyBuilderFromType$g(luvio, body);
|
|
2625
|
+
luvio.storeIngest(key, ingest$v, body);
|
|
2626
2626
|
const snapshot = luvio.storeLookup({
|
|
2627
2627
|
recordId: key,
|
|
2628
|
-
node: select$
|
|
2628
|
+
node: select$1a(),
|
|
2629
2629
|
variables: {},
|
|
2630
2630
|
});
|
|
2631
2631
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2636,7 +2636,7 @@ function ingestSuccess$E(luvio, resourceParams, response) {
|
|
|
2636
2636
|
deepFreeze(snapshot.data);
|
|
2637
2637
|
return snapshot;
|
|
2638
2638
|
}
|
|
2639
|
-
function createResourceRequest$
|
|
2639
|
+
function createResourceRequest$O(config) {
|
|
2640
2640
|
const headers = {};
|
|
2641
2641
|
return {
|
|
2642
2642
|
baseUri: '/services/data/v63.0',
|
|
@@ -2650,7 +2650,7 @@ function createResourceRequest$L(config) {
|
|
|
2650
2650
|
};
|
|
2651
2651
|
}
|
|
2652
2652
|
|
|
2653
|
-
const adapterName$
|
|
2653
|
+
const adapterName$O = 'queryAssets';
|
|
2654
2654
|
const queryAssets_ConfigPropertyMetadata = [
|
|
2655
2655
|
generateParamConfigMetadata('filters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2656
2656
|
generateParamConfigMetadata('limit', false, 2 /* Body */, 3 /* Integer */),
|
|
@@ -2659,11 +2659,11 @@ const queryAssets_ConfigPropertyMetadata = [
|
|
|
2659
2659
|
generateParamConfigMetadata('searchTerm', true, 2 /* Body */, 0 /* String */),
|
|
2660
2660
|
generateParamConfigMetadata('sortDirection', false, 2 /* Body */, 0 /* String */),
|
|
2661
2661
|
];
|
|
2662
|
-
const queryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2663
|
-
const createResourceParams$
|
|
2664
|
-
function typeCheckConfig$
|
|
2662
|
+
const queryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$O, queryAssets_ConfigPropertyMetadata);
|
|
2663
|
+
const createResourceParams$O = /*#__PURE__*/ createResourceParams$T(queryAssets_ConfigPropertyMetadata);
|
|
2664
|
+
function typeCheckConfig$O(untrustedConfig) {
|
|
2665
2665
|
const config = {};
|
|
2666
|
-
typeCheckConfig$
|
|
2666
|
+
typeCheckConfig$T(untrustedConfig, config, queryAssets_ConfigPropertyMetadata);
|
|
2667
2667
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
2668
2668
|
if (untrustedIsObject(untrustedConfig_filters)) {
|
|
2669
2669
|
const untrustedConfig_filters_object = {};
|
|
@@ -2681,30 +2681,30 @@ function typeCheckConfig$L(untrustedConfig) {
|
|
|
2681
2681
|
}
|
|
2682
2682
|
return config;
|
|
2683
2683
|
}
|
|
2684
|
-
function validateAdapterConfig$
|
|
2684
|
+
function validateAdapterConfig$O(untrustedConfig, configPropertyNames) {
|
|
2685
2685
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2686
2686
|
return null;
|
|
2687
2687
|
}
|
|
2688
2688
|
if (process.env.NODE_ENV !== 'production') {
|
|
2689
2689
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2690
2690
|
}
|
|
2691
|
-
const config = typeCheckConfig$
|
|
2691
|
+
const config = typeCheckConfig$O(untrustedConfig);
|
|
2692
2692
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2693
2693
|
return null;
|
|
2694
2694
|
}
|
|
2695
2695
|
return config;
|
|
2696
2696
|
}
|
|
2697
|
-
function buildNetworkSnapshot$
|
|
2698
|
-
const resourceParams = createResourceParams$
|
|
2699
|
-
const request = createResourceRequest$
|
|
2697
|
+
function buildNetworkSnapshot$O(luvio, config, options) {
|
|
2698
|
+
const resourceParams = createResourceParams$O(config);
|
|
2699
|
+
const request = createResourceRequest$O(resourceParams);
|
|
2700
2700
|
return luvio.dispatchResourceRequest(request, options)
|
|
2701
2701
|
.then((response) => {
|
|
2702
2702
|
return luvio.handleSuccessResponse(() => {
|
|
2703
|
-
const snapshot = ingestSuccess$
|
|
2703
|
+
const snapshot = ingestSuccess$H(luvio, resourceParams, response);
|
|
2704
2704
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2705
2705
|
}, () => {
|
|
2706
2706
|
const cache = new StoreKeyMap();
|
|
2707
|
-
getResponseCacheKeys$
|
|
2707
|
+
getResponseCacheKeys$O(cache, luvio, resourceParams, response.body);
|
|
2708
2708
|
return cache;
|
|
2709
2709
|
});
|
|
2710
2710
|
}, (response) => {
|
|
@@ -2714,17 +2714,17 @@ function buildNetworkSnapshot$L(luvio, config, options) {
|
|
|
2714
2714
|
}
|
|
2715
2715
|
const queryAssetsAdapterFactory = (luvio) => {
|
|
2716
2716
|
return function queryAssets(untrustedConfig) {
|
|
2717
|
-
const config = validateAdapterConfig$
|
|
2717
|
+
const config = validateAdapterConfig$O(untrustedConfig, queryAssets_ConfigPropertyNames);
|
|
2718
2718
|
// Invalid or incomplete config
|
|
2719
2719
|
if (config === null) {
|
|
2720
2720
|
throw new Error('Invalid config for "queryAssets"');
|
|
2721
2721
|
}
|
|
2722
|
-
return buildNetworkSnapshot$
|
|
2722
|
+
return buildNetworkSnapshot$O(luvio, config);
|
|
2723
2723
|
};
|
|
2724
2724
|
};
|
|
2725
2725
|
|
|
2726
|
-
const VERSION$
|
|
2727
|
-
function validate$
|
|
2726
|
+
const VERSION$u = "948ac50067b64bee8680b553b1e19a09";
|
|
2727
|
+
function validate$O(obj, path = 'DashboardRepresentation') {
|
|
2728
2728
|
const v_error = (() => {
|
|
2729
2729
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2730
2730
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2832,57 +2832,57 @@ function validate$E(obj, path = 'DashboardRepresentation') {
|
|
|
2832
2832
|
})();
|
|
2833
2833
|
return v_error === undefined ? null : v_error;
|
|
2834
2834
|
}
|
|
2835
|
-
const RepresentationType$
|
|
2836
|
-
function keyBuilder$
|
|
2837
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2835
|
+
const RepresentationType$w = 'DashboardRepresentation';
|
|
2836
|
+
function keyBuilder$14(luvio, config) {
|
|
2837
|
+
return keyPrefix + '::' + RepresentationType$w + ':' + config.name;
|
|
2838
2838
|
}
|
|
2839
|
-
function keyBuilderFromType$
|
|
2839
|
+
function keyBuilderFromType$f(luvio, object) {
|
|
2840
2840
|
const keyParams = {
|
|
2841
2841
|
name: object.name
|
|
2842
2842
|
};
|
|
2843
|
-
return keyBuilder$
|
|
2843
|
+
return keyBuilder$14(luvio, keyParams);
|
|
2844
2844
|
}
|
|
2845
|
-
function normalize$
|
|
2845
|
+
function normalize$u(input, existing, path, luvio, store, timestamp) {
|
|
2846
2846
|
return input;
|
|
2847
2847
|
}
|
|
2848
|
-
const select$
|
|
2848
|
+
const select$19 = function DashboardRepresentationSelect() {
|
|
2849
2849
|
return {
|
|
2850
2850
|
kind: 'Fragment',
|
|
2851
|
-
version: VERSION$
|
|
2851
|
+
version: VERSION$u,
|
|
2852
2852
|
private: [],
|
|
2853
2853
|
opaque: true
|
|
2854
2854
|
};
|
|
2855
2855
|
};
|
|
2856
|
-
function equals$
|
|
2856
|
+
function equals$u(existing, incoming) {
|
|
2857
2857
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2858
2858
|
return false;
|
|
2859
2859
|
}
|
|
2860
2860
|
return true;
|
|
2861
2861
|
}
|
|
2862
|
-
const ingest$
|
|
2862
|
+
const ingest$u = function DashboardRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2863
2863
|
if (process.env.NODE_ENV !== 'production') {
|
|
2864
|
-
const validateError = validate$
|
|
2864
|
+
const validateError = validate$O(input);
|
|
2865
2865
|
if (validateError !== null) {
|
|
2866
2866
|
throw validateError;
|
|
2867
2867
|
}
|
|
2868
2868
|
}
|
|
2869
|
-
const key = keyBuilderFromType$
|
|
2869
|
+
const key = keyBuilderFromType$f(luvio, input);
|
|
2870
2870
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2871
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2871
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$u, "UnifiedAnalytics", VERSION$u, RepresentationType$w, equals$u);
|
|
2872
2872
|
return createLink(key);
|
|
2873
2873
|
};
|
|
2874
|
-
function getTypeCacheKeys$
|
|
2874
|
+
function getTypeCacheKeys$u(rootKeySet, luvio, input, fullPathFactory) {
|
|
2875
2875
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2876
|
-
const rootKey = keyBuilderFromType$
|
|
2876
|
+
const rootKey = keyBuilderFromType$f(luvio, input);
|
|
2877
2877
|
rootKeySet.set(rootKey, {
|
|
2878
2878
|
namespace: keyPrefix,
|
|
2879
|
-
representationName: RepresentationType$
|
|
2879
|
+
representationName: RepresentationType$w,
|
|
2880
2880
|
mergeable: false
|
|
2881
2881
|
});
|
|
2882
2882
|
}
|
|
2883
2883
|
|
|
2884
|
-
const VERSION$
|
|
2885
|
-
function validate$
|
|
2884
|
+
const VERSION$t = "962823130e6a9315240ef0e0f0c5f757";
|
|
2885
|
+
function validate$N(obj, path = 'DashboardCollectionRepresentation') {
|
|
2886
2886
|
const v_error = (() => {
|
|
2887
2887
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2888
2888
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2902,14 +2902,14 @@ function validate$D(obj, path = 'DashboardCollectionRepresentation') {
|
|
|
2902
2902
|
})();
|
|
2903
2903
|
return v_error === undefined ? null : v_error;
|
|
2904
2904
|
}
|
|
2905
|
-
const RepresentationType$
|
|
2906
|
-
function normalize$
|
|
2905
|
+
const RepresentationType$v = 'DashboardCollectionRepresentation';
|
|
2906
|
+
function normalize$t(input, existing, path, luvio, store, timestamp) {
|
|
2907
2907
|
const input_dashboards = input.dashboards;
|
|
2908
2908
|
const input_dashboards_id = path.fullPath + '__dashboards';
|
|
2909
2909
|
for (let i = 0; i < input_dashboards.length; i++) {
|
|
2910
2910
|
const input_dashboards_item = input_dashboards[i];
|
|
2911
2911
|
let input_dashboards_item_id = input_dashboards_id + '__' + i;
|
|
2912
|
-
input_dashboards[i] = ingest$
|
|
2912
|
+
input_dashboards[i] = ingest$u(input_dashboards_item, {
|
|
2913
2913
|
fullPath: input_dashboards_item_id,
|
|
2914
2914
|
propertyName: i,
|
|
2915
2915
|
parent: {
|
|
@@ -2922,22 +2922,22 @@ function normalize$s(input, existing, path, luvio, store, timestamp) {
|
|
|
2922
2922
|
}
|
|
2923
2923
|
return input;
|
|
2924
2924
|
}
|
|
2925
|
-
const select$
|
|
2925
|
+
const select$18 = function DashboardCollectionRepresentationSelect() {
|
|
2926
2926
|
return {
|
|
2927
2927
|
kind: 'Fragment',
|
|
2928
|
-
version: VERSION$
|
|
2928
|
+
version: VERSION$t,
|
|
2929
2929
|
private: [],
|
|
2930
2930
|
selections: [
|
|
2931
2931
|
{
|
|
2932
2932
|
name: 'dashboards',
|
|
2933
2933
|
kind: 'Link',
|
|
2934
2934
|
plural: true,
|
|
2935
|
-
fragment: select$
|
|
2935
|
+
fragment: select$19()
|
|
2936
2936
|
}
|
|
2937
2937
|
]
|
|
2938
2938
|
};
|
|
2939
2939
|
};
|
|
2940
|
-
function equals$
|
|
2940
|
+
function equals$t(existing, incoming) {
|
|
2941
2941
|
const existing_dashboards = existing.dashboards;
|
|
2942
2942
|
const incoming_dashboards = incoming.dashboards;
|
|
2943
2943
|
const equals_dashboards_items = equalsArray(existing_dashboards, incoming_dashboards, (existing_dashboards_item, incoming_dashboards_item) => {
|
|
@@ -2950,48 +2950,48 @@ function equals$s(existing, incoming) {
|
|
|
2950
2950
|
}
|
|
2951
2951
|
return true;
|
|
2952
2952
|
}
|
|
2953
|
-
const ingest$
|
|
2953
|
+
const ingest$t = function DashboardCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2954
2954
|
if (process.env.NODE_ENV !== 'production') {
|
|
2955
|
-
const validateError = validate$
|
|
2955
|
+
const validateError = validate$N(input);
|
|
2956
2956
|
if (validateError !== null) {
|
|
2957
2957
|
throw validateError;
|
|
2958
2958
|
}
|
|
2959
2959
|
}
|
|
2960
2960
|
const key = path.fullPath;
|
|
2961
2961
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2962
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2962
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$t, "UnifiedAnalytics", VERSION$t, RepresentationType$v, equals$t);
|
|
2963
2963
|
return createLink(key);
|
|
2964
2964
|
};
|
|
2965
|
-
function getTypeCacheKeys$
|
|
2965
|
+
function getTypeCacheKeys$t(rootKeySet, luvio, input, fullPathFactory) {
|
|
2966
2966
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2967
2967
|
const rootKey = fullPathFactory();
|
|
2968
2968
|
rootKeySet.set(rootKey, {
|
|
2969
2969
|
namespace: keyPrefix,
|
|
2970
|
-
representationName: RepresentationType$
|
|
2970
|
+
representationName: RepresentationType$v,
|
|
2971
2971
|
mergeable: false
|
|
2972
2972
|
});
|
|
2973
2973
|
const input_dashboards_length = input.dashboards.length;
|
|
2974
2974
|
for (let i = 0; i < input_dashboards_length; i++) {
|
|
2975
|
-
getTypeCacheKeys$
|
|
2975
|
+
getTypeCacheKeys$u(rootKeySet, luvio, input.dashboards[i]);
|
|
2976
2976
|
}
|
|
2977
2977
|
}
|
|
2978
2978
|
|
|
2979
|
-
function select$
|
|
2980
|
-
return select$
|
|
2979
|
+
function select$17(luvio, params) {
|
|
2980
|
+
return select$18();
|
|
2981
2981
|
}
|
|
2982
|
-
function keyBuilder$
|
|
2982
|
+
function keyBuilder$13(luvio, params) {
|
|
2983
2983
|
return keyPrefix + '::DashboardCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
2984
2984
|
}
|
|
2985
|
-
function getResponseCacheKeys$
|
|
2986
|
-
getTypeCacheKeys$
|
|
2985
|
+
function getResponseCacheKeys$N(storeKeyMap, luvio, resourceParams, response) {
|
|
2986
|
+
getTypeCacheKeys$t(storeKeyMap, luvio, response, () => keyBuilder$13(luvio, resourceParams));
|
|
2987
2987
|
}
|
|
2988
|
-
function ingestSuccess$
|
|
2988
|
+
function ingestSuccess$G(luvio, resourceParams, response, snapshotRefresh) {
|
|
2989
2989
|
const { body } = response;
|
|
2990
|
-
const key = keyBuilder$
|
|
2991
|
-
luvio.storeIngest(key, ingest$
|
|
2990
|
+
const key = keyBuilder$13(luvio, resourceParams);
|
|
2991
|
+
luvio.storeIngest(key, ingest$t, body);
|
|
2992
2992
|
const snapshot = luvio.storeLookup({
|
|
2993
2993
|
recordId: key,
|
|
2994
|
-
node: select$
|
|
2994
|
+
node: select$17(),
|
|
2995
2995
|
variables: {},
|
|
2996
2996
|
}, snapshotRefresh);
|
|
2997
2997
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3003,12 +3003,12 @@ function ingestSuccess$D(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3003
3003
|
return snapshot;
|
|
3004
3004
|
}
|
|
3005
3005
|
function ingestError$l(luvio, params, error, snapshotRefresh) {
|
|
3006
|
-
const key = keyBuilder$
|
|
3006
|
+
const key = keyBuilder$13(luvio, params);
|
|
3007
3007
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3008
3008
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3009
3009
|
return errorSnapshot;
|
|
3010
3010
|
}
|
|
3011
|
-
function createResourceRequest$
|
|
3011
|
+
function createResourceRequest$N(config) {
|
|
3012
3012
|
const headers = {};
|
|
3013
3013
|
return {
|
|
3014
3014
|
baseUri: '/services/data/v63.0',
|
|
@@ -3022,61 +3022,61 @@ function createResourceRequest$K(config) {
|
|
|
3022
3022
|
};
|
|
3023
3023
|
}
|
|
3024
3024
|
|
|
3025
|
-
const adapterName$
|
|
3025
|
+
const adapterName$N = 'getDashboards';
|
|
3026
3026
|
const getDashboards_ConfigPropertyMetadata = [
|
|
3027
3027
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3028
3028
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3029
3029
|
];
|
|
3030
|
-
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3031
|
-
const createResourceParams$
|
|
3032
|
-
function keyBuilder$
|
|
3033
|
-
const resourceParams = createResourceParams$
|
|
3034
|
-
return keyBuilder$
|
|
3030
|
+
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$N, getDashboards_ConfigPropertyMetadata);
|
|
3031
|
+
const createResourceParams$N = /*#__PURE__*/ createResourceParams$T(getDashboards_ConfigPropertyMetadata);
|
|
3032
|
+
function keyBuilder$12(luvio, config) {
|
|
3033
|
+
const resourceParams = createResourceParams$N(config);
|
|
3034
|
+
return keyBuilder$13(luvio, resourceParams);
|
|
3035
3035
|
}
|
|
3036
|
-
function typeCheckConfig$
|
|
3036
|
+
function typeCheckConfig$N(untrustedConfig) {
|
|
3037
3037
|
const config = {};
|
|
3038
|
-
typeCheckConfig$
|
|
3038
|
+
typeCheckConfig$T(untrustedConfig, config, getDashboards_ConfigPropertyMetadata);
|
|
3039
3039
|
return config;
|
|
3040
3040
|
}
|
|
3041
|
-
function validateAdapterConfig$
|
|
3041
|
+
function validateAdapterConfig$N(untrustedConfig, configPropertyNames) {
|
|
3042
3042
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3043
3043
|
return null;
|
|
3044
3044
|
}
|
|
3045
3045
|
if (process.env.NODE_ENV !== 'production') {
|
|
3046
3046
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3047
3047
|
}
|
|
3048
|
-
const config = typeCheckConfig$
|
|
3048
|
+
const config = typeCheckConfig$N(untrustedConfig);
|
|
3049
3049
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3050
3050
|
return null;
|
|
3051
3051
|
}
|
|
3052
3052
|
return config;
|
|
3053
3053
|
}
|
|
3054
3054
|
function adapterFragment$l(luvio, config) {
|
|
3055
|
-
createResourceParams$
|
|
3056
|
-
return select$
|
|
3055
|
+
createResourceParams$N(config);
|
|
3056
|
+
return select$17();
|
|
3057
3057
|
}
|
|
3058
3058
|
function onFetchResponseSuccess$l(luvio, config, resourceParams, response) {
|
|
3059
|
-
const snapshot = ingestSuccess$
|
|
3059
|
+
const snapshot = ingestSuccess$G(luvio, resourceParams, response, {
|
|
3060
3060
|
config,
|
|
3061
|
-
resolve: () => buildNetworkSnapshot$
|
|
3061
|
+
resolve: () => buildNetworkSnapshot$N(luvio, config, snapshotRefreshOptions)
|
|
3062
3062
|
});
|
|
3063
3063
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3064
3064
|
}
|
|
3065
3065
|
function onFetchResponseError$l(luvio, config, resourceParams, response) {
|
|
3066
3066
|
const snapshot = ingestError$l(luvio, resourceParams, response, {
|
|
3067
3067
|
config,
|
|
3068
|
-
resolve: () => buildNetworkSnapshot$
|
|
3068
|
+
resolve: () => buildNetworkSnapshot$N(luvio, config, snapshotRefreshOptions)
|
|
3069
3069
|
});
|
|
3070
3070
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3071
3071
|
}
|
|
3072
|
-
function buildNetworkSnapshot$
|
|
3073
|
-
const resourceParams = createResourceParams$
|
|
3074
|
-
const request = createResourceRequest$
|
|
3072
|
+
function buildNetworkSnapshot$N(luvio, config, options) {
|
|
3073
|
+
const resourceParams = createResourceParams$N(config);
|
|
3074
|
+
const request = createResourceRequest$N(resourceParams);
|
|
3075
3075
|
return luvio.dispatchResourceRequest(request, options)
|
|
3076
3076
|
.then((response) => {
|
|
3077
3077
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$l(luvio, config, resourceParams, response), () => {
|
|
3078
3078
|
const cache = new StoreKeyMap();
|
|
3079
|
-
getResponseCacheKeys$
|
|
3079
|
+
getResponseCacheKeys$N(cache, luvio, resourceParams, response.body);
|
|
3080
3080
|
return cache;
|
|
3081
3081
|
});
|
|
3082
3082
|
}, (response) => {
|
|
@@ -3084,23 +3084,23 @@ function buildNetworkSnapshot$K(luvio, config, options) {
|
|
|
3084
3084
|
});
|
|
3085
3085
|
}
|
|
3086
3086
|
function buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext) {
|
|
3087
|
-
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
3087
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$N, undefined, false);
|
|
3088
3088
|
}
|
|
3089
3089
|
function buildCachedSnapshotCachePolicy$l(context, storeLookup) {
|
|
3090
3090
|
const { luvio, config } = context;
|
|
3091
3091
|
const selector = {
|
|
3092
|
-
recordId: keyBuilder$
|
|
3092
|
+
recordId: keyBuilder$12(luvio, config),
|
|
3093
3093
|
node: adapterFragment$l(luvio, config),
|
|
3094
3094
|
variables: {},
|
|
3095
3095
|
};
|
|
3096
3096
|
const cacheSnapshot = storeLookup(selector, {
|
|
3097
3097
|
config,
|
|
3098
|
-
resolve: () => buildNetworkSnapshot$
|
|
3098
|
+
resolve: () => buildNetworkSnapshot$N(luvio, config, snapshotRefreshOptions)
|
|
3099
3099
|
});
|
|
3100
3100
|
return cacheSnapshot;
|
|
3101
3101
|
}
|
|
3102
3102
|
const getDashboardsAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboards(untrustedConfig, requestContext) {
|
|
3103
|
-
const config = validateAdapterConfig$
|
|
3103
|
+
const config = validateAdapterConfig$N(untrustedConfig, getDashboards_ConfigPropertyNames);
|
|
3104
3104
|
// Invalid or incomplete config
|
|
3105
3105
|
if (config === null) {
|
|
3106
3106
|
return null;
|
|
@@ -3109,19 +3109,19 @@ const getDashboardsAdapterFactory = (luvio) => function UnifiedAnalytics__getDas
|
|
|
3109
3109
|
buildCachedSnapshotCachePolicy$l, buildNetworkSnapshotCachePolicy$l);
|
|
3110
3110
|
};
|
|
3111
3111
|
|
|
3112
|
-
function select$
|
|
3113
|
-
return select$
|
|
3112
|
+
function select$16(luvio, params) {
|
|
3113
|
+
return select$19();
|
|
3114
3114
|
}
|
|
3115
|
-
function getResponseCacheKeys$
|
|
3116
|
-
getTypeCacheKeys$
|
|
3115
|
+
function getResponseCacheKeys$M(storeKeyMap, luvio, resourceParams, response) {
|
|
3116
|
+
getTypeCacheKeys$u(storeKeyMap, luvio, response);
|
|
3117
3117
|
}
|
|
3118
|
-
function ingestSuccess$
|
|
3118
|
+
function ingestSuccess$F(luvio, resourceParams, response) {
|
|
3119
3119
|
const { body } = response;
|
|
3120
|
-
const key = keyBuilderFromType$
|
|
3121
|
-
luvio.storeIngest(key, ingest$
|
|
3120
|
+
const key = keyBuilderFromType$f(luvio, body);
|
|
3121
|
+
luvio.storeIngest(key, ingest$u, body);
|
|
3122
3122
|
const snapshot = luvio.storeLookup({
|
|
3123
3123
|
recordId: key,
|
|
3124
|
-
node: select$
|
|
3124
|
+
node: select$16(),
|
|
3125
3125
|
variables: {},
|
|
3126
3126
|
});
|
|
3127
3127
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3132,7 +3132,7 @@ function ingestSuccess$C(luvio, resourceParams, response) {
|
|
|
3132
3132
|
deepFreeze(snapshot.data);
|
|
3133
3133
|
return snapshot;
|
|
3134
3134
|
}
|
|
3135
|
-
function createResourceRequest$
|
|
3135
|
+
function createResourceRequest$M(config) {
|
|
3136
3136
|
const headers = {};
|
|
3137
3137
|
return {
|
|
3138
3138
|
baseUri: '/services/data/v63.0',
|
|
@@ -3146,7 +3146,7 @@ function createResourceRequest$J(config) {
|
|
|
3146
3146
|
};
|
|
3147
3147
|
}
|
|
3148
3148
|
|
|
3149
|
-
const adapterName$
|
|
3149
|
+
const adapterName$M = 'createDashboard';
|
|
3150
3150
|
const createDashboard_ConfigPropertyMetadata = [
|
|
3151
3151
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
3152
3152
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
@@ -3157,11 +3157,11 @@ const createDashboard_ConfigPropertyMetadata = [
|
|
|
3157
3157
|
generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3158
3158
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3159
3159
|
];
|
|
3160
|
-
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3161
|
-
const createResourceParams$
|
|
3162
|
-
function typeCheckConfig$
|
|
3160
|
+
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$M, createDashboard_ConfigPropertyMetadata);
|
|
3161
|
+
const createResourceParams$M = /*#__PURE__*/ createResourceParams$T(createDashboard_ConfigPropertyMetadata);
|
|
3162
|
+
function typeCheckConfig$M(untrustedConfig) {
|
|
3163
3163
|
const config = {};
|
|
3164
|
-
typeCheckConfig$
|
|
3164
|
+
typeCheckConfig$T(untrustedConfig, config, createDashboard_ConfigPropertyMetadata);
|
|
3165
3165
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
3166
3166
|
if (ArrayIsArray$1(untrustedConfig_layouts)) {
|
|
3167
3167
|
const untrustedConfig_layouts_array = [];
|
|
@@ -3203,30 +3203,30 @@ function typeCheckConfig$J(untrustedConfig) {
|
|
|
3203
3203
|
}
|
|
3204
3204
|
return config;
|
|
3205
3205
|
}
|
|
3206
|
-
function validateAdapterConfig$
|
|
3206
|
+
function validateAdapterConfig$M(untrustedConfig, configPropertyNames) {
|
|
3207
3207
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3208
3208
|
return null;
|
|
3209
3209
|
}
|
|
3210
3210
|
if (process.env.NODE_ENV !== 'production') {
|
|
3211
3211
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3212
3212
|
}
|
|
3213
|
-
const config = typeCheckConfig$
|
|
3213
|
+
const config = typeCheckConfig$M(untrustedConfig);
|
|
3214
3214
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3215
3215
|
return null;
|
|
3216
3216
|
}
|
|
3217
3217
|
return config;
|
|
3218
3218
|
}
|
|
3219
|
-
function buildNetworkSnapshot$
|
|
3220
|
-
const resourceParams = createResourceParams$
|
|
3221
|
-
const request = createResourceRequest$
|
|
3219
|
+
function buildNetworkSnapshot$M(luvio, config, options) {
|
|
3220
|
+
const resourceParams = createResourceParams$M(config);
|
|
3221
|
+
const request = createResourceRequest$M(resourceParams);
|
|
3222
3222
|
return luvio.dispatchResourceRequest(request, options)
|
|
3223
3223
|
.then((response) => {
|
|
3224
3224
|
return luvio.handleSuccessResponse(() => {
|
|
3225
|
-
const snapshot = ingestSuccess$
|
|
3225
|
+
const snapshot = ingestSuccess$F(luvio, resourceParams, response);
|
|
3226
3226
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3227
3227
|
}, () => {
|
|
3228
3228
|
const cache = new StoreKeyMap();
|
|
3229
|
-
getResponseCacheKeys$
|
|
3229
|
+
getResponseCacheKeys$M(cache, luvio, resourceParams, response.body);
|
|
3230
3230
|
return cache;
|
|
3231
3231
|
});
|
|
3232
3232
|
}, (response) => {
|
|
@@ -3236,33 +3236,33 @@ function buildNetworkSnapshot$J(luvio, config, options) {
|
|
|
3236
3236
|
}
|
|
3237
3237
|
const createDashboardAdapterFactory = (luvio) => {
|
|
3238
3238
|
return function createDashboard(untrustedConfig) {
|
|
3239
|
-
const config = validateAdapterConfig$
|
|
3239
|
+
const config = validateAdapterConfig$M(untrustedConfig, createDashboard_ConfigPropertyNames);
|
|
3240
3240
|
// Invalid or incomplete config
|
|
3241
3241
|
if (config === null) {
|
|
3242
3242
|
throw new Error('Invalid config for "createDashboard"');
|
|
3243
3243
|
}
|
|
3244
|
-
return buildNetworkSnapshot$
|
|
3244
|
+
return buildNetworkSnapshot$M(luvio, config);
|
|
3245
3245
|
};
|
|
3246
3246
|
};
|
|
3247
3247
|
|
|
3248
|
-
function keyBuilder$
|
|
3249
|
-
return keyBuilder$
|
|
3248
|
+
function keyBuilder$11(luvio, params) {
|
|
3249
|
+
return keyBuilder$14(luvio, {
|
|
3250
3250
|
name: params.urlParams.dashboardIdOrApiName
|
|
3251
3251
|
});
|
|
3252
3252
|
}
|
|
3253
|
-
function getResponseCacheKeys$
|
|
3254
|
-
const key = keyBuilder$
|
|
3253
|
+
function getResponseCacheKeys$L(cacheKeyMap, luvio, resourceParams) {
|
|
3254
|
+
const key = keyBuilder$11(luvio, resourceParams);
|
|
3255
3255
|
cacheKeyMap.set(key, {
|
|
3256
3256
|
namespace: keyPrefix,
|
|
3257
|
-
representationName: RepresentationType$
|
|
3257
|
+
representationName: RepresentationType$w,
|
|
3258
3258
|
mergeable: false
|
|
3259
3259
|
});
|
|
3260
3260
|
}
|
|
3261
3261
|
function evictSuccess$6(luvio, resourceParams) {
|
|
3262
|
-
const key = keyBuilder$
|
|
3262
|
+
const key = keyBuilder$11(luvio, resourceParams);
|
|
3263
3263
|
luvio.storeEvict(key);
|
|
3264
3264
|
}
|
|
3265
|
-
function createResourceRequest$
|
|
3265
|
+
function createResourceRequest$L(config) {
|
|
3266
3266
|
const headers = {};
|
|
3267
3267
|
return {
|
|
3268
3268
|
baseUri: '/services/data/v63.0',
|
|
@@ -3276,33 +3276,33 @@ function createResourceRequest$I(config) {
|
|
|
3276
3276
|
};
|
|
3277
3277
|
}
|
|
3278
3278
|
|
|
3279
|
-
const adapterName$
|
|
3279
|
+
const adapterName$L = 'deleteDashboard';
|
|
3280
3280
|
const deleteDashboard_ConfigPropertyMetadata = [
|
|
3281
3281
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3282
3282
|
];
|
|
3283
|
-
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3284
|
-
const createResourceParams$
|
|
3285
|
-
function typeCheckConfig$
|
|
3283
|
+
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$L, deleteDashboard_ConfigPropertyMetadata);
|
|
3284
|
+
const createResourceParams$L = /*#__PURE__*/ createResourceParams$T(deleteDashboard_ConfigPropertyMetadata);
|
|
3285
|
+
function typeCheckConfig$L(untrustedConfig) {
|
|
3286
3286
|
const config = {};
|
|
3287
|
-
typeCheckConfig$
|
|
3287
|
+
typeCheckConfig$T(untrustedConfig, config, deleteDashboard_ConfigPropertyMetadata);
|
|
3288
3288
|
return config;
|
|
3289
3289
|
}
|
|
3290
|
-
function validateAdapterConfig$
|
|
3290
|
+
function validateAdapterConfig$L(untrustedConfig, configPropertyNames) {
|
|
3291
3291
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3292
3292
|
return null;
|
|
3293
3293
|
}
|
|
3294
3294
|
if (process.env.NODE_ENV !== 'production') {
|
|
3295
3295
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3296
3296
|
}
|
|
3297
|
-
const config = typeCheckConfig$
|
|
3297
|
+
const config = typeCheckConfig$L(untrustedConfig);
|
|
3298
3298
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3299
3299
|
return null;
|
|
3300
3300
|
}
|
|
3301
3301
|
return config;
|
|
3302
3302
|
}
|
|
3303
|
-
function buildNetworkSnapshot$
|
|
3304
|
-
const resourceParams = createResourceParams$
|
|
3305
|
-
const request = createResourceRequest$
|
|
3303
|
+
function buildNetworkSnapshot$L(luvio, config, options) {
|
|
3304
|
+
const resourceParams = createResourceParams$L(config);
|
|
3305
|
+
const request = createResourceRequest$L(resourceParams);
|
|
3306
3306
|
return luvio.dispatchResourceRequest(request, options)
|
|
3307
3307
|
.then(() => {
|
|
3308
3308
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -3310,7 +3310,7 @@ function buildNetworkSnapshot$I(luvio, config, options) {
|
|
|
3310
3310
|
return luvio.storeBroadcast();
|
|
3311
3311
|
}, () => {
|
|
3312
3312
|
const cache = new StoreKeyMap();
|
|
3313
|
-
getResponseCacheKeys$
|
|
3313
|
+
getResponseCacheKeys$L(cache, luvio, resourceParams);
|
|
3314
3314
|
return cache;
|
|
3315
3315
|
});
|
|
3316
3316
|
}, (response) => {
|
|
@@ -3320,33 +3320,33 @@ function buildNetworkSnapshot$I(luvio, config, options) {
|
|
|
3320
3320
|
}
|
|
3321
3321
|
const deleteDashboardAdapterFactory = (luvio) => {
|
|
3322
3322
|
return function UnifiedAnalyticsdeleteDashboard(untrustedConfig) {
|
|
3323
|
-
const config = validateAdapterConfig$
|
|
3323
|
+
const config = validateAdapterConfig$L(untrustedConfig, deleteDashboard_ConfigPropertyNames);
|
|
3324
3324
|
// Invalid or incomplete config
|
|
3325
3325
|
if (config === null) {
|
|
3326
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
3326
|
+
throw new Error(`Invalid config for "${adapterName$L}"`);
|
|
3327
3327
|
}
|
|
3328
|
-
return buildNetworkSnapshot$
|
|
3328
|
+
return buildNetworkSnapshot$L(luvio, config);
|
|
3329
3329
|
};
|
|
3330
3330
|
};
|
|
3331
3331
|
|
|
3332
|
-
function select$
|
|
3333
|
-
return select$
|
|
3332
|
+
function select$15(luvio, params) {
|
|
3333
|
+
return select$19();
|
|
3334
3334
|
}
|
|
3335
|
-
function keyBuilder
|
|
3336
|
-
return keyBuilder$
|
|
3335
|
+
function keyBuilder$10(luvio, params) {
|
|
3336
|
+
return keyBuilder$14(luvio, {
|
|
3337
3337
|
name: params.urlParams.dashboardIdOrApiName
|
|
3338
3338
|
});
|
|
3339
3339
|
}
|
|
3340
|
-
function getResponseCacheKeys$
|
|
3341
|
-
getTypeCacheKeys$
|
|
3340
|
+
function getResponseCacheKeys$K(storeKeyMap, luvio, resourceParams, response) {
|
|
3341
|
+
getTypeCacheKeys$u(storeKeyMap, luvio, response);
|
|
3342
3342
|
}
|
|
3343
|
-
function ingestSuccess$
|
|
3343
|
+
function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
|
|
3344
3344
|
const { body } = response;
|
|
3345
|
-
const key = keyBuilder
|
|
3346
|
-
luvio.storeIngest(key, ingest$
|
|
3345
|
+
const key = keyBuilder$10(luvio, resourceParams);
|
|
3346
|
+
luvio.storeIngest(key, ingest$u, body);
|
|
3347
3347
|
const snapshot = luvio.storeLookup({
|
|
3348
3348
|
recordId: key,
|
|
3349
|
-
node: select$
|
|
3349
|
+
node: select$15(),
|
|
3350
3350
|
variables: {},
|
|
3351
3351
|
}, snapshotRefresh);
|
|
3352
3352
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3358,12 +3358,12 @@ function ingestSuccess$B(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3358
3358
|
return snapshot;
|
|
3359
3359
|
}
|
|
3360
3360
|
function ingestError$k(luvio, params, error, snapshotRefresh) {
|
|
3361
|
-
const key = keyBuilder
|
|
3361
|
+
const key = keyBuilder$10(luvio, params);
|
|
3362
3362
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3363
3363
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3364
3364
|
return errorSnapshot;
|
|
3365
3365
|
}
|
|
3366
|
-
function createResourceRequest$
|
|
3366
|
+
function createResourceRequest$K(config) {
|
|
3367
3367
|
const headers = {};
|
|
3368
3368
|
return {
|
|
3369
3369
|
baseUri: '/services/data/v63.0',
|
|
@@ -3377,60 +3377,60 @@ function createResourceRequest$H(config) {
|
|
|
3377
3377
|
};
|
|
3378
3378
|
}
|
|
3379
3379
|
|
|
3380
|
-
const adapterName$
|
|
3380
|
+
const adapterName$K = 'getDashboardByName';
|
|
3381
3381
|
const getDashboardByName_ConfigPropertyMetadata = [
|
|
3382
3382
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3383
3383
|
];
|
|
3384
|
-
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3385
|
-
const createResourceParams$
|
|
3386
|
-
function keyBuilder
|
|
3387
|
-
const resourceParams = createResourceParams$
|
|
3388
|
-
return keyBuilder
|
|
3384
|
+
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$K, getDashboardByName_ConfigPropertyMetadata);
|
|
3385
|
+
const createResourceParams$K = /*#__PURE__*/ createResourceParams$T(getDashboardByName_ConfigPropertyMetadata);
|
|
3386
|
+
function keyBuilder$$(luvio, config) {
|
|
3387
|
+
const resourceParams = createResourceParams$K(config);
|
|
3388
|
+
return keyBuilder$10(luvio, resourceParams);
|
|
3389
3389
|
}
|
|
3390
|
-
function typeCheckConfig$
|
|
3390
|
+
function typeCheckConfig$K(untrustedConfig) {
|
|
3391
3391
|
const config = {};
|
|
3392
|
-
typeCheckConfig$
|
|
3392
|
+
typeCheckConfig$T(untrustedConfig, config, getDashboardByName_ConfigPropertyMetadata);
|
|
3393
3393
|
return config;
|
|
3394
3394
|
}
|
|
3395
|
-
function validateAdapterConfig$
|
|
3395
|
+
function validateAdapterConfig$K(untrustedConfig, configPropertyNames) {
|
|
3396
3396
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3397
3397
|
return null;
|
|
3398
3398
|
}
|
|
3399
3399
|
if (process.env.NODE_ENV !== 'production') {
|
|
3400
3400
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3401
3401
|
}
|
|
3402
|
-
const config = typeCheckConfig$
|
|
3402
|
+
const config = typeCheckConfig$K(untrustedConfig);
|
|
3403
3403
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3404
3404
|
return null;
|
|
3405
3405
|
}
|
|
3406
3406
|
return config;
|
|
3407
3407
|
}
|
|
3408
3408
|
function adapterFragment$k(luvio, config) {
|
|
3409
|
-
createResourceParams$
|
|
3410
|
-
return select$
|
|
3409
|
+
createResourceParams$K(config);
|
|
3410
|
+
return select$15();
|
|
3411
3411
|
}
|
|
3412
3412
|
function onFetchResponseSuccess$k(luvio, config, resourceParams, response) {
|
|
3413
|
-
const snapshot = ingestSuccess$
|
|
3413
|
+
const snapshot = ingestSuccess$E(luvio, resourceParams, response, {
|
|
3414
3414
|
config,
|
|
3415
|
-
resolve: () => buildNetworkSnapshot$
|
|
3415
|
+
resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions)
|
|
3416
3416
|
});
|
|
3417
3417
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3418
3418
|
}
|
|
3419
3419
|
function onFetchResponseError$k(luvio, config, resourceParams, response) {
|
|
3420
3420
|
const snapshot = ingestError$k(luvio, resourceParams, response, {
|
|
3421
3421
|
config,
|
|
3422
|
-
resolve: () => buildNetworkSnapshot$
|
|
3422
|
+
resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions)
|
|
3423
3423
|
});
|
|
3424
3424
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3425
3425
|
}
|
|
3426
|
-
function buildNetworkSnapshot$
|
|
3427
|
-
const resourceParams = createResourceParams$
|
|
3428
|
-
const request = createResourceRequest$
|
|
3426
|
+
function buildNetworkSnapshot$K(luvio, config, options) {
|
|
3427
|
+
const resourceParams = createResourceParams$K(config);
|
|
3428
|
+
const request = createResourceRequest$K(resourceParams);
|
|
3429
3429
|
return luvio.dispatchResourceRequest(request, options)
|
|
3430
3430
|
.then((response) => {
|
|
3431
3431
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$k(luvio, config, resourceParams, response), () => {
|
|
3432
3432
|
const cache = new StoreKeyMap();
|
|
3433
|
-
getResponseCacheKeys$
|
|
3433
|
+
getResponseCacheKeys$K(cache, luvio, resourceParams, response.body);
|
|
3434
3434
|
return cache;
|
|
3435
3435
|
});
|
|
3436
3436
|
}, (response) => {
|
|
@@ -3438,23 +3438,23 @@ function buildNetworkSnapshot$H(luvio, config, options) {
|
|
|
3438
3438
|
});
|
|
3439
3439
|
}
|
|
3440
3440
|
function buildNetworkSnapshotCachePolicy$k(context, coercedAdapterRequestContext) {
|
|
3441
|
-
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
3441
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$K, undefined, false);
|
|
3442
3442
|
}
|
|
3443
3443
|
function buildCachedSnapshotCachePolicy$k(context, storeLookup) {
|
|
3444
3444
|
const { luvio, config } = context;
|
|
3445
3445
|
const selector = {
|
|
3446
|
-
recordId: keyBuilder
|
|
3446
|
+
recordId: keyBuilder$$(luvio, config),
|
|
3447
3447
|
node: adapterFragment$k(luvio, config),
|
|
3448
3448
|
variables: {},
|
|
3449
3449
|
};
|
|
3450
3450
|
const cacheSnapshot = storeLookup(selector, {
|
|
3451
3451
|
config,
|
|
3452
|
-
resolve: () => buildNetworkSnapshot$
|
|
3452
|
+
resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions)
|
|
3453
3453
|
});
|
|
3454
3454
|
return cacheSnapshot;
|
|
3455
3455
|
}
|
|
3456
3456
|
const getDashboardByNameAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboardByName(untrustedConfig, requestContext) {
|
|
3457
|
-
const config = validateAdapterConfig$
|
|
3457
|
+
const config = validateAdapterConfig$K(untrustedConfig, getDashboardByName_ConfigPropertyNames);
|
|
3458
3458
|
// Invalid or incomplete config
|
|
3459
3459
|
if (config === null) {
|
|
3460
3460
|
return null;
|
|
@@ -3463,19 +3463,19 @@ const getDashboardByNameAdapterFactory = (luvio) => function UnifiedAnalytics__g
|
|
|
3463
3463
|
buildCachedSnapshotCachePolicy$k, buildNetworkSnapshotCachePolicy$k);
|
|
3464
3464
|
};
|
|
3465
3465
|
|
|
3466
|
-
function select$
|
|
3467
|
-
return select$
|
|
3466
|
+
function select$14(luvio, params) {
|
|
3467
|
+
return select$19();
|
|
3468
3468
|
}
|
|
3469
|
-
function getResponseCacheKeys$
|
|
3470
|
-
getTypeCacheKeys$
|
|
3469
|
+
function getResponseCacheKeys$J(storeKeyMap, luvio, resourceParams, response) {
|
|
3470
|
+
getTypeCacheKeys$u(storeKeyMap, luvio, response);
|
|
3471
3471
|
}
|
|
3472
|
-
function ingestSuccess$
|
|
3472
|
+
function ingestSuccess$D(luvio, resourceParams, response) {
|
|
3473
3473
|
const { body } = response;
|
|
3474
|
-
const key = keyBuilderFromType$
|
|
3475
|
-
luvio.storeIngest(key, ingest$
|
|
3474
|
+
const key = keyBuilderFromType$f(luvio, body);
|
|
3475
|
+
luvio.storeIngest(key, ingest$u, body);
|
|
3476
3476
|
const snapshot = luvio.storeLookup({
|
|
3477
3477
|
recordId: key,
|
|
3478
|
-
node: select$
|
|
3478
|
+
node: select$14(),
|
|
3479
3479
|
variables: {},
|
|
3480
3480
|
});
|
|
3481
3481
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3486,7 +3486,7 @@ function ingestSuccess$A(luvio, resourceParams, response) {
|
|
|
3486
3486
|
deepFreeze(snapshot.data);
|
|
3487
3487
|
return snapshot;
|
|
3488
3488
|
}
|
|
3489
|
-
function createResourceRequest$
|
|
3489
|
+
function createResourceRequest$J(config) {
|
|
3490
3490
|
const headers = {};
|
|
3491
3491
|
return {
|
|
3492
3492
|
baseUri: '/services/data/v63.0',
|
|
@@ -3500,7 +3500,7 @@ function createResourceRequest$G(config) {
|
|
|
3500
3500
|
};
|
|
3501
3501
|
}
|
|
3502
3502
|
|
|
3503
|
-
const adapterName$
|
|
3503
|
+
const adapterName$J = 'updateDashboard';
|
|
3504
3504
|
const updateDashboard_ConfigPropertyMetadata = [
|
|
3505
3505
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3506
3506
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -3512,11 +3512,11 @@ const updateDashboard_ConfigPropertyMetadata = [
|
|
|
3512
3512
|
generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3513
3513
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3514
3514
|
];
|
|
3515
|
-
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3516
|
-
const createResourceParams$
|
|
3517
|
-
function typeCheckConfig$
|
|
3515
|
+
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$J, updateDashboard_ConfigPropertyMetadata);
|
|
3516
|
+
const createResourceParams$J = /*#__PURE__*/ createResourceParams$T(updateDashboard_ConfigPropertyMetadata);
|
|
3517
|
+
function typeCheckConfig$J(untrustedConfig) {
|
|
3518
3518
|
const config = {};
|
|
3519
|
-
typeCheckConfig$
|
|
3519
|
+
typeCheckConfig$T(untrustedConfig, config, updateDashboard_ConfigPropertyMetadata);
|
|
3520
3520
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
3521
3521
|
if (ArrayIsArray$1(untrustedConfig_layouts)) {
|
|
3522
3522
|
const untrustedConfig_layouts_array = [];
|
|
@@ -3558,30 +3558,30 @@ function typeCheckConfig$G(untrustedConfig) {
|
|
|
3558
3558
|
}
|
|
3559
3559
|
return config;
|
|
3560
3560
|
}
|
|
3561
|
-
function validateAdapterConfig$
|
|
3561
|
+
function validateAdapterConfig$J(untrustedConfig, configPropertyNames) {
|
|
3562
3562
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3563
3563
|
return null;
|
|
3564
3564
|
}
|
|
3565
3565
|
if (process.env.NODE_ENV !== 'production') {
|
|
3566
3566
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3567
3567
|
}
|
|
3568
|
-
const config = typeCheckConfig$
|
|
3568
|
+
const config = typeCheckConfig$J(untrustedConfig);
|
|
3569
3569
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3570
3570
|
return null;
|
|
3571
3571
|
}
|
|
3572
3572
|
return config;
|
|
3573
3573
|
}
|
|
3574
|
-
function buildNetworkSnapshot$
|
|
3575
|
-
const resourceParams = createResourceParams$
|
|
3576
|
-
const request = createResourceRequest$
|
|
3574
|
+
function buildNetworkSnapshot$J(luvio, config, options) {
|
|
3575
|
+
const resourceParams = createResourceParams$J(config);
|
|
3576
|
+
const request = createResourceRequest$J(resourceParams);
|
|
3577
3577
|
return luvio.dispatchResourceRequest(request, options)
|
|
3578
3578
|
.then((response) => {
|
|
3579
3579
|
return luvio.handleSuccessResponse(() => {
|
|
3580
|
-
const snapshot = ingestSuccess$
|
|
3580
|
+
const snapshot = ingestSuccess$D(luvio, resourceParams, response);
|
|
3581
3581
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3582
3582
|
}, () => {
|
|
3583
3583
|
const cache = new StoreKeyMap();
|
|
3584
|
-
getResponseCacheKeys$
|
|
3584
|
+
getResponseCacheKeys$J(cache, luvio, resourceParams, response.body);
|
|
3585
3585
|
return cache;
|
|
3586
3586
|
});
|
|
3587
3587
|
}, (response) => {
|
|
@@ -3591,17 +3591,498 @@ function buildNetworkSnapshot$G(luvio, config, options) {
|
|
|
3591
3591
|
}
|
|
3592
3592
|
const updateDashboardAdapterFactory = (luvio) => {
|
|
3593
3593
|
return function updateDashboard(untrustedConfig) {
|
|
3594
|
-
const config = validateAdapterConfig$
|
|
3594
|
+
const config = validateAdapterConfig$J(untrustedConfig, updateDashboard_ConfigPropertyNames);
|
|
3595
3595
|
// Invalid or incomplete config
|
|
3596
3596
|
if (config === null) {
|
|
3597
3597
|
throw new Error('Invalid config for "updateDashboard"');
|
|
3598
3598
|
}
|
|
3599
|
-
return buildNetworkSnapshot$
|
|
3599
|
+
return buildNetworkSnapshot$J(luvio, config);
|
|
3600
|
+
};
|
|
3601
|
+
};
|
|
3602
|
+
|
|
3603
|
+
var DiscriminatorValues$3;
|
|
3604
|
+
(function (DiscriminatorValues) {
|
|
3605
|
+
DiscriminatorValues["Notification"] = "Notification";
|
|
3606
|
+
})(DiscriminatorValues$3 || (DiscriminatorValues$3 = {}));
|
|
3607
|
+
function validate$M(obj, path = 'DataAlertReceiversInputRepresentation') {
|
|
3608
|
+
const v_error = (() => {
|
|
3609
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3610
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3611
|
+
}
|
|
3612
|
+
const obj_type = obj.type;
|
|
3613
|
+
const path_type = path + '.type';
|
|
3614
|
+
if (typeof obj_type !== 'string') {
|
|
3615
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3616
|
+
}
|
|
3617
|
+
})();
|
|
3618
|
+
return v_error === undefined ? null : v_error;
|
|
3619
|
+
}
|
|
3620
|
+
|
|
3621
|
+
function validate$L(obj, path = 'DataAlertDeliveryConfigurationInputRepresentation') {
|
|
3622
|
+
const v_error = (() => {
|
|
3623
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3624
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3625
|
+
}
|
|
3626
|
+
const obj_receivers = obj.receivers;
|
|
3627
|
+
const path_receivers = path + '.receivers';
|
|
3628
|
+
if (!ArrayIsArray(obj_receivers)) {
|
|
3629
|
+
return new TypeError('Expected "array" but received "' + typeof obj_receivers + '" (at "' + path_receivers + '")');
|
|
3630
|
+
}
|
|
3631
|
+
for (let i = 0; i < obj_receivers.length; i++) {
|
|
3632
|
+
const obj_receivers_item = obj_receivers[i];
|
|
3633
|
+
const path_receivers_item = path_receivers + '[' + i + ']';
|
|
3634
|
+
const referencepath_receivers_itemValidationError = validate$M(obj_receivers_item, path_receivers_item);
|
|
3635
|
+
if (referencepath_receivers_itemValidationError !== null) {
|
|
3636
|
+
let message = 'Object doesn\'t match DataAlertReceiversInputRepresentation (at "' + path_receivers_item + '")\n';
|
|
3637
|
+
message += referencepath_receivers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3638
|
+
return new TypeError(message);
|
|
3639
|
+
}
|
|
3640
|
+
}
|
|
3641
|
+
})();
|
|
3642
|
+
return v_error === undefined ? null : v_error;
|
|
3643
|
+
}
|
|
3644
|
+
|
|
3645
|
+
var DiscriminatorValues$2;
|
|
3646
|
+
(function (DiscriminatorValues) {
|
|
3647
|
+
DiscriminatorValues["RawValue"] = "RawValue";
|
|
3648
|
+
DiscriminatorValues["Insights"] = "Insights";
|
|
3649
|
+
})(DiscriminatorValues$2 || (DiscriminatorValues$2 = {}));
|
|
3650
|
+
function validate$K(obj, path = 'DataAlertValueInputRepresentation') {
|
|
3651
|
+
const v_error = (() => {
|
|
3652
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3653
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3654
|
+
}
|
|
3655
|
+
const obj_type = obj.type;
|
|
3656
|
+
const path_type = path + '.type';
|
|
3657
|
+
if (typeof obj_type !== 'string') {
|
|
3658
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3659
|
+
}
|
|
3660
|
+
})();
|
|
3661
|
+
return v_error === undefined ? null : v_error;
|
|
3662
|
+
}
|
|
3663
|
+
|
|
3664
|
+
function validate$J(obj, path = 'DataAlertValueRightOperandInputRepresentation') {
|
|
3665
|
+
const v_error = (() => {
|
|
3666
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3667
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3668
|
+
}
|
|
3669
|
+
const obj_type = obj.type;
|
|
3670
|
+
const path_type = path + '.type';
|
|
3671
|
+
if (typeof obj_type !== 'string') {
|
|
3672
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3673
|
+
}
|
|
3674
|
+
})();
|
|
3675
|
+
return v_error === undefined ? null : v_error;
|
|
3676
|
+
}
|
|
3677
|
+
|
|
3678
|
+
function validate$I(obj, path = 'DataAlertConditionInputRepresentation') {
|
|
3679
|
+
const v_error = (() => {
|
|
3680
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3681
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3682
|
+
}
|
|
3683
|
+
const obj_leftOperand = obj.leftOperand;
|
|
3684
|
+
const path_leftOperand = path + '.leftOperand';
|
|
3685
|
+
const referencepath_leftOperandValidationError = validate$K(obj_leftOperand, path_leftOperand);
|
|
3686
|
+
if (referencepath_leftOperandValidationError !== null) {
|
|
3687
|
+
let message = 'Object doesn\'t match DataAlertValueInputRepresentation (at "' + path_leftOperand + '")\n';
|
|
3688
|
+
message += referencepath_leftOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3689
|
+
return new TypeError(message);
|
|
3690
|
+
}
|
|
3691
|
+
const obj_operator = obj.operator;
|
|
3692
|
+
const path_operator = path + '.operator';
|
|
3693
|
+
if (typeof obj_operator !== 'string') {
|
|
3694
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
3695
|
+
}
|
|
3696
|
+
const obj_rightOperand = obj.rightOperand;
|
|
3697
|
+
const path_rightOperand = path + '.rightOperand';
|
|
3698
|
+
const referencepath_rightOperandValidationError = validate$J(obj_rightOperand, path_rightOperand);
|
|
3699
|
+
if (referencepath_rightOperandValidationError !== null) {
|
|
3700
|
+
let message = 'Object doesn\'t match DataAlertValueRightOperandInputRepresentation (at "' + path_rightOperand + '")\n';
|
|
3701
|
+
message += referencepath_rightOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3702
|
+
return new TypeError(message);
|
|
3703
|
+
}
|
|
3704
|
+
})();
|
|
3705
|
+
return v_error === undefined ? null : v_error;
|
|
3706
|
+
}
|
|
3707
|
+
|
|
3708
|
+
function validate$H(obj, path = 'DataAlertThresholdsInputRepresentation') {
|
|
3709
|
+
const v_error = (() => {
|
|
3710
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3711
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3712
|
+
}
|
|
3713
|
+
const obj_conditions = obj.conditions;
|
|
3714
|
+
const path_conditions = path + '.conditions';
|
|
3715
|
+
if (!ArrayIsArray(obj_conditions)) {
|
|
3716
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conditions + '" (at "' + path_conditions + '")');
|
|
3717
|
+
}
|
|
3718
|
+
for (let i = 0; i < obj_conditions.length; i++) {
|
|
3719
|
+
const obj_conditions_item = obj_conditions[i];
|
|
3720
|
+
const path_conditions_item = path_conditions + '[' + i + ']';
|
|
3721
|
+
const referencepath_conditions_itemValidationError = validate$I(obj_conditions_item, path_conditions_item);
|
|
3722
|
+
if (referencepath_conditions_itemValidationError !== null) {
|
|
3723
|
+
let message = 'Object doesn\'t match DataAlertConditionInputRepresentation (at "' + path_conditions_item + '")\n';
|
|
3724
|
+
message += referencepath_conditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3725
|
+
return new TypeError(message);
|
|
3726
|
+
}
|
|
3727
|
+
}
|
|
3728
|
+
const obj_customLogicalOperation = obj.customLogicalOperation;
|
|
3729
|
+
const path_customLogicalOperation = path + '.customLogicalOperation';
|
|
3730
|
+
if (typeof obj_customLogicalOperation !== 'string') {
|
|
3731
|
+
return new TypeError('Expected "string" but received "' + typeof obj_customLogicalOperation + '" (at "' + path_customLogicalOperation + '")');
|
|
3732
|
+
}
|
|
3733
|
+
})();
|
|
3734
|
+
return v_error === undefined ? null : v_error;
|
|
3735
|
+
}
|
|
3736
|
+
|
|
3737
|
+
const TTL$i = 500;
|
|
3738
|
+
const VERSION$s = "7f11b071aca79c0d2d3ecbfb23e11589";
|
|
3739
|
+
function validate$G(obj, path = 'DataAlertRepresentation') {
|
|
3740
|
+
const v_error = (() => {
|
|
3741
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3742
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3743
|
+
}
|
|
3744
|
+
const obj_id = obj.id;
|
|
3745
|
+
const path_id = path + '.id';
|
|
3746
|
+
if (typeof obj_id !== 'string') {
|
|
3747
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3748
|
+
}
|
|
3749
|
+
})();
|
|
3750
|
+
return v_error === undefined ? null : v_error;
|
|
3751
|
+
}
|
|
3752
|
+
const RepresentationType$u = 'DataAlertRepresentation';
|
|
3753
|
+
function keyBuilder$_(luvio, config) {
|
|
3754
|
+
return keyPrefix + '::' + RepresentationType$u + ':' + config.dataAlertId;
|
|
3755
|
+
}
|
|
3756
|
+
function keyBuilderFromType$e(luvio, object) {
|
|
3757
|
+
const keyParams = {
|
|
3758
|
+
dataAlertId: object.id
|
|
3759
|
+
};
|
|
3760
|
+
return keyBuilder$_(luvio, keyParams);
|
|
3761
|
+
}
|
|
3762
|
+
function normalize$s(input, existing, path, luvio, store, timestamp) {
|
|
3763
|
+
return input;
|
|
3764
|
+
}
|
|
3765
|
+
const select$13 = function DataAlertRepresentationSelect() {
|
|
3766
|
+
return {
|
|
3767
|
+
kind: 'Fragment',
|
|
3768
|
+
version: VERSION$s,
|
|
3769
|
+
private: [],
|
|
3770
|
+
opaque: true
|
|
3771
|
+
};
|
|
3772
|
+
};
|
|
3773
|
+
function equals$s(existing, incoming) {
|
|
3774
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3775
|
+
return false;
|
|
3776
|
+
}
|
|
3777
|
+
return true;
|
|
3778
|
+
}
|
|
3779
|
+
const ingest$s = function DataAlertRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3780
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3781
|
+
const validateError = validate$G(input);
|
|
3782
|
+
if (validateError !== null) {
|
|
3783
|
+
throw validateError;
|
|
3784
|
+
}
|
|
3785
|
+
}
|
|
3786
|
+
const key = keyBuilderFromType$e(luvio, input);
|
|
3787
|
+
const ttlToUse = TTL$i;
|
|
3788
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$s, "UnifiedAnalytics", VERSION$s, RepresentationType$u, equals$s);
|
|
3789
|
+
return createLink(key);
|
|
3790
|
+
};
|
|
3791
|
+
function getTypeCacheKeys$s(rootKeySet, luvio, input, fullPathFactory) {
|
|
3792
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3793
|
+
const rootKey = keyBuilderFromType$e(luvio, input);
|
|
3794
|
+
rootKeySet.set(rootKey, {
|
|
3795
|
+
namespace: keyPrefix,
|
|
3796
|
+
representationName: RepresentationType$u,
|
|
3797
|
+
mergeable: false
|
|
3798
|
+
});
|
|
3799
|
+
}
|
|
3800
|
+
|
|
3801
|
+
function select$12(luvio, params) {
|
|
3802
|
+
return select$13();
|
|
3803
|
+
}
|
|
3804
|
+
function getResponseCacheKeys$I(storeKeyMap, luvio, resourceParams, response) {
|
|
3805
|
+
getTypeCacheKeys$s(storeKeyMap, luvio, response);
|
|
3806
|
+
}
|
|
3807
|
+
function ingestSuccess$C(luvio, resourceParams, response) {
|
|
3808
|
+
const { body } = response;
|
|
3809
|
+
const key = keyBuilderFromType$e(luvio, body);
|
|
3810
|
+
luvio.storeIngest(key, ingest$s, body);
|
|
3811
|
+
const snapshot = luvio.storeLookup({
|
|
3812
|
+
recordId: key,
|
|
3813
|
+
node: select$12(),
|
|
3814
|
+
variables: {},
|
|
3815
|
+
});
|
|
3816
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3817
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
3818
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3819
|
+
}
|
|
3820
|
+
}
|
|
3821
|
+
deepFreeze(snapshot.data);
|
|
3822
|
+
return snapshot;
|
|
3823
|
+
}
|
|
3824
|
+
function createResourceRequest$I(config) {
|
|
3825
|
+
const headers = {};
|
|
3826
|
+
return {
|
|
3827
|
+
baseUri: '/services/data/v63.0',
|
|
3828
|
+
basePath: '/tableau/dataAlerts',
|
|
3829
|
+
method: 'post',
|
|
3830
|
+
body: config.body,
|
|
3831
|
+
urlParams: {},
|
|
3832
|
+
queryParams: config.queryParams,
|
|
3833
|
+
headers,
|
|
3834
|
+
priority: 'normal',
|
|
3835
|
+
};
|
|
3836
|
+
}
|
|
3837
|
+
|
|
3838
|
+
var DiscriminatorValues$1;
|
|
3839
|
+
(function (DiscriminatorValues) {
|
|
3840
|
+
DiscriminatorValues["Metric"] = "Metric";
|
|
3841
|
+
})(DiscriminatorValues$1 || (DiscriminatorValues$1 = {}));
|
|
3842
|
+
function validate$F(obj, path = 'DataAlertContentInputRepresentation') {
|
|
3843
|
+
const v_error = (() => {
|
|
3844
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3845
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3846
|
+
}
|
|
3847
|
+
const obj_type = obj.type;
|
|
3848
|
+
const path_type = path + '.type';
|
|
3849
|
+
if (typeof obj_type !== 'string') {
|
|
3850
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3851
|
+
}
|
|
3852
|
+
})();
|
|
3853
|
+
return v_error === undefined ? null : v_error;
|
|
3854
|
+
}
|
|
3855
|
+
|
|
3856
|
+
var DiscriminatorValues;
|
|
3857
|
+
(function (DiscriminatorValues) {
|
|
3858
|
+
DiscriminatorValues["Daily"] = "Daily";
|
|
3859
|
+
DiscriminatorValues["Weekly"] = "Weekly";
|
|
3860
|
+
DiscriminatorValues["Cron"] = "Cron";
|
|
3861
|
+
})(DiscriminatorValues || (DiscriminatorValues = {}));
|
|
3862
|
+
function validate$E(obj, path = 'DataAlertScheduleInputRepresentation') {
|
|
3863
|
+
const v_error = (() => {
|
|
3864
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3865
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3866
|
+
}
|
|
3867
|
+
const obj_hoursOfDay = obj.hoursOfDay;
|
|
3868
|
+
const path_hoursOfDay = path + '.hoursOfDay';
|
|
3869
|
+
if (!ArrayIsArray(obj_hoursOfDay)) {
|
|
3870
|
+
return new TypeError('Expected "array" but received "' + typeof obj_hoursOfDay + '" (at "' + path_hoursOfDay + '")');
|
|
3871
|
+
}
|
|
3872
|
+
for (let i = 0; i < obj_hoursOfDay.length; i++) {
|
|
3873
|
+
const obj_hoursOfDay_item = obj_hoursOfDay[i];
|
|
3874
|
+
const path_hoursOfDay_item = path_hoursOfDay + '[' + i + ']';
|
|
3875
|
+
if (typeof obj_hoursOfDay_item !== 'number' || (typeof obj_hoursOfDay_item === 'number' && Math.floor(obj_hoursOfDay_item) !== obj_hoursOfDay_item)) {
|
|
3876
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_hoursOfDay_item + '" (at "' + path_hoursOfDay_item + '")');
|
|
3877
|
+
}
|
|
3878
|
+
}
|
|
3879
|
+
const obj_type = obj.type;
|
|
3880
|
+
const path_type = path + '.type';
|
|
3881
|
+
if (typeof obj_type !== 'string') {
|
|
3882
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3883
|
+
}
|
|
3884
|
+
})();
|
|
3885
|
+
return v_error === undefined ? null : v_error;
|
|
3886
|
+
}
|
|
3887
|
+
|
|
3888
|
+
const adapterName$I = 'createDataAlert';
|
|
3889
|
+
const createDataAlert_ConfigPropertyMetadata = [
|
|
3890
|
+
generateParamConfigMetadata('runNow', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
3891
|
+
generateParamConfigMetadata('analysisUtterance', true, 2 /* Body */, 0 /* String */),
|
|
3892
|
+
generateParamConfigMetadata('content', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3893
|
+
generateParamConfigMetadata('deliveryConfigurations', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3894
|
+
generateParamConfigMetadata('schedule', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3895
|
+
generateParamConfigMetadata('thresholds', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3896
|
+
generateParamConfigMetadata('utterance', true, 2 /* Body */, 0 /* String */),
|
|
3897
|
+
];
|
|
3898
|
+
const createDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$I, createDataAlert_ConfigPropertyMetadata);
|
|
3899
|
+
const createResourceParams$I = /*#__PURE__*/ createResourceParams$T(createDataAlert_ConfigPropertyMetadata);
|
|
3900
|
+
function typeCheckConfig$I(untrustedConfig) {
|
|
3901
|
+
const config = {};
|
|
3902
|
+
typeCheckConfig$T(untrustedConfig, config, createDataAlert_ConfigPropertyMetadata);
|
|
3903
|
+
const untrustedConfig_content = untrustedConfig.content;
|
|
3904
|
+
const referenceDataAlertContentInputRepresentationValidationError = validate$F(untrustedConfig_content);
|
|
3905
|
+
if (referenceDataAlertContentInputRepresentationValidationError === null) {
|
|
3906
|
+
config.content = untrustedConfig_content;
|
|
3907
|
+
}
|
|
3908
|
+
const untrustedConfig_deliveryConfigurations = untrustedConfig.deliveryConfigurations;
|
|
3909
|
+
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$L(untrustedConfig_deliveryConfigurations);
|
|
3910
|
+
if (referenceDataAlertDeliveryConfigurationInputRepresentationValidationError === null) {
|
|
3911
|
+
config.deliveryConfigurations = untrustedConfig_deliveryConfigurations;
|
|
3912
|
+
}
|
|
3913
|
+
const untrustedConfig_schedule = untrustedConfig.schedule;
|
|
3914
|
+
const referenceDataAlertScheduleInputRepresentationValidationError = validate$E(untrustedConfig_schedule);
|
|
3915
|
+
if (referenceDataAlertScheduleInputRepresentationValidationError === null) {
|
|
3916
|
+
config.schedule = untrustedConfig_schedule;
|
|
3917
|
+
}
|
|
3918
|
+
const untrustedConfig_thresholds = untrustedConfig.thresholds;
|
|
3919
|
+
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$H(untrustedConfig_thresholds);
|
|
3920
|
+
if (referenceDataAlertThresholdsInputRepresentationValidationError === null) {
|
|
3921
|
+
config.thresholds = untrustedConfig_thresholds;
|
|
3922
|
+
}
|
|
3923
|
+
return config;
|
|
3924
|
+
}
|
|
3925
|
+
function validateAdapterConfig$I(untrustedConfig, configPropertyNames) {
|
|
3926
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
3927
|
+
return null;
|
|
3928
|
+
}
|
|
3929
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3930
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
3931
|
+
}
|
|
3932
|
+
const config = typeCheckConfig$I(untrustedConfig);
|
|
3933
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3934
|
+
return null;
|
|
3935
|
+
}
|
|
3936
|
+
return config;
|
|
3937
|
+
}
|
|
3938
|
+
function buildNetworkSnapshot$I(luvio, config, options) {
|
|
3939
|
+
const resourceParams = createResourceParams$I(config);
|
|
3940
|
+
const request = createResourceRequest$I(resourceParams);
|
|
3941
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
3942
|
+
.then((response) => {
|
|
3943
|
+
return luvio.handleSuccessResponse(() => {
|
|
3944
|
+
const snapshot = ingestSuccess$C(luvio, resourceParams, response);
|
|
3945
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3946
|
+
}, () => {
|
|
3947
|
+
const cache = new StoreKeyMap();
|
|
3948
|
+
getResponseCacheKeys$I(cache, luvio, resourceParams, response.body);
|
|
3949
|
+
return cache;
|
|
3950
|
+
});
|
|
3951
|
+
}, (response) => {
|
|
3952
|
+
deepFreeze(response);
|
|
3953
|
+
throw response;
|
|
3954
|
+
});
|
|
3955
|
+
}
|
|
3956
|
+
const createDataAlertAdapterFactory = (luvio) => {
|
|
3957
|
+
return function createDataAlert(untrustedConfig) {
|
|
3958
|
+
const config = validateAdapterConfig$I(untrustedConfig, createDataAlert_ConfigPropertyNames);
|
|
3959
|
+
// Invalid or incomplete config
|
|
3960
|
+
if (config === null) {
|
|
3961
|
+
throw new Error('Invalid config for "createDataAlert"');
|
|
3962
|
+
}
|
|
3963
|
+
return buildNetworkSnapshot$I(luvio, config);
|
|
3964
|
+
};
|
|
3965
|
+
};
|
|
3966
|
+
|
|
3967
|
+
function select$11(luvio, params) {
|
|
3968
|
+
return select$13();
|
|
3969
|
+
}
|
|
3970
|
+
function getResponseCacheKeys$H(storeKeyMap, luvio, resourceParams, response) {
|
|
3971
|
+
getTypeCacheKeys$s(storeKeyMap, luvio, response);
|
|
3972
|
+
}
|
|
3973
|
+
function ingestSuccess$B(luvio, resourceParams, response) {
|
|
3974
|
+
const { body } = response;
|
|
3975
|
+
const key = keyBuilderFromType$e(luvio, body);
|
|
3976
|
+
luvio.storeIngest(key, ingest$s, body);
|
|
3977
|
+
const snapshot = luvio.storeLookup({
|
|
3978
|
+
recordId: key,
|
|
3979
|
+
node: select$11(),
|
|
3980
|
+
variables: {},
|
|
3981
|
+
});
|
|
3982
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3983
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
3984
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3985
|
+
}
|
|
3986
|
+
}
|
|
3987
|
+
deepFreeze(snapshot.data);
|
|
3988
|
+
return snapshot;
|
|
3989
|
+
}
|
|
3990
|
+
function createResourceRequest$H(config) {
|
|
3991
|
+
const headers = {};
|
|
3992
|
+
return {
|
|
3993
|
+
baseUri: '/services/data/v63.0',
|
|
3994
|
+
basePath: '/tableau/dataAlerts/' + config.urlParams.dataAlertId + '',
|
|
3995
|
+
method: 'put',
|
|
3996
|
+
body: config.body,
|
|
3997
|
+
urlParams: config.urlParams,
|
|
3998
|
+
queryParams: config.queryParams,
|
|
3999
|
+
headers,
|
|
4000
|
+
priority: 'normal',
|
|
4001
|
+
};
|
|
4002
|
+
}
|
|
4003
|
+
|
|
4004
|
+
const adapterName$H = 'updateDataAlert';
|
|
4005
|
+
const updateDataAlert_ConfigPropertyMetadata = [
|
|
4006
|
+
generateParamConfigMetadata('dataAlertId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4007
|
+
generateParamConfigMetadata('runNow', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
4008
|
+
generateParamConfigMetadata('analysisUtterance', true, 2 /* Body */, 0 /* String */),
|
|
4009
|
+
generateParamConfigMetadata('content', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4010
|
+
generateParamConfigMetadata('deliveryConfigurations', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4011
|
+
generateParamConfigMetadata('schedule', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4012
|
+
generateParamConfigMetadata('thresholds', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4013
|
+
generateParamConfigMetadata('utterance', true, 2 /* Body */, 0 /* String */),
|
|
4014
|
+
];
|
|
4015
|
+
const updateDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$H, updateDataAlert_ConfigPropertyMetadata);
|
|
4016
|
+
const createResourceParams$H = /*#__PURE__*/ createResourceParams$T(updateDataAlert_ConfigPropertyMetadata);
|
|
4017
|
+
function typeCheckConfig$H(untrustedConfig) {
|
|
4018
|
+
const config = {};
|
|
4019
|
+
typeCheckConfig$T(untrustedConfig, config, updateDataAlert_ConfigPropertyMetadata);
|
|
4020
|
+
const untrustedConfig_content = untrustedConfig.content;
|
|
4021
|
+
const referenceDataAlertContentInputRepresentationValidationError = validate$F(untrustedConfig_content);
|
|
4022
|
+
if (referenceDataAlertContentInputRepresentationValidationError === null) {
|
|
4023
|
+
config.content = untrustedConfig_content;
|
|
4024
|
+
}
|
|
4025
|
+
const untrustedConfig_deliveryConfigurations = untrustedConfig.deliveryConfigurations;
|
|
4026
|
+
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$L(untrustedConfig_deliveryConfigurations);
|
|
4027
|
+
if (referenceDataAlertDeliveryConfigurationInputRepresentationValidationError === null) {
|
|
4028
|
+
config.deliveryConfigurations = untrustedConfig_deliveryConfigurations;
|
|
4029
|
+
}
|
|
4030
|
+
const untrustedConfig_schedule = untrustedConfig.schedule;
|
|
4031
|
+
const referenceDataAlertScheduleInputRepresentationValidationError = validate$E(untrustedConfig_schedule);
|
|
4032
|
+
if (referenceDataAlertScheduleInputRepresentationValidationError === null) {
|
|
4033
|
+
config.schedule = untrustedConfig_schedule;
|
|
4034
|
+
}
|
|
4035
|
+
const untrustedConfig_thresholds = untrustedConfig.thresholds;
|
|
4036
|
+
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$H(untrustedConfig_thresholds);
|
|
4037
|
+
if (referenceDataAlertThresholdsInputRepresentationValidationError === null) {
|
|
4038
|
+
config.thresholds = untrustedConfig_thresholds;
|
|
4039
|
+
}
|
|
4040
|
+
return config;
|
|
4041
|
+
}
|
|
4042
|
+
function validateAdapterConfig$H(untrustedConfig, configPropertyNames) {
|
|
4043
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4044
|
+
return null;
|
|
4045
|
+
}
|
|
4046
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4047
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4048
|
+
}
|
|
4049
|
+
const config = typeCheckConfig$H(untrustedConfig);
|
|
4050
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4051
|
+
return null;
|
|
4052
|
+
}
|
|
4053
|
+
return config;
|
|
4054
|
+
}
|
|
4055
|
+
function buildNetworkSnapshot$H(luvio, config, options) {
|
|
4056
|
+
const resourceParams = createResourceParams$H(config);
|
|
4057
|
+
const request = createResourceRequest$H(resourceParams);
|
|
4058
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4059
|
+
.then((response) => {
|
|
4060
|
+
return luvio.handleSuccessResponse(() => {
|
|
4061
|
+
const snapshot = ingestSuccess$B(luvio, resourceParams, response);
|
|
4062
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4063
|
+
}, () => {
|
|
4064
|
+
const cache = new StoreKeyMap();
|
|
4065
|
+
getResponseCacheKeys$H(cache, luvio, resourceParams, response.body);
|
|
4066
|
+
return cache;
|
|
4067
|
+
});
|
|
4068
|
+
}, (response) => {
|
|
4069
|
+
deepFreeze(response);
|
|
4070
|
+
throw response;
|
|
4071
|
+
});
|
|
4072
|
+
}
|
|
4073
|
+
const updateDataAlertAdapterFactory = (luvio) => {
|
|
4074
|
+
return function updateDataAlert(untrustedConfig) {
|
|
4075
|
+
const config = validateAdapterConfig$H(untrustedConfig, updateDataAlert_ConfigPropertyNames);
|
|
4076
|
+
// Invalid or incomplete config
|
|
4077
|
+
if (config === null) {
|
|
4078
|
+
throw new Error('Invalid config for "updateDataAlert"');
|
|
4079
|
+
}
|
|
4080
|
+
return buildNetworkSnapshot$H(luvio, config);
|
|
3600
4081
|
};
|
|
3601
4082
|
};
|
|
3602
4083
|
|
|
3603
|
-
function validate$
|
|
3604
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
4084
|
+
function validate$D(obj, path = 'AnalyticsUserRepresentation') {
|
|
4085
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$S(obj, path);
|
|
3605
4086
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
3606
4087
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
3607
4088
|
}
|
|
@@ -3642,8 +4123,8 @@ function validate$C(obj, path = 'AnalyticsUserRepresentation') {
|
|
|
3642
4123
|
}
|
|
3643
4124
|
|
|
3644
4125
|
const TTL$h = 500;
|
|
3645
|
-
const VERSION$r = "
|
|
3646
|
-
function validate$
|
|
4126
|
+
const VERSION$r = "6e1c96752ff32573835ff880edbeaac0";
|
|
4127
|
+
function validate$C(obj, path = 'DataAssetRequestRepresentation') {
|
|
3647
4128
|
const v_error = (() => {
|
|
3648
4129
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3649
4130
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3652,7 +4133,7 @@ function validate$B(obj, path = 'DataAssetRequestRepresentation') {
|
|
|
3652
4133
|
const path_acknowledgedBy = path + '.acknowledgedBy';
|
|
3653
4134
|
let obj_acknowledgedBy_union0 = null;
|
|
3654
4135
|
const obj_acknowledgedBy_union0_error = (() => {
|
|
3655
|
-
const referencepath_acknowledgedByValidationError = validate$
|
|
4136
|
+
const referencepath_acknowledgedByValidationError = validate$D(obj_acknowledgedBy, path_acknowledgedBy);
|
|
3656
4137
|
if (referencepath_acknowledgedByValidationError !== null) {
|
|
3657
4138
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_acknowledgedBy + '")\n';
|
|
3658
4139
|
message += referencepath_acknowledgedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3738,7 +4219,7 @@ function validate$B(obj, path = 'DataAssetRequestRepresentation') {
|
|
|
3738
4219
|
const path_cancelledBy = path + '.cancelledBy';
|
|
3739
4220
|
let obj_cancelledBy_union0 = null;
|
|
3740
4221
|
const obj_cancelledBy_union0_error = (() => {
|
|
3741
|
-
const referencepath_cancelledByValidationError = validate$
|
|
4222
|
+
const referencepath_cancelledByValidationError = validate$D(obj_cancelledBy, path_cancelledBy);
|
|
3742
4223
|
if (referencepath_cancelledByValidationError !== null) {
|
|
3743
4224
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_cancelledBy + '")\n';
|
|
3744
4225
|
message += referencepath_cancelledByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3793,7 +4274,7 @@ function validate$B(obj, path = 'DataAssetRequestRepresentation') {
|
|
|
3793
4274
|
const path_completedBy = path + '.completedBy';
|
|
3794
4275
|
let obj_completedBy_union0 = null;
|
|
3795
4276
|
const obj_completedBy_union0_error = (() => {
|
|
3796
|
-
const referencepath_completedByValidationError = validate$
|
|
4277
|
+
const referencepath_completedByValidationError = validate$D(obj_completedBy, path_completedBy);
|
|
3797
4278
|
if (referencepath_completedByValidationError !== null) {
|
|
3798
4279
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_completedBy + '")\n';
|
|
3799
4280
|
message += referencepath_completedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3908,7 +4389,7 @@ function validate$B(obj, path = 'DataAssetRequestRepresentation') {
|
|
|
3908
4389
|
}
|
|
3909
4390
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
3910
4391
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
3911
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
4392
|
+
const referencepath_lastModifiedByValidationError = validate$D(obj_lastModifiedBy, path_lastModifiedBy);
|
|
3912
4393
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
3913
4394
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
3914
4395
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4108,7 +4589,7 @@ function validate$B(obj, path = 'DataAssetRequestRepresentation') {
|
|
|
4108
4589
|
}
|
|
4109
4590
|
const obj_requestedBy = obj.requestedBy;
|
|
4110
4591
|
const path_requestedBy = path + '.requestedBy';
|
|
4111
|
-
const referencepath_requestedByValidationError = validate$
|
|
4592
|
+
const referencepath_requestedByValidationError = validate$D(obj_requestedBy, path_requestedBy);
|
|
4112
4593
|
if (referencepath_requestedByValidationError !== null) {
|
|
4113
4594
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_requestedBy + '")\n';
|
|
4114
4595
|
message += referencepath_requestedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4183,8 +4664,29 @@ function validate$B(obj, path = 'DataAssetRequestRepresentation') {
|
|
|
4183
4664
|
}
|
|
4184
4665
|
const obj_workspaceAssetId = obj.workspaceAssetId;
|
|
4185
4666
|
const path_workspaceAssetId = path + '.workspaceAssetId';
|
|
4186
|
-
|
|
4187
|
-
|
|
4667
|
+
let obj_workspaceAssetId_union0 = null;
|
|
4668
|
+
const obj_workspaceAssetId_union0_error = (() => {
|
|
4669
|
+
if (typeof obj_workspaceAssetId !== 'string') {
|
|
4670
|
+
return new TypeError('Expected "string" but received "' + typeof obj_workspaceAssetId + '" (at "' + path_workspaceAssetId + '")');
|
|
4671
|
+
}
|
|
4672
|
+
})();
|
|
4673
|
+
if (obj_workspaceAssetId_union0_error != null) {
|
|
4674
|
+
obj_workspaceAssetId_union0 = obj_workspaceAssetId_union0_error.message;
|
|
4675
|
+
}
|
|
4676
|
+
let obj_workspaceAssetId_union1 = null;
|
|
4677
|
+
const obj_workspaceAssetId_union1_error = (() => {
|
|
4678
|
+
if (obj_workspaceAssetId !== null) {
|
|
4679
|
+
return new TypeError('Expected "null" but received "' + typeof obj_workspaceAssetId + '" (at "' + path_workspaceAssetId + '")');
|
|
4680
|
+
}
|
|
4681
|
+
})();
|
|
4682
|
+
if (obj_workspaceAssetId_union1_error != null) {
|
|
4683
|
+
obj_workspaceAssetId_union1 = obj_workspaceAssetId_union1_error.message;
|
|
4684
|
+
}
|
|
4685
|
+
if (obj_workspaceAssetId_union0 && obj_workspaceAssetId_union1) {
|
|
4686
|
+
let message = 'Object doesn\'t match union (at "' + path_workspaceAssetId + '")';
|
|
4687
|
+
message += '\n' + obj_workspaceAssetId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4688
|
+
message += '\n' + obj_workspaceAssetId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4689
|
+
return new TypeError(message);
|
|
4188
4690
|
}
|
|
4189
4691
|
})();
|
|
4190
4692
|
return v_error === undefined ? null : v_error;
|
|
@@ -4202,7 +4704,7 @@ function keyBuilderFromType$d(luvio, object) {
|
|
|
4202
4704
|
function normalize$r(input, existing, path, luvio, store, timestamp) {
|
|
4203
4705
|
return input;
|
|
4204
4706
|
}
|
|
4205
|
-
const select
|
|
4707
|
+
const select$10 = function DataAssetRequestRepresentationSelect() {
|
|
4206
4708
|
return {
|
|
4207
4709
|
kind: 'Fragment',
|
|
4208
4710
|
version: VERSION$r,
|
|
@@ -4218,7 +4720,7 @@ function equals$r(existing, incoming) {
|
|
|
4218
4720
|
}
|
|
4219
4721
|
const ingest$r = function DataAssetRequestRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4220
4722
|
if (process.env.NODE_ENV !== 'production') {
|
|
4221
|
-
const validateError = validate$
|
|
4723
|
+
const validateError = validate$C(input);
|
|
4222
4724
|
if (validateError !== null) {
|
|
4223
4725
|
throw validateError;
|
|
4224
4726
|
}
|
|
@@ -4240,7 +4742,7 @@ function getTypeCacheKeys$r(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4240
4742
|
|
|
4241
4743
|
const TTL$g = 500;
|
|
4242
4744
|
const VERSION$q = "b130e3ebdd5cd1a5007c21dad3bfa38a";
|
|
4243
|
-
function validate$
|
|
4745
|
+
function validate$B(obj, path = 'DataAssetRequestCollectionRepresentation') {
|
|
4244
4746
|
const v_error = (() => {
|
|
4245
4747
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4246
4748
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4253,7 +4755,7 @@ function validate$A(obj, path = 'DataAssetRequestCollectionRepresentation') {
|
|
|
4253
4755
|
for (let i = 0; i < obj_dataAssetRequests.length; i++) {
|
|
4254
4756
|
const obj_dataAssetRequests_item = obj_dataAssetRequests[i];
|
|
4255
4757
|
const path_dataAssetRequests_item = path_dataAssetRequests + '[' + i + ']';
|
|
4256
|
-
const referencepath_dataAssetRequests_itemValidationError = validate$
|
|
4758
|
+
const referencepath_dataAssetRequests_itemValidationError = validate$C(obj_dataAssetRequests_item, path_dataAssetRequests_item);
|
|
4257
4759
|
if (referencepath_dataAssetRequests_itemValidationError !== null) {
|
|
4258
4760
|
let message = 'Object doesn\'t match DataAssetRequestRepresentation (at "' + path_dataAssetRequests_item + '")\n';
|
|
4259
4761
|
message += referencepath_dataAssetRequests_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4267,7 +4769,7 @@ const RepresentationType$s = 'DataAssetRequestCollectionRepresentation';
|
|
|
4267
4769
|
function normalize$q(input, existing, path, luvio, store, timestamp) {
|
|
4268
4770
|
return input;
|
|
4269
4771
|
}
|
|
4270
|
-
const select
|
|
4772
|
+
const select$$ = function DataAssetRequestCollectionRepresentationSelect() {
|
|
4271
4773
|
return {
|
|
4272
4774
|
kind: 'Fragment',
|
|
4273
4775
|
version: VERSION$q,
|
|
@@ -4283,7 +4785,7 @@ function equals$q(existing, incoming) {
|
|
|
4283
4785
|
}
|
|
4284
4786
|
const ingest$q = function DataAssetRequestCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4285
4787
|
if (process.env.NODE_ENV !== 'production') {
|
|
4286
|
-
const validateError = validate$
|
|
4788
|
+
const validateError = validate$B(input);
|
|
4287
4789
|
if (validateError !== null) {
|
|
4288
4790
|
throw validateError;
|
|
4289
4791
|
}
|
|
@@ -4303,22 +4805,22 @@ function getTypeCacheKeys$q(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4303
4805
|
});
|
|
4304
4806
|
}
|
|
4305
4807
|
|
|
4306
|
-
function select$
|
|
4307
|
-
return select
|
|
4808
|
+
function select$_(luvio, params) {
|
|
4809
|
+
return select$$();
|
|
4308
4810
|
}
|
|
4309
4811
|
function keyBuilder$Y(luvio, params) {
|
|
4310
4812
|
return keyPrefix + '::DataAssetRequestCollectionRepresentation:(' + 'assetId:' + params.queryParams.assetId + ',' + 'assetType:' + params.queryParams.assetType + ',' + 'createdBy:' + params.queryParams.createdBy + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ',' + 'requestType:' + params.queryParams.requestType + ',' + 'searchQueryTerm:' + params.queryParams.searchQueryTerm + ',' + 'sortBy:' + params.queryParams.sortBy + ',' + 'status:' + params.queryParams.status + ',' + 'workspaceIdOrApiName:' + params.queryParams.workspaceIdOrApiName + ')';
|
|
4311
4813
|
}
|
|
4312
|
-
function getResponseCacheKeys$
|
|
4814
|
+
function getResponseCacheKeys$G(storeKeyMap, luvio, resourceParams, response) {
|
|
4313
4815
|
getTypeCacheKeys$q(storeKeyMap, luvio, response, () => keyBuilder$Y(luvio, resourceParams));
|
|
4314
4816
|
}
|
|
4315
|
-
function ingestSuccess$
|
|
4817
|
+
function ingestSuccess$A(luvio, resourceParams, response, snapshotRefresh) {
|
|
4316
4818
|
const { body } = response;
|
|
4317
4819
|
const key = keyBuilder$Y(luvio, resourceParams);
|
|
4318
4820
|
luvio.storeIngest(key, ingest$q, body);
|
|
4319
4821
|
const snapshot = luvio.storeLookup({
|
|
4320
4822
|
recordId: key,
|
|
4321
|
-
node: select$
|
|
4823
|
+
node: select$_(),
|
|
4322
4824
|
variables: {},
|
|
4323
4825
|
}, snapshotRefresh);
|
|
4324
4826
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4341,7 +4843,7 @@ function ingestError$j(luvio, params, error, snapshotRefresh) {
|
|
|
4341
4843
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4342
4844
|
return errorSnapshot;
|
|
4343
4845
|
}
|
|
4344
|
-
function createResourceRequest$
|
|
4846
|
+
function createResourceRequest$G(config) {
|
|
4345
4847
|
const headers = {};
|
|
4346
4848
|
return {
|
|
4347
4849
|
baseUri: '/services/data/v63.0',
|
|
@@ -4355,7 +4857,7 @@ function createResourceRequest$F(config) {
|
|
|
4355
4857
|
};
|
|
4356
4858
|
}
|
|
4357
4859
|
|
|
4358
|
-
const adapterName$
|
|
4860
|
+
const adapterName$G = 'getDataAssetRequests';
|
|
4359
4861
|
const getDataAssetRequests_ConfigPropertyMetadata = [
|
|
4360
4862
|
generateParamConfigMetadata('assetId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4361
4863
|
generateParamConfigMetadata('assetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -4369,56 +4871,56 @@ const getDataAssetRequests_ConfigPropertyMetadata = [
|
|
|
4369
4871
|
generateParamConfigMetadata('status', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4370
4872
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4371
4873
|
];
|
|
4372
|
-
const getDataAssetRequests_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4373
|
-
const createResourceParams$
|
|
4874
|
+
const getDataAssetRequests_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$G, getDataAssetRequests_ConfigPropertyMetadata);
|
|
4875
|
+
const createResourceParams$G = /*#__PURE__*/ createResourceParams$T(getDataAssetRequests_ConfigPropertyMetadata);
|
|
4374
4876
|
function keyBuilder$X(luvio, config) {
|
|
4375
|
-
const resourceParams = createResourceParams$
|
|
4877
|
+
const resourceParams = createResourceParams$G(config);
|
|
4376
4878
|
return keyBuilder$Y(luvio, resourceParams);
|
|
4377
4879
|
}
|
|
4378
|
-
function typeCheckConfig$
|
|
4880
|
+
function typeCheckConfig$G(untrustedConfig) {
|
|
4379
4881
|
const config = {};
|
|
4380
|
-
typeCheckConfig$
|
|
4882
|
+
typeCheckConfig$T(untrustedConfig, config, getDataAssetRequests_ConfigPropertyMetadata);
|
|
4381
4883
|
return config;
|
|
4382
4884
|
}
|
|
4383
|
-
function validateAdapterConfig$
|
|
4885
|
+
function validateAdapterConfig$G(untrustedConfig, configPropertyNames) {
|
|
4384
4886
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4385
4887
|
return null;
|
|
4386
4888
|
}
|
|
4387
4889
|
if (process.env.NODE_ENV !== 'production') {
|
|
4388
4890
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4389
4891
|
}
|
|
4390
|
-
const config = typeCheckConfig$
|
|
4892
|
+
const config = typeCheckConfig$G(untrustedConfig);
|
|
4391
4893
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4392
4894
|
return null;
|
|
4393
4895
|
}
|
|
4394
4896
|
return config;
|
|
4395
4897
|
}
|
|
4396
4898
|
function adapterFragment$j(luvio, config) {
|
|
4397
|
-
createResourceParams$
|
|
4398
|
-
return select$
|
|
4899
|
+
createResourceParams$G(config);
|
|
4900
|
+
return select$_();
|
|
4399
4901
|
}
|
|
4400
4902
|
function onFetchResponseSuccess$j(luvio, config, resourceParams, response) {
|
|
4401
|
-
const snapshot = ingestSuccess$
|
|
4903
|
+
const snapshot = ingestSuccess$A(luvio, resourceParams, response, {
|
|
4402
4904
|
config,
|
|
4403
|
-
resolve: () => buildNetworkSnapshot$
|
|
4905
|
+
resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions)
|
|
4404
4906
|
});
|
|
4405
4907
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4406
4908
|
}
|
|
4407
4909
|
function onFetchResponseError$j(luvio, config, resourceParams, response) {
|
|
4408
4910
|
const snapshot = ingestError$j(luvio, resourceParams, response, {
|
|
4409
4911
|
config,
|
|
4410
|
-
resolve: () => buildNetworkSnapshot$
|
|
4912
|
+
resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions)
|
|
4411
4913
|
});
|
|
4412
4914
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4413
4915
|
}
|
|
4414
|
-
function buildNetworkSnapshot$
|
|
4415
|
-
const resourceParams = createResourceParams$
|
|
4416
|
-
const request = createResourceRequest$
|
|
4916
|
+
function buildNetworkSnapshot$G(luvio, config, options) {
|
|
4917
|
+
const resourceParams = createResourceParams$G(config);
|
|
4918
|
+
const request = createResourceRequest$G(resourceParams);
|
|
4417
4919
|
return luvio.dispatchResourceRequest(request, options)
|
|
4418
4920
|
.then((response) => {
|
|
4419
4921
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$j(luvio, config, resourceParams, response), () => {
|
|
4420
4922
|
const cache = new StoreKeyMap();
|
|
4421
|
-
getResponseCacheKeys$
|
|
4923
|
+
getResponseCacheKeys$G(cache, luvio, resourceParams, response.body);
|
|
4422
4924
|
return cache;
|
|
4423
4925
|
});
|
|
4424
4926
|
}, (response) => {
|
|
@@ -4426,7 +4928,7 @@ function buildNetworkSnapshot$F(luvio, config, options) {
|
|
|
4426
4928
|
});
|
|
4427
4929
|
}
|
|
4428
4930
|
function buildNetworkSnapshotCachePolicy$j(context, coercedAdapterRequestContext) {
|
|
4429
|
-
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
4931
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$G, undefined, false);
|
|
4430
4932
|
}
|
|
4431
4933
|
function buildCachedSnapshotCachePolicy$j(context, storeLookup) {
|
|
4432
4934
|
const { luvio, config } = context;
|
|
@@ -4437,12 +4939,12 @@ function buildCachedSnapshotCachePolicy$j(context, storeLookup) {
|
|
|
4437
4939
|
};
|
|
4438
4940
|
const cacheSnapshot = storeLookup(selector, {
|
|
4439
4941
|
config,
|
|
4440
|
-
resolve: () => buildNetworkSnapshot$
|
|
4942
|
+
resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions)
|
|
4441
4943
|
});
|
|
4442
4944
|
return cacheSnapshot;
|
|
4443
4945
|
}
|
|
4444
4946
|
const getDataAssetRequestsAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAssetRequests(untrustedConfig, requestContext) {
|
|
4445
|
-
const config = validateAdapterConfig$
|
|
4947
|
+
const config = validateAdapterConfig$G(untrustedConfig, getDataAssetRequests_ConfigPropertyNames);
|
|
4446
4948
|
// Invalid or incomplete config
|
|
4447
4949
|
if (config === null) {
|
|
4448
4950
|
return null;
|
|
@@ -4451,19 +4953,19 @@ const getDataAssetRequestsAdapterFactory = (luvio) => function UnifiedAnalytics_
|
|
|
4451
4953
|
buildCachedSnapshotCachePolicy$j, buildNetworkSnapshotCachePolicy$j);
|
|
4452
4954
|
};
|
|
4453
4955
|
|
|
4454
|
-
function select$
|
|
4455
|
-
return select
|
|
4956
|
+
function select$Z(luvio, params) {
|
|
4957
|
+
return select$10();
|
|
4456
4958
|
}
|
|
4457
|
-
function getResponseCacheKeys$
|
|
4959
|
+
function getResponseCacheKeys$F(storeKeyMap, luvio, resourceParams, response) {
|
|
4458
4960
|
getTypeCacheKeys$r(storeKeyMap, luvio, response);
|
|
4459
4961
|
}
|
|
4460
|
-
function ingestSuccess$
|
|
4962
|
+
function ingestSuccess$z(luvio, resourceParams, response) {
|
|
4461
4963
|
const { body } = response;
|
|
4462
4964
|
const key = keyBuilderFromType$d(luvio, body);
|
|
4463
4965
|
luvio.storeIngest(key, ingest$r, body);
|
|
4464
4966
|
const snapshot = luvio.storeLookup({
|
|
4465
4967
|
recordId: key,
|
|
4466
|
-
node: select$
|
|
4968
|
+
node: select$Z(),
|
|
4467
4969
|
variables: {},
|
|
4468
4970
|
});
|
|
4469
4971
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4474,7 +4976,7 @@ function ingestSuccess$y(luvio, resourceParams, response) {
|
|
|
4474
4976
|
deepFreeze(snapshot.data);
|
|
4475
4977
|
return snapshot;
|
|
4476
4978
|
}
|
|
4477
|
-
function createResourceRequest$
|
|
4979
|
+
function createResourceRequest$F(config) {
|
|
4478
4980
|
const headers = {};
|
|
4479
4981
|
return {
|
|
4480
4982
|
baseUri: '/services/data/v63.0',
|
|
@@ -4488,7 +4990,7 @@ function createResourceRequest$E(config) {
|
|
|
4488
4990
|
};
|
|
4489
4991
|
}
|
|
4490
4992
|
|
|
4491
|
-
const adapterName$
|
|
4993
|
+
const adapterName$F = 'createDataAssetRequest';
|
|
4492
4994
|
const createDataAssetRequest_ConfigPropertyMetadata = [
|
|
4493
4995
|
generateParamConfigMetadata('assetId', false, 2 /* Body */, 0 /* String */),
|
|
4494
4996
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
@@ -4501,37 +5003,37 @@ const createDataAssetRequest_ConfigPropertyMetadata = [
|
|
|
4501
5003
|
generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
|
|
4502
5004
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 2 /* Body */, 0 /* String */),
|
|
4503
5005
|
];
|
|
4504
|
-
const createDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4505
|
-
const createResourceParams$
|
|
4506
|
-
function typeCheckConfig$
|
|
5006
|
+
const createDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$F, createDataAssetRequest_ConfigPropertyMetadata);
|
|
5007
|
+
const createResourceParams$F = /*#__PURE__*/ createResourceParams$T(createDataAssetRequest_ConfigPropertyMetadata);
|
|
5008
|
+
function typeCheckConfig$F(untrustedConfig) {
|
|
4507
5009
|
const config = {};
|
|
4508
|
-
typeCheckConfig$
|
|
5010
|
+
typeCheckConfig$T(untrustedConfig, config, createDataAssetRequest_ConfigPropertyMetadata);
|
|
4509
5011
|
return config;
|
|
4510
5012
|
}
|
|
4511
|
-
function validateAdapterConfig$
|
|
5013
|
+
function validateAdapterConfig$F(untrustedConfig, configPropertyNames) {
|
|
4512
5014
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4513
5015
|
return null;
|
|
4514
5016
|
}
|
|
4515
5017
|
if (process.env.NODE_ENV !== 'production') {
|
|
4516
5018
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4517
5019
|
}
|
|
4518
|
-
const config = typeCheckConfig$
|
|
5020
|
+
const config = typeCheckConfig$F(untrustedConfig);
|
|
4519
5021
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4520
5022
|
return null;
|
|
4521
5023
|
}
|
|
4522
5024
|
return config;
|
|
4523
5025
|
}
|
|
4524
|
-
function buildNetworkSnapshot$
|
|
4525
|
-
const resourceParams = createResourceParams$
|
|
4526
|
-
const request = createResourceRequest$
|
|
5026
|
+
function buildNetworkSnapshot$F(luvio, config, options) {
|
|
5027
|
+
const resourceParams = createResourceParams$F(config);
|
|
5028
|
+
const request = createResourceRequest$F(resourceParams);
|
|
4527
5029
|
return luvio.dispatchResourceRequest(request, options)
|
|
4528
5030
|
.then((response) => {
|
|
4529
5031
|
return luvio.handleSuccessResponse(() => {
|
|
4530
|
-
const snapshot = ingestSuccess$
|
|
5032
|
+
const snapshot = ingestSuccess$z(luvio, resourceParams, response);
|
|
4531
5033
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4532
5034
|
}, () => {
|
|
4533
5035
|
const cache = new StoreKeyMap();
|
|
4534
|
-
getResponseCacheKeys$
|
|
5036
|
+
getResponseCacheKeys$F(cache, luvio, resourceParams, response.body);
|
|
4535
5037
|
return cache;
|
|
4536
5038
|
});
|
|
4537
5039
|
}, (response) => {
|
|
@@ -4541,18 +5043,18 @@ function buildNetworkSnapshot$E(luvio, config, options) {
|
|
|
4541
5043
|
}
|
|
4542
5044
|
const createDataAssetRequestAdapterFactory = (luvio) => {
|
|
4543
5045
|
return function createDataAssetRequest(untrustedConfig) {
|
|
4544
|
-
const config = validateAdapterConfig$
|
|
5046
|
+
const config = validateAdapterConfig$F(untrustedConfig, createDataAssetRequest_ConfigPropertyNames);
|
|
4545
5047
|
// Invalid or incomplete config
|
|
4546
5048
|
if (config === null) {
|
|
4547
5049
|
throw new Error('Invalid config for "createDataAssetRequest"');
|
|
4548
5050
|
}
|
|
4549
|
-
return buildNetworkSnapshot$
|
|
5051
|
+
return buildNetworkSnapshot$F(luvio, config);
|
|
4550
5052
|
};
|
|
4551
5053
|
};
|
|
4552
5054
|
|
|
4553
5055
|
const TTL$f = 500;
|
|
4554
5056
|
const VERSION$p = "e424b55efdacaf049d687461eddd10cc";
|
|
4555
|
-
function validate$
|
|
5057
|
+
function validate$A(obj, path = 'DataAssetRequestCountRepresentation') {
|
|
4556
5058
|
const v_error = (() => {
|
|
4557
5059
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4558
5060
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4569,7 +5071,7 @@ const RepresentationType$r = 'DataAssetRequestCountRepresentation';
|
|
|
4569
5071
|
function normalize$p(input, existing, path, luvio, store, timestamp) {
|
|
4570
5072
|
return input;
|
|
4571
5073
|
}
|
|
4572
|
-
const select$
|
|
5074
|
+
const select$Y = function DataAssetRequestCountRepresentationSelect() {
|
|
4573
5075
|
return {
|
|
4574
5076
|
kind: 'Fragment',
|
|
4575
5077
|
version: VERSION$p,
|
|
@@ -4585,7 +5087,7 @@ function equals$p(existing, incoming) {
|
|
|
4585
5087
|
}
|
|
4586
5088
|
const ingest$p = function DataAssetRequestCountRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4587
5089
|
if (process.env.NODE_ENV !== 'production') {
|
|
4588
|
-
const validateError = validate$
|
|
5090
|
+
const validateError = validate$A(input);
|
|
4589
5091
|
if (validateError !== null) {
|
|
4590
5092
|
throw validateError;
|
|
4591
5093
|
}
|
|
@@ -4605,22 +5107,22 @@ function getTypeCacheKeys$p(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4605
5107
|
});
|
|
4606
5108
|
}
|
|
4607
5109
|
|
|
4608
|
-
function select$
|
|
4609
|
-
return select$
|
|
5110
|
+
function select$X(luvio, params) {
|
|
5111
|
+
return select$Y();
|
|
4610
5112
|
}
|
|
4611
5113
|
function keyBuilder$W(luvio, params) {
|
|
4612
5114
|
return keyPrefix + '::DataAssetRequestCountRepresentation:(' + 'assetId:' + params.queryParams.assetId + ',' + 'assetType:' + params.queryParams.assetType + ',' + 'createdBy:' + params.queryParams.createdBy + ',' + 'searchQueryTerm:' + params.queryParams.searchQueryTerm + ',' + 'status:' + params.queryParams.status + ',' + 'taskType:' + params.queryParams.taskType + ',' + 'workspaceIdOrApiName:' + params.queryParams.workspaceIdOrApiName + ')';
|
|
4613
5115
|
}
|
|
4614
|
-
function getResponseCacheKeys$
|
|
5116
|
+
function getResponseCacheKeys$E(storeKeyMap, luvio, resourceParams, response) {
|
|
4615
5117
|
getTypeCacheKeys$p(storeKeyMap, luvio, response, () => keyBuilder$W(luvio, resourceParams));
|
|
4616
5118
|
}
|
|
4617
|
-
function ingestSuccess$
|
|
5119
|
+
function ingestSuccess$y(luvio, resourceParams, response, snapshotRefresh) {
|
|
4618
5120
|
const { body } = response;
|
|
4619
5121
|
const key = keyBuilder$W(luvio, resourceParams);
|
|
4620
5122
|
luvio.storeIngest(key, ingest$p, body);
|
|
4621
5123
|
const snapshot = luvio.storeLookup({
|
|
4622
5124
|
recordId: key,
|
|
4623
|
-
node: select$
|
|
5125
|
+
node: select$X(),
|
|
4624
5126
|
variables: {},
|
|
4625
5127
|
}, snapshotRefresh);
|
|
4626
5128
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4643,7 +5145,7 @@ function ingestError$i(luvio, params, error, snapshotRefresh) {
|
|
|
4643
5145
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4644
5146
|
return errorSnapshot;
|
|
4645
5147
|
}
|
|
4646
|
-
function createResourceRequest$
|
|
5148
|
+
function createResourceRequest$E(config) {
|
|
4647
5149
|
const headers = {};
|
|
4648
5150
|
return {
|
|
4649
5151
|
baseUri: '/services/data/v63.0',
|
|
@@ -4657,7 +5159,7 @@ function createResourceRequest$D(config) {
|
|
|
4657
5159
|
};
|
|
4658
5160
|
}
|
|
4659
5161
|
|
|
4660
|
-
const adapterName$
|
|
5162
|
+
const adapterName$E = 'getDataAssetRequestsCount';
|
|
4661
5163
|
const getDataAssetRequestsCount_ConfigPropertyMetadata = [
|
|
4662
5164
|
generateParamConfigMetadata('assetId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4663
5165
|
generateParamConfigMetadata('assetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -4667,56 +5169,56 @@ const getDataAssetRequestsCount_ConfigPropertyMetadata = [
|
|
|
4667
5169
|
generateParamConfigMetadata('taskType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4668
5170
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4669
5171
|
];
|
|
4670
|
-
const getDataAssetRequestsCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4671
|
-
const createResourceParams$
|
|
5172
|
+
const getDataAssetRequestsCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$E, getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
5173
|
+
const createResourceParams$E = /*#__PURE__*/ createResourceParams$T(getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
4672
5174
|
function keyBuilder$V(luvio, config) {
|
|
4673
|
-
const resourceParams = createResourceParams$
|
|
5175
|
+
const resourceParams = createResourceParams$E(config);
|
|
4674
5176
|
return keyBuilder$W(luvio, resourceParams);
|
|
4675
5177
|
}
|
|
4676
|
-
function typeCheckConfig$
|
|
5178
|
+
function typeCheckConfig$E(untrustedConfig) {
|
|
4677
5179
|
const config = {};
|
|
4678
|
-
typeCheckConfig$
|
|
5180
|
+
typeCheckConfig$T(untrustedConfig, config, getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
4679
5181
|
return config;
|
|
4680
5182
|
}
|
|
4681
|
-
function validateAdapterConfig$
|
|
5183
|
+
function validateAdapterConfig$E(untrustedConfig, configPropertyNames) {
|
|
4682
5184
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4683
5185
|
return null;
|
|
4684
5186
|
}
|
|
4685
5187
|
if (process.env.NODE_ENV !== 'production') {
|
|
4686
5188
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4687
5189
|
}
|
|
4688
|
-
const config = typeCheckConfig$
|
|
5190
|
+
const config = typeCheckConfig$E(untrustedConfig);
|
|
4689
5191
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4690
5192
|
return null;
|
|
4691
5193
|
}
|
|
4692
5194
|
return config;
|
|
4693
5195
|
}
|
|
4694
5196
|
function adapterFragment$i(luvio, config) {
|
|
4695
|
-
createResourceParams$
|
|
4696
|
-
return select$
|
|
5197
|
+
createResourceParams$E(config);
|
|
5198
|
+
return select$X();
|
|
4697
5199
|
}
|
|
4698
5200
|
function onFetchResponseSuccess$i(luvio, config, resourceParams, response) {
|
|
4699
|
-
const snapshot = ingestSuccess$
|
|
5201
|
+
const snapshot = ingestSuccess$y(luvio, resourceParams, response, {
|
|
4700
5202
|
config,
|
|
4701
|
-
resolve: () => buildNetworkSnapshot$
|
|
5203
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
|
|
4702
5204
|
});
|
|
4703
5205
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4704
5206
|
}
|
|
4705
5207
|
function onFetchResponseError$i(luvio, config, resourceParams, response) {
|
|
4706
5208
|
const snapshot = ingestError$i(luvio, resourceParams, response, {
|
|
4707
5209
|
config,
|
|
4708
|
-
resolve: () => buildNetworkSnapshot$
|
|
5210
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
|
|
4709
5211
|
});
|
|
4710
5212
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4711
5213
|
}
|
|
4712
|
-
function buildNetworkSnapshot$
|
|
4713
|
-
const resourceParams = createResourceParams$
|
|
4714
|
-
const request = createResourceRequest$
|
|
5214
|
+
function buildNetworkSnapshot$E(luvio, config, options) {
|
|
5215
|
+
const resourceParams = createResourceParams$E(config);
|
|
5216
|
+
const request = createResourceRequest$E(resourceParams);
|
|
4715
5217
|
return luvio.dispatchResourceRequest(request, options)
|
|
4716
5218
|
.then((response) => {
|
|
4717
5219
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$i(luvio, config, resourceParams, response), () => {
|
|
4718
5220
|
const cache = new StoreKeyMap();
|
|
4719
|
-
getResponseCacheKeys$
|
|
5221
|
+
getResponseCacheKeys$E(cache, luvio, resourceParams, response.body);
|
|
4720
5222
|
return cache;
|
|
4721
5223
|
});
|
|
4722
5224
|
}, (response) => {
|
|
@@ -4724,7 +5226,7 @@ function buildNetworkSnapshot$D(luvio, config, options) {
|
|
|
4724
5226
|
});
|
|
4725
5227
|
}
|
|
4726
5228
|
function buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext) {
|
|
4727
|
-
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
5229
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$E, undefined, false);
|
|
4728
5230
|
}
|
|
4729
5231
|
function buildCachedSnapshotCachePolicy$i(context, storeLookup) {
|
|
4730
5232
|
const { luvio, config } = context;
|
|
@@ -4735,12 +5237,12 @@ function buildCachedSnapshotCachePolicy$i(context, storeLookup) {
|
|
|
4735
5237
|
};
|
|
4736
5238
|
const cacheSnapshot = storeLookup(selector, {
|
|
4737
5239
|
config,
|
|
4738
|
-
resolve: () => buildNetworkSnapshot$
|
|
5240
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
|
|
4739
5241
|
});
|
|
4740
5242
|
return cacheSnapshot;
|
|
4741
5243
|
}
|
|
4742
5244
|
const getDataAssetRequestsCountAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAssetRequestsCount(untrustedConfig, requestContext) {
|
|
4743
|
-
const config = validateAdapterConfig$
|
|
5245
|
+
const config = validateAdapterConfig$E(untrustedConfig, getDataAssetRequestsCount_ConfigPropertyNames);
|
|
4744
5246
|
// Invalid or incomplete config
|
|
4745
5247
|
if (config === null) {
|
|
4746
5248
|
return null;
|
|
@@ -4749,24 +5251,24 @@ const getDataAssetRequestsCountAdapterFactory = (luvio) => function UnifiedAnaly
|
|
|
4749
5251
|
buildCachedSnapshotCachePolicy$i, buildNetworkSnapshotCachePolicy$i);
|
|
4750
5252
|
};
|
|
4751
5253
|
|
|
4752
|
-
function select$
|
|
4753
|
-
return select
|
|
5254
|
+
function select$W(luvio, params) {
|
|
5255
|
+
return select$10();
|
|
4754
5256
|
}
|
|
4755
5257
|
function keyBuilder$U(luvio, params) {
|
|
4756
5258
|
return keyBuilder$Z(luvio, {
|
|
4757
5259
|
dataAssetRequestId: params.urlParams.requestIdOrApiName
|
|
4758
5260
|
});
|
|
4759
5261
|
}
|
|
4760
|
-
function getResponseCacheKeys$
|
|
5262
|
+
function getResponseCacheKeys$D(storeKeyMap, luvio, resourceParams, response) {
|
|
4761
5263
|
getTypeCacheKeys$r(storeKeyMap, luvio, response);
|
|
4762
5264
|
}
|
|
4763
|
-
function ingestSuccess$
|
|
5265
|
+
function ingestSuccess$x(luvio, resourceParams, response, snapshotRefresh) {
|
|
4764
5266
|
const { body } = response;
|
|
4765
5267
|
const key = keyBuilder$U(luvio, resourceParams);
|
|
4766
5268
|
luvio.storeIngest(key, ingest$r, body);
|
|
4767
5269
|
const snapshot = luvio.storeLookup({
|
|
4768
5270
|
recordId: key,
|
|
4769
|
-
node: select$
|
|
5271
|
+
node: select$W(),
|
|
4770
5272
|
variables: {},
|
|
4771
5273
|
}, snapshotRefresh);
|
|
4772
5274
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4789,7 +5291,7 @@ function ingestError$h(luvio, params, error, snapshotRefresh) {
|
|
|
4789
5291
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4790
5292
|
return errorSnapshot;
|
|
4791
5293
|
}
|
|
4792
|
-
function createResourceRequest$
|
|
5294
|
+
function createResourceRequest$D(config) {
|
|
4793
5295
|
const headers = {};
|
|
4794
5296
|
return {
|
|
4795
5297
|
baseUri: '/services/data/v63.0',
|
|
@@ -4803,60 +5305,60 @@ function createResourceRequest$C(config) {
|
|
|
4803
5305
|
};
|
|
4804
5306
|
}
|
|
4805
5307
|
|
|
4806
|
-
const adapterName$
|
|
5308
|
+
const adapterName$D = 'getDataAssetRequestByIdOrApiName';
|
|
4807
5309
|
const getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata = [
|
|
4808
5310
|
generateParamConfigMetadata('requestIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4809
5311
|
];
|
|
4810
|
-
const getDataAssetRequestByIdOrApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4811
|
-
const createResourceParams$
|
|
5312
|
+
const getDataAssetRequestByIdOrApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$D, getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
5313
|
+
const createResourceParams$D = /*#__PURE__*/ createResourceParams$T(getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
4812
5314
|
function keyBuilder$T(luvio, config) {
|
|
4813
|
-
const resourceParams = createResourceParams$
|
|
5315
|
+
const resourceParams = createResourceParams$D(config);
|
|
4814
5316
|
return keyBuilder$U(luvio, resourceParams);
|
|
4815
5317
|
}
|
|
4816
|
-
function typeCheckConfig$
|
|
5318
|
+
function typeCheckConfig$D(untrustedConfig) {
|
|
4817
5319
|
const config = {};
|
|
4818
|
-
typeCheckConfig$
|
|
5320
|
+
typeCheckConfig$T(untrustedConfig, config, getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
4819
5321
|
return config;
|
|
4820
5322
|
}
|
|
4821
|
-
function validateAdapterConfig$
|
|
5323
|
+
function validateAdapterConfig$D(untrustedConfig, configPropertyNames) {
|
|
4822
5324
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4823
5325
|
return null;
|
|
4824
5326
|
}
|
|
4825
5327
|
if (process.env.NODE_ENV !== 'production') {
|
|
4826
5328
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4827
5329
|
}
|
|
4828
|
-
const config = typeCheckConfig$
|
|
5330
|
+
const config = typeCheckConfig$D(untrustedConfig);
|
|
4829
5331
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4830
5332
|
return null;
|
|
4831
5333
|
}
|
|
4832
5334
|
return config;
|
|
4833
5335
|
}
|
|
4834
5336
|
function adapterFragment$h(luvio, config) {
|
|
4835
|
-
createResourceParams$
|
|
4836
|
-
return select$
|
|
5337
|
+
createResourceParams$D(config);
|
|
5338
|
+
return select$W();
|
|
4837
5339
|
}
|
|
4838
5340
|
function onFetchResponseSuccess$h(luvio, config, resourceParams, response) {
|
|
4839
|
-
const snapshot = ingestSuccess$
|
|
5341
|
+
const snapshot = ingestSuccess$x(luvio, resourceParams, response, {
|
|
4840
5342
|
config,
|
|
4841
|
-
resolve: () => buildNetworkSnapshot$
|
|
5343
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
|
|
4842
5344
|
});
|
|
4843
5345
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4844
5346
|
}
|
|
4845
5347
|
function onFetchResponseError$h(luvio, config, resourceParams, response) {
|
|
4846
5348
|
const snapshot = ingestError$h(luvio, resourceParams, response, {
|
|
4847
5349
|
config,
|
|
4848
|
-
resolve: () => buildNetworkSnapshot$
|
|
5350
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
|
|
4849
5351
|
});
|
|
4850
5352
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4851
5353
|
}
|
|
4852
|
-
function buildNetworkSnapshot$
|
|
4853
|
-
const resourceParams = createResourceParams$
|
|
4854
|
-
const request = createResourceRequest$
|
|
5354
|
+
function buildNetworkSnapshot$D(luvio, config, options) {
|
|
5355
|
+
const resourceParams = createResourceParams$D(config);
|
|
5356
|
+
const request = createResourceRequest$D(resourceParams);
|
|
4855
5357
|
return luvio.dispatchResourceRequest(request, options)
|
|
4856
5358
|
.then((response) => {
|
|
4857
5359
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$h(luvio, config, resourceParams, response), () => {
|
|
4858
5360
|
const cache = new StoreKeyMap();
|
|
4859
|
-
getResponseCacheKeys$
|
|
5361
|
+
getResponseCacheKeys$D(cache, luvio, resourceParams, response.body);
|
|
4860
5362
|
return cache;
|
|
4861
5363
|
});
|
|
4862
5364
|
}, (response) => {
|
|
@@ -4864,7 +5366,7 @@ function buildNetworkSnapshot$C(luvio, config, options) {
|
|
|
4864
5366
|
});
|
|
4865
5367
|
}
|
|
4866
5368
|
function buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext) {
|
|
4867
|
-
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
5369
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$D, undefined, false);
|
|
4868
5370
|
}
|
|
4869
5371
|
function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
|
|
4870
5372
|
const { luvio, config } = context;
|
|
@@ -4875,12 +5377,12 @@ function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
|
|
|
4875
5377
|
};
|
|
4876
5378
|
const cacheSnapshot = storeLookup(selector, {
|
|
4877
5379
|
config,
|
|
4878
|
-
resolve: () => buildNetworkSnapshot$
|
|
5380
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
|
|
4879
5381
|
});
|
|
4880
5382
|
return cacheSnapshot;
|
|
4881
5383
|
}
|
|
4882
5384
|
const getDataAssetRequestByIdOrApiNameAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAssetRequestByIdOrApiName(untrustedConfig, requestContext) {
|
|
4883
|
-
const config = validateAdapterConfig$
|
|
5385
|
+
const config = validateAdapterConfig$D(untrustedConfig, getDataAssetRequestByIdOrApiName_ConfigPropertyNames);
|
|
4884
5386
|
// Invalid or incomplete config
|
|
4885
5387
|
if (config === null) {
|
|
4886
5388
|
return null;
|
|
@@ -4889,19 +5391,19 @@ const getDataAssetRequestByIdOrApiNameAdapterFactory = (luvio) => function Unifi
|
|
|
4889
5391
|
buildCachedSnapshotCachePolicy$h, buildNetworkSnapshotCachePolicy$h);
|
|
4890
5392
|
};
|
|
4891
5393
|
|
|
4892
|
-
function select$
|
|
4893
|
-
return select
|
|
5394
|
+
function select$V(luvio, params) {
|
|
5395
|
+
return select$10();
|
|
4894
5396
|
}
|
|
4895
|
-
function getResponseCacheKeys$
|
|
5397
|
+
function getResponseCacheKeys$C(storeKeyMap, luvio, resourceParams, response) {
|
|
4896
5398
|
getTypeCacheKeys$r(storeKeyMap, luvio, response);
|
|
4897
5399
|
}
|
|
4898
|
-
function ingestSuccess$
|
|
5400
|
+
function ingestSuccess$w(luvio, resourceParams, response) {
|
|
4899
5401
|
const { body } = response;
|
|
4900
5402
|
const key = keyBuilderFromType$d(luvio, body);
|
|
4901
5403
|
luvio.storeIngest(key, ingest$r, body);
|
|
4902
5404
|
const snapshot = luvio.storeLookup({
|
|
4903
5405
|
recordId: key,
|
|
4904
|
-
node: select$
|
|
5406
|
+
node: select$V(),
|
|
4905
5407
|
variables: {},
|
|
4906
5408
|
});
|
|
4907
5409
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4912,7 +5414,7 @@ function ingestSuccess$v(luvio, resourceParams, response) {
|
|
|
4912
5414
|
deepFreeze(snapshot.data);
|
|
4913
5415
|
return snapshot;
|
|
4914
5416
|
}
|
|
4915
|
-
function createResourceRequest$
|
|
5417
|
+
function createResourceRequest$C(config) {
|
|
4916
5418
|
const headers = {};
|
|
4917
5419
|
return {
|
|
4918
5420
|
baseUri: '/services/data/v63.0',
|
|
@@ -4926,7 +5428,7 @@ function createResourceRequest$B(config) {
|
|
|
4926
5428
|
};
|
|
4927
5429
|
}
|
|
4928
5430
|
|
|
4929
|
-
const adapterName$
|
|
5431
|
+
const adapterName$C = 'updateDataAssetRequest';
|
|
4930
5432
|
const updateDataAssetRequest_ConfigPropertyMetadata = [
|
|
4931
5433
|
generateParamConfigMetadata('requestIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4932
5434
|
generateParamConfigMetadata('assetId', false, 2 /* Body */, 0 /* String */),
|
|
@@ -4940,37 +5442,37 @@ const updateDataAssetRequest_ConfigPropertyMetadata = [
|
|
|
4940
5442
|
generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
|
|
4941
5443
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 2 /* Body */, 0 /* String */),
|
|
4942
5444
|
];
|
|
4943
|
-
const updateDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4944
|
-
const createResourceParams$
|
|
4945
|
-
function typeCheckConfig$
|
|
5445
|
+
const updateDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$C, updateDataAssetRequest_ConfigPropertyMetadata);
|
|
5446
|
+
const createResourceParams$C = /*#__PURE__*/ createResourceParams$T(updateDataAssetRequest_ConfigPropertyMetadata);
|
|
5447
|
+
function typeCheckConfig$C(untrustedConfig) {
|
|
4946
5448
|
const config = {};
|
|
4947
|
-
typeCheckConfig$
|
|
5449
|
+
typeCheckConfig$T(untrustedConfig, config, updateDataAssetRequest_ConfigPropertyMetadata);
|
|
4948
5450
|
return config;
|
|
4949
5451
|
}
|
|
4950
|
-
function validateAdapterConfig$
|
|
5452
|
+
function validateAdapterConfig$C(untrustedConfig, configPropertyNames) {
|
|
4951
5453
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4952
5454
|
return null;
|
|
4953
5455
|
}
|
|
4954
5456
|
if (process.env.NODE_ENV !== 'production') {
|
|
4955
5457
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4956
5458
|
}
|
|
4957
|
-
const config = typeCheckConfig$
|
|
5459
|
+
const config = typeCheckConfig$C(untrustedConfig);
|
|
4958
5460
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4959
5461
|
return null;
|
|
4960
5462
|
}
|
|
4961
5463
|
return config;
|
|
4962
5464
|
}
|
|
4963
|
-
function buildNetworkSnapshot$
|
|
4964
|
-
const resourceParams = createResourceParams$
|
|
4965
|
-
const request = createResourceRequest$
|
|
5465
|
+
function buildNetworkSnapshot$C(luvio, config, options) {
|
|
5466
|
+
const resourceParams = createResourceParams$C(config);
|
|
5467
|
+
const request = createResourceRequest$C(resourceParams);
|
|
4966
5468
|
return luvio.dispatchResourceRequest(request, options)
|
|
4967
5469
|
.then((response) => {
|
|
4968
5470
|
return luvio.handleSuccessResponse(() => {
|
|
4969
|
-
const snapshot = ingestSuccess$
|
|
5471
|
+
const snapshot = ingestSuccess$w(luvio, resourceParams, response);
|
|
4970
5472
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4971
5473
|
}, () => {
|
|
4972
5474
|
const cache = new StoreKeyMap();
|
|
4973
|
-
getResponseCacheKeys$
|
|
5475
|
+
getResponseCacheKeys$C(cache, luvio, resourceParams, response.body);
|
|
4974
5476
|
return cache;
|
|
4975
5477
|
});
|
|
4976
5478
|
}, (response) => {
|
|
@@ -4980,16 +5482,16 @@ function buildNetworkSnapshot$B(luvio, config, options) {
|
|
|
4980
5482
|
}
|
|
4981
5483
|
const updateDataAssetRequestAdapterFactory = (luvio) => {
|
|
4982
5484
|
return function updateDataAssetRequest(untrustedConfig) {
|
|
4983
|
-
const config = validateAdapterConfig$
|
|
5485
|
+
const config = validateAdapterConfig$C(untrustedConfig, updateDataAssetRequest_ConfigPropertyNames);
|
|
4984
5486
|
// Invalid or incomplete config
|
|
4985
5487
|
if (config === null) {
|
|
4986
5488
|
throw new Error('Invalid config for "updateDataAssetRequest"');
|
|
4987
5489
|
}
|
|
4988
|
-
return buildNetworkSnapshot$
|
|
5490
|
+
return buildNetworkSnapshot$C(luvio, config);
|
|
4989
5491
|
};
|
|
4990
5492
|
};
|
|
4991
5493
|
|
|
4992
|
-
function validate$
|
|
5494
|
+
function validate$z(obj, path = 'DataAssetRepresentation') {
|
|
4993
5495
|
const v_error = (() => {
|
|
4994
5496
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4995
5497
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5006,7 +5508,7 @@ function validate$y(obj, path = 'DataAssetRepresentation') {
|
|
|
5006
5508
|
}
|
|
5007
5509
|
const obj_createdBy = obj.createdBy;
|
|
5008
5510
|
const path_createdBy = path + '.createdBy';
|
|
5009
|
-
const referencepath_createdByValidationError = validate$
|
|
5511
|
+
const referencepath_createdByValidationError = validate$D(obj_createdBy, path_createdBy);
|
|
5010
5512
|
if (referencepath_createdByValidationError !== null) {
|
|
5011
5513
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
5012
5514
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5040,7 +5542,7 @@ function validate$y(obj, path = 'DataAssetRepresentation') {
|
|
|
5040
5542
|
}
|
|
5041
5543
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
5042
5544
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
5043
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
5545
|
+
const referencepath_lastModifiedByValidationError = validate$D(obj_lastModifiedBy, path_lastModifiedBy);
|
|
5044
5546
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
5045
5547
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
5046
5548
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5067,14 +5569,14 @@ function validate$y(obj, path = 'DataAssetRepresentation') {
|
|
|
5067
5569
|
return v_error === undefined ? null : v_error;
|
|
5068
5570
|
}
|
|
5069
5571
|
|
|
5070
|
-
function validate$
|
|
5572
|
+
function validate$y(obj, path = 'DataAssetDependentRepresentation') {
|
|
5071
5573
|
const v_error = (() => {
|
|
5072
5574
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5073
5575
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5074
5576
|
}
|
|
5075
5577
|
const obj_dataAsset = obj.dataAsset;
|
|
5076
5578
|
const path_dataAsset = path + '.dataAsset';
|
|
5077
|
-
const referencepath_dataAssetValidationError = validate$
|
|
5579
|
+
const referencepath_dataAssetValidationError = validate$z(obj_dataAsset, path_dataAsset);
|
|
5078
5580
|
if (referencepath_dataAssetValidationError !== null) {
|
|
5079
5581
|
let message = 'Object doesn\'t match DataAssetRepresentation (at "' + path_dataAsset + '")\n';
|
|
5080
5582
|
message += referencepath_dataAssetValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5086,7 +5588,7 @@ function validate$x(obj, path = 'DataAssetDependentRepresentation') {
|
|
|
5086
5588
|
|
|
5087
5589
|
const TTL$e = 500;
|
|
5088
5590
|
const VERSION$o = "bc1bcd1c96c7c70c3cde837dafdafaba";
|
|
5089
|
-
function validate$
|
|
5591
|
+
function validate$x(obj, path = 'DataAssetDependentCollectionRepresentation') {
|
|
5090
5592
|
const v_error = (() => {
|
|
5091
5593
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5092
5594
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5099,7 +5601,7 @@ function validate$w(obj, path = 'DataAssetDependentCollectionRepresentation') {
|
|
|
5099
5601
|
for (let i = 0; i < obj_dependentDataAssets.length; i++) {
|
|
5100
5602
|
const obj_dependentDataAssets_item = obj_dependentDataAssets[i];
|
|
5101
5603
|
const path_dependentDataAssets_item = path_dependentDataAssets + '[' + i + ']';
|
|
5102
|
-
const referencepath_dependentDataAssets_itemValidationError = validate$
|
|
5604
|
+
const referencepath_dependentDataAssets_itemValidationError = validate$y(obj_dependentDataAssets_item, path_dependentDataAssets_item);
|
|
5103
5605
|
if (referencepath_dependentDataAssets_itemValidationError !== null) {
|
|
5104
5606
|
let message = 'Object doesn\'t match DataAssetDependentRepresentation (at "' + path_dependentDataAssets_item + '")\n';
|
|
5105
5607
|
message += referencepath_dependentDataAssets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5113,7 +5615,7 @@ const RepresentationType$q = 'DataAssetDependentCollectionRepresentation';
|
|
|
5113
5615
|
function normalize$o(input, existing, path, luvio, store, timestamp) {
|
|
5114
5616
|
return input;
|
|
5115
5617
|
}
|
|
5116
|
-
const select$
|
|
5618
|
+
const select$U = function DataAssetDependentCollectionRepresentationSelect() {
|
|
5117
5619
|
return {
|
|
5118
5620
|
kind: 'Fragment',
|
|
5119
5621
|
version: VERSION$o,
|
|
@@ -5129,7 +5631,7 @@ function equals$o(existing, incoming) {
|
|
|
5129
5631
|
}
|
|
5130
5632
|
const ingest$o = function DataAssetDependentCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5131
5633
|
if (process.env.NODE_ENV !== 'production') {
|
|
5132
|
-
const validateError = validate$
|
|
5634
|
+
const validateError = validate$x(input);
|
|
5133
5635
|
if (validateError !== null) {
|
|
5134
5636
|
throw validateError;
|
|
5135
5637
|
}
|
|
@@ -5149,22 +5651,22 @@ function getTypeCacheKeys$o(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5149
5651
|
});
|
|
5150
5652
|
}
|
|
5151
5653
|
|
|
5152
|
-
function select$
|
|
5153
|
-
return select$
|
|
5654
|
+
function select$T(luvio, params) {
|
|
5655
|
+
return select$U();
|
|
5154
5656
|
}
|
|
5155
5657
|
function keyBuilder$S(luvio, params) {
|
|
5156
5658
|
return keyPrefix + '::DataAssetDependentCollectionRepresentation:(' + 'assetId:' + params.urlParams.assetId + ')';
|
|
5157
5659
|
}
|
|
5158
|
-
function getResponseCacheKeys$
|
|
5660
|
+
function getResponseCacheKeys$B(storeKeyMap, luvio, resourceParams, response) {
|
|
5159
5661
|
getTypeCacheKeys$o(storeKeyMap, luvio, response, () => keyBuilder$S(luvio, resourceParams));
|
|
5160
5662
|
}
|
|
5161
|
-
function ingestSuccess$
|
|
5663
|
+
function ingestSuccess$v(luvio, resourceParams, response, snapshotRefresh) {
|
|
5162
5664
|
const { body } = response;
|
|
5163
5665
|
const key = keyBuilder$S(luvio, resourceParams);
|
|
5164
5666
|
luvio.storeIngest(key, ingest$o, body);
|
|
5165
5667
|
const snapshot = luvio.storeLookup({
|
|
5166
5668
|
recordId: key,
|
|
5167
|
-
node: select$
|
|
5669
|
+
node: select$T(),
|
|
5168
5670
|
variables: {},
|
|
5169
5671
|
}, snapshotRefresh);
|
|
5170
5672
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5187,7 +5689,7 @@ function ingestError$g(luvio, params, error, snapshotRefresh) {
|
|
|
5187
5689
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5188
5690
|
return errorSnapshot;
|
|
5189
5691
|
}
|
|
5190
|
-
function createResourceRequest$
|
|
5692
|
+
function createResourceRequest$B(config) {
|
|
5191
5693
|
const headers = {};
|
|
5192
5694
|
return {
|
|
5193
5695
|
baseUri: '/services/data/v63.0',
|
|
@@ -5201,60 +5703,60 @@ function createResourceRequest$A(config) {
|
|
|
5201
5703
|
};
|
|
5202
5704
|
}
|
|
5203
5705
|
|
|
5204
|
-
const adapterName$
|
|
5706
|
+
const adapterName$B = 'getDataAssetDependencies';
|
|
5205
5707
|
const getDataAssetDependencies_ConfigPropertyMetadata = [
|
|
5206
5708
|
generateParamConfigMetadata('assetId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5207
5709
|
];
|
|
5208
|
-
const getDataAssetDependencies_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5209
|
-
const createResourceParams$
|
|
5710
|
+
const getDataAssetDependencies_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$B, getDataAssetDependencies_ConfigPropertyMetadata);
|
|
5711
|
+
const createResourceParams$B = /*#__PURE__*/ createResourceParams$T(getDataAssetDependencies_ConfigPropertyMetadata);
|
|
5210
5712
|
function keyBuilder$R(luvio, config) {
|
|
5211
|
-
const resourceParams = createResourceParams$
|
|
5713
|
+
const resourceParams = createResourceParams$B(config);
|
|
5212
5714
|
return keyBuilder$S(luvio, resourceParams);
|
|
5213
5715
|
}
|
|
5214
|
-
function typeCheckConfig$
|
|
5716
|
+
function typeCheckConfig$B(untrustedConfig) {
|
|
5215
5717
|
const config = {};
|
|
5216
|
-
typeCheckConfig$
|
|
5718
|
+
typeCheckConfig$T(untrustedConfig, config, getDataAssetDependencies_ConfigPropertyMetadata);
|
|
5217
5719
|
return config;
|
|
5218
5720
|
}
|
|
5219
|
-
function validateAdapterConfig$
|
|
5721
|
+
function validateAdapterConfig$B(untrustedConfig, configPropertyNames) {
|
|
5220
5722
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5221
5723
|
return null;
|
|
5222
5724
|
}
|
|
5223
5725
|
if (process.env.NODE_ENV !== 'production') {
|
|
5224
5726
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5225
5727
|
}
|
|
5226
|
-
const config = typeCheckConfig$
|
|
5728
|
+
const config = typeCheckConfig$B(untrustedConfig);
|
|
5227
5729
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5228
5730
|
return null;
|
|
5229
5731
|
}
|
|
5230
5732
|
return config;
|
|
5231
5733
|
}
|
|
5232
5734
|
function adapterFragment$g(luvio, config) {
|
|
5233
|
-
createResourceParams$
|
|
5234
|
-
return select$
|
|
5735
|
+
createResourceParams$B(config);
|
|
5736
|
+
return select$T();
|
|
5235
5737
|
}
|
|
5236
5738
|
function onFetchResponseSuccess$g(luvio, config, resourceParams, response) {
|
|
5237
|
-
const snapshot = ingestSuccess$
|
|
5739
|
+
const snapshot = ingestSuccess$v(luvio, resourceParams, response, {
|
|
5238
5740
|
config,
|
|
5239
|
-
resolve: () => buildNetworkSnapshot$
|
|
5741
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
5240
5742
|
});
|
|
5241
5743
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5242
5744
|
}
|
|
5243
5745
|
function onFetchResponseError$g(luvio, config, resourceParams, response) {
|
|
5244
5746
|
const snapshot = ingestError$g(luvio, resourceParams, response, {
|
|
5245
5747
|
config,
|
|
5246
|
-
resolve: () => buildNetworkSnapshot$
|
|
5748
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
5247
5749
|
});
|
|
5248
5750
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5249
5751
|
}
|
|
5250
|
-
function buildNetworkSnapshot$
|
|
5251
|
-
const resourceParams = createResourceParams$
|
|
5252
|
-
const request = createResourceRequest$
|
|
5752
|
+
function buildNetworkSnapshot$B(luvio, config, options) {
|
|
5753
|
+
const resourceParams = createResourceParams$B(config);
|
|
5754
|
+
const request = createResourceRequest$B(resourceParams);
|
|
5253
5755
|
return luvio.dispatchResourceRequest(request, options)
|
|
5254
5756
|
.then((response) => {
|
|
5255
5757
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$g(luvio, config, resourceParams, response), () => {
|
|
5256
5758
|
const cache = new StoreKeyMap();
|
|
5257
|
-
getResponseCacheKeys$
|
|
5759
|
+
getResponseCacheKeys$B(cache, luvio, resourceParams, response.body);
|
|
5258
5760
|
return cache;
|
|
5259
5761
|
});
|
|
5260
5762
|
}, (response) => {
|
|
@@ -5262,7 +5764,7 @@ function buildNetworkSnapshot$A(luvio, config, options) {
|
|
|
5262
5764
|
});
|
|
5263
5765
|
}
|
|
5264
5766
|
function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
|
|
5265
|
-
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
5767
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$B, undefined, false);
|
|
5266
5768
|
}
|
|
5267
5769
|
function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
5268
5770
|
const { luvio, config } = context;
|
|
@@ -5273,12 +5775,12 @@ function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
|
5273
5775
|
};
|
|
5274
5776
|
const cacheSnapshot = storeLookup(selector, {
|
|
5275
5777
|
config,
|
|
5276
|
-
resolve: () => buildNetworkSnapshot$
|
|
5778
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
5277
5779
|
});
|
|
5278
5780
|
return cacheSnapshot;
|
|
5279
5781
|
}
|
|
5280
5782
|
const getDataAssetDependenciesAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAssetDependencies(untrustedConfig, requestContext) {
|
|
5281
|
-
const config = validateAdapterConfig$
|
|
5783
|
+
const config = validateAdapterConfig$B(untrustedConfig, getDataAssetDependencies_ConfigPropertyNames);
|
|
5282
5784
|
// Invalid or incomplete config
|
|
5283
5785
|
if (config === null) {
|
|
5284
5786
|
return null;
|
|
@@ -5287,8 +5789,60 @@ const getDataAssetDependenciesAdapterFactory = (luvio) => function UnifiedAnalyt
|
|
|
5287
5789
|
buildCachedSnapshotCachePolicy$g, buildNetworkSnapshotCachePolicy$g);
|
|
5288
5790
|
};
|
|
5289
5791
|
|
|
5792
|
+
function validate$w(obj, path = 'FollowedTimeRangeRepresentation') {
|
|
5793
|
+
const v_error = (() => {
|
|
5794
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5795
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5796
|
+
}
|
|
5797
|
+
const obj_fieldName = obj.fieldName;
|
|
5798
|
+
const path_fieldName = path + '.fieldName';
|
|
5799
|
+
if (typeof obj_fieldName !== 'string') {
|
|
5800
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldName + '" (at "' + path_fieldName + '")');
|
|
5801
|
+
}
|
|
5802
|
+
const obj_operator = obj.operator;
|
|
5803
|
+
const path_operator = path + '.operator';
|
|
5804
|
+
if (typeof obj_operator !== 'string') {
|
|
5805
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
5806
|
+
}
|
|
5807
|
+
const obj_values = obj.values;
|
|
5808
|
+
const path_values = path + '.values';
|
|
5809
|
+
if (!ArrayIsArray(obj_values)) {
|
|
5810
|
+
return new TypeError('Expected "array" but received "' + typeof obj_values + '" (at "' + path_values + '")');
|
|
5811
|
+
}
|
|
5812
|
+
for (let i = 0; i < obj_values.length; i++) {
|
|
5813
|
+
const obj_values_item = obj_values[i];
|
|
5814
|
+
const path_values_item = path_values + '[' + i + ']';
|
|
5815
|
+
let obj_values_item_union0 = null;
|
|
5816
|
+
const obj_values_item_union0_error = (() => {
|
|
5817
|
+
if (typeof obj_values_item !== 'string') {
|
|
5818
|
+
return new TypeError('Expected "string" but received "' + typeof obj_values_item + '" (at "' + path_values_item + '")');
|
|
5819
|
+
}
|
|
5820
|
+
})();
|
|
5821
|
+
if (obj_values_item_union0_error != null) {
|
|
5822
|
+
obj_values_item_union0 = obj_values_item_union0_error.message;
|
|
5823
|
+
}
|
|
5824
|
+
let obj_values_item_union1 = null;
|
|
5825
|
+
const obj_values_item_union1_error = (() => {
|
|
5826
|
+
if (typeof obj_values_item !== 'number') {
|
|
5827
|
+
return new TypeError('Expected "number" but received "' + typeof obj_values_item + '" (at "' + path_values_item + '")');
|
|
5828
|
+
}
|
|
5829
|
+
})();
|
|
5830
|
+
if (obj_values_item_union1_error != null) {
|
|
5831
|
+
obj_values_item_union1 = obj_values_item_union1_error.message;
|
|
5832
|
+
}
|
|
5833
|
+
if (obj_values_item_union0 && obj_values_item_union1) {
|
|
5834
|
+
let message = 'Object doesn\'t match union (at "' + path_values_item + '")';
|
|
5835
|
+
message += '\n' + obj_values_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5836
|
+
message += '\n' + obj_values_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5837
|
+
return new TypeError(message);
|
|
5838
|
+
}
|
|
5839
|
+
}
|
|
5840
|
+
})();
|
|
5841
|
+
return v_error === undefined ? null : v_error;
|
|
5842
|
+
}
|
|
5843
|
+
|
|
5290
5844
|
const TTL$d = 500;
|
|
5291
|
-
const VERSION$n = "
|
|
5845
|
+
const VERSION$n = "c3bc904365300b26d1f104c9bc055527";
|
|
5292
5846
|
function validate$v(obj, path = 'FollowerAssetRepresentation') {
|
|
5293
5847
|
const v_error = (() => {
|
|
5294
5848
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5296,7 +5850,7 @@ function validate$v(obj, path = 'FollowerAssetRepresentation') {
|
|
|
5296
5850
|
}
|
|
5297
5851
|
const obj_createdBy = obj.createdBy;
|
|
5298
5852
|
const path_createdBy = path + '.createdBy';
|
|
5299
|
-
const referencepath_createdByValidationError = validate$
|
|
5853
|
+
const referencepath_createdByValidationError = validate$D(obj_createdBy, path_createdBy);
|
|
5300
5854
|
if (referencepath_createdByValidationError !== null) {
|
|
5301
5855
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
5302
5856
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5317,6 +5871,37 @@ function validate$v(obj, path = 'FollowerAssetRepresentation') {
|
|
|
5317
5871
|
if (typeof obj_followedAssetType !== 'string') {
|
|
5318
5872
|
return new TypeError('Expected "string" but received "' + typeof obj_followedAssetType + '" (at "' + path_followedAssetType + '")');
|
|
5319
5873
|
}
|
|
5874
|
+
if (obj.followedTimeRange !== undefined) {
|
|
5875
|
+
const obj_followedTimeRange = obj.followedTimeRange;
|
|
5876
|
+
const path_followedTimeRange = path + '.followedTimeRange';
|
|
5877
|
+
let obj_followedTimeRange_union0 = null;
|
|
5878
|
+
const obj_followedTimeRange_union0_error = (() => {
|
|
5879
|
+
const referencepath_followedTimeRangeValidationError = validate$w(obj_followedTimeRange, path_followedTimeRange);
|
|
5880
|
+
if (referencepath_followedTimeRangeValidationError !== null) {
|
|
5881
|
+
let message = 'Object doesn\'t match FollowedTimeRangeRepresentation (at "' + path_followedTimeRange + '")\n';
|
|
5882
|
+
message += referencepath_followedTimeRangeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5883
|
+
return new TypeError(message);
|
|
5884
|
+
}
|
|
5885
|
+
})();
|
|
5886
|
+
if (obj_followedTimeRange_union0_error != null) {
|
|
5887
|
+
obj_followedTimeRange_union0 = obj_followedTimeRange_union0_error.message;
|
|
5888
|
+
}
|
|
5889
|
+
let obj_followedTimeRange_union1 = null;
|
|
5890
|
+
const obj_followedTimeRange_union1_error = (() => {
|
|
5891
|
+
if (obj_followedTimeRange !== null) {
|
|
5892
|
+
return new TypeError('Expected "null" but received "' + typeof obj_followedTimeRange + '" (at "' + path_followedTimeRange + '")');
|
|
5893
|
+
}
|
|
5894
|
+
})();
|
|
5895
|
+
if (obj_followedTimeRange_union1_error != null) {
|
|
5896
|
+
obj_followedTimeRange_union1 = obj_followedTimeRange_union1_error.message;
|
|
5897
|
+
}
|
|
5898
|
+
if (obj_followedTimeRange_union0 && obj_followedTimeRange_union1) {
|
|
5899
|
+
let message = 'Object doesn\'t match union (at "' + path_followedTimeRange + '")';
|
|
5900
|
+
message += '\n' + obj_followedTimeRange_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5901
|
+
message += '\n' + obj_followedTimeRange_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5902
|
+
return new TypeError(message);
|
|
5903
|
+
}
|
|
5904
|
+
}
|
|
5320
5905
|
const obj_followerId = obj.followerId;
|
|
5321
5906
|
const path_followerId = path + '.followerId';
|
|
5322
5907
|
if (typeof obj_followerId !== 'string') {
|
|
@@ -5343,7 +5928,7 @@ function keyBuilderFromType$c(luvio, object) {
|
|
|
5343
5928
|
function normalize$n(input, existing, path, luvio, store, timestamp) {
|
|
5344
5929
|
return input;
|
|
5345
5930
|
}
|
|
5346
|
-
const select$
|
|
5931
|
+
const select$S = function FollowerAssetRepresentationSelect() {
|
|
5347
5932
|
return {
|
|
5348
5933
|
kind: 'Fragment',
|
|
5349
5934
|
version: VERSION$n,
|
|
@@ -5379,8 +5964,107 @@ function getTypeCacheKeys$n(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5379
5964
|
});
|
|
5380
5965
|
}
|
|
5381
5966
|
|
|
5967
|
+
function select$R(luvio, params) {
|
|
5968
|
+
return select$S();
|
|
5969
|
+
}
|
|
5970
|
+
function getResponseCacheKeys$A(storeKeyMap, luvio, resourceParams, response) {
|
|
5971
|
+
getTypeCacheKeys$n(storeKeyMap, luvio, response);
|
|
5972
|
+
}
|
|
5973
|
+
function ingestSuccess$u(luvio, resourceParams, response) {
|
|
5974
|
+
const { body } = response;
|
|
5975
|
+
const key = keyBuilderFromType$c(luvio, body);
|
|
5976
|
+
luvio.storeIngest(key, ingest$n, body);
|
|
5977
|
+
const snapshot = luvio.storeLookup({
|
|
5978
|
+
recordId: key,
|
|
5979
|
+
node: select$R(),
|
|
5980
|
+
variables: {},
|
|
5981
|
+
});
|
|
5982
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5983
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
5984
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
5985
|
+
}
|
|
5986
|
+
}
|
|
5987
|
+
deepFreeze(snapshot.data);
|
|
5988
|
+
return snapshot;
|
|
5989
|
+
}
|
|
5990
|
+
function createResourceRequest$A(config) {
|
|
5991
|
+
const headers = {};
|
|
5992
|
+
return {
|
|
5993
|
+
baseUri: '/services/data/v63.0',
|
|
5994
|
+
basePath: '/tableau/follow/followers/' + config.urlParams.followerId + '/follows',
|
|
5995
|
+
method: 'post',
|
|
5996
|
+
body: config.body,
|
|
5997
|
+
urlParams: config.urlParams,
|
|
5998
|
+
queryParams: {},
|
|
5999
|
+
headers,
|
|
6000
|
+
priority: 'normal',
|
|
6001
|
+
};
|
|
6002
|
+
}
|
|
6003
|
+
|
|
6004
|
+
const adapterName$A = 'follow';
|
|
6005
|
+
const follow_ConfigPropertyMetadata = [
|
|
6006
|
+
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6007
|
+
generateParamConfigMetadata('assetId', true, 2 /* Body */, 0 /* String */),
|
|
6008
|
+
generateParamConfigMetadata('assetType', true, 2 /* Body */, 0 /* String */),
|
|
6009
|
+
generateParamConfigMetadata('followerType', true, 2 /* Body */, 0 /* String */),
|
|
6010
|
+
generateParamConfigMetadata('followedTimeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
6011
|
+
];
|
|
6012
|
+
const follow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$A, follow_ConfigPropertyMetadata);
|
|
6013
|
+
const createResourceParams$A = /*#__PURE__*/ createResourceParams$T(follow_ConfigPropertyMetadata);
|
|
6014
|
+
function typeCheckConfig$A(untrustedConfig) {
|
|
6015
|
+
const config = {};
|
|
6016
|
+
typeCheckConfig$T(untrustedConfig, config, follow_ConfigPropertyMetadata);
|
|
6017
|
+
const untrustedConfig_followedTimeRange = untrustedConfig.followedTimeRange;
|
|
6018
|
+
const referenceFollowedTimeRangeRepresentationValidationError = validate$w(untrustedConfig_followedTimeRange);
|
|
6019
|
+
if (referenceFollowedTimeRangeRepresentationValidationError === null) {
|
|
6020
|
+
config.followedTimeRange = untrustedConfig_followedTimeRange;
|
|
6021
|
+
}
|
|
6022
|
+
return config;
|
|
6023
|
+
}
|
|
6024
|
+
function validateAdapterConfig$A(untrustedConfig, configPropertyNames) {
|
|
6025
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
6026
|
+
return null;
|
|
6027
|
+
}
|
|
6028
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6029
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
6030
|
+
}
|
|
6031
|
+
const config = typeCheckConfig$A(untrustedConfig);
|
|
6032
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6033
|
+
return null;
|
|
6034
|
+
}
|
|
6035
|
+
return config;
|
|
6036
|
+
}
|
|
6037
|
+
function buildNetworkSnapshot$A(luvio, config, options) {
|
|
6038
|
+
const resourceParams = createResourceParams$A(config);
|
|
6039
|
+
const request = createResourceRequest$A(resourceParams);
|
|
6040
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
6041
|
+
.then((response) => {
|
|
6042
|
+
return luvio.handleSuccessResponse(() => {
|
|
6043
|
+
const snapshot = ingestSuccess$u(luvio, resourceParams, response);
|
|
6044
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6045
|
+
}, () => {
|
|
6046
|
+
const cache = new StoreKeyMap();
|
|
6047
|
+
getResponseCacheKeys$A(cache, luvio, resourceParams, response.body);
|
|
6048
|
+
return cache;
|
|
6049
|
+
});
|
|
6050
|
+
}, (response) => {
|
|
6051
|
+
deepFreeze(response);
|
|
6052
|
+
throw response;
|
|
6053
|
+
});
|
|
6054
|
+
}
|
|
6055
|
+
const followAdapterFactory = (luvio) => {
|
|
6056
|
+
return function follow(untrustedConfig) {
|
|
6057
|
+
const config = validateAdapterConfig$A(untrustedConfig, follow_ConfigPropertyNames);
|
|
6058
|
+
// Invalid or incomplete config
|
|
6059
|
+
if (config === null) {
|
|
6060
|
+
throw new Error('Invalid config for "follow"');
|
|
6061
|
+
}
|
|
6062
|
+
return buildNetworkSnapshot$A(luvio, config);
|
|
6063
|
+
};
|
|
6064
|
+
};
|
|
6065
|
+
|
|
5382
6066
|
function select$Q(luvio, params) {
|
|
5383
|
-
return select$
|
|
6067
|
+
return select$S();
|
|
5384
6068
|
}
|
|
5385
6069
|
function getResponseCacheKeys$z(storeKeyMap, luvio, resourceParams, response) {
|
|
5386
6070
|
getTypeCacheKeys$n(storeKeyMap, luvio, response);
|
|
@@ -5407,7 +6091,7 @@ function createResourceRequest$z(config) {
|
|
|
5407
6091
|
return {
|
|
5408
6092
|
baseUri: '/services/data/v63.0',
|
|
5409
6093
|
basePath: '/tableau/follow/followers/' + config.urlParams.followerId + '/follows',
|
|
5410
|
-
method: '
|
|
6094
|
+
method: 'patch',
|
|
5411
6095
|
body: config.body,
|
|
5412
6096
|
urlParams: config.urlParams,
|
|
5413
6097
|
queryParams: {},
|
|
@@ -5416,18 +6100,24 @@ function createResourceRequest$z(config) {
|
|
|
5416
6100
|
};
|
|
5417
6101
|
}
|
|
5418
6102
|
|
|
5419
|
-
const adapterName$z = '
|
|
5420
|
-
const
|
|
6103
|
+
const adapterName$z = 'updateFollowedAsset';
|
|
6104
|
+
const updateFollowedAsset_ConfigPropertyMetadata = [
|
|
5421
6105
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5422
6106
|
generateParamConfigMetadata('assetId', true, 2 /* Body */, 0 /* String */),
|
|
5423
|
-
generateParamConfigMetadata('assetType',
|
|
5424
|
-
generateParamConfigMetadata('followerType',
|
|
6107
|
+
generateParamConfigMetadata('assetType', false, 2 /* Body */, 0 /* String */),
|
|
6108
|
+
generateParamConfigMetadata('followerType', false, 2 /* Body */, 0 /* String */),
|
|
6109
|
+
generateParamConfigMetadata('followedTimeRange', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5425
6110
|
];
|
|
5426
|
-
const
|
|
5427
|
-
const createResourceParams$z = /*#__PURE__*/ createResourceParams$
|
|
6111
|
+
const updateFollowedAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$z, updateFollowedAsset_ConfigPropertyMetadata);
|
|
6112
|
+
const createResourceParams$z = /*#__PURE__*/ createResourceParams$T(updateFollowedAsset_ConfigPropertyMetadata);
|
|
5428
6113
|
function typeCheckConfig$z(untrustedConfig) {
|
|
5429
6114
|
const config = {};
|
|
5430
|
-
typeCheckConfig$
|
|
6115
|
+
typeCheckConfig$T(untrustedConfig, config, updateFollowedAsset_ConfigPropertyMetadata);
|
|
6116
|
+
const untrustedConfig_followedTimeRange = untrustedConfig.followedTimeRange;
|
|
6117
|
+
const referenceFollowedTimeRangeRepresentationValidationError = validate$w(untrustedConfig_followedTimeRange);
|
|
6118
|
+
if (referenceFollowedTimeRangeRepresentationValidationError === null) {
|
|
6119
|
+
config.followedTimeRange = untrustedConfig_followedTimeRange;
|
|
6120
|
+
}
|
|
5431
6121
|
return config;
|
|
5432
6122
|
}
|
|
5433
6123
|
function validateAdapterConfig$z(untrustedConfig, configPropertyNames) {
|
|
@@ -5461,12 +6151,12 @@ function buildNetworkSnapshot$z(luvio, config, options) {
|
|
|
5461
6151
|
throw response;
|
|
5462
6152
|
});
|
|
5463
6153
|
}
|
|
5464
|
-
const
|
|
5465
|
-
return function
|
|
5466
|
-
const config = validateAdapterConfig$z(untrustedConfig,
|
|
6154
|
+
const updateFollowedAssetAdapterFactory = (luvio) => {
|
|
6155
|
+
return function updateFollowedAsset(untrustedConfig) {
|
|
6156
|
+
const config = validateAdapterConfig$z(untrustedConfig, updateFollowedAsset_ConfigPropertyNames);
|
|
5467
6157
|
// Invalid or incomplete config
|
|
5468
6158
|
if (config === null) {
|
|
5469
|
-
throw new Error('Invalid config for "
|
|
6159
|
+
throw new Error('Invalid config for "updateFollowedAsset"');
|
|
5470
6160
|
}
|
|
5471
6161
|
return buildNetworkSnapshot$z(luvio, config);
|
|
5472
6162
|
};
|
|
@@ -5499,6 +6189,37 @@ function validate$u(obj, path = 'FollowedAssetRepresentation') {
|
|
|
5499
6189
|
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
5500
6190
|
}
|
|
5501
6191
|
}
|
|
6192
|
+
if (obj.followedTimeRange !== undefined) {
|
|
6193
|
+
const obj_followedTimeRange = obj.followedTimeRange;
|
|
6194
|
+
const path_followedTimeRange = path + '.followedTimeRange';
|
|
6195
|
+
let obj_followedTimeRange_union0 = null;
|
|
6196
|
+
const obj_followedTimeRange_union0_error = (() => {
|
|
6197
|
+
const referencepath_followedTimeRangeValidationError = validate$w(obj_followedTimeRange, path_followedTimeRange);
|
|
6198
|
+
if (referencepath_followedTimeRangeValidationError !== null) {
|
|
6199
|
+
let message = 'Object doesn\'t match FollowedTimeRangeRepresentation (at "' + path_followedTimeRange + '")\n';
|
|
6200
|
+
message += referencepath_followedTimeRangeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
6201
|
+
return new TypeError(message);
|
|
6202
|
+
}
|
|
6203
|
+
})();
|
|
6204
|
+
if (obj_followedTimeRange_union0_error != null) {
|
|
6205
|
+
obj_followedTimeRange_union0 = obj_followedTimeRange_union0_error.message;
|
|
6206
|
+
}
|
|
6207
|
+
let obj_followedTimeRange_union1 = null;
|
|
6208
|
+
const obj_followedTimeRange_union1_error = (() => {
|
|
6209
|
+
if (obj_followedTimeRange !== null) {
|
|
6210
|
+
return new TypeError('Expected "null" but received "' + typeof obj_followedTimeRange + '" (at "' + path_followedTimeRange + '")');
|
|
6211
|
+
}
|
|
6212
|
+
})();
|
|
6213
|
+
if (obj_followedTimeRange_union1_error != null) {
|
|
6214
|
+
obj_followedTimeRange_union1 = obj_followedTimeRange_union1_error.message;
|
|
6215
|
+
}
|
|
6216
|
+
if (obj_followedTimeRange_union0 && obj_followedTimeRange_union1) {
|
|
6217
|
+
let message = 'Object doesn\'t match union (at "' + path_followedTimeRange + '")';
|
|
6218
|
+
message += '\n' + obj_followedTimeRange_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6219
|
+
message += '\n' + obj_followedTimeRange_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6220
|
+
return new TypeError(message);
|
|
6221
|
+
}
|
|
6222
|
+
}
|
|
5502
6223
|
const obj_id = obj.id;
|
|
5503
6224
|
const path_id = path + '.id';
|
|
5504
6225
|
if (typeof obj_id !== 'string') {
|
|
@@ -5573,10 +6294,10 @@ const unfollow_ConfigPropertyMetadata = [
|
|
|
5573
6294
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5574
6295
|
];
|
|
5575
6296
|
const unfollow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$y, unfollow_ConfigPropertyMetadata);
|
|
5576
|
-
const createResourceParams$y = /*#__PURE__*/ createResourceParams$
|
|
6297
|
+
const createResourceParams$y = /*#__PURE__*/ createResourceParams$T(unfollow_ConfigPropertyMetadata);
|
|
5577
6298
|
function typeCheckConfig$y(untrustedConfig) {
|
|
5578
6299
|
const config = {};
|
|
5579
|
-
typeCheckConfig$
|
|
6300
|
+
typeCheckConfig$T(untrustedConfig, config, unfollow_ConfigPropertyMetadata);
|
|
5580
6301
|
return config;
|
|
5581
6302
|
}
|
|
5582
6303
|
function validateAdapterConfig$y(untrustedConfig, configPropertyNames) {
|
|
@@ -5636,7 +6357,7 @@ function validate$t(obj, path = 'FollowerCollectionRepresentation') {
|
|
|
5636
6357
|
for (let i = 0; i < obj_followers.length; i++) {
|
|
5637
6358
|
const obj_followers_item = obj_followers[i];
|
|
5638
6359
|
const path_followers_item = path_followers + '[' + i + ']';
|
|
5639
|
-
const referencepath_followers_itemValidationError = validate$
|
|
6360
|
+
const referencepath_followers_itemValidationError = validate$D(obj_followers_item, path_followers_item);
|
|
5640
6361
|
if (referencepath_followers_itemValidationError !== null) {
|
|
5641
6362
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_followers_item + '")\n';
|
|
5642
6363
|
message += referencepath_followers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5747,14 +6468,14 @@ const getFollowers_ConfigPropertyMetadata = [
|
|
|
5747
6468
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5748
6469
|
];
|
|
5749
6470
|
const getFollowers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$x, getFollowers_ConfigPropertyMetadata);
|
|
5750
|
-
const createResourceParams$x = /*#__PURE__*/ createResourceParams$
|
|
6471
|
+
const createResourceParams$x = /*#__PURE__*/ createResourceParams$T(getFollowers_ConfigPropertyMetadata);
|
|
5751
6472
|
function keyBuilder$M(luvio, config) {
|
|
5752
6473
|
const resourceParams = createResourceParams$x(config);
|
|
5753
6474
|
return keyBuilder$N(luvio, resourceParams);
|
|
5754
6475
|
}
|
|
5755
6476
|
function typeCheckConfig$x(untrustedConfig) {
|
|
5756
6477
|
const config = {};
|
|
5757
|
-
typeCheckConfig$
|
|
6478
|
+
typeCheckConfig$T(untrustedConfig, config, getFollowers_ConfigPropertyMetadata);
|
|
5758
6479
|
return config;
|
|
5759
6480
|
}
|
|
5760
6481
|
function validateAdapterConfig$x(untrustedConfig, configPropertyNames) {
|
|
@@ -5953,14 +6674,14 @@ const getFollowedAssets_ConfigPropertyMetadata = [
|
|
|
5953
6674
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5954
6675
|
];
|
|
5955
6676
|
const getFollowedAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$w, getFollowedAssets_ConfigPropertyMetadata);
|
|
5956
|
-
const createResourceParams$w = /*#__PURE__*/ createResourceParams$
|
|
6677
|
+
const createResourceParams$w = /*#__PURE__*/ createResourceParams$T(getFollowedAssets_ConfigPropertyMetadata);
|
|
5957
6678
|
function keyBuilder$K(luvio, config) {
|
|
5958
6679
|
const resourceParams = createResourceParams$w(config);
|
|
5959
6680
|
return keyBuilder$L(luvio, resourceParams);
|
|
5960
6681
|
}
|
|
5961
6682
|
function typeCheckConfig$w(untrustedConfig) {
|
|
5962
6683
|
const config = {};
|
|
5963
|
-
typeCheckConfig$
|
|
6684
|
+
typeCheckConfig$T(untrustedConfig, config, getFollowedAssets_ConfigPropertyMetadata);
|
|
5964
6685
|
return config;
|
|
5965
6686
|
}
|
|
5966
6687
|
function validateAdapterConfig$w(untrustedConfig, configPropertyNames) {
|
|
@@ -6147,14 +6868,14 @@ const getUniqueFollowerCount_ConfigPropertyMetadata = [
|
|
|
6147
6868
|
generateParamConfigMetadata('followedAssetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6148
6869
|
];
|
|
6149
6870
|
const getUniqueFollowerCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$v, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
6150
|
-
const createResourceParams$v = /*#__PURE__*/ createResourceParams$
|
|
6871
|
+
const createResourceParams$v = /*#__PURE__*/ createResourceParams$T(getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
6151
6872
|
function keyBuilder$I(luvio, config) {
|
|
6152
6873
|
const resourceParams = createResourceParams$v(config);
|
|
6153
6874
|
return keyBuilder$J(luvio, resourceParams);
|
|
6154
6875
|
}
|
|
6155
6876
|
function typeCheckConfig$v(untrustedConfig) {
|
|
6156
6877
|
const config = {};
|
|
6157
|
-
typeCheckConfig$
|
|
6878
|
+
typeCheckConfig$T(untrustedConfig, config, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
6158
6879
|
return config;
|
|
6159
6880
|
}
|
|
6160
6881
|
function validateAdapterConfig$v(untrustedConfig, configPropertyNames) {
|
|
@@ -6344,7 +7065,7 @@ const createLoglines_ConfigPropertyMetadata = [
|
|
|
6344
7065
|
generateParamConfigMetadata('loglines', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
6345
7066
|
];
|
|
6346
7067
|
const createLoglines_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$u, createLoglines_ConfigPropertyMetadata);
|
|
6347
|
-
const createResourceParams$u = /*#__PURE__*/ createResourceParams$
|
|
7068
|
+
const createResourceParams$u = /*#__PURE__*/ createResourceParams$T(createLoglines_ConfigPropertyMetadata);
|
|
6348
7069
|
function typeCheckConfig$u(untrustedConfig) {
|
|
6349
7070
|
const config = {};
|
|
6350
7071
|
const untrustedConfig_loglines = untrustedConfig.loglines;
|
|
@@ -6557,7 +7278,7 @@ function createResourceRequest$t(config) {
|
|
|
6557
7278
|
const adapterName$t = 'getOrg';
|
|
6558
7279
|
const getOrg_ConfigPropertyMetadata = [];
|
|
6559
7280
|
const getOrg_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, getOrg_ConfigPropertyMetadata);
|
|
6560
|
-
const createResourceParams$t = /*#__PURE__*/ createResourceParams$
|
|
7281
|
+
const createResourceParams$t = /*#__PURE__*/ createResourceParams$T(getOrg_ConfigPropertyMetadata);
|
|
6561
7282
|
function keyBuilder$F(luvio, config) {
|
|
6562
7283
|
createResourceParams$t(config);
|
|
6563
7284
|
return keyBuilder$G();
|
|
@@ -6780,10 +7501,10 @@ const deleteAllShares_ConfigPropertyMetadata = [
|
|
|
6780
7501
|
generateParamConfigMetadata('recordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6781
7502
|
];
|
|
6782
7503
|
const deleteAllShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$s, deleteAllShares_ConfigPropertyMetadata);
|
|
6783
|
-
const createResourceParams$s = /*#__PURE__*/ createResourceParams$
|
|
7504
|
+
const createResourceParams$s = /*#__PURE__*/ createResourceParams$T(deleteAllShares_ConfigPropertyMetadata);
|
|
6784
7505
|
function typeCheckConfig$s(untrustedConfig) {
|
|
6785
7506
|
const config = {};
|
|
6786
|
-
typeCheckConfig$
|
|
7507
|
+
typeCheckConfig$T(untrustedConfig, config, deleteAllShares_ConfigPropertyMetadata);
|
|
6787
7508
|
return config;
|
|
6788
7509
|
}
|
|
6789
7510
|
function validateAdapterConfig$s(untrustedConfig, configPropertyNames) {
|
|
@@ -6890,14 +7611,14 @@ const getShares_ConfigPropertyMetadata = [
|
|
|
6890
7611
|
generateParamConfigMetadata('userOrGroupId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6891
7612
|
];
|
|
6892
7613
|
const getShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$r, getShares_ConfigPropertyMetadata);
|
|
6893
|
-
const createResourceParams$r = /*#__PURE__*/ createResourceParams$
|
|
7614
|
+
const createResourceParams$r = /*#__PURE__*/ createResourceParams$T(getShares_ConfigPropertyMetadata);
|
|
6894
7615
|
function keyBuilder$A(luvio, config) {
|
|
6895
7616
|
const resourceParams = createResourceParams$r(config);
|
|
6896
7617
|
return keyBuilder$B(luvio, resourceParams);
|
|
6897
7618
|
}
|
|
6898
7619
|
function typeCheckConfig$r(untrustedConfig) {
|
|
6899
7620
|
const config = {};
|
|
6900
|
-
typeCheckConfig$
|
|
7621
|
+
typeCheckConfig$T(untrustedConfig, config, getShares_ConfigPropertyMetadata);
|
|
6901
7622
|
return config;
|
|
6902
7623
|
}
|
|
6903
7624
|
function validateAdapterConfig$r(untrustedConfig, configPropertyNames) {
|
|
@@ -7012,7 +7733,7 @@ function validate$k(obj, path = 'SetupRecordShareRepresentation') {
|
|
|
7012
7733
|
}
|
|
7013
7734
|
const obj_createdBy = obj.createdBy;
|
|
7014
7735
|
const path_createdBy = path + '.createdBy';
|
|
7015
|
-
const referencepath_createdByValidationError = validate$
|
|
7736
|
+
const referencepath_createdByValidationError = validate$D(obj_createdBy, path_createdBy);
|
|
7016
7737
|
if (referencepath_createdByValidationError !== null) {
|
|
7017
7738
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
7018
7739
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7025,7 +7746,7 @@ function validate$k(obj, path = 'SetupRecordShareRepresentation') {
|
|
|
7025
7746
|
}
|
|
7026
7747
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
7027
7748
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
7028
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
7749
|
+
const referencepath_lastModifiedByValidationError = validate$D(obj_lastModifiedBy, path_lastModifiedBy);
|
|
7029
7750
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
7030
7751
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
7031
7752
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7187,10 +7908,10 @@ const updateRecordShares_ConfigPropertyMetadata = [
|
|
|
7187
7908
|
generateParamConfigMetadata('updateSetupRecordAccessItems', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
7188
7909
|
];
|
|
7189
7910
|
const updateRecordShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$q, updateRecordShares_ConfigPropertyMetadata);
|
|
7190
|
-
const createResourceParams$q = /*#__PURE__*/ createResourceParams$
|
|
7911
|
+
const createResourceParams$q = /*#__PURE__*/ createResourceParams$T(updateRecordShares_ConfigPropertyMetadata);
|
|
7191
7912
|
function typeCheckConfig$q(untrustedConfig) {
|
|
7192
7913
|
const config = {};
|
|
7193
|
-
typeCheckConfig$
|
|
7914
|
+
typeCheckConfig$T(untrustedConfig, config, updateRecordShares_ConfigPropertyMetadata);
|
|
7194
7915
|
const untrustedConfig_updateSetupRecordAccessItems = untrustedConfig.updateSetupRecordAccessItems;
|
|
7195
7916
|
if (ArrayIsArray$1(untrustedConfig_updateSetupRecordAccessItems)) {
|
|
7196
7917
|
const untrustedConfig_updateSetupRecordAccessItems_array = [];
|
|
@@ -7287,10 +8008,10 @@ const createRecordShares_ConfigPropertyMetadata = [
|
|
|
7287
8008
|
generateParamConfigMetadata('accessRequestItems', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
7288
8009
|
];
|
|
7289
8010
|
const createRecordShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$p, createRecordShares_ConfigPropertyMetadata);
|
|
7290
|
-
const createResourceParams$p = /*#__PURE__*/ createResourceParams$
|
|
8011
|
+
const createResourceParams$p = /*#__PURE__*/ createResourceParams$T(createRecordShares_ConfigPropertyMetadata);
|
|
7291
8012
|
function typeCheckConfig$p(untrustedConfig) {
|
|
7292
8013
|
const config = {};
|
|
7293
|
-
typeCheckConfig$
|
|
8014
|
+
typeCheckConfig$T(untrustedConfig, config, createRecordShares_ConfigPropertyMetadata);
|
|
7294
8015
|
const untrustedConfig_accessRequestItems = untrustedConfig.accessRequestItems;
|
|
7295
8016
|
if (ArrayIsArray$1(untrustedConfig_accessRequestItems)) {
|
|
7296
8017
|
const untrustedConfig_accessRequestItems_array = [];
|
|
@@ -7382,10 +8103,10 @@ const deleteRecordShare_ConfigPropertyMetadata = [
|
|
|
7382
8103
|
generateParamConfigMetadata('userOrGroupId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7383
8104
|
];
|
|
7384
8105
|
const deleteRecordShare_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, deleteRecordShare_ConfigPropertyMetadata);
|
|
7385
|
-
const createResourceParams$o = /*#__PURE__*/ createResourceParams$
|
|
8106
|
+
const createResourceParams$o = /*#__PURE__*/ createResourceParams$T(deleteRecordShare_ConfigPropertyMetadata);
|
|
7386
8107
|
function typeCheckConfig$o(untrustedConfig) {
|
|
7387
8108
|
const config = {};
|
|
7388
|
-
typeCheckConfig$
|
|
8109
|
+
typeCheckConfig$T(untrustedConfig, config, deleteRecordShare_ConfigPropertyMetadata);
|
|
7389
8110
|
return config;
|
|
7390
8111
|
}
|
|
7391
8112
|
function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
|
|
@@ -7710,14 +8431,14 @@ const getAssetSlackChannels_ConfigPropertyMetadata = [
|
|
|
7710
8431
|
generateParamConfigMetadata('assetId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
7711
8432
|
];
|
|
7712
8433
|
const getAssetSlackChannels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
7713
|
-
const createResourceParams$n = /*#__PURE__*/ createResourceParams$
|
|
8434
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$T(getAssetSlackChannels_ConfigPropertyMetadata);
|
|
7714
8435
|
function keyBuilder$v(luvio, config) {
|
|
7715
8436
|
const resourceParams = createResourceParams$n(config);
|
|
7716
8437
|
return keyBuilder$w(luvio, resourceParams);
|
|
7717
8438
|
}
|
|
7718
8439
|
function typeCheckConfig$n(untrustedConfig) {
|
|
7719
8440
|
const config = {};
|
|
7720
|
-
typeCheckConfig$
|
|
8441
|
+
typeCheckConfig$T(untrustedConfig, config, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
7721
8442
|
return config;
|
|
7722
8443
|
}
|
|
7723
8444
|
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
@@ -7835,10 +8556,10 @@ const createAssetSlackChannel_ConfigPropertyMetadata = [
|
|
|
7835
8556
|
generateParamConfigMetadata('teamId', true, 2 /* Body */, 0 /* String */),
|
|
7836
8557
|
];
|
|
7837
8558
|
const createAssetSlackChannel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
7838
|
-
const createResourceParams$m = /*#__PURE__*/ createResourceParams$
|
|
8559
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$T(createAssetSlackChannel_ConfigPropertyMetadata);
|
|
7839
8560
|
function typeCheckConfig$m(untrustedConfig) {
|
|
7840
8561
|
const config = {};
|
|
7841
|
-
typeCheckConfig$
|
|
8562
|
+
typeCheckConfig$T(untrustedConfig, config, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
7842
8563
|
return config;
|
|
7843
8564
|
}
|
|
7844
8565
|
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
@@ -7898,7 +8619,7 @@ function validate$g(obj, path = 'AnalyticsUsersQueryResultsRepresentation') {
|
|
|
7898
8619
|
for (let i = 0; i < obj_items.length; i++) {
|
|
7899
8620
|
const obj_items_item = obj_items[i];
|
|
7900
8621
|
const path_items_item = path_items + '[' + i + ']';
|
|
7901
|
-
const referencepath_items_itemValidationError = validate$
|
|
8622
|
+
const referencepath_items_itemValidationError = validate$D(obj_items_item, path_items_item);
|
|
7902
8623
|
if (referencepath_items_itemValidationError !== null) {
|
|
7903
8624
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_items_item + '")\n';
|
|
7904
8625
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8018,10 +8739,10 @@ const queryUsers_ConfigPropertyMetadata = [
|
|
|
8018
8739
|
generateParamConfigMetadata('offset', true, 2 /* Body */, 3 /* Integer */),
|
|
8019
8740
|
];
|
|
8020
8741
|
const queryUsers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, queryUsers_ConfigPropertyMetadata);
|
|
8021
|
-
const createResourceParams$l = /*#__PURE__*/ createResourceParams$
|
|
8742
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$T(queryUsers_ConfigPropertyMetadata);
|
|
8022
8743
|
function typeCheckConfig$l(untrustedConfig) {
|
|
8023
8744
|
const config = {};
|
|
8024
|
-
typeCheckConfig$
|
|
8745
|
+
typeCheckConfig$T(untrustedConfig, config, queryUsers_ConfigPropertyMetadata);
|
|
8025
8746
|
return config;
|
|
8026
8747
|
}
|
|
8027
8748
|
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
@@ -8074,7 +8795,7 @@ function validate$f(obj, path = 'VisualizationRepresentation') {
|
|
|
8074
8795
|
}
|
|
8075
8796
|
const obj_createdBy = obj.createdBy;
|
|
8076
8797
|
const path_createdBy = path + '.createdBy';
|
|
8077
|
-
const referencepath_createdByValidationError = validate$
|
|
8798
|
+
const referencepath_createdByValidationError = validate$D(obj_createdBy, path_createdBy);
|
|
8078
8799
|
if (referencepath_createdByValidationError !== null) {
|
|
8079
8800
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
8080
8801
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8149,7 +8870,7 @@ function validate$f(obj, path = 'VisualizationRepresentation') {
|
|
|
8149
8870
|
if (obj.lastModifiedBy !== undefined) {
|
|
8150
8871
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
8151
8872
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
8152
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
8873
|
+
const referencepath_lastModifiedByValidationError = validate$D(obj_lastModifiedBy, path_lastModifiedBy);
|
|
8153
8874
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
8154
8875
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
8155
8876
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8411,14 +9132,14 @@ const getVisualizations_ConfigPropertyMetadata = [
|
|
|
8411
9132
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
8412
9133
|
];
|
|
8413
9134
|
const getVisualizations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getVisualizations_ConfigPropertyMetadata);
|
|
8414
|
-
const createResourceParams$k = /*#__PURE__*/ createResourceParams$
|
|
9135
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$T(getVisualizations_ConfigPropertyMetadata);
|
|
8415
9136
|
function keyBuilder$r(luvio, config) {
|
|
8416
9137
|
const resourceParams = createResourceParams$k(config);
|
|
8417
9138
|
return keyBuilder$s(luvio, resourceParams);
|
|
8418
9139
|
}
|
|
8419
9140
|
function typeCheckConfig$k(untrustedConfig) {
|
|
8420
9141
|
const config = {};
|
|
8421
|
-
typeCheckConfig$
|
|
9142
|
+
typeCheckConfig$T(untrustedConfig, config, getVisualizations_ConfigPropertyMetadata);
|
|
8422
9143
|
return config;
|
|
8423
9144
|
}
|
|
8424
9145
|
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
@@ -8543,10 +9264,10 @@ const createVisualization_ConfigPropertyMetadata = [
|
|
|
8543
9264
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
8544
9265
|
];
|
|
8545
9266
|
const createVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, createVisualization_ConfigPropertyMetadata);
|
|
8546
|
-
const createResourceParams$j = /*#__PURE__*/ createResourceParams$
|
|
9267
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$T(createVisualization_ConfigPropertyMetadata);
|
|
8547
9268
|
function typeCheckConfig$j(untrustedConfig) {
|
|
8548
9269
|
const config = {};
|
|
8549
|
-
typeCheckConfig$
|
|
9270
|
+
typeCheckConfig$T(untrustedConfig, config, createVisualization_ConfigPropertyMetadata);
|
|
8550
9271
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
8551
9272
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
8552
9273
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -8711,10 +9432,10 @@ const deleteVisualization_ConfigPropertyMetadata = [
|
|
|
8711
9432
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8712
9433
|
];
|
|
8713
9434
|
const deleteVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, deleteVisualization_ConfigPropertyMetadata);
|
|
8714
|
-
const createResourceParams$i = /*#__PURE__*/ createResourceParams$
|
|
9435
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$T(deleteVisualization_ConfigPropertyMetadata);
|
|
8715
9436
|
function typeCheckConfig$i(untrustedConfig) {
|
|
8716
9437
|
const config = {};
|
|
8717
|
-
typeCheckConfig$
|
|
9438
|
+
typeCheckConfig$T(untrustedConfig, config, deleteVisualization_ConfigPropertyMetadata);
|
|
8718
9439
|
return config;
|
|
8719
9440
|
}
|
|
8720
9441
|
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
@@ -8812,14 +9533,14 @@ const getVisualization_ConfigPropertyMetadata = [
|
|
|
8812
9533
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8813
9534
|
];
|
|
8814
9535
|
const getVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getVisualization_ConfigPropertyMetadata);
|
|
8815
|
-
const createResourceParams$h = /*#__PURE__*/ createResourceParams$
|
|
9536
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$T(getVisualization_ConfigPropertyMetadata);
|
|
8816
9537
|
function keyBuilder$o(luvio, config) {
|
|
8817
9538
|
const resourceParams = createResourceParams$h(config);
|
|
8818
9539
|
return keyBuilder$p(luvio, resourceParams);
|
|
8819
9540
|
}
|
|
8820
9541
|
function typeCheckConfig$h(untrustedConfig) {
|
|
8821
9542
|
const config = {};
|
|
8822
|
-
typeCheckConfig$
|
|
9543
|
+
typeCheckConfig$T(untrustedConfig, config, getVisualization_ConfigPropertyMetadata);
|
|
8823
9544
|
return config;
|
|
8824
9545
|
}
|
|
8825
9546
|
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
@@ -8945,10 +9666,10 @@ const updateVisualization_ConfigPropertyMetadata = [
|
|
|
8945
9666
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
8946
9667
|
];
|
|
8947
9668
|
const updateVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, updateVisualization_ConfigPropertyMetadata);
|
|
8948
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
9669
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$T(updateVisualization_ConfigPropertyMetadata);
|
|
8949
9670
|
function typeCheckConfig$g(untrustedConfig) {
|
|
8950
9671
|
const config = {};
|
|
8951
|
-
typeCheckConfig$
|
|
9672
|
+
typeCheckConfig$T(untrustedConfig, config, updateVisualization_ConfigPropertyMetadata);
|
|
8952
9673
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
8953
9674
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
8954
9675
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -9212,14 +9933,14 @@ const getVisualizationBundle_ConfigPropertyMetadata = [
|
|
|
9212
9933
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9213
9934
|
];
|
|
9214
9935
|
const getVisualizationBundle_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getVisualizationBundle_ConfigPropertyMetadata);
|
|
9215
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
9936
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$T(getVisualizationBundle_ConfigPropertyMetadata);
|
|
9216
9937
|
function keyBuilder$l(luvio, config) {
|
|
9217
9938
|
const resourceParams = createResourceParams$f(config);
|
|
9218
9939
|
return keyBuilder$m(luvio, resourceParams);
|
|
9219
9940
|
}
|
|
9220
9941
|
function typeCheckConfig$f(untrustedConfig) {
|
|
9221
9942
|
const config = {};
|
|
9222
|
-
typeCheckConfig$
|
|
9943
|
+
typeCheckConfig$T(untrustedConfig, config, getVisualizationBundle_ConfigPropertyMetadata);
|
|
9223
9944
|
return config;
|
|
9224
9945
|
}
|
|
9225
9946
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -9306,7 +10027,7 @@ function validate$c(obj, path = 'WorkspaceRepresentation') {
|
|
|
9306
10027
|
}
|
|
9307
10028
|
const obj_createdBy = obj.createdBy;
|
|
9308
10029
|
const path_createdBy = path + '.createdBy';
|
|
9309
|
-
const referencepath_createdByValidationError = validate$
|
|
10030
|
+
const referencepath_createdByValidationError = validate$D(obj_createdBy, path_createdBy);
|
|
9310
10031
|
if (referencepath_createdByValidationError !== null) {
|
|
9311
10032
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
9312
10033
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9557,14 +10278,14 @@ const getWorkspaces_ConfigPropertyMetadata = [
|
|
|
9557
10278
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
9558
10279
|
];
|
|
9559
10280
|
const getWorkspaces_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getWorkspaces_ConfigPropertyMetadata);
|
|
9560
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
10281
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$T(getWorkspaces_ConfigPropertyMetadata);
|
|
9561
10282
|
function keyBuilder$i(luvio, config) {
|
|
9562
10283
|
const resourceParams = createResourceParams$e(config);
|
|
9563
10284
|
return keyBuilder$j(luvio, resourceParams);
|
|
9564
10285
|
}
|
|
9565
10286
|
function typeCheckConfig$e(untrustedConfig) {
|
|
9566
10287
|
const config = {};
|
|
9567
|
-
typeCheckConfig$
|
|
10288
|
+
typeCheckConfig$T(untrustedConfig, config, getWorkspaces_ConfigPropertyMetadata);
|
|
9568
10289
|
return config;
|
|
9569
10290
|
}
|
|
9570
10291
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -9683,10 +10404,10 @@ const createWorkspace_ConfigPropertyMetadata = [
|
|
|
9683
10404
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
9684
10405
|
];
|
|
9685
10406
|
const createWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, createWorkspace_ConfigPropertyMetadata);
|
|
9686
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
10407
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$T(createWorkspace_ConfigPropertyMetadata);
|
|
9687
10408
|
function typeCheckConfig$d(untrustedConfig) {
|
|
9688
10409
|
const config = {};
|
|
9689
|
-
typeCheckConfig$
|
|
10410
|
+
typeCheckConfig$T(untrustedConfig, config, createWorkspace_ConfigPropertyMetadata);
|
|
9690
10411
|
return config;
|
|
9691
10412
|
}
|
|
9692
10413
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -9767,10 +10488,10 @@ const deleteWorkspace_ConfigPropertyMetadata = [
|
|
|
9767
10488
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9768
10489
|
];
|
|
9769
10490
|
const deleteWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, deleteWorkspace_ConfigPropertyMetadata);
|
|
9770
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
10491
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$T(deleteWorkspace_ConfigPropertyMetadata);
|
|
9771
10492
|
function typeCheckConfig$c(untrustedConfig) {
|
|
9772
10493
|
const config = {};
|
|
9773
|
-
typeCheckConfig$
|
|
10494
|
+
typeCheckConfig$T(untrustedConfig, config, deleteWorkspace_ConfigPropertyMetadata);
|
|
9774
10495
|
return config;
|
|
9775
10496
|
}
|
|
9776
10497
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -9868,14 +10589,14 @@ const getWorkspaceByIdOrName_ConfigPropertyMetadata = [
|
|
|
9868
10589
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9869
10590
|
];
|
|
9870
10591
|
const getWorkspaceByIdOrName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
9871
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
10592
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$T(getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
9872
10593
|
function keyBuilder$f(luvio, config) {
|
|
9873
10594
|
const resourceParams = createResourceParams$b(config);
|
|
9874
10595
|
return keyBuilder$g(luvio, resourceParams);
|
|
9875
10596
|
}
|
|
9876
10597
|
function typeCheckConfig$b(untrustedConfig) {
|
|
9877
10598
|
const config = {};
|
|
9878
|
-
typeCheckConfig$
|
|
10599
|
+
typeCheckConfig$T(untrustedConfig, config, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
9879
10600
|
return config;
|
|
9880
10601
|
}
|
|
9881
10602
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -9995,10 +10716,10 @@ const updateWorkspace_ConfigPropertyMetadata = [
|
|
|
9995
10716
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
9996
10717
|
];
|
|
9997
10718
|
const updateWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, updateWorkspace_ConfigPropertyMetadata);
|
|
9998
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
10719
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$T(updateWorkspace_ConfigPropertyMetadata);
|
|
9999
10720
|
function typeCheckConfig$a(untrustedConfig) {
|
|
10000
10721
|
const config = {};
|
|
10001
|
-
typeCheckConfig$
|
|
10722
|
+
typeCheckConfig$T(untrustedConfig, config, updateWorkspace_ConfigPropertyMetadata);
|
|
10002
10723
|
return config;
|
|
10003
10724
|
}
|
|
10004
10725
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -10066,7 +10787,7 @@ function validate$a(obj, path = 'WorkspaceAssetRepresentation') {
|
|
|
10066
10787
|
}
|
|
10067
10788
|
const obj_createdBy = obj.createdBy;
|
|
10068
10789
|
const path_createdBy = path + '.createdBy';
|
|
10069
|
-
const referencepath_createdByValidationError = validate$
|
|
10790
|
+
const referencepath_createdByValidationError = validate$D(obj_createdBy, path_createdBy);
|
|
10070
10791
|
if (referencepath_createdByValidationError !== null) {
|
|
10071
10792
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
10072
10793
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10179,10 +10900,10 @@ const createWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
10179
10900
|
generateParamConfigMetadata('assetUsageType', true, 2 /* Body */, 0 /* String */),
|
|
10180
10901
|
];
|
|
10181
10902
|
const createWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
10182
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
10903
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$T(createWorkspaceAsset_ConfigPropertyMetadata);
|
|
10183
10904
|
function typeCheckConfig$9(untrustedConfig) {
|
|
10184
10905
|
const config = {};
|
|
10185
|
-
typeCheckConfig$
|
|
10906
|
+
typeCheckConfig$T(untrustedConfig, config, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
10186
10907
|
return config;
|
|
10187
10908
|
}
|
|
10188
10909
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -10264,10 +10985,10 @@ const deleteWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
10264
10985
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10265
10986
|
];
|
|
10266
10987
|
const deleteWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
10267
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
10988
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$T(deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
10268
10989
|
function typeCheckConfig$8(untrustedConfig) {
|
|
10269
10990
|
const config = {};
|
|
10270
|
-
typeCheckConfig$
|
|
10991
|
+
typeCheckConfig$T(untrustedConfig, config, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
10271
10992
|
return config;
|
|
10272
10993
|
}
|
|
10273
10994
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -10651,14 +11372,14 @@ const getFlows_ConfigPropertyMetadata = [
|
|
|
10651
11372
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
10652
11373
|
];
|
|
10653
11374
|
const getFlows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getFlows_ConfigPropertyMetadata);
|
|
10654
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
11375
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$T(getFlows_ConfigPropertyMetadata);
|
|
10655
11376
|
function keyBuilder$b(luvio, config) {
|
|
10656
11377
|
const resourceParams = createResourceParams$7(config);
|
|
10657
11378
|
return keyBuilder$c(luvio, resourceParams);
|
|
10658
11379
|
}
|
|
10659
11380
|
function typeCheckConfig$7(untrustedConfig) {
|
|
10660
11381
|
const config = {};
|
|
10661
|
-
typeCheckConfig$
|
|
11382
|
+
typeCheckConfig$T(untrustedConfig, config, getFlows_ConfigPropertyMetadata);
|
|
10662
11383
|
return config;
|
|
10663
11384
|
}
|
|
10664
11385
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -10783,14 +11504,14 @@ const getFlowByName_ConfigPropertyMetadata = [
|
|
|
10783
11504
|
generateParamConfigMetadata('flowApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10784
11505
|
];
|
|
10785
11506
|
const getFlowByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getFlowByName_ConfigPropertyMetadata);
|
|
10786
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
11507
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$T(getFlowByName_ConfigPropertyMetadata);
|
|
10787
11508
|
function keyBuilder$9(luvio, config) {
|
|
10788
11509
|
const resourceParams = createResourceParams$6(config);
|
|
10789
11510
|
return keyBuilder$a(luvio, resourceParams);
|
|
10790
11511
|
}
|
|
10791
11512
|
function typeCheckConfig$6(untrustedConfig) {
|
|
10792
11513
|
const config = {};
|
|
10793
|
-
typeCheckConfig$
|
|
11514
|
+
typeCheckConfig$T(untrustedConfig, config, getFlowByName_ConfigPropertyMetadata);
|
|
10794
11515
|
return config;
|
|
10795
11516
|
}
|
|
10796
11517
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -10997,14 +11718,14 @@ const getSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
10997
11718
|
generateParamConfigMetadata('digestConfigOwner', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10998
11719
|
];
|
|
10999
11720
|
const getSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
11000
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
11721
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$T(getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
11001
11722
|
function keyBuilder$6(luvio, config) {
|
|
11002
11723
|
const resourceParams = createResourceParams$5(config);
|
|
11003
11724
|
return keyBuilder$7(luvio, resourceParams);
|
|
11004
11725
|
}
|
|
11005
11726
|
function typeCheckConfig$5(untrustedConfig) {
|
|
11006
11727
|
const config = {};
|
|
11007
|
-
typeCheckConfig$
|
|
11728
|
+
typeCheckConfig$T(untrustedConfig, config, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
11008
11729
|
return config;
|
|
11009
11730
|
}
|
|
11010
11731
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -11122,10 +11843,10 @@ const updateSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
11122
11843
|
generateParamConfigMetadata('scheduleType', true, 2 /* Body */, 0 /* String */),
|
|
11123
11844
|
];
|
|
11124
11845
|
const updateSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
11125
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
11846
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$T(updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
11126
11847
|
function typeCheckConfig$4(untrustedConfig) {
|
|
11127
11848
|
const config = {};
|
|
11128
|
-
typeCheckConfig$
|
|
11849
|
+
typeCheckConfig$T(untrustedConfig, config, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
11129
11850
|
return config;
|
|
11130
11851
|
}
|
|
11131
11852
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -11357,10 +12078,10 @@ const getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata = [
|
|
|
11357
12078
|
generateParamConfigMetadata('sortDirection', false, 2 /* Body */, 0 /* String */),
|
|
11358
12079
|
];
|
|
11359
12080
|
const getUnifiedAnalyticsLibraryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
11360
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
12081
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$T(getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
11361
12082
|
function typeCheckConfig$3(untrustedConfig) {
|
|
11362
12083
|
const config = {};
|
|
11363
|
-
typeCheckConfig$
|
|
12084
|
+
typeCheckConfig$T(untrustedConfig, config, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
11364
12085
|
const untrustedConfig_assetTypes = untrustedConfig.assetTypes;
|
|
11365
12086
|
if (ArrayIsArray$1(untrustedConfig_assetTypes)) {
|
|
11366
12087
|
const untrustedConfig_assetTypes_array = [];
|
|
@@ -11592,10 +12313,10 @@ const generateSFDriveCredentials_ConfigPropertyMetadata = [
|
|
|
11592
12313
|
generateParamConfigMetadata('path', true, 2 /* Body */, 0 /* String */),
|
|
11593
12314
|
];
|
|
11594
12315
|
const generateSFDriveCredentials_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
11595
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
12316
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$T(generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
11596
12317
|
function typeCheckConfig$2(untrustedConfig) {
|
|
11597
12318
|
const config = {};
|
|
11598
|
-
typeCheckConfig$
|
|
12319
|
+
typeCheckConfig$T(untrustedConfig, config, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
11599
12320
|
return config;
|
|
11600
12321
|
}
|
|
11601
12322
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -11766,14 +12487,14 @@ const initiateMarketplaceListingInstallation_ConfigPropertyMetadata = [
|
|
|
11766
12487
|
generateParamConfigMetadata('listingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11767
12488
|
];
|
|
11768
12489
|
const initiateMarketplaceListingInstallation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
11769
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
12490
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$T(initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
11770
12491
|
function keyBuilder$2(luvio, config) {
|
|
11771
12492
|
const resourceParams = createResourceParams$1(config);
|
|
11772
12493
|
return keyBuilder$3(luvio, resourceParams);
|
|
11773
12494
|
}
|
|
11774
12495
|
function typeCheckConfig$1(untrustedConfig) {
|
|
11775
12496
|
const config = {};
|
|
11776
|
-
typeCheckConfig$
|
|
12497
|
+
typeCheckConfig$T(untrustedConfig, config, initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
11777
12498
|
return config;
|
|
11778
12499
|
}
|
|
11779
12500
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -12000,14 +12721,14 @@ const getMarketplaceListingInstallationProgress_ConfigPropertyMetadata = [
|
|
|
12000
12721
|
generateParamConfigMetadata('installationId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12001
12722
|
];
|
|
12002
12723
|
const getMarketplaceListingInstallationProgress_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
12003
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
12724
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$T(getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
12004
12725
|
function keyBuilder(luvio, config) {
|
|
12005
12726
|
const resourceParams = createResourceParams(config);
|
|
12006
12727
|
return keyBuilder$1(luvio, resourceParams);
|
|
12007
12728
|
}
|
|
12008
12729
|
function typeCheckConfig(untrustedConfig) {
|
|
12009
12730
|
const config = {};
|
|
12010
|
-
typeCheckConfig$
|
|
12731
|
+
typeCheckConfig$T(untrustedConfig, config, getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
12011
12732
|
return config;
|
|
12012
12733
|
}
|
|
12013
12734
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -12081,4 +12802,4 @@ const getMarketplaceListingInstallationProgressAdapterFactory = (luvio) => funct
|
|
|
12081
12802
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
12082
12803
|
};
|
|
12083
12804
|
|
|
12084
|
-
export { createAnnotationAdapterFactory, createAssetSlackChannelAdapterFactory, createDashboardAdapterFactory, createDataAssetRequestAdapterFactory, createLoglinesAdapterFactory, createRecordSharesAdapterFactory, createVisualizationAdapterFactory, createWorkspaceAdapterFactory, createWorkspaceAssetAdapterFactory, deleteAllSharesAdapterFactory, deleteDashboardAdapterFactory, deleteRecordShareAdapterFactory, deleteVisualizationAdapterFactory, deleteWorkspaceAdapterFactory, deleteWorkspaceAssetAdapterFactory, followAdapterFactory, generateSFDriveCredentialsAdapterFactory, getAnnotationsAdapterFactory, getAssetSlackChannelsAdapterFactory, getDashboardByNameAdapterFactory, getDashboardsAdapterFactory, getDataAssetDependenciesAdapterFactory, getDataAssetRequestByIdOrApiNameAdapterFactory, getDataAssetRequestsAdapterFactory, getDataAssetRequestsCountAdapterFactory, getFlowByNameAdapterFactory, getFlowsAdapterFactory, getFollowedAssetsAdapterFactory, getFollowersAdapterFactory, getMarketplaceListingInstallationProgressAdapterFactory, getOrgAdapterFactory, getSharesAdapterFactory, getSlackAppInfoAdapterFactory, getSubscriptionDigestConfigAdapterFactory, getUnifiedAnalyticsLibraryAssetsAdapterFactory, getUniqueFollowerCountAdapterFactory, getVisualizationAdapterFactory, getVisualizationBundleAdapterFactory, getVisualizationsAdapterFactory, getWorkspaceByIdOrNameAdapterFactory, getWorkspacesAdapterFactory, initiateMarketplaceListingInstallationAdapterFactory, publishAdapterFactory, queryAssetsAdapterFactory, queryUsersAdapterFactory, unfollowAdapterFactory, updateDashboardAdapterFactory, updateDataAssetRequestAdapterFactory, updateRecordSharesAdapterFactory, updateSubscriptionDigestConfigAdapterFactory, updateVisualizationAdapterFactory, updateWorkspaceAdapterFactory };
|
|
12805
|
+
export { createAnnotationAdapterFactory, createAssetSlackChannelAdapterFactory, createDashboardAdapterFactory, createDataAlertAdapterFactory, createDataAssetRequestAdapterFactory, createLoglinesAdapterFactory, createRecordSharesAdapterFactory, createVisualizationAdapterFactory, createWorkspaceAdapterFactory, createWorkspaceAssetAdapterFactory, deleteAllSharesAdapterFactory, deleteDashboardAdapterFactory, deleteRecordShareAdapterFactory, deleteVisualizationAdapterFactory, deleteWorkspaceAdapterFactory, deleteWorkspaceAssetAdapterFactory, followAdapterFactory, generateSFDriveCredentialsAdapterFactory, getAnnotationsAdapterFactory, getAssetSlackChannelsAdapterFactory, getDashboardByNameAdapterFactory, getDashboardsAdapterFactory, getDataAssetDependenciesAdapterFactory, getDataAssetRequestByIdOrApiNameAdapterFactory, getDataAssetRequestsAdapterFactory, getDataAssetRequestsCountAdapterFactory, getFlowByNameAdapterFactory, getFlowsAdapterFactory, getFollowedAssetsAdapterFactory, getFollowersAdapterFactory, getMarketplaceListingInstallationProgressAdapterFactory, getOrgAdapterFactory, getSharesAdapterFactory, getSlackAppInfoAdapterFactory, getSubscriptionDigestConfigAdapterFactory, getUnifiedAnalyticsLibraryAssetsAdapterFactory, getUniqueFollowerCountAdapterFactory, getVisualizationAdapterFactory, getVisualizationBundleAdapterFactory, getVisualizationsAdapterFactory, getWorkspaceByIdOrNameAdapterFactory, getWorkspacesAdapterFactory, initiateMarketplaceListingInstallationAdapterFactory, publishAdapterFactory, queryAssetsAdapterFactory, queryUsersAdapterFactory, unfollowAdapterFactory, updateDashboardAdapterFactory, updateDataAlertAdapterFactory, updateDataAssetRequestAdapterFactory, updateFollowedAssetAdapterFactory, updateRecordSharesAdapterFactory, updateSubscriptionDigestConfigAdapterFactory, updateVisualizationAdapterFactory, updateWorkspaceAdapterFactory };
|