@salesforce/lds-adapters-analytics-unifiedanalytics 1.332.0-dev17 → 1.332.0-dev19
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 +1267 -675
- package/dist/es/es2018/types/src/generated/adapters/createDashboard.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/createDataAlert.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/createVisualization.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/getDashboardByName.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/getDashboards.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/getVisualization.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/getVisualizationBundle.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/getVisualizations.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/updateDashboard.d.ts +1 -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/adapters/updateVisualization.d.ts +1 -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/getTableauDashboards.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getTableauDashboardsByDashboardIdOrApiName.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/getTableauVisualizations.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getTableauVisualizationsBundleByVisualizationIdOrApiName.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/getTableauVisualizationsByVisualizationIdOrApiName.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/patchTableauDashboardsByDashboardIdOrApiName.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/patchTableauFollowFollowersFollowsByFollowerId.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/patchTableauVisualizationsByVisualizationIdOrApiName.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/postTableauDashboards.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/postTableauDataAlerts.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/resources/postTableauVisualizations.d.ts +3 -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/UnifiedFilterInputRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/UpdateFollowedAssetInputRepresentation.d.ts +38 -0
- package/package.json +3 -3
- package/sfdc/index.js +1858 -1254
- package/src/raml/api.raml +431 -0
- 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$Y(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$X(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$W(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$V(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$U(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$U(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$T(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$T(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$S(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$S(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$R(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$Q(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$Q(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$P(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$P(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$O(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$O(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$O(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$O(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$O(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$N(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$N(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$M(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$M(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$M(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$M(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$L(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$K(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$J(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$I(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$H(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$H(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$G(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$G(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$F(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$E(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$
|
|
2983
|
-
return keyPrefix + '::DashboardCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
2982
|
+
function keyBuilder$13(luvio, params) {
|
|
2983
|
+
return keyPrefix + '::DashboardCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'minorVersion:' + params.queryParams.minorVersion + ',' + '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,62 @@ 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
|
+
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3028
3029
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3029
3030
|
];
|
|
3030
|
-
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3031
|
-
const createResourceParams$
|
|
3032
|
-
function keyBuilder$
|
|
3033
|
-
const resourceParams = createResourceParams$
|
|
3034
|
-
return keyBuilder$
|
|
3031
|
+
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$N, getDashboards_ConfigPropertyMetadata);
|
|
3032
|
+
const createResourceParams$N = /*#__PURE__*/ createResourceParams$T(getDashboards_ConfigPropertyMetadata);
|
|
3033
|
+
function keyBuilder$12(luvio, config) {
|
|
3034
|
+
const resourceParams = createResourceParams$N(config);
|
|
3035
|
+
return keyBuilder$13(luvio, resourceParams);
|
|
3035
3036
|
}
|
|
3036
|
-
function typeCheckConfig$
|
|
3037
|
+
function typeCheckConfig$N(untrustedConfig) {
|
|
3037
3038
|
const config = {};
|
|
3038
|
-
typeCheckConfig$
|
|
3039
|
+
typeCheckConfig$T(untrustedConfig, config, getDashboards_ConfigPropertyMetadata);
|
|
3039
3040
|
return config;
|
|
3040
3041
|
}
|
|
3041
|
-
function validateAdapterConfig$
|
|
3042
|
+
function validateAdapterConfig$N(untrustedConfig, configPropertyNames) {
|
|
3042
3043
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3043
3044
|
return null;
|
|
3044
3045
|
}
|
|
3045
3046
|
if (process.env.NODE_ENV !== 'production') {
|
|
3046
3047
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3047
3048
|
}
|
|
3048
|
-
const config = typeCheckConfig$
|
|
3049
|
+
const config = typeCheckConfig$N(untrustedConfig);
|
|
3049
3050
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3050
3051
|
return null;
|
|
3051
3052
|
}
|
|
3052
3053
|
return config;
|
|
3053
3054
|
}
|
|
3054
3055
|
function adapterFragment$l(luvio, config) {
|
|
3055
|
-
createResourceParams$
|
|
3056
|
-
return select$
|
|
3056
|
+
createResourceParams$N(config);
|
|
3057
|
+
return select$17();
|
|
3057
3058
|
}
|
|
3058
3059
|
function onFetchResponseSuccess$l(luvio, config, resourceParams, response) {
|
|
3059
|
-
const snapshot = ingestSuccess$
|
|
3060
|
+
const snapshot = ingestSuccess$G(luvio, resourceParams, response, {
|
|
3060
3061
|
config,
|
|
3061
|
-
resolve: () => buildNetworkSnapshot$
|
|
3062
|
+
resolve: () => buildNetworkSnapshot$N(luvio, config, snapshotRefreshOptions)
|
|
3062
3063
|
});
|
|
3063
3064
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3064
3065
|
}
|
|
3065
3066
|
function onFetchResponseError$l(luvio, config, resourceParams, response) {
|
|
3066
3067
|
const snapshot = ingestError$l(luvio, resourceParams, response, {
|
|
3067
3068
|
config,
|
|
3068
|
-
resolve: () => buildNetworkSnapshot$
|
|
3069
|
+
resolve: () => buildNetworkSnapshot$N(luvio, config, snapshotRefreshOptions)
|
|
3069
3070
|
});
|
|
3070
3071
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3071
3072
|
}
|
|
3072
|
-
function buildNetworkSnapshot$
|
|
3073
|
-
const resourceParams = createResourceParams$
|
|
3074
|
-
const request = createResourceRequest$
|
|
3073
|
+
function buildNetworkSnapshot$N(luvio, config, options) {
|
|
3074
|
+
const resourceParams = createResourceParams$N(config);
|
|
3075
|
+
const request = createResourceRequest$N(resourceParams);
|
|
3075
3076
|
return luvio.dispatchResourceRequest(request, options)
|
|
3076
3077
|
.then((response) => {
|
|
3077
3078
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$l(luvio, config, resourceParams, response), () => {
|
|
3078
3079
|
const cache = new StoreKeyMap();
|
|
3079
|
-
getResponseCacheKeys$
|
|
3080
|
+
getResponseCacheKeys$N(cache, luvio, resourceParams, response.body);
|
|
3080
3081
|
return cache;
|
|
3081
3082
|
});
|
|
3082
3083
|
}, (response) => {
|
|
@@ -3084,23 +3085,23 @@ function buildNetworkSnapshot$K(luvio, config, options) {
|
|
|
3084
3085
|
});
|
|
3085
3086
|
}
|
|
3086
3087
|
function buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext) {
|
|
3087
|
-
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
3088
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$N, undefined, false);
|
|
3088
3089
|
}
|
|
3089
3090
|
function buildCachedSnapshotCachePolicy$l(context, storeLookup) {
|
|
3090
3091
|
const { luvio, config } = context;
|
|
3091
3092
|
const selector = {
|
|
3092
|
-
recordId: keyBuilder$
|
|
3093
|
+
recordId: keyBuilder$12(luvio, config),
|
|
3093
3094
|
node: adapterFragment$l(luvio, config),
|
|
3094
3095
|
variables: {},
|
|
3095
3096
|
};
|
|
3096
3097
|
const cacheSnapshot = storeLookup(selector, {
|
|
3097
3098
|
config,
|
|
3098
|
-
resolve: () => buildNetworkSnapshot$
|
|
3099
|
+
resolve: () => buildNetworkSnapshot$N(luvio, config, snapshotRefreshOptions)
|
|
3099
3100
|
});
|
|
3100
3101
|
return cacheSnapshot;
|
|
3101
3102
|
}
|
|
3102
3103
|
const getDashboardsAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboards(untrustedConfig, requestContext) {
|
|
3103
|
-
const config = validateAdapterConfig$
|
|
3104
|
+
const config = validateAdapterConfig$N(untrustedConfig, getDashboards_ConfigPropertyNames);
|
|
3104
3105
|
// Invalid or incomplete config
|
|
3105
3106
|
if (config === null) {
|
|
3106
3107
|
return null;
|
|
@@ -3109,19 +3110,19 @@ const getDashboardsAdapterFactory = (luvio) => function UnifiedAnalytics__getDas
|
|
|
3109
3110
|
buildCachedSnapshotCachePolicy$l, buildNetworkSnapshotCachePolicy$l);
|
|
3110
3111
|
};
|
|
3111
3112
|
|
|
3112
|
-
function select$
|
|
3113
|
-
return select$
|
|
3113
|
+
function select$16(luvio, params) {
|
|
3114
|
+
return select$19();
|
|
3114
3115
|
}
|
|
3115
|
-
function getResponseCacheKeys$
|
|
3116
|
-
getTypeCacheKeys$
|
|
3116
|
+
function getResponseCacheKeys$M(storeKeyMap, luvio, resourceParams, response) {
|
|
3117
|
+
getTypeCacheKeys$u(storeKeyMap, luvio, response);
|
|
3117
3118
|
}
|
|
3118
|
-
function ingestSuccess$
|
|
3119
|
+
function ingestSuccess$F(luvio, resourceParams, response) {
|
|
3119
3120
|
const { body } = response;
|
|
3120
|
-
const key = keyBuilderFromType$
|
|
3121
|
-
luvio.storeIngest(key, ingest$
|
|
3121
|
+
const key = keyBuilderFromType$f(luvio, body);
|
|
3122
|
+
luvio.storeIngest(key, ingest$u, body);
|
|
3122
3123
|
const snapshot = luvio.storeLookup({
|
|
3123
3124
|
recordId: key,
|
|
3124
|
-
node: select$
|
|
3125
|
+
node: select$16(),
|
|
3125
3126
|
variables: {},
|
|
3126
3127
|
});
|
|
3127
3128
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3132,7 +3133,7 @@ function ingestSuccess$C(luvio, resourceParams, response) {
|
|
|
3132
3133
|
deepFreeze(snapshot.data);
|
|
3133
3134
|
return snapshot;
|
|
3134
3135
|
}
|
|
3135
|
-
function createResourceRequest$
|
|
3136
|
+
function createResourceRequest$M(config) {
|
|
3136
3137
|
const headers = {};
|
|
3137
3138
|
return {
|
|
3138
3139
|
baseUri: '/services/data/v63.0',
|
|
@@ -3140,14 +3141,15 @@ function createResourceRequest$J(config) {
|
|
|
3140
3141
|
method: 'post',
|
|
3141
3142
|
body: config.body,
|
|
3142
3143
|
urlParams: {},
|
|
3143
|
-
queryParams:
|
|
3144
|
+
queryParams: config.queryParams,
|
|
3144
3145
|
headers,
|
|
3145
3146
|
priority: 'normal',
|
|
3146
3147
|
};
|
|
3147
3148
|
}
|
|
3148
3149
|
|
|
3149
|
-
const adapterName$
|
|
3150
|
+
const adapterName$M = 'createDashboard';
|
|
3150
3151
|
const createDashboard_ConfigPropertyMetadata = [
|
|
3152
|
+
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3151
3153
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
3152
3154
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
3153
3155
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -3157,11 +3159,11 @@ const createDashboard_ConfigPropertyMetadata = [
|
|
|
3157
3159
|
generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3158
3160
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3159
3161
|
];
|
|
3160
|
-
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3161
|
-
const createResourceParams$
|
|
3162
|
-
function typeCheckConfig$
|
|
3162
|
+
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$M, createDashboard_ConfigPropertyMetadata);
|
|
3163
|
+
const createResourceParams$M = /*#__PURE__*/ createResourceParams$T(createDashboard_ConfigPropertyMetadata);
|
|
3164
|
+
function typeCheckConfig$M(untrustedConfig) {
|
|
3163
3165
|
const config = {};
|
|
3164
|
-
typeCheckConfig$
|
|
3166
|
+
typeCheckConfig$T(untrustedConfig, config, createDashboard_ConfigPropertyMetadata);
|
|
3165
3167
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
3166
3168
|
if (ArrayIsArray$1(untrustedConfig_layouts)) {
|
|
3167
3169
|
const untrustedConfig_layouts_array = [];
|
|
@@ -3203,30 +3205,30 @@ function typeCheckConfig$J(untrustedConfig) {
|
|
|
3203
3205
|
}
|
|
3204
3206
|
return config;
|
|
3205
3207
|
}
|
|
3206
|
-
function validateAdapterConfig$
|
|
3208
|
+
function validateAdapterConfig$M(untrustedConfig, configPropertyNames) {
|
|
3207
3209
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3208
3210
|
return null;
|
|
3209
3211
|
}
|
|
3210
3212
|
if (process.env.NODE_ENV !== 'production') {
|
|
3211
3213
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3212
3214
|
}
|
|
3213
|
-
const config = typeCheckConfig$
|
|
3215
|
+
const config = typeCheckConfig$M(untrustedConfig);
|
|
3214
3216
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3215
3217
|
return null;
|
|
3216
3218
|
}
|
|
3217
3219
|
return config;
|
|
3218
3220
|
}
|
|
3219
|
-
function buildNetworkSnapshot$
|
|
3220
|
-
const resourceParams = createResourceParams$
|
|
3221
|
-
const request = createResourceRequest$
|
|
3221
|
+
function buildNetworkSnapshot$M(luvio, config, options) {
|
|
3222
|
+
const resourceParams = createResourceParams$M(config);
|
|
3223
|
+
const request = createResourceRequest$M(resourceParams);
|
|
3222
3224
|
return luvio.dispatchResourceRequest(request, options)
|
|
3223
3225
|
.then((response) => {
|
|
3224
3226
|
return luvio.handleSuccessResponse(() => {
|
|
3225
|
-
const snapshot = ingestSuccess$
|
|
3227
|
+
const snapshot = ingestSuccess$F(luvio, resourceParams, response);
|
|
3226
3228
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3227
3229
|
}, () => {
|
|
3228
3230
|
const cache = new StoreKeyMap();
|
|
3229
|
-
getResponseCacheKeys$
|
|
3231
|
+
getResponseCacheKeys$M(cache, luvio, resourceParams, response.body);
|
|
3230
3232
|
return cache;
|
|
3231
3233
|
});
|
|
3232
3234
|
}, (response) => {
|
|
@@ -3236,33 +3238,33 @@ function buildNetworkSnapshot$J(luvio, config, options) {
|
|
|
3236
3238
|
}
|
|
3237
3239
|
const createDashboardAdapterFactory = (luvio) => {
|
|
3238
3240
|
return function createDashboard(untrustedConfig) {
|
|
3239
|
-
const config = validateAdapterConfig$
|
|
3241
|
+
const config = validateAdapterConfig$M(untrustedConfig, createDashboard_ConfigPropertyNames);
|
|
3240
3242
|
// Invalid or incomplete config
|
|
3241
3243
|
if (config === null) {
|
|
3242
3244
|
throw new Error('Invalid config for "createDashboard"');
|
|
3243
3245
|
}
|
|
3244
|
-
return buildNetworkSnapshot$
|
|
3246
|
+
return buildNetworkSnapshot$M(luvio, config);
|
|
3245
3247
|
};
|
|
3246
3248
|
};
|
|
3247
3249
|
|
|
3248
|
-
function keyBuilder$
|
|
3249
|
-
return keyBuilder$
|
|
3250
|
+
function keyBuilder$11(luvio, params) {
|
|
3251
|
+
return keyBuilder$14(luvio, {
|
|
3250
3252
|
name: params.urlParams.dashboardIdOrApiName
|
|
3251
3253
|
});
|
|
3252
3254
|
}
|
|
3253
|
-
function getResponseCacheKeys$
|
|
3254
|
-
const key = keyBuilder$
|
|
3255
|
+
function getResponseCacheKeys$L(cacheKeyMap, luvio, resourceParams) {
|
|
3256
|
+
const key = keyBuilder$11(luvio, resourceParams);
|
|
3255
3257
|
cacheKeyMap.set(key, {
|
|
3256
3258
|
namespace: keyPrefix,
|
|
3257
|
-
representationName: RepresentationType$
|
|
3259
|
+
representationName: RepresentationType$w,
|
|
3258
3260
|
mergeable: false
|
|
3259
3261
|
});
|
|
3260
3262
|
}
|
|
3261
3263
|
function evictSuccess$6(luvio, resourceParams) {
|
|
3262
|
-
const key = keyBuilder$
|
|
3264
|
+
const key = keyBuilder$11(luvio, resourceParams);
|
|
3263
3265
|
luvio.storeEvict(key);
|
|
3264
3266
|
}
|
|
3265
|
-
function createResourceRequest$
|
|
3267
|
+
function createResourceRequest$L(config) {
|
|
3266
3268
|
const headers = {};
|
|
3267
3269
|
return {
|
|
3268
3270
|
baseUri: '/services/data/v63.0',
|
|
@@ -3276,33 +3278,33 @@ function createResourceRequest$I(config) {
|
|
|
3276
3278
|
};
|
|
3277
3279
|
}
|
|
3278
3280
|
|
|
3279
|
-
const adapterName$
|
|
3281
|
+
const adapterName$L = 'deleteDashboard';
|
|
3280
3282
|
const deleteDashboard_ConfigPropertyMetadata = [
|
|
3281
3283
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3282
3284
|
];
|
|
3283
|
-
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3284
|
-
const createResourceParams$
|
|
3285
|
-
function typeCheckConfig$
|
|
3285
|
+
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$L, deleteDashboard_ConfigPropertyMetadata);
|
|
3286
|
+
const createResourceParams$L = /*#__PURE__*/ createResourceParams$T(deleteDashboard_ConfigPropertyMetadata);
|
|
3287
|
+
function typeCheckConfig$L(untrustedConfig) {
|
|
3286
3288
|
const config = {};
|
|
3287
|
-
typeCheckConfig$
|
|
3289
|
+
typeCheckConfig$T(untrustedConfig, config, deleteDashboard_ConfigPropertyMetadata);
|
|
3288
3290
|
return config;
|
|
3289
3291
|
}
|
|
3290
|
-
function validateAdapterConfig$
|
|
3292
|
+
function validateAdapterConfig$L(untrustedConfig, configPropertyNames) {
|
|
3291
3293
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3292
3294
|
return null;
|
|
3293
3295
|
}
|
|
3294
3296
|
if (process.env.NODE_ENV !== 'production') {
|
|
3295
3297
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3296
3298
|
}
|
|
3297
|
-
const config = typeCheckConfig$
|
|
3299
|
+
const config = typeCheckConfig$L(untrustedConfig);
|
|
3298
3300
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3299
3301
|
return null;
|
|
3300
3302
|
}
|
|
3301
3303
|
return config;
|
|
3302
3304
|
}
|
|
3303
|
-
function buildNetworkSnapshot$
|
|
3304
|
-
const resourceParams = createResourceParams$
|
|
3305
|
-
const request = createResourceRequest$
|
|
3305
|
+
function buildNetworkSnapshot$L(luvio, config, options) {
|
|
3306
|
+
const resourceParams = createResourceParams$L(config);
|
|
3307
|
+
const request = createResourceRequest$L(resourceParams);
|
|
3306
3308
|
return luvio.dispatchResourceRequest(request, options)
|
|
3307
3309
|
.then(() => {
|
|
3308
3310
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -3310,7 +3312,7 @@ function buildNetworkSnapshot$I(luvio, config, options) {
|
|
|
3310
3312
|
return luvio.storeBroadcast();
|
|
3311
3313
|
}, () => {
|
|
3312
3314
|
const cache = new StoreKeyMap();
|
|
3313
|
-
getResponseCacheKeys$
|
|
3315
|
+
getResponseCacheKeys$L(cache, luvio, resourceParams);
|
|
3314
3316
|
return cache;
|
|
3315
3317
|
});
|
|
3316
3318
|
}, (response) => {
|
|
@@ -3320,33 +3322,33 @@ function buildNetworkSnapshot$I(luvio, config, options) {
|
|
|
3320
3322
|
}
|
|
3321
3323
|
const deleteDashboardAdapterFactory = (luvio) => {
|
|
3322
3324
|
return function UnifiedAnalyticsdeleteDashboard(untrustedConfig) {
|
|
3323
|
-
const config = validateAdapterConfig$
|
|
3325
|
+
const config = validateAdapterConfig$L(untrustedConfig, deleteDashboard_ConfigPropertyNames);
|
|
3324
3326
|
// Invalid or incomplete config
|
|
3325
3327
|
if (config === null) {
|
|
3326
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
3328
|
+
throw new Error(`Invalid config for "${adapterName$L}"`);
|
|
3327
3329
|
}
|
|
3328
|
-
return buildNetworkSnapshot$
|
|
3330
|
+
return buildNetworkSnapshot$L(luvio, config);
|
|
3329
3331
|
};
|
|
3330
3332
|
};
|
|
3331
3333
|
|
|
3332
|
-
function select$
|
|
3333
|
-
return select$
|
|
3334
|
+
function select$15(luvio, params) {
|
|
3335
|
+
return select$19();
|
|
3334
3336
|
}
|
|
3335
|
-
function keyBuilder
|
|
3336
|
-
return keyBuilder$
|
|
3337
|
+
function keyBuilder$10(luvio, params) {
|
|
3338
|
+
return keyBuilder$14(luvio, {
|
|
3337
3339
|
name: params.urlParams.dashboardIdOrApiName
|
|
3338
3340
|
});
|
|
3339
3341
|
}
|
|
3340
|
-
function getResponseCacheKeys$
|
|
3341
|
-
getTypeCacheKeys$
|
|
3342
|
+
function getResponseCacheKeys$K(storeKeyMap, luvio, resourceParams, response) {
|
|
3343
|
+
getTypeCacheKeys$u(storeKeyMap, luvio, response);
|
|
3342
3344
|
}
|
|
3343
|
-
function ingestSuccess$
|
|
3345
|
+
function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
|
|
3344
3346
|
const { body } = response;
|
|
3345
|
-
const key = keyBuilder
|
|
3346
|
-
luvio.storeIngest(key, ingest$
|
|
3347
|
+
const key = keyBuilder$10(luvio, resourceParams);
|
|
3348
|
+
luvio.storeIngest(key, ingest$u, body);
|
|
3347
3349
|
const snapshot = luvio.storeLookup({
|
|
3348
3350
|
recordId: key,
|
|
3349
|
-
node: select$
|
|
3351
|
+
node: select$15(),
|
|
3350
3352
|
variables: {},
|
|
3351
3353
|
}, snapshotRefresh);
|
|
3352
3354
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3358,12 +3360,12 @@ function ingestSuccess$B(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3358
3360
|
return snapshot;
|
|
3359
3361
|
}
|
|
3360
3362
|
function ingestError$k(luvio, params, error, snapshotRefresh) {
|
|
3361
|
-
const key = keyBuilder
|
|
3363
|
+
const key = keyBuilder$10(luvio, params);
|
|
3362
3364
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3363
3365
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3364
3366
|
return errorSnapshot;
|
|
3365
3367
|
}
|
|
3366
|
-
function createResourceRequest$
|
|
3368
|
+
function createResourceRequest$K(config) {
|
|
3367
3369
|
const headers = {};
|
|
3368
3370
|
return {
|
|
3369
3371
|
baseUri: '/services/data/v63.0',
|
|
@@ -3371,66 +3373,67 @@ function createResourceRequest$H(config) {
|
|
|
3371
3373
|
method: 'get',
|
|
3372
3374
|
body: null,
|
|
3373
3375
|
urlParams: config.urlParams,
|
|
3374
|
-
queryParams:
|
|
3376
|
+
queryParams: config.queryParams,
|
|
3375
3377
|
headers,
|
|
3376
3378
|
priority: 'normal',
|
|
3377
3379
|
};
|
|
3378
3380
|
}
|
|
3379
3381
|
|
|
3380
|
-
const adapterName$
|
|
3382
|
+
const adapterName$K = 'getDashboardByName';
|
|
3381
3383
|
const getDashboardByName_ConfigPropertyMetadata = [
|
|
3382
3384
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3385
|
+
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3383
3386
|
];
|
|
3384
|
-
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3385
|
-
const createResourceParams$
|
|
3386
|
-
function keyBuilder
|
|
3387
|
-
const resourceParams = createResourceParams$
|
|
3388
|
-
return keyBuilder
|
|
3387
|
+
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$K, getDashboardByName_ConfigPropertyMetadata);
|
|
3388
|
+
const createResourceParams$K = /*#__PURE__*/ createResourceParams$T(getDashboardByName_ConfigPropertyMetadata);
|
|
3389
|
+
function keyBuilder$$(luvio, config) {
|
|
3390
|
+
const resourceParams = createResourceParams$K(config);
|
|
3391
|
+
return keyBuilder$10(luvio, resourceParams);
|
|
3389
3392
|
}
|
|
3390
|
-
function typeCheckConfig$
|
|
3393
|
+
function typeCheckConfig$K(untrustedConfig) {
|
|
3391
3394
|
const config = {};
|
|
3392
|
-
typeCheckConfig$
|
|
3395
|
+
typeCheckConfig$T(untrustedConfig, config, getDashboardByName_ConfigPropertyMetadata);
|
|
3393
3396
|
return config;
|
|
3394
3397
|
}
|
|
3395
|
-
function validateAdapterConfig$
|
|
3398
|
+
function validateAdapterConfig$K(untrustedConfig, configPropertyNames) {
|
|
3396
3399
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3397
3400
|
return null;
|
|
3398
3401
|
}
|
|
3399
3402
|
if (process.env.NODE_ENV !== 'production') {
|
|
3400
3403
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3401
3404
|
}
|
|
3402
|
-
const config = typeCheckConfig$
|
|
3405
|
+
const config = typeCheckConfig$K(untrustedConfig);
|
|
3403
3406
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3404
3407
|
return null;
|
|
3405
3408
|
}
|
|
3406
3409
|
return config;
|
|
3407
3410
|
}
|
|
3408
3411
|
function adapterFragment$k(luvio, config) {
|
|
3409
|
-
createResourceParams$
|
|
3410
|
-
return select$
|
|
3412
|
+
createResourceParams$K(config);
|
|
3413
|
+
return select$15();
|
|
3411
3414
|
}
|
|
3412
3415
|
function onFetchResponseSuccess$k(luvio, config, resourceParams, response) {
|
|
3413
|
-
const snapshot = ingestSuccess$
|
|
3416
|
+
const snapshot = ingestSuccess$E(luvio, resourceParams, response, {
|
|
3414
3417
|
config,
|
|
3415
|
-
resolve: () => buildNetworkSnapshot$
|
|
3418
|
+
resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions)
|
|
3416
3419
|
});
|
|
3417
3420
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3418
3421
|
}
|
|
3419
3422
|
function onFetchResponseError$k(luvio, config, resourceParams, response) {
|
|
3420
3423
|
const snapshot = ingestError$k(luvio, resourceParams, response, {
|
|
3421
3424
|
config,
|
|
3422
|
-
resolve: () => buildNetworkSnapshot$
|
|
3425
|
+
resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions)
|
|
3423
3426
|
});
|
|
3424
3427
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3425
3428
|
}
|
|
3426
|
-
function buildNetworkSnapshot$
|
|
3427
|
-
const resourceParams = createResourceParams$
|
|
3428
|
-
const request = createResourceRequest$
|
|
3429
|
+
function buildNetworkSnapshot$K(luvio, config, options) {
|
|
3430
|
+
const resourceParams = createResourceParams$K(config);
|
|
3431
|
+
const request = createResourceRequest$K(resourceParams);
|
|
3429
3432
|
return luvio.dispatchResourceRequest(request, options)
|
|
3430
3433
|
.then((response) => {
|
|
3431
3434
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$k(luvio, config, resourceParams, response), () => {
|
|
3432
3435
|
const cache = new StoreKeyMap();
|
|
3433
|
-
getResponseCacheKeys$
|
|
3436
|
+
getResponseCacheKeys$K(cache, luvio, resourceParams, response.body);
|
|
3434
3437
|
return cache;
|
|
3435
3438
|
});
|
|
3436
3439
|
}, (response) => {
|
|
@@ -3438,23 +3441,23 @@ function buildNetworkSnapshot$H(luvio, config, options) {
|
|
|
3438
3441
|
});
|
|
3439
3442
|
}
|
|
3440
3443
|
function buildNetworkSnapshotCachePolicy$k(context, coercedAdapterRequestContext) {
|
|
3441
|
-
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
3444
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$K, undefined, false);
|
|
3442
3445
|
}
|
|
3443
3446
|
function buildCachedSnapshotCachePolicy$k(context, storeLookup) {
|
|
3444
3447
|
const { luvio, config } = context;
|
|
3445
3448
|
const selector = {
|
|
3446
|
-
recordId: keyBuilder
|
|
3449
|
+
recordId: keyBuilder$$(luvio, config),
|
|
3447
3450
|
node: adapterFragment$k(luvio, config),
|
|
3448
3451
|
variables: {},
|
|
3449
3452
|
};
|
|
3450
3453
|
const cacheSnapshot = storeLookup(selector, {
|
|
3451
3454
|
config,
|
|
3452
|
-
resolve: () => buildNetworkSnapshot$
|
|
3455
|
+
resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions)
|
|
3453
3456
|
});
|
|
3454
3457
|
return cacheSnapshot;
|
|
3455
3458
|
}
|
|
3456
3459
|
const getDashboardByNameAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboardByName(untrustedConfig, requestContext) {
|
|
3457
|
-
const config = validateAdapterConfig$
|
|
3460
|
+
const config = validateAdapterConfig$K(untrustedConfig, getDashboardByName_ConfigPropertyNames);
|
|
3458
3461
|
// Invalid or incomplete config
|
|
3459
3462
|
if (config === null) {
|
|
3460
3463
|
return null;
|
|
@@ -3463,19 +3466,19 @@ const getDashboardByNameAdapterFactory = (luvio) => function UnifiedAnalytics__g
|
|
|
3463
3466
|
buildCachedSnapshotCachePolicy$k, buildNetworkSnapshotCachePolicy$k);
|
|
3464
3467
|
};
|
|
3465
3468
|
|
|
3466
|
-
function select$
|
|
3467
|
-
return select$
|
|
3469
|
+
function select$14(luvio, params) {
|
|
3470
|
+
return select$19();
|
|
3468
3471
|
}
|
|
3469
|
-
function getResponseCacheKeys$
|
|
3470
|
-
getTypeCacheKeys$
|
|
3472
|
+
function getResponseCacheKeys$J(storeKeyMap, luvio, resourceParams, response) {
|
|
3473
|
+
getTypeCacheKeys$u(storeKeyMap, luvio, response);
|
|
3471
3474
|
}
|
|
3472
|
-
function ingestSuccess$
|
|
3475
|
+
function ingestSuccess$D(luvio, resourceParams, response) {
|
|
3473
3476
|
const { body } = response;
|
|
3474
|
-
const key = keyBuilderFromType$
|
|
3475
|
-
luvio.storeIngest(key, ingest$
|
|
3477
|
+
const key = keyBuilderFromType$f(luvio, body);
|
|
3478
|
+
luvio.storeIngest(key, ingest$u, body);
|
|
3476
3479
|
const snapshot = luvio.storeLookup({
|
|
3477
3480
|
recordId: key,
|
|
3478
|
-
node: select$
|
|
3481
|
+
node: select$14(),
|
|
3479
3482
|
variables: {},
|
|
3480
3483
|
});
|
|
3481
3484
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3486,7 +3489,7 @@ function ingestSuccess$A(luvio, resourceParams, response) {
|
|
|
3486
3489
|
deepFreeze(snapshot.data);
|
|
3487
3490
|
return snapshot;
|
|
3488
3491
|
}
|
|
3489
|
-
function createResourceRequest$
|
|
3492
|
+
function createResourceRequest$J(config) {
|
|
3490
3493
|
const headers = {};
|
|
3491
3494
|
return {
|
|
3492
3495
|
baseUri: '/services/data/v63.0',
|
|
@@ -3494,15 +3497,16 @@ function createResourceRequest$G(config) {
|
|
|
3494
3497
|
method: 'patch',
|
|
3495
3498
|
body: config.body,
|
|
3496
3499
|
urlParams: config.urlParams,
|
|
3497
|
-
queryParams:
|
|
3500
|
+
queryParams: config.queryParams,
|
|
3498
3501
|
headers,
|
|
3499
3502
|
priority: 'normal',
|
|
3500
3503
|
};
|
|
3501
3504
|
}
|
|
3502
3505
|
|
|
3503
|
-
const adapterName$
|
|
3506
|
+
const adapterName$J = 'updateDashboard';
|
|
3504
3507
|
const updateDashboard_ConfigPropertyMetadata = [
|
|
3505
3508
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3509
|
+
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3506
3510
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
3507
3511
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
3508
3512
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -3512,11 +3516,11 @@ const updateDashboard_ConfigPropertyMetadata = [
|
|
|
3512
3516
|
generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3513
3517
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3514
3518
|
];
|
|
3515
|
-
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3516
|
-
const createResourceParams$
|
|
3517
|
-
function typeCheckConfig$
|
|
3519
|
+
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$J, updateDashboard_ConfigPropertyMetadata);
|
|
3520
|
+
const createResourceParams$J = /*#__PURE__*/ createResourceParams$T(updateDashboard_ConfigPropertyMetadata);
|
|
3521
|
+
function typeCheckConfig$J(untrustedConfig) {
|
|
3518
3522
|
const config = {};
|
|
3519
|
-
typeCheckConfig$
|
|
3523
|
+
typeCheckConfig$T(untrustedConfig, config, updateDashboard_ConfigPropertyMetadata);
|
|
3520
3524
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
3521
3525
|
if (ArrayIsArray$1(untrustedConfig_layouts)) {
|
|
3522
3526
|
const untrustedConfig_layouts_array = [];
|
|
@@ -3558,30 +3562,30 @@ function typeCheckConfig$G(untrustedConfig) {
|
|
|
3558
3562
|
}
|
|
3559
3563
|
return config;
|
|
3560
3564
|
}
|
|
3561
|
-
function validateAdapterConfig$
|
|
3565
|
+
function validateAdapterConfig$J(untrustedConfig, configPropertyNames) {
|
|
3562
3566
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3563
3567
|
return null;
|
|
3564
3568
|
}
|
|
3565
3569
|
if (process.env.NODE_ENV !== 'production') {
|
|
3566
3570
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3567
3571
|
}
|
|
3568
|
-
const config = typeCheckConfig$
|
|
3572
|
+
const config = typeCheckConfig$J(untrustedConfig);
|
|
3569
3573
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3570
3574
|
return null;
|
|
3571
3575
|
}
|
|
3572
3576
|
return config;
|
|
3573
3577
|
}
|
|
3574
|
-
function buildNetworkSnapshot$
|
|
3575
|
-
const resourceParams = createResourceParams$
|
|
3576
|
-
const request = createResourceRequest$
|
|
3578
|
+
function buildNetworkSnapshot$J(luvio, config, options) {
|
|
3579
|
+
const resourceParams = createResourceParams$J(config);
|
|
3580
|
+
const request = createResourceRequest$J(resourceParams);
|
|
3577
3581
|
return luvio.dispatchResourceRequest(request, options)
|
|
3578
3582
|
.then((response) => {
|
|
3579
3583
|
return luvio.handleSuccessResponse(() => {
|
|
3580
|
-
const snapshot = ingestSuccess$
|
|
3584
|
+
const snapshot = ingestSuccess$D(luvio, resourceParams, response);
|
|
3581
3585
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3582
3586
|
}, () => {
|
|
3583
3587
|
const cache = new StoreKeyMap();
|
|
3584
|
-
getResponseCacheKeys$
|
|
3588
|
+
getResponseCacheKeys$J(cache, luvio, resourceParams, response.body);
|
|
3585
3589
|
return cache;
|
|
3586
3590
|
});
|
|
3587
3591
|
}, (response) => {
|
|
@@ -3591,17 +3595,498 @@ function buildNetworkSnapshot$G(luvio, config, options) {
|
|
|
3591
3595
|
}
|
|
3592
3596
|
const updateDashboardAdapterFactory = (luvio) => {
|
|
3593
3597
|
return function updateDashboard(untrustedConfig) {
|
|
3594
|
-
const config = validateAdapterConfig$
|
|
3598
|
+
const config = validateAdapterConfig$J(untrustedConfig, updateDashboard_ConfigPropertyNames);
|
|
3595
3599
|
// Invalid or incomplete config
|
|
3596
3600
|
if (config === null) {
|
|
3597
3601
|
throw new Error('Invalid config for "updateDashboard"');
|
|
3598
3602
|
}
|
|
3599
|
-
return buildNetworkSnapshot$
|
|
3603
|
+
return buildNetworkSnapshot$J(luvio, config);
|
|
3604
|
+
};
|
|
3605
|
+
};
|
|
3606
|
+
|
|
3607
|
+
var DiscriminatorValues$3;
|
|
3608
|
+
(function (DiscriminatorValues) {
|
|
3609
|
+
DiscriminatorValues["Notification"] = "Notification";
|
|
3610
|
+
})(DiscriminatorValues$3 || (DiscriminatorValues$3 = {}));
|
|
3611
|
+
function validate$M(obj, path = 'DataAlertReceiversInputRepresentation') {
|
|
3612
|
+
const v_error = (() => {
|
|
3613
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3614
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3615
|
+
}
|
|
3616
|
+
const obj_type = obj.type;
|
|
3617
|
+
const path_type = path + '.type';
|
|
3618
|
+
if (typeof obj_type !== 'string') {
|
|
3619
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3620
|
+
}
|
|
3621
|
+
})();
|
|
3622
|
+
return v_error === undefined ? null : v_error;
|
|
3623
|
+
}
|
|
3624
|
+
|
|
3625
|
+
function validate$L(obj, path = 'DataAlertDeliveryConfigurationInputRepresentation') {
|
|
3626
|
+
const v_error = (() => {
|
|
3627
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3628
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3629
|
+
}
|
|
3630
|
+
const obj_receivers = obj.receivers;
|
|
3631
|
+
const path_receivers = path + '.receivers';
|
|
3632
|
+
if (!ArrayIsArray(obj_receivers)) {
|
|
3633
|
+
return new TypeError('Expected "array" but received "' + typeof obj_receivers + '" (at "' + path_receivers + '")');
|
|
3634
|
+
}
|
|
3635
|
+
for (let i = 0; i < obj_receivers.length; i++) {
|
|
3636
|
+
const obj_receivers_item = obj_receivers[i];
|
|
3637
|
+
const path_receivers_item = path_receivers + '[' + i + ']';
|
|
3638
|
+
const referencepath_receivers_itemValidationError = validate$M(obj_receivers_item, path_receivers_item);
|
|
3639
|
+
if (referencepath_receivers_itemValidationError !== null) {
|
|
3640
|
+
let message = 'Object doesn\'t match DataAlertReceiversInputRepresentation (at "' + path_receivers_item + '")\n';
|
|
3641
|
+
message += referencepath_receivers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3642
|
+
return new TypeError(message);
|
|
3643
|
+
}
|
|
3644
|
+
}
|
|
3645
|
+
})();
|
|
3646
|
+
return v_error === undefined ? null : v_error;
|
|
3647
|
+
}
|
|
3648
|
+
|
|
3649
|
+
var DiscriminatorValues$2;
|
|
3650
|
+
(function (DiscriminatorValues) {
|
|
3651
|
+
DiscriminatorValues["RawValue"] = "RawValue";
|
|
3652
|
+
DiscriminatorValues["Insights"] = "Insights";
|
|
3653
|
+
})(DiscriminatorValues$2 || (DiscriminatorValues$2 = {}));
|
|
3654
|
+
function validate$K(obj, path = 'DataAlertValueInputRepresentation') {
|
|
3655
|
+
const v_error = (() => {
|
|
3656
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3657
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3658
|
+
}
|
|
3659
|
+
const obj_type = obj.type;
|
|
3660
|
+
const path_type = path + '.type';
|
|
3661
|
+
if (typeof obj_type !== 'string') {
|
|
3662
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3663
|
+
}
|
|
3664
|
+
})();
|
|
3665
|
+
return v_error === undefined ? null : v_error;
|
|
3666
|
+
}
|
|
3667
|
+
|
|
3668
|
+
function validate$J(obj, path = 'DataAlertValueRightOperandInputRepresentation') {
|
|
3669
|
+
const v_error = (() => {
|
|
3670
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3671
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3672
|
+
}
|
|
3673
|
+
const obj_type = obj.type;
|
|
3674
|
+
const path_type = path + '.type';
|
|
3675
|
+
if (typeof obj_type !== 'string') {
|
|
3676
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3677
|
+
}
|
|
3678
|
+
})();
|
|
3679
|
+
return v_error === undefined ? null : v_error;
|
|
3680
|
+
}
|
|
3681
|
+
|
|
3682
|
+
function validate$I(obj, path = 'DataAlertConditionInputRepresentation') {
|
|
3683
|
+
const v_error = (() => {
|
|
3684
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3685
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3686
|
+
}
|
|
3687
|
+
const obj_leftOperand = obj.leftOperand;
|
|
3688
|
+
const path_leftOperand = path + '.leftOperand';
|
|
3689
|
+
const referencepath_leftOperandValidationError = validate$K(obj_leftOperand, path_leftOperand);
|
|
3690
|
+
if (referencepath_leftOperandValidationError !== null) {
|
|
3691
|
+
let message = 'Object doesn\'t match DataAlertValueInputRepresentation (at "' + path_leftOperand + '")\n';
|
|
3692
|
+
message += referencepath_leftOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3693
|
+
return new TypeError(message);
|
|
3694
|
+
}
|
|
3695
|
+
const obj_operator = obj.operator;
|
|
3696
|
+
const path_operator = path + '.operator';
|
|
3697
|
+
if (typeof obj_operator !== 'string') {
|
|
3698
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
3699
|
+
}
|
|
3700
|
+
const obj_rightOperand = obj.rightOperand;
|
|
3701
|
+
const path_rightOperand = path + '.rightOperand';
|
|
3702
|
+
const referencepath_rightOperandValidationError = validate$J(obj_rightOperand, path_rightOperand);
|
|
3703
|
+
if (referencepath_rightOperandValidationError !== null) {
|
|
3704
|
+
let message = 'Object doesn\'t match DataAlertValueRightOperandInputRepresentation (at "' + path_rightOperand + '")\n';
|
|
3705
|
+
message += referencepath_rightOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3706
|
+
return new TypeError(message);
|
|
3707
|
+
}
|
|
3708
|
+
})();
|
|
3709
|
+
return v_error === undefined ? null : v_error;
|
|
3710
|
+
}
|
|
3711
|
+
|
|
3712
|
+
function validate$H(obj, path = 'DataAlertThresholdsInputRepresentation') {
|
|
3713
|
+
const v_error = (() => {
|
|
3714
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3715
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3716
|
+
}
|
|
3717
|
+
const obj_conditions = obj.conditions;
|
|
3718
|
+
const path_conditions = path + '.conditions';
|
|
3719
|
+
if (!ArrayIsArray(obj_conditions)) {
|
|
3720
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conditions + '" (at "' + path_conditions + '")');
|
|
3721
|
+
}
|
|
3722
|
+
for (let i = 0; i < obj_conditions.length; i++) {
|
|
3723
|
+
const obj_conditions_item = obj_conditions[i];
|
|
3724
|
+
const path_conditions_item = path_conditions + '[' + i + ']';
|
|
3725
|
+
const referencepath_conditions_itemValidationError = validate$I(obj_conditions_item, path_conditions_item);
|
|
3726
|
+
if (referencepath_conditions_itemValidationError !== null) {
|
|
3727
|
+
let message = 'Object doesn\'t match DataAlertConditionInputRepresentation (at "' + path_conditions_item + '")\n';
|
|
3728
|
+
message += referencepath_conditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3729
|
+
return new TypeError(message);
|
|
3730
|
+
}
|
|
3731
|
+
}
|
|
3732
|
+
const obj_customLogicalOperation = obj.customLogicalOperation;
|
|
3733
|
+
const path_customLogicalOperation = path + '.customLogicalOperation';
|
|
3734
|
+
if (typeof obj_customLogicalOperation !== 'string') {
|
|
3735
|
+
return new TypeError('Expected "string" but received "' + typeof obj_customLogicalOperation + '" (at "' + path_customLogicalOperation + '")');
|
|
3736
|
+
}
|
|
3737
|
+
})();
|
|
3738
|
+
return v_error === undefined ? null : v_error;
|
|
3739
|
+
}
|
|
3740
|
+
|
|
3741
|
+
const TTL$i = 500;
|
|
3742
|
+
const VERSION$s = "7f11b071aca79c0d2d3ecbfb23e11589";
|
|
3743
|
+
function validate$G(obj, path = 'DataAlertRepresentation') {
|
|
3744
|
+
const v_error = (() => {
|
|
3745
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3746
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3747
|
+
}
|
|
3748
|
+
const obj_id = obj.id;
|
|
3749
|
+
const path_id = path + '.id';
|
|
3750
|
+
if (typeof obj_id !== 'string') {
|
|
3751
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3752
|
+
}
|
|
3753
|
+
})();
|
|
3754
|
+
return v_error === undefined ? null : v_error;
|
|
3755
|
+
}
|
|
3756
|
+
const RepresentationType$u = 'DataAlertRepresentation';
|
|
3757
|
+
function keyBuilder$_(luvio, config) {
|
|
3758
|
+
return keyPrefix + '::' + RepresentationType$u + ':' + config.dataAlertId;
|
|
3759
|
+
}
|
|
3760
|
+
function keyBuilderFromType$e(luvio, object) {
|
|
3761
|
+
const keyParams = {
|
|
3762
|
+
dataAlertId: object.id
|
|
3763
|
+
};
|
|
3764
|
+
return keyBuilder$_(luvio, keyParams);
|
|
3765
|
+
}
|
|
3766
|
+
function normalize$s(input, existing, path, luvio, store, timestamp) {
|
|
3767
|
+
return input;
|
|
3768
|
+
}
|
|
3769
|
+
const select$13 = function DataAlertRepresentationSelect() {
|
|
3770
|
+
return {
|
|
3771
|
+
kind: 'Fragment',
|
|
3772
|
+
version: VERSION$s,
|
|
3773
|
+
private: [],
|
|
3774
|
+
opaque: true
|
|
3775
|
+
};
|
|
3776
|
+
};
|
|
3777
|
+
function equals$s(existing, incoming) {
|
|
3778
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3779
|
+
return false;
|
|
3780
|
+
}
|
|
3781
|
+
return true;
|
|
3782
|
+
}
|
|
3783
|
+
const ingest$s = function DataAlertRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3784
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3785
|
+
const validateError = validate$G(input);
|
|
3786
|
+
if (validateError !== null) {
|
|
3787
|
+
throw validateError;
|
|
3788
|
+
}
|
|
3789
|
+
}
|
|
3790
|
+
const key = keyBuilderFromType$e(luvio, input);
|
|
3791
|
+
const ttlToUse = TTL$i;
|
|
3792
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$s, "UnifiedAnalytics", VERSION$s, RepresentationType$u, equals$s);
|
|
3793
|
+
return createLink(key);
|
|
3794
|
+
};
|
|
3795
|
+
function getTypeCacheKeys$s(rootKeySet, luvio, input, fullPathFactory) {
|
|
3796
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3797
|
+
const rootKey = keyBuilderFromType$e(luvio, input);
|
|
3798
|
+
rootKeySet.set(rootKey, {
|
|
3799
|
+
namespace: keyPrefix,
|
|
3800
|
+
representationName: RepresentationType$u,
|
|
3801
|
+
mergeable: false
|
|
3802
|
+
});
|
|
3803
|
+
}
|
|
3804
|
+
|
|
3805
|
+
function select$12(luvio, params) {
|
|
3806
|
+
return select$13();
|
|
3807
|
+
}
|
|
3808
|
+
function getResponseCacheKeys$I(storeKeyMap, luvio, resourceParams, response) {
|
|
3809
|
+
getTypeCacheKeys$s(storeKeyMap, luvio, response);
|
|
3810
|
+
}
|
|
3811
|
+
function ingestSuccess$C(luvio, resourceParams, response) {
|
|
3812
|
+
const { body } = response;
|
|
3813
|
+
const key = keyBuilderFromType$e(luvio, body);
|
|
3814
|
+
luvio.storeIngest(key, ingest$s, body);
|
|
3815
|
+
const snapshot = luvio.storeLookup({
|
|
3816
|
+
recordId: key,
|
|
3817
|
+
node: select$12(),
|
|
3818
|
+
variables: {},
|
|
3819
|
+
});
|
|
3820
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3821
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
3822
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3823
|
+
}
|
|
3824
|
+
}
|
|
3825
|
+
deepFreeze(snapshot.data);
|
|
3826
|
+
return snapshot;
|
|
3827
|
+
}
|
|
3828
|
+
function createResourceRequest$I(config) {
|
|
3829
|
+
const headers = {};
|
|
3830
|
+
return {
|
|
3831
|
+
baseUri: '/services/data/v63.0',
|
|
3832
|
+
basePath: '/tableau/dataAlerts',
|
|
3833
|
+
method: 'post',
|
|
3834
|
+
body: config.body,
|
|
3835
|
+
urlParams: {},
|
|
3836
|
+
queryParams: config.queryParams,
|
|
3837
|
+
headers,
|
|
3838
|
+
priority: 'normal',
|
|
3839
|
+
};
|
|
3840
|
+
}
|
|
3841
|
+
|
|
3842
|
+
var DiscriminatorValues$1;
|
|
3843
|
+
(function (DiscriminatorValues) {
|
|
3844
|
+
DiscriminatorValues["Metric"] = "Metric";
|
|
3845
|
+
})(DiscriminatorValues$1 || (DiscriminatorValues$1 = {}));
|
|
3846
|
+
function validate$F(obj, path = 'DataAlertContentInputRepresentation') {
|
|
3847
|
+
const v_error = (() => {
|
|
3848
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3849
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3850
|
+
}
|
|
3851
|
+
const obj_type = obj.type;
|
|
3852
|
+
const path_type = path + '.type';
|
|
3853
|
+
if (typeof obj_type !== 'string') {
|
|
3854
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3855
|
+
}
|
|
3856
|
+
})();
|
|
3857
|
+
return v_error === undefined ? null : v_error;
|
|
3858
|
+
}
|
|
3859
|
+
|
|
3860
|
+
var DiscriminatorValues;
|
|
3861
|
+
(function (DiscriminatorValues) {
|
|
3862
|
+
DiscriminatorValues["Daily"] = "Daily";
|
|
3863
|
+
DiscriminatorValues["Weekly"] = "Weekly";
|
|
3864
|
+
DiscriminatorValues["Cron"] = "Cron";
|
|
3865
|
+
})(DiscriminatorValues || (DiscriminatorValues = {}));
|
|
3866
|
+
function validate$E(obj, path = 'DataAlertScheduleInputRepresentation') {
|
|
3867
|
+
const v_error = (() => {
|
|
3868
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3869
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3870
|
+
}
|
|
3871
|
+
const obj_hoursOfDay = obj.hoursOfDay;
|
|
3872
|
+
const path_hoursOfDay = path + '.hoursOfDay';
|
|
3873
|
+
if (!ArrayIsArray(obj_hoursOfDay)) {
|
|
3874
|
+
return new TypeError('Expected "array" but received "' + typeof obj_hoursOfDay + '" (at "' + path_hoursOfDay + '")');
|
|
3875
|
+
}
|
|
3876
|
+
for (let i = 0; i < obj_hoursOfDay.length; i++) {
|
|
3877
|
+
const obj_hoursOfDay_item = obj_hoursOfDay[i];
|
|
3878
|
+
const path_hoursOfDay_item = path_hoursOfDay + '[' + i + ']';
|
|
3879
|
+
if (typeof obj_hoursOfDay_item !== 'number' || (typeof obj_hoursOfDay_item === 'number' && Math.floor(obj_hoursOfDay_item) !== obj_hoursOfDay_item)) {
|
|
3880
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_hoursOfDay_item + '" (at "' + path_hoursOfDay_item + '")');
|
|
3881
|
+
}
|
|
3882
|
+
}
|
|
3883
|
+
const obj_type = obj.type;
|
|
3884
|
+
const path_type = path + '.type';
|
|
3885
|
+
if (typeof obj_type !== 'string') {
|
|
3886
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3887
|
+
}
|
|
3888
|
+
})();
|
|
3889
|
+
return v_error === undefined ? null : v_error;
|
|
3890
|
+
}
|
|
3891
|
+
|
|
3892
|
+
const adapterName$I = 'createDataAlert';
|
|
3893
|
+
const createDataAlert_ConfigPropertyMetadata = [
|
|
3894
|
+
generateParamConfigMetadata('runNow', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
3895
|
+
generateParamConfigMetadata('analysisUtterance', true, 2 /* Body */, 0 /* String */),
|
|
3896
|
+
generateParamConfigMetadata('content', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3897
|
+
generateParamConfigMetadata('deliveryConfigurations', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3898
|
+
generateParamConfigMetadata('schedule', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3899
|
+
generateParamConfigMetadata('thresholds', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3900
|
+
generateParamConfigMetadata('utterance', true, 2 /* Body */, 0 /* String */),
|
|
3901
|
+
];
|
|
3902
|
+
const createDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$I, createDataAlert_ConfigPropertyMetadata);
|
|
3903
|
+
const createResourceParams$I = /*#__PURE__*/ createResourceParams$T(createDataAlert_ConfigPropertyMetadata);
|
|
3904
|
+
function typeCheckConfig$I(untrustedConfig) {
|
|
3905
|
+
const config = {};
|
|
3906
|
+
typeCheckConfig$T(untrustedConfig, config, createDataAlert_ConfigPropertyMetadata);
|
|
3907
|
+
const untrustedConfig_content = untrustedConfig.content;
|
|
3908
|
+
const referenceDataAlertContentInputRepresentationValidationError = validate$F(untrustedConfig_content);
|
|
3909
|
+
if (referenceDataAlertContentInputRepresentationValidationError === null) {
|
|
3910
|
+
config.content = untrustedConfig_content;
|
|
3911
|
+
}
|
|
3912
|
+
const untrustedConfig_deliveryConfigurations = untrustedConfig.deliveryConfigurations;
|
|
3913
|
+
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$L(untrustedConfig_deliveryConfigurations);
|
|
3914
|
+
if (referenceDataAlertDeliveryConfigurationInputRepresentationValidationError === null) {
|
|
3915
|
+
config.deliveryConfigurations = untrustedConfig_deliveryConfigurations;
|
|
3916
|
+
}
|
|
3917
|
+
const untrustedConfig_schedule = untrustedConfig.schedule;
|
|
3918
|
+
const referenceDataAlertScheduleInputRepresentationValidationError = validate$E(untrustedConfig_schedule);
|
|
3919
|
+
if (referenceDataAlertScheduleInputRepresentationValidationError === null) {
|
|
3920
|
+
config.schedule = untrustedConfig_schedule;
|
|
3921
|
+
}
|
|
3922
|
+
const untrustedConfig_thresholds = untrustedConfig.thresholds;
|
|
3923
|
+
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$H(untrustedConfig_thresholds);
|
|
3924
|
+
if (referenceDataAlertThresholdsInputRepresentationValidationError === null) {
|
|
3925
|
+
config.thresholds = untrustedConfig_thresholds;
|
|
3926
|
+
}
|
|
3927
|
+
return config;
|
|
3928
|
+
}
|
|
3929
|
+
function validateAdapterConfig$I(untrustedConfig, configPropertyNames) {
|
|
3930
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
3931
|
+
return null;
|
|
3932
|
+
}
|
|
3933
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3934
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
3935
|
+
}
|
|
3936
|
+
const config = typeCheckConfig$I(untrustedConfig);
|
|
3937
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3938
|
+
return null;
|
|
3939
|
+
}
|
|
3940
|
+
return config;
|
|
3941
|
+
}
|
|
3942
|
+
function buildNetworkSnapshot$I(luvio, config, options) {
|
|
3943
|
+
const resourceParams = createResourceParams$I(config);
|
|
3944
|
+
const request = createResourceRequest$I(resourceParams);
|
|
3945
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
3946
|
+
.then((response) => {
|
|
3947
|
+
return luvio.handleSuccessResponse(() => {
|
|
3948
|
+
const snapshot = ingestSuccess$C(luvio, resourceParams, response);
|
|
3949
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3950
|
+
}, () => {
|
|
3951
|
+
const cache = new StoreKeyMap();
|
|
3952
|
+
getResponseCacheKeys$I(cache, luvio, resourceParams, response.body);
|
|
3953
|
+
return cache;
|
|
3954
|
+
});
|
|
3955
|
+
}, (response) => {
|
|
3956
|
+
deepFreeze(response);
|
|
3957
|
+
throw response;
|
|
3958
|
+
});
|
|
3959
|
+
}
|
|
3960
|
+
const createDataAlertAdapterFactory = (luvio) => {
|
|
3961
|
+
return function createDataAlert(untrustedConfig) {
|
|
3962
|
+
const config = validateAdapterConfig$I(untrustedConfig, createDataAlert_ConfigPropertyNames);
|
|
3963
|
+
// Invalid or incomplete config
|
|
3964
|
+
if (config === null) {
|
|
3965
|
+
throw new Error('Invalid config for "createDataAlert"');
|
|
3966
|
+
}
|
|
3967
|
+
return buildNetworkSnapshot$I(luvio, config);
|
|
3968
|
+
};
|
|
3969
|
+
};
|
|
3970
|
+
|
|
3971
|
+
function select$11(luvio, params) {
|
|
3972
|
+
return select$13();
|
|
3973
|
+
}
|
|
3974
|
+
function getResponseCacheKeys$H(storeKeyMap, luvio, resourceParams, response) {
|
|
3975
|
+
getTypeCacheKeys$s(storeKeyMap, luvio, response);
|
|
3976
|
+
}
|
|
3977
|
+
function ingestSuccess$B(luvio, resourceParams, response) {
|
|
3978
|
+
const { body } = response;
|
|
3979
|
+
const key = keyBuilderFromType$e(luvio, body);
|
|
3980
|
+
luvio.storeIngest(key, ingest$s, body);
|
|
3981
|
+
const snapshot = luvio.storeLookup({
|
|
3982
|
+
recordId: key,
|
|
3983
|
+
node: select$11(),
|
|
3984
|
+
variables: {},
|
|
3985
|
+
});
|
|
3986
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3987
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
3988
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3989
|
+
}
|
|
3990
|
+
}
|
|
3991
|
+
deepFreeze(snapshot.data);
|
|
3992
|
+
return snapshot;
|
|
3993
|
+
}
|
|
3994
|
+
function createResourceRequest$H(config) {
|
|
3995
|
+
const headers = {};
|
|
3996
|
+
return {
|
|
3997
|
+
baseUri: '/services/data/v63.0',
|
|
3998
|
+
basePath: '/tableau/dataAlerts/' + config.urlParams.dataAlertId + '',
|
|
3999
|
+
method: 'put',
|
|
4000
|
+
body: config.body,
|
|
4001
|
+
urlParams: config.urlParams,
|
|
4002
|
+
queryParams: config.queryParams,
|
|
4003
|
+
headers,
|
|
4004
|
+
priority: 'normal',
|
|
4005
|
+
};
|
|
4006
|
+
}
|
|
4007
|
+
|
|
4008
|
+
const adapterName$H = 'updateDataAlert';
|
|
4009
|
+
const updateDataAlert_ConfigPropertyMetadata = [
|
|
4010
|
+
generateParamConfigMetadata('dataAlertId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4011
|
+
generateParamConfigMetadata('runNow', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
4012
|
+
generateParamConfigMetadata('analysisUtterance', true, 2 /* Body */, 0 /* String */),
|
|
4013
|
+
generateParamConfigMetadata('content', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4014
|
+
generateParamConfigMetadata('deliveryConfigurations', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4015
|
+
generateParamConfigMetadata('schedule', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4016
|
+
generateParamConfigMetadata('thresholds', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4017
|
+
generateParamConfigMetadata('utterance', true, 2 /* Body */, 0 /* String */),
|
|
4018
|
+
];
|
|
4019
|
+
const updateDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$H, updateDataAlert_ConfigPropertyMetadata);
|
|
4020
|
+
const createResourceParams$H = /*#__PURE__*/ createResourceParams$T(updateDataAlert_ConfigPropertyMetadata);
|
|
4021
|
+
function typeCheckConfig$H(untrustedConfig) {
|
|
4022
|
+
const config = {};
|
|
4023
|
+
typeCheckConfig$T(untrustedConfig, config, updateDataAlert_ConfigPropertyMetadata);
|
|
4024
|
+
const untrustedConfig_content = untrustedConfig.content;
|
|
4025
|
+
const referenceDataAlertContentInputRepresentationValidationError = validate$F(untrustedConfig_content);
|
|
4026
|
+
if (referenceDataAlertContentInputRepresentationValidationError === null) {
|
|
4027
|
+
config.content = untrustedConfig_content;
|
|
4028
|
+
}
|
|
4029
|
+
const untrustedConfig_deliveryConfigurations = untrustedConfig.deliveryConfigurations;
|
|
4030
|
+
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$L(untrustedConfig_deliveryConfigurations);
|
|
4031
|
+
if (referenceDataAlertDeliveryConfigurationInputRepresentationValidationError === null) {
|
|
4032
|
+
config.deliveryConfigurations = untrustedConfig_deliveryConfigurations;
|
|
4033
|
+
}
|
|
4034
|
+
const untrustedConfig_schedule = untrustedConfig.schedule;
|
|
4035
|
+
const referenceDataAlertScheduleInputRepresentationValidationError = validate$E(untrustedConfig_schedule);
|
|
4036
|
+
if (referenceDataAlertScheduleInputRepresentationValidationError === null) {
|
|
4037
|
+
config.schedule = untrustedConfig_schedule;
|
|
4038
|
+
}
|
|
4039
|
+
const untrustedConfig_thresholds = untrustedConfig.thresholds;
|
|
4040
|
+
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$H(untrustedConfig_thresholds);
|
|
4041
|
+
if (referenceDataAlertThresholdsInputRepresentationValidationError === null) {
|
|
4042
|
+
config.thresholds = untrustedConfig_thresholds;
|
|
4043
|
+
}
|
|
4044
|
+
return config;
|
|
4045
|
+
}
|
|
4046
|
+
function validateAdapterConfig$H(untrustedConfig, configPropertyNames) {
|
|
4047
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4048
|
+
return null;
|
|
4049
|
+
}
|
|
4050
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4051
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4052
|
+
}
|
|
4053
|
+
const config = typeCheckConfig$H(untrustedConfig);
|
|
4054
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4055
|
+
return null;
|
|
4056
|
+
}
|
|
4057
|
+
return config;
|
|
4058
|
+
}
|
|
4059
|
+
function buildNetworkSnapshot$H(luvio, config, options) {
|
|
4060
|
+
const resourceParams = createResourceParams$H(config);
|
|
4061
|
+
const request = createResourceRequest$H(resourceParams);
|
|
4062
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4063
|
+
.then((response) => {
|
|
4064
|
+
return luvio.handleSuccessResponse(() => {
|
|
4065
|
+
const snapshot = ingestSuccess$B(luvio, resourceParams, response);
|
|
4066
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4067
|
+
}, () => {
|
|
4068
|
+
const cache = new StoreKeyMap();
|
|
4069
|
+
getResponseCacheKeys$H(cache, luvio, resourceParams, response.body);
|
|
4070
|
+
return cache;
|
|
4071
|
+
});
|
|
4072
|
+
}, (response) => {
|
|
4073
|
+
deepFreeze(response);
|
|
4074
|
+
throw response;
|
|
4075
|
+
});
|
|
4076
|
+
}
|
|
4077
|
+
const updateDataAlertAdapterFactory = (luvio) => {
|
|
4078
|
+
return function updateDataAlert(untrustedConfig) {
|
|
4079
|
+
const config = validateAdapterConfig$H(untrustedConfig, updateDataAlert_ConfigPropertyNames);
|
|
4080
|
+
// Invalid or incomplete config
|
|
4081
|
+
if (config === null) {
|
|
4082
|
+
throw new Error('Invalid config for "updateDataAlert"');
|
|
4083
|
+
}
|
|
4084
|
+
return buildNetworkSnapshot$H(luvio, config);
|
|
3600
4085
|
};
|
|
3601
4086
|
};
|
|
3602
4087
|
|
|
3603
4088
|
function validate$D(obj, path = 'AnalyticsUserRepresentation') {
|
|
3604
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
4089
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$S(obj, path);
|
|
3605
4090
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
3606
4091
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
3607
4092
|
}
|
|
@@ -4223,7 +4708,7 @@ function keyBuilderFromType$d(luvio, object) {
|
|
|
4223
4708
|
function normalize$r(input, existing, path, luvio, store, timestamp) {
|
|
4224
4709
|
return input;
|
|
4225
4710
|
}
|
|
4226
|
-
const select
|
|
4711
|
+
const select$10 = function DataAssetRequestRepresentationSelect() {
|
|
4227
4712
|
return {
|
|
4228
4713
|
kind: 'Fragment',
|
|
4229
4714
|
version: VERSION$r,
|
|
@@ -4288,7 +4773,7 @@ const RepresentationType$s = 'DataAssetRequestCollectionRepresentation';
|
|
|
4288
4773
|
function normalize$q(input, existing, path, luvio, store, timestamp) {
|
|
4289
4774
|
return input;
|
|
4290
4775
|
}
|
|
4291
|
-
const select
|
|
4776
|
+
const select$$ = function DataAssetRequestCollectionRepresentationSelect() {
|
|
4292
4777
|
return {
|
|
4293
4778
|
kind: 'Fragment',
|
|
4294
4779
|
version: VERSION$q,
|
|
@@ -4324,22 +4809,22 @@ function getTypeCacheKeys$q(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4324
4809
|
});
|
|
4325
4810
|
}
|
|
4326
4811
|
|
|
4327
|
-
function select$
|
|
4328
|
-
return select
|
|
4812
|
+
function select$_(luvio, params) {
|
|
4813
|
+
return select$$();
|
|
4329
4814
|
}
|
|
4330
4815
|
function keyBuilder$Y(luvio, params) {
|
|
4331
4816
|
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 + ')';
|
|
4332
4817
|
}
|
|
4333
|
-
function getResponseCacheKeys$
|
|
4818
|
+
function getResponseCacheKeys$G(storeKeyMap, luvio, resourceParams, response) {
|
|
4334
4819
|
getTypeCacheKeys$q(storeKeyMap, luvio, response, () => keyBuilder$Y(luvio, resourceParams));
|
|
4335
4820
|
}
|
|
4336
|
-
function ingestSuccess$
|
|
4821
|
+
function ingestSuccess$A(luvio, resourceParams, response, snapshotRefresh) {
|
|
4337
4822
|
const { body } = response;
|
|
4338
4823
|
const key = keyBuilder$Y(luvio, resourceParams);
|
|
4339
4824
|
luvio.storeIngest(key, ingest$q, body);
|
|
4340
4825
|
const snapshot = luvio.storeLookup({
|
|
4341
4826
|
recordId: key,
|
|
4342
|
-
node: select$
|
|
4827
|
+
node: select$_(),
|
|
4343
4828
|
variables: {},
|
|
4344
4829
|
}, snapshotRefresh);
|
|
4345
4830
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4362,7 +4847,7 @@ function ingestError$j(luvio, params, error, snapshotRefresh) {
|
|
|
4362
4847
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4363
4848
|
return errorSnapshot;
|
|
4364
4849
|
}
|
|
4365
|
-
function createResourceRequest$
|
|
4850
|
+
function createResourceRequest$G(config) {
|
|
4366
4851
|
const headers = {};
|
|
4367
4852
|
return {
|
|
4368
4853
|
baseUri: '/services/data/v63.0',
|
|
@@ -4376,7 +4861,7 @@ function createResourceRequest$F(config) {
|
|
|
4376
4861
|
};
|
|
4377
4862
|
}
|
|
4378
4863
|
|
|
4379
|
-
const adapterName$
|
|
4864
|
+
const adapterName$G = 'getDataAssetRequests';
|
|
4380
4865
|
const getDataAssetRequests_ConfigPropertyMetadata = [
|
|
4381
4866
|
generateParamConfigMetadata('assetId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4382
4867
|
generateParamConfigMetadata('assetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -4390,56 +4875,56 @@ const getDataAssetRequests_ConfigPropertyMetadata = [
|
|
|
4390
4875
|
generateParamConfigMetadata('status', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4391
4876
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4392
4877
|
];
|
|
4393
|
-
const getDataAssetRequests_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4394
|
-
const createResourceParams$
|
|
4878
|
+
const getDataAssetRequests_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$G, getDataAssetRequests_ConfigPropertyMetadata);
|
|
4879
|
+
const createResourceParams$G = /*#__PURE__*/ createResourceParams$T(getDataAssetRequests_ConfigPropertyMetadata);
|
|
4395
4880
|
function keyBuilder$X(luvio, config) {
|
|
4396
|
-
const resourceParams = createResourceParams$
|
|
4881
|
+
const resourceParams = createResourceParams$G(config);
|
|
4397
4882
|
return keyBuilder$Y(luvio, resourceParams);
|
|
4398
4883
|
}
|
|
4399
|
-
function typeCheckConfig$
|
|
4884
|
+
function typeCheckConfig$G(untrustedConfig) {
|
|
4400
4885
|
const config = {};
|
|
4401
|
-
typeCheckConfig$
|
|
4886
|
+
typeCheckConfig$T(untrustedConfig, config, getDataAssetRequests_ConfigPropertyMetadata);
|
|
4402
4887
|
return config;
|
|
4403
4888
|
}
|
|
4404
|
-
function validateAdapterConfig$
|
|
4889
|
+
function validateAdapterConfig$G(untrustedConfig, configPropertyNames) {
|
|
4405
4890
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4406
4891
|
return null;
|
|
4407
4892
|
}
|
|
4408
4893
|
if (process.env.NODE_ENV !== 'production') {
|
|
4409
4894
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4410
4895
|
}
|
|
4411
|
-
const config = typeCheckConfig$
|
|
4896
|
+
const config = typeCheckConfig$G(untrustedConfig);
|
|
4412
4897
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4413
4898
|
return null;
|
|
4414
4899
|
}
|
|
4415
4900
|
return config;
|
|
4416
4901
|
}
|
|
4417
4902
|
function adapterFragment$j(luvio, config) {
|
|
4418
|
-
createResourceParams$
|
|
4419
|
-
return select$
|
|
4903
|
+
createResourceParams$G(config);
|
|
4904
|
+
return select$_();
|
|
4420
4905
|
}
|
|
4421
4906
|
function onFetchResponseSuccess$j(luvio, config, resourceParams, response) {
|
|
4422
|
-
const snapshot = ingestSuccess$
|
|
4907
|
+
const snapshot = ingestSuccess$A(luvio, resourceParams, response, {
|
|
4423
4908
|
config,
|
|
4424
|
-
resolve: () => buildNetworkSnapshot$
|
|
4909
|
+
resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions)
|
|
4425
4910
|
});
|
|
4426
4911
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4427
4912
|
}
|
|
4428
4913
|
function onFetchResponseError$j(luvio, config, resourceParams, response) {
|
|
4429
4914
|
const snapshot = ingestError$j(luvio, resourceParams, response, {
|
|
4430
4915
|
config,
|
|
4431
|
-
resolve: () => buildNetworkSnapshot$
|
|
4916
|
+
resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions)
|
|
4432
4917
|
});
|
|
4433
4918
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4434
4919
|
}
|
|
4435
|
-
function buildNetworkSnapshot$
|
|
4436
|
-
const resourceParams = createResourceParams$
|
|
4437
|
-
const request = createResourceRequest$
|
|
4920
|
+
function buildNetworkSnapshot$G(luvio, config, options) {
|
|
4921
|
+
const resourceParams = createResourceParams$G(config);
|
|
4922
|
+
const request = createResourceRequest$G(resourceParams);
|
|
4438
4923
|
return luvio.dispatchResourceRequest(request, options)
|
|
4439
4924
|
.then((response) => {
|
|
4440
4925
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$j(luvio, config, resourceParams, response), () => {
|
|
4441
4926
|
const cache = new StoreKeyMap();
|
|
4442
|
-
getResponseCacheKeys$
|
|
4927
|
+
getResponseCacheKeys$G(cache, luvio, resourceParams, response.body);
|
|
4443
4928
|
return cache;
|
|
4444
4929
|
});
|
|
4445
4930
|
}, (response) => {
|
|
@@ -4447,7 +4932,7 @@ function buildNetworkSnapshot$F(luvio, config, options) {
|
|
|
4447
4932
|
});
|
|
4448
4933
|
}
|
|
4449
4934
|
function buildNetworkSnapshotCachePolicy$j(context, coercedAdapterRequestContext) {
|
|
4450
|
-
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
4935
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$G, undefined, false);
|
|
4451
4936
|
}
|
|
4452
4937
|
function buildCachedSnapshotCachePolicy$j(context, storeLookup) {
|
|
4453
4938
|
const { luvio, config } = context;
|
|
@@ -4458,12 +4943,12 @@ function buildCachedSnapshotCachePolicy$j(context, storeLookup) {
|
|
|
4458
4943
|
};
|
|
4459
4944
|
const cacheSnapshot = storeLookup(selector, {
|
|
4460
4945
|
config,
|
|
4461
|
-
resolve: () => buildNetworkSnapshot$
|
|
4946
|
+
resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions)
|
|
4462
4947
|
});
|
|
4463
4948
|
return cacheSnapshot;
|
|
4464
4949
|
}
|
|
4465
4950
|
const getDataAssetRequestsAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAssetRequests(untrustedConfig, requestContext) {
|
|
4466
|
-
const config = validateAdapterConfig$
|
|
4951
|
+
const config = validateAdapterConfig$G(untrustedConfig, getDataAssetRequests_ConfigPropertyNames);
|
|
4467
4952
|
// Invalid or incomplete config
|
|
4468
4953
|
if (config === null) {
|
|
4469
4954
|
return null;
|
|
@@ -4472,19 +4957,19 @@ const getDataAssetRequestsAdapterFactory = (luvio) => function UnifiedAnalytics_
|
|
|
4472
4957
|
buildCachedSnapshotCachePolicy$j, buildNetworkSnapshotCachePolicy$j);
|
|
4473
4958
|
};
|
|
4474
4959
|
|
|
4475
|
-
function select$
|
|
4476
|
-
return select
|
|
4960
|
+
function select$Z(luvio, params) {
|
|
4961
|
+
return select$10();
|
|
4477
4962
|
}
|
|
4478
|
-
function getResponseCacheKeys$
|
|
4963
|
+
function getResponseCacheKeys$F(storeKeyMap, luvio, resourceParams, response) {
|
|
4479
4964
|
getTypeCacheKeys$r(storeKeyMap, luvio, response);
|
|
4480
4965
|
}
|
|
4481
|
-
function ingestSuccess$
|
|
4966
|
+
function ingestSuccess$z(luvio, resourceParams, response) {
|
|
4482
4967
|
const { body } = response;
|
|
4483
4968
|
const key = keyBuilderFromType$d(luvio, body);
|
|
4484
4969
|
luvio.storeIngest(key, ingest$r, body);
|
|
4485
4970
|
const snapshot = luvio.storeLookup({
|
|
4486
4971
|
recordId: key,
|
|
4487
|
-
node: select$
|
|
4972
|
+
node: select$Z(),
|
|
4488
4973
|
variables: {},
|
|
4489
4974
|
});
|
|
4490
4975
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4495,7 +4980,7 @@ function ingestSuccess$y(luvio, resourceParams, response) {
|
|
|
4495
4980
|
deepFreeze(snapshot.data);
|
|
4496
4981
|
return snapshot;
|
|
4497
4982
|
}
|
|
4498
|
-
function createResourceRequest$
|
|
4983
|
+
function createResourceRequest$F(config) {
|
|
4499
4984
|
const headers = {};
|
|
4500
4985
|
return {
|
|
4501
4986
|
baseUri: '/services/data/v63.0',
|
|
@@ -4509,7 +4994,7 @@ function createResourceRequest$E(config) {
|
|
|
4509
4994
|
};
|
|
4510
4995
|
}
|
|
4511
4996
|
|
|
4512
|
-
const adapterName$
|
|
4997
|
+
const adapterName$F = 'createDataAssetRequest';
|
|
4513
4998
|
const createDataAssetRequest_ConfigPropertyMetadata = [
|
|
4514
4999
|
generateParamConfigMetadata('assetId', false, 2 /* Body */, 0 /* String */),
|
|
4515
5000
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
@@ -4522,37 +5007,37 @@ const createDataAssetRequest_ConfigPropertyMetadata = [
|
|
|
4522
5007
|
generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
|
|
4523
5008
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 2 /* Body */, 0 /* String */),
|
|
4524
5009
|
];
|
|
4525
|
-
const createDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4526
|
-
const createResourceParams$
|
|
4527
|
-
function typeCheckConfig$
|
|
5010
|
+
const createDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$F, createDataAssetRequest_ConfigPropertyMetadata);
|
|
5011
|
+
const createResourceParams$F = /*#__PURE__*/ createResourceParams$T(createDataAssetRequest_ConfigPropertyMetadata);
|
|
5012
|
+
function typeCheckConfig$F(untrustedConfig) {
|
|
4528
5013
|
const config = {};
|
|
4529
|
-
typeCheckConfig$
|
|
5014
|
+
typeCheckConfig$T(untrustedConfig, config, createDataAssetRequest_ConfigPropertyMetadata);
|
|
4530
5015
|
return config;
|
|
4531
5016
|
}
|
|
4532
|
-
function validateAdapterConfig$
|
|
5017
|
+
function validateAdapterConfig$F(untrustedConfig, configPropertyNames) {
|
|
4533
5018
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4534
5019
|
return null;
|
|
4535
5020
|
}
|
|
4536
5021
|
if (process.env.NODE_ENV !== 'production') {
|
|
4537
5022
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4538
5023
|
}
|
|
4539
|
-
const config = typeCheckConfig$
|
|
5024
|
+
const config = typeCheckConfig$F(untrustedConfig);
|
|
4540
5025
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4541
5026
|
return null;
|
|
4542
5027
|
}
|
|
4543
5028
|
return config;
|
|
4544
5029
|
}
|
|
4545
|
-
function buildNetworkSnapshot$
|
|
4546
|
-
const resourceParams = createResourceParams$
|
|
4547
|
-
const request = createResourceRequest$
|
|
5030
|
+
function buildNetworkSnapshot$F(luvio, config, options) {
|
|
5031
|
+
const resourceParams = createResourceParams$F(config);
|
|
5032
|
+
const request = createResourceRequest$F(resourceParams);
|
|
4548
5033
|
return luvio.dispatchResourceRequest(request, options)
|
|
4549
5034
|
.then((response) => {
|
|
4550
5035
|
return luvio.handleSuccessResponse(() => {
|
|
4551
|
-
const snapshot = ingestSuccess$
|
|
5036
|
+
const snapshot = ingestSuccess$z(luvio, resourceParams, response);
|
|
4552
5037
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4553
5038
|
}, () => {
|
|
4554
5039
|
const cache = new StoreKeyMap();
|
|
4555
|
-
getResponseCacheKeys$
|
|
5040
|
+
getResponseCacheKeys$F(cache, luvio, resourceParams, response.body);
|
|
4556
5041
|
return cache;
|
|
4557
5042
|
});
|
|
4558
5043
|
}, (response) => {
|
|
@@ -4562,12 +5047,12 @@ function buildNetworkSnapshot$E(luvio, config, options) {
|
|
|
4562
5047
|
}
|
|
4563
5048
|
const createDataAssetRequestAdapterFactory = (luvio) => {
|
|
4564
5049
|
return function createDataAssetRequest(untrustedConfig) {
|
|
4565
|
-
const config = validateAdapterConfig$
|
|
5050
|
+
const config = validateAdapterConfig$F(untrustedConfig, createDataAssetRequest_ConfigPropertyNames);
|
|
4566
5051
|
// Invalid or incomplete config
|
|
4567
5052
|
if (config === null) {
|
|
4568
5053
|
throw new Error('Invalid config for "createDataAssetRequest"');
|
|
4569
5054
|
}
|
|
4570
|
-
return buildNetworkSnapshot$
|
|
5055
|
+
return buildNetworkSnapshot$F(luvio, config);
|
|
4571
5056
|
};
|
|
4572
5057
|
};
|
|
4573
5058
|
|
|
@@ -4590,7 +5075,7 @@ const RepresentationType$r = 'DataAssetRequestCountRepresentation';
|
|
|
4590
5075
|
function normalize$p(input, existing, path, luvio, store, timestamp) {
|
|
4591
5076
|
return input;
|
|
4592
5077
|
}
|
|
4593
|
-
const select$
|
|
5078
|
+
const select$Y = function DataAssetRequestCountRepresentationSelect() {
|
|
4594
5079
|
return {
|
|
4595
5080
|
kind: 'Fragment',
|
|
4596
5081
|
version: VERSION$p,
|
|
@@ -4626,22 +5111,22 @@ function getTypeCacheKeys$p(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4626
5111
|
});
|
|
4627
5112
|
}
|
|
4628
5113
|
|
|
4629
|
-
function select$
|
|
4630
|
-
return select$
|
|
5114
|
+
function select$X(luvio, params) {
|
|
5115
|
+
return select$Y();
|
|
4631
5116
|
}
|
|
4632
5117
|
function keyBuilder$W(luvio, params) {
|
|
4633
5118
|
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 + ')';
|
|
4634
5119
|
}
|
|
4635
|
-
function getResponseCacheKeys$
|
|
5120
|
+
function getResponseCacheKeys$E(storeKeyMap, luvio, resourceParams, response) {
|
|
4636
5121
|
getTypeCacheKeys$p(storeKeyMap, luvio, response, () => keyBuilder$W(luvio, resourceParams));
|
|
4637
5122
|
}
|
|
4638
|
-
function ingestSuccess$
|
|
5123
|
+
function ingestSuccess$y(luvio, resourceParams, response, snapshotRefresh) {
|
|
4639
5124
|
const { body } = response;
|
|
4640
5125
|
const key = keyBuilder$W(luvio, resourceParams);
|
|
4641
5126
|
luvio.storeIngest(key, ingest$p, body);
|
|
4642
5127
|
const snapshot = luvio.storeLookup({
|
|
4643
5128
|
recordId: key,
|
|
4644
|
-
node: select$
|
|
5129
|
+
node: select$X(),
|
|
4645
5130
|
variables: {},
|
|
4646
5131
|
}, snapshotRefresh);
|
|
4647
5132
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4664,7 +5149,7 @@ function ingestError$i(luvio, params, error, snapshotRefresh) {
|
|
|
4664
5149
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4665
5150
|
return errorSnapshot;
|
|
4666
5151
|
}
|
|
4667
|
-
function createResourceRequest$
|
|
5152
|
+
function createResourceRequest$E(config) {
|
|
4668
5153
|
const headers = {};
|
|
4669
5154
|
return {
|
|
4670
5155
|
baseUri: '/services/data/v63.0',
|
|
@@ -4678,7 +5163,7 @@ function createResourceRequest$D(config) {
|
|
|
4678
5163
|
};
|
|
4679
5164
|
}
|
|
4680
5165
|
|
|
4681
|
-
const adapterName$
|
|
5166
|
+
const adapterName$E = 'getDataAssetRequestsCount';
|
|
4682
5167
|
const getDataAssetRequestsCount_ConfigPropertyMetadata = [
|
|
4683
5168
|
generateParamConfigMetadata('assetId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4684
5169
|
generateParamConfigMetadata('assetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -4688,56 +5173,56 @@ const getDataAssetRequestsCount_ConfigPropertyMetadata = [
|
|
|
4688
5173
|
generateParamConfigMetadata('taskType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4689
5174
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4690
5175
|
];
|
|
4691
|
-
const getDataAssetRequestsCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4692
|
-
const createResourceParams$
|
|
5176
|
+
const getDataAssetRequestsCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$E, getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
5177
|
+
const createResourceParams$E = /*#__PURE__*/ createResourceParams$T(getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
4693
5178
|
function keyBuilder$V(luvio, config) {
|
|
4694
|
-
const resourceParams = createResourceParams$
|
|
5179
|
+
const resourceParams = createResourceParams$E(config);
|
|
4695
5180
|
return keyBuilder$W(luvio, resourceParams);
|
|
4696
5181
|
}
|
|
4697
|
-
function typeCheckConfig$
|
|
5182
|
+
function typeCheckConfig$E(untrustedConfig) {
|
|
4698
5183
|
const config = {};
|
|
4699
|
-
typeCheckConfig$
|
|
5184
|
+
typeCheckConfig$T(untrustedConfig, config, getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
4700
5185
|
return config;
|
|
4701
5186
|
}
|
|
4702
|
-
function validateAdapterConfig$
|
|
5187
|
+
function validateAdapterConfig$E(untrustedConfig, configPropertyNames) {
|
|
4703
5188
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4704
5189
|
return null;
|
|
4705
5190
|
}
|
|
4706
5191
|
if (process.env.NODE_ENV !== 'production') {
|
|
4707
5192
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4708
5193
|
}
|
|
4709
|
-
const config = typeCheckConfig$
|
|
5194
|
+
const config = typeCheckConfig$E(untrustedConfig);
|
|
4710
5195
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4711
5196
|
return null;
|
|
4712
5197
|
}
|
|
4713
5198
|
return config;
|
|
4714
5199
|
}
|
|
4715
5200
|
function adapterFragment$i(luvio, config) {
|
|
4716
|
-
createResourceParams$
|
|
4717
|
-
return select$
|
|
5201
|
+
createResourceParams$E(config);
|
|
5202
|
+
return select$X();
|
|
4718
5203
|
}
|
|
4719
5204
|
function onFetchResponseSuccess$i(luvio, config, resourceParams, response) {
|
|
4720
|
-
const snapshot = ingestSuccess$
|
|
5205
|
+
const snapshot = ingestSuccess$y(luvio, resourceParams, response, {
|
|
4721
5206
|
config,
|
|
4722
|
-
resolve: () => buildNetworkSnapshot$
|
|
5207
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
|
|
4723
5208
|
});
|
|
4724
5209
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4725
5210
|
}
|
|
4726
5211
|
function onFetchResponseError$i(luvio, config, resourceParams, response) {
|
|
4727
5212
|
const snapshot = ingestError$i(luvio, resourceParams, response, {
|
|
4728
5213
|
config,
|
|
4729
|
-
resolve: () => buildNetworkSnapshot$
|
|
5214
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
|
|
4730
5215
|
});
|
|
4731
5216
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4732
5217
|
}
|
|
4733
|
-
function buildNetworkSnapshot$
|
|
4734
|
-
const resourceParams = createResourceParams$
|
|
4735
|
-
const request = createResourceRequest$
|
|
5218
|
+
function buildNetworkSnapshot$E(luvio, config, options) {
|
|
5219
|
+
const resourceParams = createResourceParams$E(config);
|
|
5220
|
+
const request = createResourceRequest$E(resourceParams);
|
|
4736
5221
|
return luvio.dispatchResourceRequest(request, options)
|
|
4737
5222
|
.then((response) => {
|
|
4738
5223
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$i(luvio, config, resourceParams, response), () => {
|
|
4739
5224
|
const cache = new StoreKeyMap();
|
|
4740
|
-
getResponseCacheKeys$
|
|
5225
|
+
getResponseCacheKeys$E(cache, luvio, resourceParams, response.body);
|
|
4741
5226
|
return cache;
|
|
4742
5227
|
});
|
|
4743
5228
|
}, (response) => {
|
|
@@ -4745,7 +5230,7 @@ function buildNetworkSnapshot$D(luvio, config, options) {
|
|
|
4745
5230
|
});
|
|
4746
5231
|
}
|
|
4747
5232
|
function buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext) {
|
|
4748
|
-
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
5233
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$E, undefined, false);
|
|
4749
5234
|
}
|
|
4750
5235
|
function buildCachedSnapshotCachePolicy$i(context, storeLookup) {
|
|
4751
5236
|
const { luvio, config } = context;
|
|
@@ -4756,12 +5241,12 @@ function buildCachedSnapshotCachePolicy$i(context, storeLookup) {
|
|
|
4756
5241
|
};
|
|
4757
5242
|
const cacheSnapshot = storeLookup(selector, {
|
|
4758
5243
|
config,
|
|
4759
|
-
resolve: () => buildNetworkSnapshot$
|
|
5244
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
|
|
4760
5245
|
});
|
|
4761
5246
|
return cacheSnapshot;
|
|
4762
5247
|
}
|
|
4763
5248
|
const getDataAssetRequestsCountAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAssetRequestsCount(untrustedConfig, requestContext) {
|
|
4764
|
-
const config = validateAdapterConfig$
|
|
5249
|
+
const config = validateAdapterConfig$E(untrustedConfig, getDataAssetRequestsCount_ConfigPropertyNames);
|
|
4765
5250
|
// Invalid or incomplete config
|
|
4766
5251
|
if (config === null) {
|
|
4767
5252
|
return null;
|
|
@@ -4770,24 +5255,24 @@ const getDataAssetRequestsCountAdapterFactory = (luvio) => function UnifiedAnaly
|
|
|
4770
5255
|
buildCachedSnapshotCachePolicy$i, buildNetworkSnapshotCachePolicy$i);
|
|
4771
5256
|
};
|
|
4772
5257
|
|
|
4773
|
-
function select$
|
|
4774
|
-
return select
|
|
5258
|
+
function select$W(luvio, params) {
|
|
5259
|
+
return select$10();
|
|
4775
5260
|
}
|
|
4776
5261
|
function keyBuilder$U(luvio, params) {
|
|
4777
5262
|
return keyBuilder$Z(luvio, {
|
|
4778
5263
|
dataAssetRequestId: params.urlParams.requestIdOrApiName
|
|
4779
5264
|
});
|
|
4780
5265
|
}
|
|
4781
|
-
function getResponseCacheKeys$
|
|
5266
|
+
function getResponseCacheKeys$D(storeKeyMap, luvio, resourceParams, response) {
|
|
4782
5267
|
getTypeCacheKeys$r(storeKeyMap, luvio, response);
|
|
4783
5268
|
}
|
|
4784
|
-
function ingestSuccess$
|
|
5269
|
+
function ingestSuccess$x(luvio, resourceParams, response, snapshotRefresh) {
|
|
4785
5270
|
const { body } = response;
|
|
4786
5271
|
const key = keyBuilder$U(luvio, resourceParams);
|
|
4787
5272
|
luvio.storeIngest(key, ingest$r, body);
|
|
4788
5273
|
const snapshot = luvio.storeLookup({
|
|
4789
5274
|
recordId: key,
|
|
4790
|
-
node: select$
|
|
5275
|
+
node: select$W(),
|
|
4791
5276
|
variables: {},
|
|
4792
5277
|
}, snapshotRefresh);
|
|
4793
5278
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4810,7 +5295,7 @@ function ingestError$h(luvio, params, error, snapshotRefresh) {
|
|
|
4810
5295
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4811
5296
|
return errorSnapshot;
|
|
4812
5297
|
}
|
|
4813
|
-
function createResourceRequest$
|
|
5298
|
+
function createResourceRequest$D(config) {
|
|
4814
5299
|
const headers = {};
|
|
4815
5300
|
return {
|
|
4816
5301
|
baseUri: '/services/data/v63.0',
|
|
@@ -4824,60 +5309,60 @@ function createResourceRequest$C(config) {
|
|
|
4824
5309
|
};
|
|
4825
5310
|
}
|
|
4826
5311
|
|
|
4827
|
-
const adapterName$
|
|
5312
|
+
const adapterName$D = 'getDataAssetRequestByIdOrApiName';
|
|
4828
5313
|
const getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata = [
|
|
4829
5314
|
generateParamConfigMetadata('requestIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4830
5315
|
];
|
|
4831
|
-
const getDataAssetRequestByIdOrApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4832
|
-
const createResourceParams$
|
|
5316
|
+
const getDataAssetRequestByIdOrApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$D, getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
5317
|
+
const createResourceParams$D = /*#__PURE__*/ createResourceParams$T(getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
4833
5318
|
function keyBuilder$T(luvio, config) {
|
|
4834
|
-
const resourceParams = createResourceParams$
|
|
5319
|
+
const resourceParams = createResourceParams$D(config);
|
|
4835
5320
|
return keyBuilder$U(luvio, resourceParams);
|
|
4836
5321
|
}
|
|
4837
|
-
function typeCheckConfig$
|
|
5322
|
+
function typeCheckConfig$D(untrustedConfig) {
|
|
4838
5323
|
const config = {};
|
|
4839
|
-
typeCheckConfig$
|
|
5324
|
+
typeCheckConfig$T(untrustedConfig, config, getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
4840
5325
|
return config;
|
|
4841
5326
|
}
|
|
4842
|
-
function validateAdapterConfig$
|
|
5327
|
+
function validateAdapterConfig$D(untrustedConfig, configPropertyNames) {
|
|
4843
5328
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4844
5329
|
return null;
|
|
4845
5330
|
}
|
|
4846
5331
|
if (process.env.NODE_ENV !== 'production') {
|
|
4847
5332
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4848
5333
|
}
|
|
4849
|
-
const config = typeCheckConfig$
|
|
5334
|
+
const config = typeCheckConfig$D(untrustedConfig);
|
|
4850
5335
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4851
5336
|
return null;
|
|
4852
5337
|
}
|
|
4853
5338
|
return config;
|
|
4854
5339
|
}
|
|
4855
5340
|
function adapterFragment$h(luvio, config) {
|
|
4856
|
-
createResourceParams$
|
|
4857
|
-
return select$
|
|
5341
|
+
createResourceParams$D(config);
|
|
5342
|
+
return select$W();
|
|
4858
5343
|
}
|
|
4859
5344
|
function onFetchResponseSuccess$h(luvio, config, resourceParams, response) {
|
|
4860
|
-
const snapshot = ingestSuccess$
|
|
5345
|
+
const snapshot = ingestSuccess$x(luvio, resourceParams, response, {
|
|
4861
5346
|
config,
|
|
4862
|
-
resolve: () => buildNetworkSnapshot$
|
|
5347
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
|
|
4863
5348
|
});
|
|
4864
5349
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4865
5350
|
}
|
|
4866
5351
|
function onFetchResponseError$h(luvio, config, resourceParams, response) {
|
|
4867
5352
|
const snapshot = ingestError$h(luvio, resourceParams, response, {
|
|
4868
5353
|
config,
|
|
4869
|
-
resolve: () => buildNetworkSnapshot$
|
|
5354
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
|
|
4870
5355
|
});
|
|
4871
5356
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4872
5357
|
}
|
|
4873
|
-
function buildNetworkSnapshot$
|
|
4874
|
-
const resourceParams = createResourceParams$
|
|
4875
|
-
const request = createResourceRequest$
|
|
5358
|
+
function buildNetworkSnapshot$D(luvio, config, options) {
|
|
5359
|
+
const resourceParams = createResourceParams$D(config);
|
|
5360
|
+
const request = createResourceRequest$D(resourceParams);
|
|
4876
5361
|
return luvio.dispatchResourceRequest(request, options)
|
|
4877
5362
|
.then((response) => {
|
|
4878
5363
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$h(luvio, config, resourceParams, response), () => {
|
|
4879
5364
|
const cache = new StoreKeyMap();
|
|
4880
|
-
getResponseCacheKeys$
|
|
5365
|
+
getResponseCacheKeys$D(cache, luvio, resourceParams, response.body);
|
|
4881
5366
|
return cache;
|
|
4882
5367
|
});
|
|
4883
5368
|
}, (response) => {
|
|
@@ -4885,7 +5370,7 @@ function buildNetworkSnapshot$C(luvio, config, options) {
|
|
|
4885
5370
|
});
|
|
4886
5371
|
}
|
|
4887
5372
|
function buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext) {
|
|
4888
|
-
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
5373
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$D, undefined, false);
|
|
4889
5374
|
}
|
|
4890
5375
|
function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
|
|
4891
5376
|
const { luvio, config } = context;
|
|
@@ -4896,12 +5381,12 @@ function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
|
|
|
4896
5381
|
};
|
|
4897
5382
|
const cacheSnapshot = storeLookup(selector, {
|
|
4898
5383
|
config,
|
|
4899
|
-
resolve: () => buildNetworkSnapshot$
|
|
5384
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
|
|
4900
5385
|
});
|
|
4901
5386
|
return cacheSnapshot;
|
|
4902
5387
|
}
|
|
4903
5388
|
const getDataAssetRequestByIdOrApiNameAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAssetRequestByIdOrApiName(untrustedConfig, requestContext) {
|
|
4904
|
-
const config = validateAdapterConfig$
|
|
5389
|
+
const config = validateAdapterConfig$D(untrustedConfig, getDataAssetRequestByIdOrApiName_ConfigPropertyNames);
|
|
4905
5390
|
// Invalid or incomplete config
|
|
4906
5391
|
if (config === null) {
|
|
4907
5392
|
return null;
|
|
@@ -4910,19 +5395,19 @@ const getDataAssetRequestByIdOrApiNameAdapterFactory = (luvio) => function Unifi
|
|
|
4910
5395
|
buildCachedSnapshotCachePolicy$h, buildNetworkSnapshotCachePolicy$h);
|
|
4911
5396
|
};
|
|
4912
5397
|
|
|
4913
|
-
function select$
|
|
4914
|
-
return select
|
|
5398
|
+
function select$V(luvio, params) {
|
|
5399
|
+
return select$10();
|
|
4915
5400
|
}
|
|
4916
|
-
function getResponseCacheKeys$
|
|
5401
|
+
function getResponseCacheKeys$C(storeKeyMap, luvio, resourceParams, response) {
|
|
4917
5402
|
getTypeCacheKeys$r(storeKeyMap, luvio, response);
|
|
4918
5403
|
}
|
|
4919
|
-
function ingestSuccess$
|
|
5404
|
+
function ingestSuccess$w(luvio, resourceParams, response) {
|
|
4920
5405
|
const { body } = response;
|
|
4921
5406
|
const key = keyBuilderFromType$d(luvio, body);
|
|
4922
5407
|
luvio.storeIngest(key, ingest$r, body);
|
|
4923
5408
|
const snapshot = luvio.storeLookup({
|
|
4924
5409
|
recordId: key,
|
|
4925
|
-
node: select$
|
|
5410
|
+
node: select$V(),
|
|
4926
5411
|
variables: {},
|
|
4927
5412
|
});
|
|
4928
5413
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4933,7 +5418,7 @@ function ingestSuccess$v(luvio, resourceParams, response) {
|
|
|
4933
5418
|
deepFreeze(snapshot.data);
|
|
4934
5419
|
return snapshot;
|
|
4935
5420
|
}
|
|
4936
|
-
function createResourceRequest$
|
|
5421
|
+
function createResourceRequest$C(config) {
|
|
4937
5422
|
const headers = {};
|
|
4938
5423
|
return {
|
|
4939
5424
|
baseUri: '/services/data/v63.0',
|
|
@@ -4947,7 +5432,7 @@ function createResourceRequest$B(config) {
|
|
|
4947
5432
|
};
|
|
4948
5433
|
}
|
|
4949
5434
|
|
|
4950
|
-
const adapterName$
|
|
5435
|
+
const adapterName$C = 'updateDataAssetRequest';
|
|
4951
5436
|
const updateDataAssetRequest_ConfigPropertyMetadata = [
|
|
4952
5437
|
generateParamConfigMetadata('requestIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4953
5438
|
generateParamConfigMetadata('assetId', false, 2 /* Body */, 0 /* String */),
|
|
@@ -4961,37 +5446,37 @@ const updateDataAssetRequest_ConfigPropertyMetadata = [
|
|
|
4961
5446
|
generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
|
|
4962
5447
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 2 /* Body */, 0 /* String */),
|
|
4963
5448
|
];
|
|
4964
|
-
const updateDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4965
|
-
const createResourceParams$
|
|
4966
|
-
function typeCheckConfig$
|
|
5449
|
+
const updateDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$C, updateDataAssetRequest_ConfigPropertyMetadata);
|
|
5450
|
+
const createResourceParams$C = /*#__PURE__*/ createResourceParams$T(updateDataAssetRequest_ConfigPropertyMetadata);
|
|
5451
|
+
function typeCheckConfig$C(untrustedConfig) {
|
|
4967
5452
|
const config = {};
|
|
4968
|
-
typeCheckConfig$
|
|
5453
|
+
typeCheckConfig$T(untrustedConfig, config, updateDataAssetRequest_ConfigPropertyMetadata);
|
|
4969
5454
|
return config;
|
|
4970
5455
|
}
|
|
4971
|
-
function validateAdapterConfig$
|
|
5456
|
+
function validateAdapterConfig$C(untrustedConfig, configPropertyNames) {
|
|
4972
5457
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4973
5458
|
return null;
|
|
4974
5459
|
}
|
|
4975
5460
|
if (process.env.NODE_ENV !== 'production') {
|
|
4976
5461
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4977
5462
|
}
|
|
4978
|
-
const config = typeCheckConfig$
|
|
5463
|
+
const config = typeCheckConfig$C(untrustedConfig);
|
|
4979
5464
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4980
5465
|
return null;
|
|
4981
5466
|
}
|
|
4982
5467
|
return config;
|
|
4983
5468
|
}
|
|
4984
|
-
function buildNetworkSnapshot$
|
|
4985
|
-
const resourceParams = createResourceParams$
|
|
4986
|
-
const request = createResourceRequest$
|
|
5469
|
+
function buildNetworkSnapshot$C(luvio, config, options) {
|
|
5470
|
+
const resourceParams = createResourceParams$C(config);
|
|
5471
|
+
const request = createResourceRequest$C(resourceParams);
|
|
4987
5472
|
return luvio.dispatchResourceRequest(request, options)
|
|
4988
5473
|
.then((response) => {
|
|
4989
5474
|
return luvio.handleSuccessResponse(() => {
|
|
4990
|
-
const snapshot = ingestSuccess$
|
|
5475
|
+
const snapshot = ingestSuccess$w(luvio, resourceParams, response);
|
|
4991
5476
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4992
5477
|
}, () => {
|
|
4993
5478
|
const cache = new StoreKeyMap();
|
|
4994
|
-
getResponseCacheKeys$
|
|
5479
|
+
getResponseCacheKeys$C(cache, luvio, resourceParams, response.body);
|
|
4995
5480
|
return cache;
|
|
4996
5481
|
});
|
|
4997
5482
|
}, (response) => {
|
|
@@ -5001,12 +5486,12 @@ function buildNetworkSnapshot$B(luvio, config, options) {
|
|
|
5001
5486
|
}
|
|
5002
5487
|
const updateDataAssetRequestAdapterFactory = (luvio) => {
|
|
5003
5488
|
return function updateDataAssetRequest(untrustedConfig) {
|
|
5004
|
-
const config = validateAdapterConfig$
|
|
5489
|
+
const config = validateAdapterConfig$C(untrustedConfig, updateDataAssetRequest_ConfigPropertyNames);
|
|
5005
5490
|
// Invalid or incomplete config
|
|
5006
5491
|
if (config === null) {
|
|
5007
5492
|
throw new Error('Invalid config for "updateDataAssetRequest"');
|
|
5008
5493
|
}
|
|
5009
|
-
return buildNetworkSnapshot$
|
|
5494
|
+
return buildNetworkSnapshot$C(luvio, config);
|
|
5010
5495
|
};
|
|
5011
5496
|
};
|
|
5012
5497
|
|
|
@@ -5134,7 +5619,7 @@ const RepresentationType$q = 'DataAssetDependentCollectionRepresentation';
|
|
|
5134
5619
|
function normalize$o(input, existing, path, luvio, store, timestamp) {
|
|
5135
5620
|
return input;
|
|
5136
5621
|
}
|
|
5137
|
-
const select$
|
|
5622
|
+
const select$U = function DataAssetDependentCollectionRepresentationSelect() {
|
|
5138
5623
|
return {
|
|
5139
5624
|
kind: 'Fragment',
|
|
5140
5625
|
version: VERSION$o,
|
|
@@ -5170,22 +5655,22 @@ function getTypeCacheKeys$o(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5170
5655
|
});
|
|
5171
5656
|
}
|
|
5172
5657
|
|
|
5173
|
-
function select$
|
|
5174
|
-
return select$
|
|
5658
|
+
function select$T(luvio, params) {
|
|
5659
|
+
return select$U();
|
|
5175
5660
|
}
|
|
5176
5661
|
function keyBuilder$S(luvio, params) {
|
|
5177
5662
|
return keyPrefix + '::DataAssetDependentCollectionRepresentation:(' + 'assetId:' + params.urlParams.assetId + ')';
|
|
5178
5663
|
}
|
|
5179
|
-
function getResponseCacheKeys$
|
|
5664
|
+
function getResponseCacheKeys$B(storeKeyMap, luvio, resourceParams, response) {
|
|
5180
5665
|
getTypeCacheKeys$o(storeKeyMap, luvio, response, () => keyBuilder$S(luvio, resourceParams));
|
|
5181
5666
|
}
|
|
5182
|
-
function ingestSuccess$
|
|
5667
|
+
function ingestSuccess$v(luvio, resourceParams, response, snapshotRefresh) {
|
|
5183
5668
|
const { body } = response;
|
|
5184
5669
|
const key = keyBuilder$S(luvio, resourceParams);
|
|
5185
5670
|
luvio.storeIngest(key, ingest$o, body);
|
|
5186
5671
|
const snapshot = luvio.storeLookup({
|
|
5187
5672
|
recordId: key,
|
|
5188
|
-
node: select$
|
|
5673
|
+
node: select$T(),
|
|
5189
5674
|
variables: {},
|
|
5190
5675
|
}, snapshotRefresh);
|
|
5191
5676
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5208,7 +5693,7 @@ function ingestError$g(luvio, params, error, snapshotRefresh) {
|
|
|
5208
5693
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5209
5694
|
return errorSnapshot;
|
|
5210
5695
|
}
|
|
5211
|
-
function createResourceRequest$
|
|
5696
|
+
function createResourceRequest$B(config) {
|
|
5212
5697
|
const headers = {};
|
|
5213
5698
|
return {
|
|
5214
5699
|
baseUri: '/services/data/v63.0',
|
|
@@ -5222,60 +5707,60 @@ function createResourceRequest$A(config) {
|
|
|
5222
5707
|
};
|
|
5223
5708
|
}
|
|
5224
5709
|
|
|
5225
|
-
const adapterName$
|
|
5710
|
+
const adapterName$B = 'getDataAssetDependencies';
|
|
5226
5711
|
const getDataAssetDependencies_ConfigPropertyMetadata = [
|
|
5227
5712
|
generateParamConfigMetadata('assetId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5228
5713
|
];
|
|
5229
|
-
const getDataAssetDependencies_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5230
|
-
const createResourceParams$
|
|
5714
|
+
const getDataAssetDependencies_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$B, getDataAssetDependencies_ConfigPropertyMetadata);
|
|
5715
|
+
const createResourceParams$B = /*#__PURE__*/ createResourceParams$T(getDataAssetDependencies_ConfigPropertyMetadata);
|
|
5231
5716
|
function keyBuilder$R(luvio, config) {
|
|
5232
|
-
const resourceParams = createResourceParams$
|
|
5717
|
+
const resourceParams = createResourceParams$B(config);
|
|
5233
5718
|
return keyBuilder$S(luvio, resourceParams);
|
|
5234
5719
|
}
|
|
5235
|
-
function typeCheckConfig$
|
|
5720
|
+
function typeCheckConfig$B(untrustedConfig) {
|
|
5236
5721
|
const config = {};
|
|
5237
|
-
typeCheckConfig$
|
|
5722
|
+
typeCheckConfig$T(untrustedConfig, config, getDataAssetDependencies_ConfigPropertyMetadata);
|
|
5238
5723
|
return config;
|
|
5239
5724
|
}
|
|
5240
|
-
function validateAdapterConfig$
|
|
5725
|
+
function validateAdapterConfig$B(untrustedConfig, configPropertyNames) {
|
|
5241
5726
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5242
5727
|
return null;
|
|
5243
5728
|
}
|
|
5244
5729
|
if (process.env.NODE_ENV !== 'production') {
|
|
5245
5730
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5246
5731
|
}
|
|
5247
|
-
const config = typeCheckConfig$
|
|
5732
|
+
const config = typeCheckConfig$B(untrustedConfig);
|
|
5248
5733
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5249
5734
|
return null;
|
|
5250
5735
|
}
|
|
5251
5736
|
return config;
|
|
5252
5737
|
}
|
|
5253
5738
|
function adapterFragment$g(luvio, config) {
|
|
5254
|
-
createResourceParams$
|
|
5255
|
-
return select$
|
|
5739
|
+
createResourceParams$B(config);
|
|
5740
|
+
return select$T();
|
|
5256
5741
|
}
|
|
5257
5742
|
function onFetchResponseSuccess$g(luvio, config, resourceParams, response) {
|
|
5258
|
-
const snapshot = ingestSuccess$
|
|
5743
|
+
const snapshot = ingestSuccess$v(luvio, resourceParams, response, {
|
|
5259
5744
|
config,
|
|
5260
|
-
resolve: () => buildNetworkSnapshot$
|
|
5745
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
5261
5746
|
});
|
|
5262
5747
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5263
5748
|
}
|
|
5264
5749
|
function onFetchResponseError$g(luvio, config, resourceParams, response) {
|
|
5265
5750
|
const snapshot = ingestError$g(luvio, resourceParams, response, {
|
|
5266
5751
|
config,
|
|
5267
|
-
resolve: () => buildNetworkSnapshot$
|
|
5752
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
5268
5753
|
});
|
|
5269
5754
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5270
5755
|
}
|
|
5271
|
-
function buildNetworkSnapshot$
|
|
5272
|
-
const resourceParams = createResourceParams$
|
|
5273
|
-
const request = createResourceRequest$
|
|
5756
|
+
function buildNetworkSnapshot$B(luvio, config, options) {
|
|
5757
|
+
const resourceParams = createResourceParams$B(config);
|
|
5758
|
+
const request = createResourceRequest$B(resourceParams);
|
|
5274
5759
|
return luvio.dispatchResourceRequest(request, options)
|
|
5275
5760
|
.then((response) => {
|
|
5276
5761
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$g(luvio, config, resourceParams, response), () => {
|
|
5277
5762
|
const cache = new StoreKeyMap();
|
|
5278
|
-
getResponseCacheKeys$
|
|
5763
|
+
getResponseCacheKeys$B(cache, luvio, resourceParams, response.body);
|
|
5279
5764
|
return cache;
|
|
5280
5765
|
});
|
|
5281
5766
|
}, (response) => {
|
|
@@ -5283,7 +5768,7 @@ function buildNetworkSnapshot$A(luvio, config, options) {
|
|
|
5283
5768
|
});
|
|
5284
5769
|
}
|
|
5285
5770
|
function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
|
|
5286
|
-
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
5771
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$B, undefined, false);
|
|
5287
5772
|
}
|
|
5288
5773
|
function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
5289
5774
|
const { luvio, config } = context;
|
|
@@ -5294,12 +5779,12 @@ function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
|
5294
5779
|
};
|
|
5295
5780
|
const cacheSnapshot = storeLookup(selector, {
|
|
5296
5781
|
config,
|
|
5297
|
-
resolve: () => buildNetworkSnapshot$
|
|
5782
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
5298
5783
|
});
|
|
5299
5784
|
return cacheSnapshot;
|
|
5300
5785
|
}
|
|
5301
5786
|
const getDataAssetDependenciesAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAssetDependencies(untrustedConfig, requestContext) {
|
|
5302
|
-
const config = validateAdapterConfig$
|
|
5787
|
+
const config = validateAdapterConfig$B(untrustedConfig, getDataAssetDependencies_ConfigPropertyNames);
|
|
5303
5788
|
// Invalid or incomplete config
|
|
5304
5789
|
if (config === null) {
|
|
5305
5790
|
return null;
|
|
@@ -5447,7 +5932,7 @@ function keyBuilderFromType$c(luvio, object) {
|
|
|
5447
5932
|
function normalize$n(input, existing, path, luvio, store, timestamp) {
|
|
5448
5933
|
return input;
|
|
5449
5934
|
}
|
|
5450
|
-
const select$
|
|
5935
|
+
const select$S = function FollowerAssetRepresentationSelect() {
|
|
5451
5936
|
return {
|
|
5452
5937
|
kind: 'Fragment',
|
|
5453
5938
|
version: VERSION$n,
|
|
@@ -5483,8 +5968,107 @@ function getTypeCacheKeys$n(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5483
5968
|
});
|
|
5484
5969
|
}
|
|
5485
5970
|
|
|
5971
|
+
function select$R(luvio, params) {
|
|
5972
|
+
return select$S();
|
|
5973
|
+
}
|
|
5974
|
+
function getResponseCacheKeys$A(storeKeyMap, luvio, resourceParams, response) {
|
|
5975
|
+
getTypeCacheKeys$n(storeKeyMap, luvio, response);
|
|
5976
|
+
}
|
|
5977
|
+
function ingestSuccess$u(luvio, resourceParams, response) {
|
|
5978
|
+
const { body } = response;
|
|
5979
|
+
const key = keyBuilderFromType$c(luvio, body);
|
|
5980
|
+
luvio.storeIngest(key, ingest$n, body);
|
|
5981
|
+
const snapshot = luvio.storeLookup({
|
|
5982
|
+
recordId: key,
|
|
5983
|
+
node: select$R(),
|
|
5984
|
+
variables: {},
|
|
5985
|
+
});
|
|
5986
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5987
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
5988
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
5989
|
+
}
|
|
5990
|
+
}
|
|
5991
|
+
deepFreeze(snapshot.data);
|
|
5992
|
+
return snapshot;
|
|
5993
|
+
}
|
|
5994
|
+
function createResourceRequest$A(config) {
|
|
5995
|
+
const headers = {};
|
|
5996
|
+
return {
|
|
5997
|
+
baseUri: '/services/data/v63.0',
|
|
5998
|
+
basePath: '/tableau/follow/followers/' + config.urlParams.followerId + '/follows',
|
|
5999
|
+
method: 'post',
|
|
6000
|
+
body: config.body,
|
|
6001
|
+
urlParams: config.urlParams,
|
|
6002
|
+
queryParams: {},
|
|
6003
|
+
headers,
|
|
6004
|
+
priority: 'normal',
|
|
6005
|
+
};
|
|
6006
|
+
}
|
|
6007
|
+
|
|
6008
|
+
const adapterName$A = 'follow';
|
|
6009
|
+
const follow_ConfigPropertyMetadata = [
|
|
6010
|
+
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6011
|
+
generateParamConfigMetadata('assetId', true, 2 /* Body */, 0 /* String */),
|
|
6012
|
+
generateParamConfigMetadata('assetType', true, 2 /* Body */, 0 /* String */),
|
|
6013
|
+
generateParamConfigMetadata('followerType', true, 2 /* Body */, 0 /* String */),
|
|
6014
|
+
generateParamConfigMetadata('followedTimeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
6015
|
+
];
|
|
6016
|
+
const follow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$A, follow_ConfigPropertyMetadata);
|
|
6017
|
+
const createResourceParams$A = /*#__PURE__*/ createResourceParams$T(follow_ConfigPropertyMetadata);
|
|
6018
|
+
function typeCheckConfig$A(untrustedConfig) {
|
|
6019
|
+
const config = {};
|
|
6020
|
+
typeCheckConfig$T(untrustedConfig, config, follow_ConfigPropertyMetadata);
|
|
6021
|
+
const untrustedConfig_followedTimeRange = untrustedConfig.followedTimeRange;
|
|
6022
|
+
const referenceFollowedTimeRangeRepresentationValidationError = validate$w(untrustedConfig_followedTimeRange);
|
|
6023
|
+
if (referenceFollowedTimeRangeRepresentationValidationError === null) {
|
|
6024
|
+
config.followedTimeRange = untrustedConfig_followedTimeRange;
|
|
6025
|
+
}
|
|
6026
|
+
return config;
|
|
6027
|
+
}
|
|
6028
|
+
function validateAdapterConfig$A(untrustedConfig, configPropertyNames) {
|
|
6029
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
6030
|
+
return null;
|
|
6031
|
+
}
|
|
6032
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6033
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
6034
|
+
}
|
|
6035
|
+
const config = typeCheckConfig$A(untrustedConfig);
|
|
6036
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6037
|
+
return null;
|
|
6038
|
+
}
|
|
6039
|
+
return config;
|
|
6040
|
+
}
|
|
6041
|
+
function buildNetworkSnapshot$A(luvio, config, options) {
|
|
6042
|
+
const resourceParams = createResourceParams$A(config);
|
|
6043
|
+
const request = createResourceRequest$A(resourceParams);
|
|
6044
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
6045
|
+
.then((response) => {
|
|
6046
|
+
return luvio.handleSuccessResponse(() => {
|
|
6047
|
+
const snapshot = ingestSuccess$u(luvio, resourceParams, response);
|
|
6048
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6049
|
+
}, () => {
|
|
6050
|
+
const cache = new StoreKeyMap();
|
|
6051
|
+
getResponseCacheKeys$A(cache, luvio, resourceParams, response.body);
|
|
6052
|
+
return cache;
|
|
6053
|
+
});
|
|
6054
|
+
}, (response) => {
|
|
6055
|
+
deepFreeze(response);
|
|
6056
|
+
throw response;
|
|
6057
|
+
});
|
|
6058
|
+
}
|
|
6059
|
+
const followAdapterFactory = (luvio) => {
|
|
6060
|
+
return function follow(untrustedConfig) {
|
|
6061
|
+
const config = validateAdapterConfig$A(untrustedConfig, follow_ConfigPropertyNames);
|
|
6062
|
+
// Invalid or incomplete config
|
|
6063
|
+
if (config === null) {
|
|
6064
|
+
throw new Error('Invalid config for "follow"');
|
|
6065
|
+
}
|
|
6066
|
+
return buildNetworkSnapshot$A(luvio, config);
|
|
6067
|
+
};
|
|
6068
|
+
};
|
|
6069
|
+
|
|
5486
6070
|
function select$Q(luvio, params) {
|
|
5487
|
-
return select$
|
|
6071
|
+
return select$S();
|
|
5488
6072
|
}
|
|
5489
6073
|
function getResponseCacheKeys$z(storeKeyMap, luvio, resourceParams, response) {
|
|
5490
6074
|
getTypeCacheKeys$n(storeKeyMap, luvio, response);
|
|
@@ -5511,7 +6095,7 @@ function createResourceRequest$z(config) {
|
|
|
5511
6095
|
return {
|
|
5512
6096
|
baseUri: '/services/data/v63.0',
|
|
5513
6097
|
basePath: '/tableau/follow/followers/' + config.urlParams.followerId + '/follows',
|
|
5514
|
-
method: '
|
|
6098
|
+
method: 'patch',
|
|
5515
6099
|
body: config.body,
|
|
5516
6100
|
urlParams: config.urlParams,
|
|
5517
6101
|
queryParams: {},
|
|
@@ -5520,24 +6104,27 @@ function createResourceRequest$z(config) {
|
|
|
5520
6104
|
};
|
|
5521
6105
|
}
|
|
5522
6106
|
|
|
5523
|
-
const adapterName$z = '
|
|
5524
|
-
const
|
|
6107
|
+
const adapterName$z = 'updateFollowedAsset';
|
|
6108
|
+
const updateFollowedAsset_ConfigPropertyMetadata = [
|
|
5525
6109
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5526
6110
|
generateParamConfigMetadata('assetId', true, 2 /* Body */, 0 /* String */),
|
|
5527
|
-
generateParamConfigMetadata('assetType',
|
|
5528
|
-
generateParamConfigMetadata('followerType',
|
|
6111
|
+
generateParamConfigMetadata('assetType', false, 2 /* Body */, 0 /* String */),
|
|
6112
|
+
generateParamConfigMetadata('followerType', false, 2 /* Body */, 0 /* String */),
|
|
5529
6113
|
generateParamConfigMetadata('followedTimeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5530
6114
|
];
|
|
5531
|
-
const
|
|
5532
|
-
const createResourceParams$z = /*#__PURE__*/ createResourceParams$
|
|
6115
|
+
const updateFollowedAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$z, updateFollowedAsset_ConfigPropertyMetadata);
|
|
6116
|
+
const createResourceParams$z = /*#__PURE__*/ createResourceParams$T(updateFollowedAsset_ConfigPropertyMetadata);
|
|
5533
6117
|
function typeCheckConfig$z(untrustedConfig) {
|
|
5534
6118
|
const config = {};
|
|
5535
|
-
typeCheckConfig$
|
|
6119
|
+
typeCheckConfig$T(untrustedConfig, config, updateFollowedAsset_ConfigPropertyMetadata);
|
|
5536
6120
|
const untrustedConfig_followedTimeRange = untrustedConfig.followedTimeRange;
|
|
5537
6121
|
const referenceFollowedTimeRangeRepresentationValidationError = validate$w(untrustedConfig_followedTimeRange);
|
|
5538
6122
|
if (referenceFollowedTimeRangeRepresentationValidationError === null) {
|
|
5539
6123
|
config.followedTimeRange = untrustedConfig_followedTimeRange;
|
|
5540
6124
|
}
|
|
6125
|
+
if (untrustedConfig_followedTimeRange === null) {
|
|
6126
|
+
config.followedTimeRange = untrustedConfig_followedTimeRange;
|
|
6127
|
+
}
|
|
5541
6128
|
return config;
|
|
5542
6129
|
}
|
|
5543
6130
|
function validateAdapterConfig$z(untrustedConfig, configPropertyNames) {
|
|
@@ -5571,12 +6158,12 @@ function buildNetworkSnapshot$z(luvio, config, options) {
|
|
|
5571
6158
|
throw response;
|
|
5572
6159
|
});
|
|
5573
6160
|
}
|
|
5574
|
-
const
|
|
5575
|
-
return function
|
|
5576
|
-
const config = validateAdapterConfig$z(untrustedConfig,
|
|
6161
|
+
const updateFollowedAssetAdapterFactory = (luvio) => {
|
|
6162
|
+
return function updateFollowedAsset(untrustedConfig) {
|
|
6163
|
+
const config = validateAdapterConfig$z(untrustedConfig, updateFollowedAsset_ConfigPropertyNames);
|
|
5577
6164
|
// Invalid or incomplete config
|
|
5578
6165
|
if (config === null) {
|
|
5579
|
-
throw new Error('Invalid config for "
|
|
6166
|
+
throw new Error('Invalid config for "updateFollowedAsset"');
|
|
5580
6167
|
}
|
|
5581
6168
|
return buildNetworkSnapshot$z(luvio, config);
|
|
5582
6169
|
};
|
|
@@ -5714,10 +6301,10 @@ const unfollow_ConfigPropertyMetadata = [
|
|
|
5714
6301
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5715
6302
|
];
|
|
5716
6303
|
const unfollow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$y, unfollow_ConfigPropertyMetadata);
|
|
5717
|
-
const createResourceParams$y = /*#__PURE__*/ createResourceParams$
|
|
6304
|
+
const createResourceParams$y = /*#__PURE__*/ createResourceParams$T(unfollow_ConfigPropertyMetadata);
|
|
5718
6305
|
function typeCheckConfig$y(untrustedConfig) {
|
|
5719
6306
|
const config = {};
|
|
5720
|
-
typeCheckConfig$
|
|
6307
|
+
typeCheckConfig$T(untrustedConfig, config, unfollow_ConfigPropertyMetadata);
|
|
5721
6308
|
return config;
|
|
5722
6309
|
}
|
|
5723
6310
|
function validateAdapterConfig$y(untrustedConfig, configPropertyNames) {
|
|
@@ -5888,14 +6475,14 @@ const getFollowers_ConfigPropertyMetadata = [
|
|
|
5888
6475
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5889
6476
|
];
|
|
5890
6477
|
const getFollowers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$x, getFollowers_ConfigPropertyMetadata);
|
|
5891
|
-
const createResourceParams$x = /*#__PURE__*/ createResourceParams$
|
|
6478
|
+
const createResourceParams$x = /*#__PURE__*/ createResourceParams$T(getFollowers_ConfigPropertyMetadata);
|
|
5892
6479
|
function keyBuilder$M(luvio, config) {
|
|
5893
6480
|
const resourceParams = createResourceParams$x(config);
|
|
5894
6481
|
return keyBuilder$N(luvio, resourceParams);
|
|
5895
6482
|
}
|
|
5896
6483
|
function typeCheckConfig$x(untrustedConfig) {
|
|
5897
6484
|
const config = {};
|
|
5898
|
-
typeCheckConfig$
|
|
6485
|
+
typeCheckConfig$T(untrustedConfig, config, getFollowers_ConfigPropertyMetadata);
|
|
5899
6486
|
return config;
|
|
5900
6487
|
}
|
|
5901
6488
|
function validateAdapterConfig$x(untrustedConfig, configPropertyNames) {
|
|
@@ -6094,14 +6681,14 @@ const getFollowedAssets_ConfigPropertyMetadata = [
|
|
|
6094
6681
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
6095
6682
|
];
|
|
6096
6683
|
const getFollowedAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$w, getFollowedAssets_ConfigPropertyMetadata);
|
|
6097
|
-
const createResourceParams$w = /*#__PURE__*/ createResourceParams$
|
|
6684
|
+
const createResourceParams$w = /*#__PURE__*/ createResourceParams$T(getFollowedAssets_ConfigPropertyMetadata);
|
|
6098
6685
|
function keyBuilder$K(luvio, config) {
|
|
6099
6686
|
const resourceParams = createResourceParams$w(config);
|
|
6100
6687
|
return keyBuilder$L(luvio, resourceParams);
|
|
6101
6688
|
}
|
|
6102
6689
|
function typeCheckConfig$w(untrustedConfig) {
|
|
6103
6690
|
const config = {};
|
|
6104
|
-
typeCheckConfig$
|
|
6691
|
+
typeCheckConfig$T(untrustedConfig, config, getFollowedAssets_ConfigPropertyMetadata);
|
|
6105
6692
|
return config;
|
|
6106
6693
|
}
|
|
6107
6694
|
function validateAdapterConfig$w(untrustedConfig, configPropertyNames) {
|
|
@@ -6288,14 +6875,14 @@ const getUniqueFollowerCount_ConfigPropertyMetadata = [
|
|
|
6288
6875
|
generateParamConfigMetadata('followedAssetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6289
6876
|
];
|
|
6290
6877
|
const getUniqueFollowerCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$v, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
6291
|
-
const createResourceParams$v = /*#__PURE__*/ createResourceParams$
|
|
6878
|
+
const createResourceParams$v = /*#__PURE__*/ createResourceParams$T(getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
6292
6879
|
function keyBuilder$I(luvio, config) {
|
|
6293
6880
|
const resourceParams = createResourceParams$v(config);
|
|
6294
6881
|
return keyBuilder$J(luvio, resourceParams);
|
|
6295
6882
|
}
|
|
6296
6883
|
function typeCheckConfig$v(untrustedConfig) {
|
|
6297
6884
|
const config = {};
|
|
6298
|
-
typeCheckConfig$
|
|
6885
|
+
typeCheckConfig$T(untrustedConfig, config, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
6299
6886
|
return config;
|
|
6300
6887
|
}
|
|
6301
6888
|
function validateAdapterConfig$v(untrustedConfig, configPropertyNames) {
|
|
@@ -6485,7 +7072,7 @@ const createLoglines_ConfigPropertyMetadata = [
|
|
|
6485
7072
|
generateParamConfigMetadata('loglines', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
6486
7073
|
];
|
|
6487
7074
|
const createLoglines_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$u, createLoglines_ConfigPropertyMetadata);
|
|
6488
|
-
const createResourceParams$u = /*#__PURE__*/ createResourceParams$
|
|
7075
|
+
const createResourceParams$u = /*#__PURE__*/ createResourceParams$T(createLoglines_ConfigPropertyMetadata);
|
|
6489
7076
|
function typeCheckConfig$u(untrustedConfig) {
|
|
6490
7077
|
const config = {};
|
|
6491
7078
|
const untrustedConfig_loglines = untrustedConfig.loglines;
|
|
@@ -6698,7 +7285,7 @@ function createResourceRequest$t(config) {
|
|
|
6698
7285
|
const adapterName$t = 'getOrg';
|
|
6699
7286
|
const getOrg_ConfigPropertyMetadata = [];
|
|
6700
7287
|
const getOrg_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, getOrg_ConfigPropertyMetadata);
|
|
6701
|
-
const createResourceParams$t = /*#__PURE__*/ createResourceParams$
|
|
7288
|
+
const createResourceParams$t = /*#__PURE__*/ createResourceParams$T(getOrg_ConfigPropertyMetadata);
|
|
6702
7289
|
function keyBuilder$F(luvio, config) {
|
|
6703
7290
|
createResourceParams$t(config);
|
|
6704
7291
|
return keyBuilder$G();
|
|
@@ -6921,10 +7508,10 @@ const deleteAllShares_ConfigPropertyMetadata = [
|
|
|
6921
7508
|
generateParamConfigMetadata('recordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6922
7509
|
];
|
|
6923
7510
|
const deleteAllShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$s, deleteAllShares_ConfigPropertyMetadata);
|
|
6924
|
-
const createResourceParams$s = /*#__PURE__*/ createResourceParams$
|
|
7511
|
+
const createResourceParams$s = /*#__PURE__*/ createResourceParams$T(deleteAllShares_ConfigPropertyMetadata);
|
|
6925
7512
|
function typeCheckConfig$s(untrustedConfig) {
|
|
6926
7513
|
const config = {};
|
|
6927
|
-
typeCheckConfig$
|
|
7514
|
+
typeCheckConfig$T(untrustedConfig, config, deleteAllShares_ConfigPropertyMetadata);
|
|
6928
7515
|
return config;
|
|
6929
7516
|
}
|
|
6930
7517
|
function validateAdapterConfig$s(untrustedConfig, configPropertyNames) {
|
|
@@ -7031,14 +7618,14 @@ const getShares_ConfigPropertyMetadata = [
|
|
|
7031
7618
|
generateParamConfigMetadata('userOrGroupId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7032
7619
|
];
|
|
7033
7620
|
const getShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$r, getShares_ConfigPropertyMetadata);
|
|
7034
|
-
const createResourceParams$r = /*#__PURE__*/ createResourceParams$
|
|
7621
|
+
const createResourceParams$r = /*#__PURE__*/ createResourceParams$T(getShares_ConfigPropertyMetadata);
|
|
7035
7622
|
function keyBuilder$A(luvio, config) {
|
|
7036
7623
|
const resourceParams = createResourceParams$r(config);
|
|
7037
7624
|
return keyBuilder$B(luvio, resourceParams);
|
|
7038
7625
|
}
|
|
7039
7626
|
function typeCheckConfig$r(untrustedConfig) {
|
|
7040
7627
|
const config = {};
|
|
7041
|
-
typeCheckConfig$
|
|
7628
|
+
typeCheckConfig$T(untrustedConfig, config, getShares_ConfigPropertyMetadata);
|
|
7042
7629
|
return config;
|
|
7043
7630
|
}
|
|
7044
7631
|
function validateAdapterConfig$r(untrustedConfig, configPropertyNames) {
|
|
@@ -7328,10 +7915,10 @@ const updateRecordShares_ConfigPropertyMetadata = [
|
|
|
7328
7915
|
generateParamConfigMetadata('updateSetupRecordAccessItems', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
7329
7916
|
];
|
|
7330
7917
|
const updateRecordShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$q, updateRecordShares_ConfigPropertyMetadata);
|
|
7331
|
-
const createResourceParams$q = /*#__PURE__*/ createResourceParams$
|
|
7918
|
+
const createResourceParams$q = /*#__PURE__*/ createResourceParams$T(updateRecordShares_ConfigPropertyMetadata);
|
|
7332
7919
|
function typeCheckConfig$q(untrustedConfig) {
|
|
7333
7920
|
const config = {};
|
|
7334
|
-
typeCheckConfig$
|
|
7921
|
+
typeCheckConfig$T(untrustedConfig, config, updateRecordShares_ConfigPropertyMetadata);
|
|
7335
7922
|
const untrustedConfig_updateSetupRecordAccessItems = untrustedConfig.updateSetupRecordAccessItems;
|
|
7336
7923
|
if (ArrayIsArray$1(untrustedConfig_updateSetupRecordAccessItems)) {
|
|
7337
7924
|
const untrustedConfig_updateSetupRecordAccessItems_array = [];
|
|
@@ -7428,10 +8015,10 @@ const createRecordShares_ConfigPropertyMetadata = [
|
|
|
7428
8015
|
generateParamConfigMetadata('accessRequestItems', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
7429
8016
|
];
|
|
7430
8017
|
const createRecordShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$p, createRecordShares_ConfigPropertyMetadata);
|
|
7431
|
-
const createResourceParams$p = /*#__PURE__*/ createResourceParams$
|
|
8018
|
+
const createResourceParams$p = /*#__PURE__*/ createResourceParams$T(createRecordShares_ConfigPropertyMetadata);
|
|
7432
8019
|
function typeCheckConfig$p(untrustedConfig) {
|
|
7433
8020
|
const config = {};
|
|
7434
|
-
typeCheckConfig$
|
|
8021
|
+
typeCheckConfig$T(untrustedConfig, config, createRecordShares_ConfigPropertyMetadata);
|
|
7435
8022
|
const untrustedConfig_accessRequestItems = untrustedConfig.accessRequestItems;
|
|
7436
8023
|
if (ArrayIsArray$1(untrustedConfig_accessRequestItems)) {
|
|
7437
8024
|
const untrustedConfig_accessRequestItems_array = [];
|
|
@@ -7523,10 +8110,10 @@ const deleteRecordShare_ConfigPropertyMetadata = [
|
|
|
7523
8110
|
generateParamConfigMetadata('userOrGroupId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7524
8111
|
];
|
|
7525
8112
|
const deleteRecordShare_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, deleteRecordShare_ConfigPropertyMetadata);
|
|
7526
|
-
const createResourceParams$o = /*#__PURE__*/ createResourceParams$
|
|
8113
|
+
const createResourceParams$o = /*#__PURE__*/ createResourceParams$T(deleteRecordShare_ConfigPropertyMetadata);
|
|
7527
8114
|
function typeCheckConfig$o(untrustedConfig) {
|
|
7528
8115
|
const config = {};
|
|
7529
|
-
typeCheckConfig$
|
|
8116
|
+
typeCheckConfig$T(untrustedConfig, config, deleteRecordShare_ConfigPropertyMetadata);
|
|
7530
8117
|
return config;
|
|
7531
8118
|
}
|
|
7532
8119
|
function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
|
|
@@ -7851,14 +8438,14 @@ const getAssetSlackChannels_ConfigPropertyMetadata = [
|
|
|
7851
8438
|
generateParamConfigMetadata('assetId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
7852
8439
|
];
|
|
7853
8440
|
const getAssetSlackChannels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
7854
|
-
const createResourceParams$n = /*#__PURE__*/ createResourceParams$
|
|
8441
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$T(getAssetSlackChannels_ConfigPropertyMetadata);
|
|
7855
8442
|
function keyBuilder$v(luvio, config) {
|
|
7856
8443
|
const resourceParams = createResourceParams$n(config);
|
|
7857
8444
|
return keyBuilder$w(luvio, resourceParams);
|
|
7858
8445
|
}
|
|
7859
8446
|
function typeCheckConfig$n(untrustedConfig) {
|
|
7860
8447
|
const config = {};
|
|
7861
|
-
typeCheckConfig$
|
|
8448
|
+
typeCheckConfig$T(untrustedConfig, config, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
7862
8449
|
return config;
|
|
7863
8450
|
}
|
|
7864
8451
|
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
@@ -7976,10 +8563,10 @@ const createAssetSlackChannel_ConfigPropertyMetadata = [
|
|
|
7976
8563
|
generateParamConfigMetadata('teamId', true, 2 /* Body */, 0 /* String */),
|
|
7977
8564
|
];
|
|
7978
8565
|
const createAssetSlackChannel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
7979
|
-
const createResourceParams$m = /*#__PURE__*/ createResourceParams$
|
|
8566
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$T(createAssetSlackChannel_ConfigPropertyMetadata);
|
|
7980
8567
|
function typeCheckConfig$m(untrustedConfig) {
|
|
7981
8568
|
const config = {};
|
|
7982
|
-
typeCheckConfig$
|
|
8569
|
+
typeCheckConfig$T(untrustedConfig, config, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
7983
8570
|
return config;
|
|
7984
8571
|
}
|
|
7985
8572
|
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
@@ -8159,10 +8746,10 @@ const queryUsers_ConfigPropertyMetadata = [
|
|
|
8159
8746
|
generateParamConfigMetadata('offset', true, 2 /* Body */, 3 /* Integer */),
|
|
8160
8747
|
];
|
|
8161
8748
|
const queryUsers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, queryUsers_ConfigPropertyMetadata);
|
|
8162
|
-
const createResourceParams$l = /*#__PURE__*/ createResourceParams$
|
|
8749
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$T(queryUsers_ConfigPropertyMetadata);
|
|
8163
8750
|
function typeCheckConfig$l(untrustedConfig) {
|
|
8164
8751
|
const config = {};
|
|
8165
|
-
typeCheckConfig$
|
|
8752
|
+
typeCheckConfig$T(untrustedConfig, config, queryUsers_ConfigPropertyMetadata);
|
|
8166
8753
|
return config;
|
|
8167
8754
|
}
|
|
8168
8755
|
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
@@ -8504,7 +9091,7 @@ function select$s(luvio, params) {
|
|
|
8504
9091
|
return select$t();
|
|
8505
9092
|
}
|
|
8506
9093
|
function keyBuilder$s(luvio, params) {
|
|
8507
|
-
return keyPrefix + '::VisualizationCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
9094
|
+
return keyPrefix + '::VisualizationCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'minorVersion:' + params.queryParams.minorVersion + ')';
|
|
8508
9095
|
}
|
|
8509
9096
|
function getResponseCacheKeys$k(storeKeyMap, luvio, resourceParams, response) {
|
|
8510
9097
|
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$s(luvio, resourceParams));
|
|
@@ -8550,16 +9137,17 @@ const adapterName$k = 'getVisualizations';
|
|
|
8550
9137
|
const getVisualizations_ConfigPropertyMetadata = [
|
|
8551
9138
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
8552
9139
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
9140
|
+
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
8553
9141
|
];
|
|
8554
9142
|
const getVisualizations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getVisualizations_ConfigPropertyMetadata);
|
|
8555
|
-
const createResourceParams$k = /*#__PURE__*/ createResourceParams$
|
|
9143
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$T(getVisualizations_ConfigPropertyMetadata);
|
|
8556
9144
|
function keyBuilder$r(luvio, config) {
|
|
8557
9145
|
const resourceParams = createResourceParams$k(config);
|
|
8558
9146
|
return keyBuilder$s(luvio, resourceParams);
|
|
8559
9147
|
}
|
|
8560
9148
|
function typeCheckConfig$k(untrustedConfig) {
|
|
8561
9149
|
const config = {};
|
|
8562
|
-
typeCheckConfig$
|
|
9150
|
+
typeCheckConfig$T(untrustedConfig, config, getVisualizations_ConfigPropertyMetadata);
|
|
8563
9151
|
return config;
|
|
8564
9152
|
}
|
|
8565
9153
|
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
@@ -8664,7 +9252,7 @@ function createResourceRequest$j(config) {
|
|
|
8664
9252
|
method: 'post',
|
|
8665
9253
|
body: config.body,
|
|
8666
9254
|
urlParams: {},
|
|
8667
|
-
queryParams:
|
|
9255
|
+
queryParams: config.queryParams,
|
|
8668
9256
|
headers,
|
|
8669
9257
|
priority: 'normal',
|
|
8670
9258
|
};
|
|
@@ -8672,6 +9260,7 @@ function createResourceRequest$j(config) {
|
|
|
8672
9260
|
|
|
8673
9261
|
const adapterName$j = 'createVisualization';
|
|
8674
9262
|
const createVisualization_ConfigPropertyMetadata = [
|
|
9263
|
+
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
8675
9264
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
8676
9265
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
8677
9266
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
@@ -8684,10 +9273,10 @@ const createVisualization_ConfigPropertyMetadata = [
|
|
|
8684
9273
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
8685
9274
|
];
|
|
8686
9275
|
const createVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, createVisualization_ConfigPropertyMetadata);
|
|
8687
|
-
const createResourceParams$j = /*#__PURE__*/ createResourceParams$
|
|
9276
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$T(createVisualization_ConfigPropertyMetadata);
|
|
8688
9277
|
function typeCheckConfig$j(untrustedConfig) {
|
|
8689
9278
|
const config = {};
|
|
8690
|
-
typeCheckConfig$
|
|
9279
|
+
typeCheckConfig$T(untrustedConfig, config, createVisualization_ConfigPropertyMetadata);
|
|
8691
9280
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
8692
9281
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
8693
9282
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -8852,10 +9441,10 @@ const deleteVisualization_ConfigPropertyMetadata = [
|
|
|
8852
9441
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8853
9442
|
];
|
|
8854
9443
|
const deleteVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, deleteVisualization_ConfigPropertyMetadata);
|
|
8855
|
-
const createResourceParams$i = /*#__PURE__*/ createResourceParams$
|
|
9444
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$T(deleteVisualization_ConfigPropertyMetadata);
|
|
8856
9445
|
function typeCheckConfig$i(untrustedConfig) {
|
|
8857
9446
|
const config = {};
|
|
8858
|
-
typeCheckConfig$
|
|
9447
|
+
typeCheckConfig$T(untrustedConfig, config, deleteVisualization_ConfigPropertyMetadata);
|
|
8859
9448
|
return config;
|
|
8860
9449
|
}
|
|
8861
9450
|
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
@@ -8942,7 +9531,7 @@ function createResourceRequest$h(config) {
|
|
|
8942
9531
|
method: 'get',
|
|
8943
9532
|
body: null,
|
|
8944
9533
|
urlParams: config.urlParams,
|
|
8945
|
-
queryParams:
|
|
9534
|
+
queryParams: config.queryParams,
|
|
8946
9535
|
headers,
|
|
8947
9536
|
priority: 'normal',
|
|
8948
9537
|
};
|
|
@@ -8951,16 +9540,17 @@ function createResourceRequest$h(config) {
|
|
|
8951
9540
|
const adapterName$h = 'getVisualization';
|
|
8952
9541
|
const getVisualization_ConfigPropertyMetadata = [
|
|
8953
9542
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9543
|
+
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
8954
9544
|
];
|
|
8955
9545
|
const getVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getVisualization_ConfigPropertyMetadata);
|
|
8956
|
-
const createResourceParams$h = /*#__PURE__*/ createResourceParams$
|
|
9546
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$T(getVisualization_ConfigPropertyMetadata);
|
|
8957
9547
|
function keyBuilder$o(luvio, config) {
|
|
8958
9548
|
const resourceParams = createResourceParams$h(config);
|
|
8959
9549
|
return keyBuilder$p(luvio, resourceParams);
|
|
8960
9550
|
}
|
|
8961
9551
|
function typeCheckConfig$h(untrustedConfig) {
|
|
8962
9552
|
const config = {};
|
|
8963
|
-
typeCheckConfig$
|
|
9553
|
+
typeCheckConfig$T(untrustedConfig, config, getVisualization_ConfigPropertyMetadata);
|
|
8964
9554
|
return config;
|
|
8965
9555
|
}
|
|
8966
9556
|
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
@@ -9065,7 +9655,7 @@ function createResourceRequest$g(config) {
|
|
|
9065
9655
|
method: 'patch',
|
|
9066
9656
|
body: config.body,
|
|
9067
9657
|
urlParams: config.urlParams,
|
|
9068
|
-
queryParams:
|
|
9658
|
+
queryParams: config.queryParams,
|
|
9069
9659
|
headers,
|
|
9070
9660
|
priority: 'normal',
|
|
9071
9661
|
};
|
|
@@ -9074,6 +9664,7 @@ function createResourceRequest$g(config) {
|
|
|
9074
9664
|
const adapterName$g = 'updateVisualization';
|
|
9075
9665
|
const updateVisualization_ConfigPropertyMetadata = [
|
|
9076
9666
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9667
|
+
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
9077
9668
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
9078
9669
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
9079
9670
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
@@ -9086,10 +9677,10 @@ const updateVisualization_ConfigPropertyMetadata = [
|
|
|
9086
9677
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9087
9678
|
];
|
|
9088
9679
|
const updateVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, updateVisualization_ConfigPropertyMetadata);
|
|
9089
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
9680
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$T(updateVisualization_ConfigPropertyMetadata);
|
|
9090
9681
|
function typeCheckConfig$g(untrustedConfig) {
|
|
9091
9682
|
const config = {};
|
|
9092
|
-
typeCheckConfig$
|
|
9683
|
+
typeCheckConfig$T(untrustedConfig, config, updateVisualization_ConfigPropertyMetadata);
|
|
9093
9684
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
9094
9685
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
9095
9686
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -9342,7 +9933,7 @@ function createResourceRequest$f(config) {
|
|
|
9342
9933
|
method: 'get',
|
|
9343
9934
|
body: null,
|
|
9344
9935
|
urlParams: config.urlParams,
|
|
9345
|
-
queryParams:
|
|
9936
|
+
queryParams: config.queryParams,
|
|
9346
9937
|
headers,
|
|
9347
9938
|
priority: 'normal',
|
|
9348
9939
|
};
|
|
@@ -9351,16 +9942,17 @@ function createResourceRequest$f(config) {
|
|
|
9351
9942
|
const adapterName$f = 'getVisualizationBundle';
|
|
9352
9943
|
const getVisualizationBundle_ConfigPropertyMetadata = [
|
|
9353
9944
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9945
|
+
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
9354
9946
|
];
|
|
9355
9947
|
const getVisualizationBundle_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getVisualizationBundle_ConfigPropertyMetadata);
|
|
9356
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
9948
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$T(getVisualizationBundle_ConfigPropertyMetadata);
|
|
9357
9949
|
function keyBuilder$l(luvio, config) {
|
|
9358
9950
|
const resourceParams = createResourceParams$f(config);
|
|
9359
9951
|
return keyBuilder$m(luvio, resourceParams);
|
|
9360
9952
|
}
|
|
9361
9953
|
function typeCheckConfig$f(untrustedConfig) {
|
|
9362
9954
|
const config = {};
|
|
9363
|
-
typeCheckConfig$
|
|
9955
|
+
typeCheckConfig$T(untrustedConfig, config, getVisualizationBundle_ConfigPropertyMetadata);
|
|
9364
9956
|
return config;
|
|
9365
9957
|
}
|
|
9366
9958
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -9698,14 +10290,14 @@ const getWorkspaces_ConfigPropertyMetadata = [
|
|
|
9698
10290
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
9699
10291
|
];
|
|
9700
10292
|
const getWorkspaces_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getWorkspaces_ConfigPropertyMetadata);
|
|
9701
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
10293
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$T(getWorkspaces_ConfigPropertyMetadata);
|
|
9702
10294
|
function keyBuilder$i(luvio, config) {
|
|
9703
10295
|
const resourceParams = createResourceParams$e(config);
|
|
9704
10296
|
return keyBuilder$j(luvio, resourceParams);
|
|
9705
10297
|
}
|
|
9706
10298
|
function typeCheckConfig$e(untrustedConfig) {
|
|
9707
10299
|
const config = {};
|
|
9708
|
-
typeCheckConfig$
|
|
10300
|
+
typeCheckConfig$T(untrustedConfig, config, getWorkspaces_ConfigPropertyMetadata);
|
|
9709
10301
|
return config;
|
|
9710
10302
|
}
|
|
9711
10303
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -9824,10 +10416,10 @@ const createWorkspace_ConfigPropertyMetadata = [
|
|
|
9824
10416
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
9825
10417
|
];
|
|
9826
10418
|
const createWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, createWorkspace_ConfigPropertyMetadata);
|
|
9827
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
10419
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$T(createWorkspace_ConfigPropertyMetadata);
|
|
9828
10420
|
function typeCheckConfig$d(untrustedConfig) {
|
|
9829
10421
|
const config = {};
|
|
9830
|
-
typeCheckConfig$
|
|
10422
|
+
typeCheckConfig$T(untrustedConfig, config, createWorkspace_ConfigPropertyMetadata);
|
|
9831
10423
|
return config;
|
|
9832
10424
|
}
|
|
9833
10425
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -9908,10 +10500,10 @@ const deleteWorkspace_ConfigPropertyMetadata = [
|
|
|
9908
10500
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9909
10501
|
];
|
|
9910
10502
|
const deleteWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, deleteWorkspace_ConfigPropertyMetadata);
|
|
9911
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
10503
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$T(deleteWorkspace_ConfigPropertyMetadata);
|
|
9912
10504
|
function typeCheckConfig$c(untrustedConfig) {
|
|
9913
10505
|
const config = {};
|
|
9914
|
-
typeCheckConfig$
|
|
10506
|
+
typeCheckConfig$T(untrustedConfig, config, deleteWorkspace_ConfigPropertyMetadata);
|
|
9915
10507
|
return config;
|
|
9916
10508
|
}
|
|
9917
10509
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -10009,14 +10601,14 @@ const getWorkspaceByIdOrName_ConfigPropertyMetadata = [
|
|
|
10009
10601
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10010
10602
|
];
|
|
10011
10603
|
const getWorkspaceByIdOrName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
10012
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
10604
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$T(getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
10013
10605
|
function keyBuilder$f(luvio, config) {
|
|
10014
10606
|
const resourceParams = createResourceParams$b(config);
|
|
10015
10607
|
return keyBuilder$g(luvio, resourceParams);
|
|
10016
10608
|
}
|
|
10017
10609
|
function typeCheckConfig$b(untrustedConfig) {
|
|
10018
10610
|
const config = {};
|
|
10019
|
-
typeCheckConfig$
|
|
10611
|
+
typeCheckConfig$T(untrustedConfig, config, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
10020
10612
|
return config;
|
|
10021
10613
|
}
|
|
10022
10614
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -10136,10 +10728,10 @@ const updateWorkspace_ConfigPropertyMetadata = [
|
|
|
10136
10728
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
10137
10729
|
];
|
|
10138
10730
|
const updateWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, updateWorkspace_ConfigPropertyMetadata);
|
|
10139
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
10731
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$T(updateWorkspace_ConfigPropertyMetadata);
|
|
10140
10732
|
function typeCheckConfig$a(untrustedConfig) {
|
|
10141
10733
|
const config = {};
|
|
10142
|
-
typeCheckConfig$
|
|
10734
|
+
typeCheckConfig$T(untrustedConfig, config, updateWorkspace_ConfigPropertyMetadata);
|
|
10143
10735
|
return config;
|
|
10144
10736
|
}
|
|
10145
10737
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -10320,10 +10912,10 @@ const createWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
10320
10912
|
generateParamConfigMetadata('assetUsageType', true, 2 /* Body */, 0 /* String */),
|
|
10321
10913
|
];
|
|
10322
10914
|
const createWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
10323
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
10915
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$T(createWorkspaceAsset_ConfigPropertyMetadata);
|
|
10324
10916
|
function typeCheckConfig$9(untrustedConfig) {
|
|
10325
10917
|
const config = {};
|
|
10326
|
-
typeCheckConfig$
|
|
10918
|
+
typeCheckConfig$T(untrustedConfig, config, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
10327
10919
|
return config;
|
|
10328
10920
|
}
|
|
10329
10921
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -10405,10 +10997,10 @@ const deleteWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
10405
10997
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10406
10998
|
];
|
|
10407
10999
|
const deleteWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
10408
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
11000
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$T(deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
10409
11001
|
function typeCheckConfig$8(untrustedConfig) {
|
|
10410
11002
|
const config = {};
|
|
10411
|
-
typeCheckConfig$
|
|
11003
|
+
typeCheckConfig$T(untrustedConfig, config, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
10412
11004
|
return config;
|
|
10413
11005
|
}
|
|
10414
11006
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -10792,14 +11384,14 @@ const getFlows_ConfigPropertyMetadata = [
|
|
|
10792
11384
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
10793
11385
|
];
|
|
10794
11386
|
const getFlows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getFlows_ConfigPropertyMetadata);
|
|
10795
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
11387
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$T(getFlows_ConfigPropertyMetadata);
|
|
10796
11388
|
function keyBuilder$b(luvio, config) {
|
|
10797
11389
|
const resourceParams = createResourceParams$7(config);
|
|
10798
11390
|
return keyBuilder$c(luvio, resourceParams);
|
|
10799
11391
|
}
|
|
10800
11392
|
function typeCheckConfig$7(untrustedConfig) {
|
|
10801
11393
|
const config = {};
|
|
10802
|
-
typeCheckConfig$
|
|
11394
|
+
typeCheckConfig$T(untrustedConfig, config, getFlows_ConfigPropertyMetadata);
|
|
10803
11395
|
return config;
|
|
10804
11396
|
}
|
|
10805
11397
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -10924,14 +11516,14 @@ const getFlowByName_ConfigPropertyMetadata = [
|
|
|
10924
11516
|
generateParamConfigMetadata('flowApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10925
11517
|
];
|
|
10926
11518
|
const getFlowByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getFlowByName_ConfigPropertyMetadata);
|
|
10927
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
11519
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$T(getFlowByName_ConfigPropertyMetadata);
|
|
10928
11520
|
function keyBuilder$9(luvio, config) {
|
|
10929
11521
|
const resourceParams = createResourceParams$6(config);
|
|
10930
11522
|
return keyBuilder$a(luvio, resourceParams);
|
|
10931
11523
|
}
|
|
10932
11524
|
function typeCheckConfig$6(untrustedConfig) {
|
|
10933
11525
|
const config = {};
|
|
10934
|
-
typeCheckConfig$
|
|
11526
|
+
typeCheckConfig$T(untrustedConfig, config, getFlowByName_ConfigPropertyMetadata);
|
|
10935
11527
|
return config;
|
|
10936
11528
|
}
|
|
10937
11529
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -11138,14 +11730,14 @@ const getSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
11138
11730
|
generateParamConfigMetadata('digestConfigOwner', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11139
11731
|
];
|
|
11140
11732
|
const getSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
11141
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
11733
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$T(getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
11142
11734
|
function keyBuilder$6(luvio, config) {
|
|
11143
11735
|
const resourceParams = createResourceParams$5(config);
|
|
11144
11736
|
return keyBuilder$7(luvio, resourceParams);
|
|
11145
11737
|
}
|
|
11146
11738
|
function typeCheckConfig$5(untrustedConfig) {
|
|
11147
11739
|
const config = {};
|
|
11148
|
-
typeCheckConfig$
|
|
11740
|
+
typeCheckConfig$T(untrustedConfig, config, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
11149
11741
|
return config;
|
|
11150
11742
|
}
|
|
11151
11743
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -11263,10 +11855,10 @@ const updateSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
11263
11855
|
generateParamConfigMetadata('scheduleType', true, 2 /* Body */, 0 /* String */),
|
|
11264
11856
|
];
|
|
11265
11857
|
const updateSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
11266
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
11858
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$T(updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
11267
11859
|
function typeCheckConfig$4(untrustedConfig) {
|
|
11268
11860
|
const config = {};
|
|
11269
|
-
typeCheckConfig$
|
|
11861
|
+
typeCheckConfig$T(untrustedConfig, config, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
11270
11862
|
return config;
|
|
11271
11863
|
}
|
|
11272
11864
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -11498,10 +12090,10 @@ const getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata = [
|
|
|
11498
12090
|
generateParamConfigMetadata('sortDirection', false, 2 /* Body */, 0 /* String */),
|
|
11499
12091
|
];
|
|
11500
12092
|
const getUnifiedAnalyticsLibraryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
11501
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
12093
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$T(getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
11502
12094
|
function typeCheckConfig$3(untrustedConfig) {
|
|
11503
12095
|
const config = {};
|
|
11504
|
-
typeCheckConfig$
|
|
12096
|
+
typeCheckConfig$T(untrustedConfig, config, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
11505
12097
|
const untrustedConfig_assetTypes = untrustedConfig.assetTypes;
|
|
11506
12098
|
if (ArrayIsArray$1(untrustedConfig_assetTypes)) {
|
|
11507
12099
|
const untrustedConfig_assetTypes_array = [];
|
|
@@ -11733,10 +12325,10 @@ const generateSFDriveCredentials_ConfigPropertyMetadata = [
|
|
|
11733
12325
|
generateParamConfigMetadata('path', true, 2 /* Body */, 0 /* String */),
|
|
11734
12326
|
];
|
|
11735
12327
|
const generateSFDriveCredentials_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
11736
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
12328
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$T(generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
11737
12329
|
function typeCheckConfig$2(untrustedConfig) {
|
|
11738
12330
|
const config = {};
|
|
11739
|
-
typeCheckConfig$
|
|
12331
|
+
typeCheckConfig$T(untrustedConfig, config, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
11740
12332
|
return config;
|
|
11741
12333
|
}
|
|
11742
12334
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -11907,14 +12499,14 @@ const initiateMarketplaceListingInstallation_ConfigPropertyMetadata = [
|
|
|
11907
12499
|
generateParamConfigMetadata('listingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11908
12500
|
];
|
|
11909
12501
|
const initiateMarketplaceListingInstallation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
11910
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
12502
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$T(initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
11911
12503
|
function keyBuilder$2(luvio, config) {
|
|
11912
12504
|
const resourceParams = createResourceParams$1(config);
|
|
11913
12505
|
return keyBuilder$3(luvio, resourceParams);
|
|
11914
12506
|
}
|
|
11915
12507
|
function typeCheckConfig$1(untrustedConfig) {
|
|
11916
12508
|
const config = {};
|
|
11917
|
-
typeCheckConfig$
|
|
12509
|
+
typeCheckConfig$T(untrustedConfig, config, initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
11918
12510
|
return config;
|
|
11919
12511
|
}
|
|
11920
12512
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -12141,14 +12733,14 @@ const getMarketplaceListingInstallationProgress_ConfigPropertyMetadata = [
|
|
|
12141
12733
|
generateParamConfigMetadata('installationId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12142
12734
|
];
|
|
12143
12735
|
const getMarketplaceListingInstallationProgress_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
12144
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
12736
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$T(getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
12145
12737
|
function keyBuilder(luvio, config) {
|
|
12146
12738
|
const resourceParams = createResourceParams(config);
|
|
12147
12739
|
return keyBuilder$1(luvio, resourceParams);
|
|
12148
12740
|
}
|
|
12149
12741
|
function typeCheckConfig(untrustedConfig) {
|
|
12150
12742
|
const config = {};
|
|
12151
|
-
typeCheckConfig$
|
|
12743
|
+
typeCheckConfig$T(untrustedConfig, config, getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
12152
12744
|
return config;
|
|
12153
12745
|
}
|
|
12154
12746
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -12222,4 +12814,4 @@ const getMarketplaceListingInstallationProgressAdapterFactory = (luvio) => funct
|
|
|
12222
12814
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
12223
12815
|
};
|
|
12224
12816
|
|
|
12225
|
-
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 };
|
|
12817
|
+
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 };
|