@salesforce/lds-adapters-analytics-unifiedanalytics 1.332.0-dev17 → 1.332.0-dev18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/analytics-unifiedanalytics.js +1248 -668
- package/dist/es/es2018/types/src/generated/adapters/createDataAlert.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/updateDataAlert.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/updateFollowedAsset.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/resources/patchTableauFollowFollowersFollowsByFollowerId.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/postTableauDataAlerts.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/resources/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 +37 -0
- package/package.json +3 -3
- package/sfdc/index.js +1831 -1242
- package/src/raml/api.raml +396 -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$
|
|
2982
|
+
function keyBuilder$13(luvio, params) {
|
|
2983
2983
|
return keyPrefix + '::DashboardCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
2984
2984
|
}
|
|
2985
|
-
function getResponseCacheKeys$
|
|
2986
|
-
getTypeCacheKeys$
|
|
2985
|
+
function getResponseCacheKeys$N(storeKeyMap, luvio, resourceParams, response) {
|
|
2986
|
+
getTypeCacheKeys$t(storeKeyMap, luvio, response, () => keyBuilder$13(luvio, resourceParams));
|
|
2987
2987
|
}
|
|
2988
|
-
function ingestSuccess$
|
|
2988
|
+
function ingestSuccess$G(luvio, resourceParams, response, snapshotRefresh) {
|
|
2989
2989
|
const { body } = response;
|
|
2990
|
-
const key = keyBuilder$
|
|
2991
|
-
luvio.storeIngest(key, ingest$
|
|
2990
|
+
const key = keyBuilder$13(luvio, resourceParams);
|
|
2991
|
+
luvio.storeIngest(key, ingest$t, body);
|
|
2992
2992
|
const snapshot = luvio.storeLookup({
|
|
2993
2993
|
recordId: key,
|
|
2994
|
-
node: select$
|
|
2994
|
+
node: select$17(),
|
|
2995
2995
|
variables: {},
|
|
2996
2996
|
}, snapshotRefresh);
|
|
2997
2997
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3003,12 +3003,12 @@ function ingestSuccess$D(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3003
3003
|
return snapshot;
|
|
3004
3004
|
}
|
|
3005
3005
|
function ingestError$l(luvio, params, error, snapshotRefresh) {
|
|
3006
|
-
const key = keyBuilder$
|
|
3006
|
+
const key = keyBuilder$13(luvio, params);
|
|
3007
3007
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3008
3008
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3009
3009
|
return errorSnapshot;
|
|
3010
3010
|
}
|
|
3011
|
-
function createResourceRequest$
|
|
3011
|
+
function createResourceRequest$N(config) {
|
|
3012
3012
|
const headers = {};
|
|
3013
3013
|
return {
|
|
3014
3014
|
baseUri: '/services/data/v63.0',
|
|
@@ -3022,61 +3022,61 @@ function createResourceRequest$K(config) {
|
|
|
3022
3022
|
};
|
|
3023
3023
|
}
|
|
3024
3024
|
|
|
3025
|
-
const adapterName$
|
|
3025
|
+
const adapterName$N = 'getDashboards';
|
|
3026
3026
|
const getDashboards_ConfigPropertyMetadata = [
|
|
3027
3027
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3028
3028
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3029
3029
|
];
|
|
3030
|
-
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3031
|
-
const createResourceParams$
|
|
3032
|
-
function keyBuilder$
|
|
3033
|
-
const resourceParams = createResourceParams$
|
|
3034
|
-
return keyBuilder$
|
|
3030
|
+
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$N, getDashboards_ConfigPropertyMetadata);
|
|
3031
|
+
const createResourceParams$N = /*#__PURE__*/ createResourceParams$T(getDashboards_ConfigPropertyMetadata);
|
|
3032
|
+
function keyBuilder$12(luvio, config) {
|
|
3033
|
+
const resourceParams = createResourceParams$N(config);
|
|
3034
|
+
return keyBuilder$13(luvio, resourceParams);
|
|
3035
3035
|
}
|
|
3036
|
-
function typeCheckConfig$
|
|
3036
|
+
function typeCheckConfig$N(untrustedConfig) {
|
|
3037
3037
|
const config = {};
|
|
3038
|
-
typeCheckConfig$
|
|
3038
|
+
typeCheckConfig$T(untrustedConfig, config, getDashboards_ConfigPropertyMetadata);
|
|
3039
3039
|
return config;
|
|
3040
3040
|
}
|
|
3041
|
-
function validateAdapterConfig$
|
|
3041
|
+
function validateAdapterConfig$N(untrustedConfig, configPropertyNames) {
|
|
3042
3042
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3043
3043
|
return null;
|
|
3044
3044
|
}
|
|
3045
3045
|
if (process.env.NODE_ENV !== 'production') {
|
|
3046
3046
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3047
3047
|
}
|
|
3048
|
-
const config = typeCheckConfig$
|
|
3048
|
+
const config = typeCheckConfig$N(untrustedConfig);
|
|
3049
3049
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3050
3050
|
return null;
|
|
3051
3051
|
}
|
|
3052
3052
|
return config;
|
|
3053
3053
|
}
|
|
3054
3054
|
function adapterFragment$l(luvio, config) {
|
|
3055
|
-
createResourceParams$
|
|
3056
|
-
return select$
|
|
3055
|
+
createResourceParams$N(config);
|
|
3056
|
+
return select$17();
|
|
3057
3057
|
}
|
|
3058
3058
|
function onFetchResponseSuccess$l(luvio, config, resourceParams, response) {
|
|
3059
|
-
const snapshot = ingestSuccess$
|
|
3059
|
+
const snapshot = ingestSuccess$G(luvio, resourceParams, response, {
|
|
3060
3060
|
config,
|
|
3061
|
-
resolve: () => buildNetworkSnapshot$
|
|
3061
|
+
resolve: () => buildNetworkSnapshot$N(luvio, config, snapshotRefreshOptions)
|
|
3062
3062
|
});
|
|
3063
3063
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3064
3064
|
}
|
|
3065
3065
|
function onFetchResponseError$l(luvio, config, resourceParams, response) {
|
|
3066
3066
|
const snapshot = ingestError$l(luvio, resourceParams, response, {
|
|
3067
3067
|
config,
|
|
3068
|
-
resolve: () => buildNetworkSnapshot$
|
|
3068
|
+
resolve: () => buildNetworkSnapshot$N(luvio, config, snapshotRefreshOptions)
|
|
3069
3069
|
});
|
|
3070
3070
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3071
3071
|
}
|
|
3072
|
-
function buildNetworkSnapshot$
|
|
3073
|
-
const resourceParams = createResourceParams$
|
|
3074
|
-
const request = createResourceRequest$
|
|
3072
|
+
function buildNetworkSnapshot$N(luvio, config, options) {
|
|
3073
|
+
const resourceParams = createResourceParams$N(config);
|
|
3074
|
+
const request = createResourceRequest$N(resourceParams);
|
|
3075
3075
|
return luvio.dispatchResourceRequest(request, options)
|
|
3076
3076
|
.then((response) => {
|
|
3077
3077
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$l(luvio, config, resourceParams, response), () => {
|
|
3078
3078
|
const cache = new StoreKeyMap();
|
|
3079
|
-
getResponseCacheKeys$
|
|
3079
|
+
getResponseCacheKeys$N(cache, luvio, resourceParams, response.body);
|
|
3080
3080
|
return cache;
|
|
3081
3081
|
});
|
|
3082
3082
|
}, (response) => {
|
|
@@ -3084,23 +3084,23 @@ function buildNetworkSnapshot$K(luvio, config, options) {
|
|
|
3084
3084
|
});
|
|
3085
3085
|
}
|
|
3086
3086
|
function buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext) {
|
|
3087
|
-
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
3087
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$N, undefined, false);
|
|
3088
3088
|
}
|
|
3089
3089
|
function buildCachedSnapshotCachePolicy$l(context, storeLookup) {
|
|
3090
3090
|
const { luvio, config } = context;
|
|
3091
3091
|
const selector = {
|
|
3092
|
-
recordId: keyBuilder$
|
|
3092
|
+
recordId: keyBuilder$12(luvio, config),
|
|
3093
3093
|
node: adapterFragment$l(luvio, config),
|
|
3094
3094
|
variables: {},
|
|
3095
3095
|
};
|
|
3096
3096
|
const cacheSnapshot = storeLookup(selector, {
|
|
3097
3097
|
config,
|
|
3098
|
-
resolve: () => buildNetworkSnapshot$
|
|
3098
|
+
resolve: () => buildNetworkSnapshot$N(luvio, config, snapshotRefreshOptions)
|
|
3099
3099
|
});
|
|
3100
3100
|
return cacheSnapshot;
|
|
3101
3101
|
}
|
|
3102
3102
|
const getDashboardsAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboards(untrustedConfig, requestContext) {
|
|
3103
|
-
const config = validateAdapterConfig$
|
|
3103
|
+
const config = validateAdapterConfig$N(untrustedConfig, getDashboards_ConfigPropertyNames);
|
|
3104
3104
|
// Invalid or incomplete config
|
|
3105
3105
|
if (config === null) {
|
|
3106
3106
|
return null;
|
|
@@ -3109,19 +3109,19 @@ const getDashboardsAdapterFactory = (luvio) => function UnifiedAnalytics__getDas
|
|
|
3109
3109
|
buildCachedSnapshotCachePolicy$l, buildNetworkSnapshotCachePolicy$l);
|
|
3110
3110
|
};
|
|
3111
3111
|
|
|
3112
|
-
function select$
|
|
3113
|
-
return select$
|
|
3112
|
+
function select$16(luvio, params) {
|
|
3113
|
+
return select$19();
|
|
3114
3114
|
}
|
|
3115
|
-
function getResponseCacheKeys$
|
|
3116
|
-
getTypeCacheKeys$
|
|
3115
|
+
function getResponseCacheKeys$M(storeKeyMap, luvio, resourceParams, response) {
|
|
3116
|
+
getTypeCacheKeys$u(storeKeyMap, luvio, response);
|
|
3117
3117
|
}
|
|
3118
|
-
function ingestSuccess$
|
|
3118
|
+
function ingestSuccess$F(luvio, resourceParams, response) {
|
|
3119
3119
|
const { body } = response;
|
|
3120
|
-
const key = keyBuilderFromType$
|
|
3121
|
-
luvio.storeIngest(key, ingest$
|
|
3120
|
+
const key = keyBuilderFromType$f(luvio, body);
|
|
3121
|
+
luvio.storeIngest(key, ingest$u, body);
|
|
3122
3122
|
const snapshot = luvio.storeLookup({
|
|
3123
3123
|
recordId: key,
|
|
3124
|
-
node: select$
|
|
3124
|
+
node: select$16(),
|
|
3125
3125
|
variables: {},
|
|
3126
3126
|
});
|
|
3127
3127
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3132,7 +3132,7 @@ function ingestSuccess$C(luvio, resourceParams, response) {
|
|
|
3132
3132
|
deepFreeze(snapshot.data);
|
|
3133
3133
|
return snapshot;
|
|
3134
3134
|
}
|
|
3135
|
-
function createResourceRequest$
|
|
3135
|
+
function createResourceRequest$M(config) {
|
|
3136
3136
|
const headers = {};
|
|
3137
3137
|
return {
|
|
3138
3138
|
baseUri: '/services/data/v63.0',
|
|
@@ -3146,7 +3146,7 @@ function createResourceRequest$J(config) {
|
|
|
3146
3146
|
};
|
|
3147
3147
|
}
|
|
3148
3148
|
|
|
3149
|
-
const adapterName$
|
|
3149
|
+
const adapterName$M = 'createDashboard';
|
|
3150
3150
|
const createDashboard_ConfigPropertyMetadata = [
|
|
3151
3151
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
3152
3152
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
@@ -3157,11 +3157,11 @@ const createDashboard_ConfigPropertyMetadata = [
|
|
|
3157
3157
|
generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3158
3158
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3159
3159
|
];
|
|
3160
|
-
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3161
|
-
const createResourceParams$
|
|
3162
|
-
function typeCheckConfig$
|
|
3160
|
+
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$M, createDashboard_ConfigPropertyMetadata);
|
|
3161
|
+
const createResourceParams$M = /*#__PURE__*/ createResourceParams$T(createDashboard_ConfigPropertyMetadata);
|
|
3162
|
+
function typeCheckConfig$M(untrustedConfig) {
|
|
3163
3163
|
const config = {};
|
|
3164
|
-
typeCheckConfig$
|
|
3164
|
+
typeCheckConfig$T(untrustedConfig, config, createDashboard_ConfigPropertyMetadata);
|
|
3165
3165
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
3166
3166
|
if (ArrayIsArray$1(untrustedConfig_layouts)) {
|
|
3167
3167
|
const untrustedConfig_layouts_array = [];
|
|
@@ -3203,30 +3203,30 @@ function typeCheckConfig$J(untrustedConfig) {
|
|
|
3203
3203
|
}
|
|
3204
3204
|
return config;
|
|
3205
3205
|
}
|
|
3206
|
-
function validateAdapterConfig$
|
|
3206
|
+
function validateAdapterConfig$M(untrustedConfig, configPropertyNames) {
|
|
3207
3207
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3208
3208
|
return null;
|
|
3209
3209
|
}
|
|
3210
3210
|
if (process.env.NODE_ENV !== 'production') {
|
|
3211
3211
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3212
3212
|
}
|
|
3213
|
-
const config = typeCheckConfig$
|
|
3213
|
+
const config = typeCheckConfig$M(untrustedConfig);
|
|
3214
3214
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3215
3215
|
return null;
|
|
3216
3216
|
}
|
|
3217
3217
|
return config;
|
|
3218
3218
|
}
|
|
3219
|
-
function buildNetworkSnapshot$
|
|
3220
|
-
const resourceParams = createResourceParams$
|
|
3221
|
-
const request = createResourceRequest$
|
|
3219
|
+
function buildNetworkSnapshot$M(luvio, config, options) {
|
|
3220
|
+
const resourceParams = createResourceParams$M(config);
|
|
3221
|
+
const request = createResourceRequest$M(resourceParams);
|
|
3222
3222
|
return luvio.dispatchResourceRequest(request, options)
|
|
3223
3223
|
.then((response) => {
|
|
3224
3224
|
return luvio.handleSuccessResponse(() => {
|
|
3225
|
-
const snapshot = ingestSuccess$
|
|
3225
|
+
const snapshot = ingestSuccess$F(luvio, resourceParams, response);
|
|
3226
3226
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3227
3227
|
}, () => {
|
|
3228
3228
|
const cache = new StoreKeyMap();
|
|
3229
|
-
getResponseCacheKeys$
|
|
3229
|
+
getResponseCacheKeys$M(cache, luvio, resourceParams, response.body);
|
|
3230
3230
|
return cache;
|
|
3231
3231
|
});
|
|
3232
3232
|
}, (response) => {
|
|
@@ -3236,33 +3236,33 @@ function buildNetworkSnapshot$J(luvio, config, options) {
|
|
|
3236
3236
|
}
|
|
3237
3237
|
const createDashboardAdapterFactory = (luvio) => {
|
|
3238
3238
|
return function createDashboard(untrustedConfig) {
|
|
3239
|
-
const config = validateAdapterConfig$
|
|
3239
|
+
const config = validateAdapterConfig$M(untrustedConfig, createDashboard_ConfigPropertyNames);
|
|
3240
3240
|
// Invalid or incomplete config
|
|
3241
3241
|
if (config === null) {
|
|
3242
3242
|
throw new Error('Invalid config for "createDashboard"');
|
|
3243
3243
|
}
|
|
3244
|
-
return buildNetworkSnapshot$
|
|
3244
|
+
return buildNetworkSnapshot$M(luvio, config);
|
|
3245
3245
|
};
|
|
3246
3246
|
};
|
|
3247
3247
|
|
|
3248
|
-
function keyBuilder$
|
|
3249
|
-
return keyBuilder$
|
|
3248
|
+
function keyBuilder$11(luvio, params) {
|
|
3249
|
+
return keyBuilder$14(luvio, {
|
|
3250
3250
|
name: params.urlParams.dashboardIdOrApiName
|
|
3251
3251
|
});
|
|
3252
3252
|
}
|
|
3253
|
-
function getResponseCacheKeys$
|
|
3254
|
-
const key = keyBuilder$
|
|
3253
|
+
function getResponseCacheKeys$L(cacheKeyMap, luvio, resourceParams) {
|
|
3254
|
+
const key = keyBuilder$11(luvio, resourceParams);
|
|
3255
3255
|
cacheKeyMap.set(key, {
|
|
3256
3256
|
namespace: keyPrefix,
|
|
3257
|
-
representationName: RepresentationType$
|
|
3257
|
+
representationName: RepresentationType$w,
|
|
3258
3258
|
mergeable: false
|
|
3259
3259
|
});
|
|
3260
3260
|
}
|
|
3261
3261
|
function evictSuccess$6(luvio, resourceParams) {
|
|
3262
|
-
const key = keyBuilder$
|
|
3262
|
+
const key = keyBuilder$11(luvio, resourceParams);
|
|
3263
3263
|
luvio.storeEvict(key);
|
|
3264
3264
|
}
|
|
3265
|
-
function createResourceRequest$
|
|
3265
|
+
function createResourceRequest$L(config) {
|
|
3266
3266
|
const headers = {};
|
|
3267
3267
|
return {
|
|
3268
3268
|
baseUri: '/services/data/v63.0',
|
|
@@ -3276,33 +3276,33 @@ function createResourceRequest$I(config) {
|
|
|
3276
3276
|
};
|
|
3277
3277
|
}
|
|
3278
3278
|
|
|
3279
|
-
const adapterName$
|
|
3279
|
+
const adapterName$L = 'deleteDashboard';
|
|
3280
3280
|
const deleteDashboard_ConfigPropertyMetadata = [
|
|
3281
3281
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3282
3282
|
];
|
|
3283
|
-
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3284
|
-
const createResourceParams$
|
|
3285
|
-
function typeCheckConfig$
|
|
3283
|
+
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$L, deleteDashboard_ConfigPropertyMetadata);
|
|
3284
|
+
const createResourceParams$L = /*#__PURE__*/ createResourceParams$T(deleteDashboard_ConfigPropertyMetadata);
|
|
3285
|
+
function typeCheckConfig$L(untrustedConfig) {
|
|
3286
3286
|
const config = {};
|
|
3287
|
-
typeCheckConfig$
|
|
3287
|
+
typeCheckConfig$T(untrustedConfig, config, deleteDashboard_ConfigPropertyMetadata);
|
|
3288
3288
|
return config;
|
|
3289
3289
|
}
|
|
3290
|
-
function validateAdapterConfig$
|
|
3290
|
+
function validateAdapterConfig$L(untrustedConfig, configPropertyNames) {
|
|
3291
3291
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3292
3292
|
return null;
|
|
3293
3293
|
}
|
|
3294
3294
|
if (process.env.NODE_ENV !== 'production') {
|
|
3295
3295
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3296
3296
|
}
|
|
3297
|
-
const config = typeCheckConfig$
|
|
3297
|
+
const config = typeCheckConfig$L(untrustedConfig);
|
|
3298
3298
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3299
3299
|
return null;
|
|
3300
3300
|
}
|
|
3301
3301
|
return config;
|
|
3302
3302
|
}
|
|
3303
|
-
function buildNetworkSnapshot$
|
|
3304
|
-
const resourceParams = createResourceParams$
|
|
3305
|
-
const request = createResourceRequest$
|
|
3303
|
+
function buildNetworkSnapshot$L(luvio, config, options) {
|
|
3304
|
+
const resourceParams = createResourceParams$L(config);
|
|
3305
|
+
const request = createResourceRequest$L(resourceParams);
|
|
3306
3306
|
return luvio.dispatchResourceRequest(request, options)
|
|
3307
3307
|
.then(() => {
|
|
3308
3308
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -3310,7 +3310,7 @@ function buildNetworkSnapshot$I(luvio, config, options) {
|
|
|
3310
3310
|
return luvio.storeBroadcast();
|
|
3311
3311
|
}, () => {
|
|
3312
3312
|
const cache = new StoreKeyMap();
|
|
3313
|
-
getResponseCacheKeys$
|
|
3313
|
+
getResponseCacheKeys$L(cache, luvio, resourceParams);
|
|
3314
3314
|
return cache;
|
|
3315
3315
|
});
|
|
3316
3316
|
}, (response) => {
|
|
@@ -3320,33 +3320,33 @@ function buildNetworkSnapshot$I(luvio, config, options) {
|
|
|
3320
3320
|
}
|
|
3321
3321
|
const deleteDashboardAdapterFactory = (luvio) => {
|
|
3322
3322
|
return function UnifiedAnalyticsdeleteDashboard(untrustedConfig) {
|
|
3323
|
-
const config = validateAdapterConfig$
|
|
3323
|
+
const config = validateAdapterConfig$L(untrustedConfig, deleteDashboard_ConfigPropertyNames);
|
|
3324
3324
|
// Invalid or incomplete config
|
|
3325
3325
|
if (config === null) {
|
|
3326
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
3326
|
+
throw new Error(`Invalid config for "${adapterName$L}"`);
|
|
3327
3327
|
}
|
|
3328
|
-
return buildNetworkSnapshot$
|
|
3328
|
+
return buildNetworkSnapshot$L(luvio, config);
|
|
3329
3329
|
};
|
|
3330
3330
|
};
|
|
3331
3331
|
|
|
3332
|
-
function select$
|
|
3333
|
-
return select$
|
|
3332
|
+
function select$15(luvio, params) {
|
|
3333
|
+
return select$19();
|
|
3334
3334
|
}
|
|
3335
|
-
function keyBuilder
|
|
3336
|
-
return keyBuilder$
|
|
3335
|
+
function keyBuilder$10(luvio, params) {
|
|
3336
|
+
return keyBuilder$14(luvio, {
|
|
3337
3337
|
name: params.urlParams.dashboardIdOrApiName
|
|
3338
3338
|
});
|
|
3339
3339
|
}
|
|
3340
|
-
function getResponseCacheKeys$
|
|
3341
|
-
getTypeCacheKeys$
|
|
3340
|
+
function getResponseCacheKeys$K(storeKeyMap, luvio, resourceParams, response) {
|
|
3341
|
+
getTypeCacheKeys$u(storeKeyMap, luvio, response);
|
|
3342
3342
|
}
|
|
3343
|
-
function ingestSuccess$
|
|
3343
|
+
function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
|
|
3344
3344
|
const { body } = response;
|
|
3345
|
-
const key = keyBuilder
|
|
3346
|
-
luvio.storeIngest(key, ingest$
|
|
3345
|
+
const key = keyBuilder$10(luvio, resourceParams);
|
|
3346
|
+
luvio.storeIngest(key, ingest$u, body);
|
|
3347
3347
|
const snapshot = luvio.storeLookup({
|
|
3348
3348
|
recordId: key,
|
|
3349
|
-
node: select$
|
|
3349
|
+
node: select$15(),
|
|
3350
3350
|
variables: {},
|
|
3351
3351
|
}, snapshotRefresh);
|
|
3352
3352
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3358,12 +3358,12 @@ function ingestSuccess$B(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3358
3358
|
return snapshot;
|
|
3359
3359
|
}
|
|
3360
3360
|
function ingestError$k(luvio, params, error, snapshotRefresh) {
|
|
3361
|
-
const key = keyBuilder
|
|
3361
|
+
const key = keyBuilder$10(luvio, params);
|
|
3362
3362
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3363
3363
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3364
3364
|
return errorSnapshot;
|
|
3365
3365
|
}
|
|
3366
|
-
function createResourceRequest$
|
|
3366
|
+
function createResourceRequest$K(config) {
|
|
3367
3367
|
const headers = {};
|
|
3368
3368
|
return {
|
|
3369
3369
|
baseUri: '/services/data/v63.0',
|
|
@@ -3377,60 +3377,60 @@ function createResourceRequest$H(config) {
|
|
|
3377
3377
|
};
|
|
3378
3378
|
}
|
|
3379
3379
|
|
|
3380
|
-
const adapterName$
|
|
3380
|
+
const adapterName$K = 'getDashboardByName';
|
|
3381
3381
|
const getDashboardByName_ConfigPropertyMetadata = [
|
|
3382
3382
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3383
3383
|
];
|
|
3384
|
-
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3385
|
-
const createResourceParams$
|
|
3386
|
-
function keyBuilder
|
|
3387
|
-
const resourceParams = createResourceParams$
|
|
3388
|
-
return keyBuilder
|
|
3384
|
+
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$K, getDashboardByName_ConfigPropertyMetadata);
|
|
3385
|
+
const createResourceParams$K = /*#__PURE__*/ createResourceParams$T(getDashboardByName_ConfigPropertyMetadata);
|
|
3386
|
+
function keyBuilder$$(luvio, config) {
|
|
3387
|
+
const resourceParams = createResourceParams$K(config);
|
|
3388
|
+
return keyBuilder$10(luvio, resourceParams);
|
|
3389
3389
|
}
|
|
3390
|
-
function typeCheckConfig$
|
|
3390
|
+
function typeCheckConfig$K(untrustedConfig) {
|
|
3391
3391
|
const config = {};
|
|
3392
|
-
typeCheckConfig$
|
|
3392
|
+
typeCheckConfig$T(untrustedConfig, config, getDashboardByName_ConfigPropertyMetadata);
|
|
3393
3393
|
return config;
|
|
3394
3394
|
}
|
|
3395
|
-
function validateAdapterConfig$
|
|
3395
|
+
function validateAdapterConfig$K(untrustedConfig, configPropertyNames) {
|
|
3396
3396
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3397
3397
|
return null;
|
|
3398
3398
|
}
|
|
3399
3399
|
if (process.env.NODE_ENV !== 'production') {
|
|
3400
3400
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3401
3401
|
}
|
|
3402
|
-
const config = typeCheckConfig$
|
|
3402
|
+
const config = typeCheckConfig$K(untrustedConfig);
|
|
3403
3403
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3404
3404
|
return null;
|
|
3405
3405
|
}
|
|
3406
3406
|
return config;
|
|
3407
3407
|
}
|
|
3408
3408
|
function adapterFragment$k(luvio, config) {
|
|
3409
|
-
createResourceParams$
|
|
3410
|
-
return select$
|
|
3409
|
+
createResourceParams$K(config);
|
|
3410
|
+
return select$15();
|
|
3411
3411
|
}
|
|
3412
3412
|
function onFetchResponseSuccess$k(luvio, config, resourceParams, response) {
|
|
3413
|
-
const snapshot = ingestSuccess$
|
|
3413
|
+
const snapshot = ingestSuccess$E(luvio, resourceParams, response, {
|
|
3414
3414
|
config,
|
|
3415
|
-
resolve: () => buildNetworkSnapshot$
|
|
3415
|
+
resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions)
|
|
3416
3416
|
});
|
|
3417
3417
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3418
3418
|
}
|
|
3419
3419
|
function onFetchResponseError$k(luvio, config, resourceParams, response) {
|
|
3420
3420
|
const snapshot = ingestError$k(luvio, resourceParams, response, {
|
|
3421
3421
|
config,
|
|
3422
|
-
resolve: () => buildNetworkSnapshot$
|
|
3422
|
+
resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions)
|
|
3423
3423
|
});
|
|
3424
3424
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3425
3425
|
}
|
|
3426
|
-
function buildNetworkSnapshot$
|
|
3427
|
-
const resourceParams = createResourceParams$
|
|
3428
|
-
const request = createResourceRequest$
|
|
3426
|
+
function buildNetworkSnapshot$K(luvio, config, options) {
|
|
3427
|
+
const resourceParams = createResourceParams$K(config);
|
|
3428
|
+
const request = createResourceRequest$K(resourceParams);
|
|
3429
3429
|
return luvio.dispatchResourceRequest(request, options)
|
|
3430
3430
|
.then((response) => {
|
|
3431
3431
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$k(luvio, config, resourceParams, response), () => {
|
|
3432
3432
|
const cache = new StoreKeyMap();
|
|
3433
|
-
getResponseCacheKeys$
|
|
3433
|
+
getResponseCacheKeys$K(cache, luvio, resourceParams, response.body);
|
|
3434
3434
|
return cache;
|
|
3435
3435
|
});
|
|
3436
3436
|
}, (response) => {
|
|
@@ -3438,23 +3438,23 @@ function buildNetworkSnapshot$H(luvio, config, options) {
|
|
|
3438
3438
|
});
|
|
3439
3439
|
}
|
|
3440
3440
|
function buildNetworkSnapshotCachePolicy$k(context, coercedAdapterRequestContext) {
|
|
3441
|
-
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
3441
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$K, undefined, false);
|
|
3442
3442
|
}
|
|
3443
3443
|
function buildCachedSnapshotCachePolicy$k(context, storeLookup) {
|
|
3444
3444
|
const { luvio, config } = context;
|
|
3445
3445
|
const selector = {
|
|
3446
|
-
recordId: keyBuilder
|
|
3446
|
+
recordId: keyBuilder$$(luvio, config),
|
|
3447
3447
|
node: adapterFragment$k(luvio, config),
|
|
3448
3448
|
variables: {},
|
|
3449
3449
|
};
|
|
3450
3450
|
const cacheSnapshot = storeLookup(selector, {
|
|
3451
3451
|
config,
|
|
3452
|
-
resolve: () => buildNetworkSnapshot$
|
|
3452
|
+
resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions)
|
|
3453
3453
|
});
|
|
3454
3454
|
return cacheSnapshot;
|
|
3455
3455
|
}
|
|
3456
3456
|
const getDashboardByNameAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboardByName(untrustedConfig, requestContext) {
|
|
3457
|
-
const config = validateAdapterConfig$
|
|
3457
|
+
const config = validateAdapterConfig$K(untrustedConfig, getDashboardByName_ConfigPropertyNames);
|
|
3458
3458
|
// Invalid or incomplete config
|
|
3459
3459
|
if (config === null) {
|
|
3460
3460
|
return null;
|
|
@@ -3463,19 +3463,19 @@ const getDashboardByNameAdapterFactory = (luvio) => function UnifiedAnalytics__g
|
|
|
3463
3463
|
buildCachedSnapshotCachePolicy$k, buildNetworkSnapshotCachePolicy$k);
|
|
3464
3464
|
};
|
|
3465
3465
|
|
|
3466
|
-
function select$
|
|
3467
|
-
return select$
|
|
3466
|
+
function select$14(luvio, params) {
|
|
3467
|
+
return select$19();
|
|
3468
3468
|
}
|
|
3469
|
-
function getResponseCacheKeys$
|
|
3470
|
-
getTypeCacheKeys$
|
|
3469
|
+
function getResponseCacheKeys$J(storeKeyMap, luvio, resourceParams, response) {
|
|
3470
|
+
getTypeCacheKeys$u(storeKeyMap, luvio, response);
|
|
3471
3471
|
}
|
|
3472
|
-
function ingestSuccess$
|
|
3472
|
+
function ingestSuccess$D(luvio, resourceParams, response) {
|
|
3473
3473
|
const { body } = response;
|
|
3474
|
-
const key = keyBuilderFromType$
|
|
3475
|
-
luvio.storeIngest(key, ingest$
|
|
3474
|
+
const key = keyBuilderFromType$f(luvio, body);
|
|
3475
|
+
luvio.storeIngest(key, ingest$u, body);
|
|
3476
3476
|
const snapshot = luvio.storeLookup({
|
|
3477
3477
|
recordId: key,
|
|
3478
|
-
node: select$
|
|
3478
|
+
node: select$14(),
|
|
3479
3479
|
variables: {},
|
|
3480
3480
|
});
|
|
3481
3481
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3486,7 +3486,7 @@ function ingestSuccess$A(luvio, resourceParams, response) {
|
|
|
3486
3486
|
deepFreeze(snapshot.data);
|
|
3487
3487
|
return snapshot;
|
|
3488
3488
|
}
|
|
3489
|
-
function createResourceRequest$
|
|
3489
|
+
function createResourceRequest$J(config) {
|
|
3490
3490
|
const headers = {};
|
|
3491
3491
|
return {
|
|
3492
3492
|
baseUri: '/services/data/v63.0',
|
|
@@ -3500,7 +3500,7 @@ function createResourceRequest$G(config) {
|
|
|
3500
3500
|
};
|
|
3501
3501
|
}
|
|
3502
3502
|
|
|
3503
|
-
const adapterName$
|
|
3503
|
+
const adapterName$J = 'updateDashboard';
|
|
3504
3504
|
const updateDashboard_ConfigPropertyMetadata = [
|
|
3505
3505
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3506
3506
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -3512,11 +3512,11 @@ const updateDashboard_ConfigPropertyMetadata = [
|
|
|
3512
3512
|
generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3513
3513
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3514
3514
|
];
|
|
3515
|
-
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3516
|
-
const createResourceParams$
|
|
3517
|
-
function typeCheckConfig$
|
|
3515
|
+
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$J, updateDashboard_ConfigPropertyMetadata);
|
|
3516
|
+
const createResourceParams$J = /*#__PURE__*/ createResourceParams$T(updateDashboard_ConfigPropertyMetadata);
|
|
3517
|
+
function typeCheckConfig$J(untrustedConfig) {
|
|
3518
3518
|
const config = {};
|
|
3519
|
-
typeCheckConfig$
|
|
3519
|
+
typeCheckConfig$T(untrustedConfig, config, updateDashboard_ConfigPropertyMetadata);
|
|
3520
3520
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
3521
3521
|
if (ArrayIsArray$1(untrustedConfig_layouts)) {
|
|
3522
3522
|
const untrustedConfig_layouts_array = [];
|
|
@@ -3558,30 +3558,30 @@ function typeCheckConfig$G(untrustedConfig) {
|
|
|
3558
3558
|
}
|
|
3559
3559
|
return config;
|
|
3560
3560
|
}
|
|
3561
|
-
function validateAdapterConfig$
|
|
3561
|
+
function validateAdapterConfig$J(untrustedConfig, configPropertyNames) {
|
|
3562
3562
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3563
3563
|
return null;
|
|
3564
3564
|
}
|
|
3565
3565
|
if (process.env.NODE_ENV !== 'production') {
|
|
3566
3566
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3567
3567
|
}
|
|
3568
|
-
const config = typeCheckConfig$
|
|
3568
|
+
const config = typeCheckConfig$J(untrustedConfig);
|
|
3569
3569
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3570
3570
|
return null;
|
|
3571
3571
|
}
|
|
3572
3572
|
return config;
|
|
3573
3573
|
}
|
|
3574
|
-
function buildNetworkSnapshot$
|
|
3575
|
-
const resourceParams = createResourceParams$
|
|
3576
|
-
const request = createResourceRequest$
|
|
3574
|
+
function buildNetworkSnapshot$J(luvio, config, options) {
|
|
3575
|
+
const resourceParams = createResourceParams$J(config);
|
|
3576
|
+
const request = createResourceRequest$J(resourceParams);
|
|
3577
3577
|
return luvio.dispatchResourceRequest(request, options)
|
|
3578
3578
|
.then((response) => {
|
|
3579
3579
|
return luvio.handleSuccessResponse(() => {
|
|
3580
|
-
const snapshot = ingestSuccess$
|
|
3580
|
+
const snapshot = ingestSuccess$D(luvio, resourceParams, response);
|
|
3581
3581
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3582
3582
|
}, () => {
|
|
3583
3583
|
const cache = new StoreKeyMap();
|
|
3584
|
-
getResponseCacheKeys$
|
|
3584
|
+
getResponseCacheKeys$J(cache, luvio, resourceParams, response.body);
|
|
3585
3585
|
return cache;
|
|
3586
3586
|
});
|
|
3587
3587
|
}, (response) => {
|
|
@@ -3591,17 +3591,498 @@ function buildNetworkSnapshot$G(luvio, config, options) {
|
|
|
3591
3591
|
}
|
|
3592
3592
|
const updateDashboardAdapterFactory = (luvio) => {
|
|
3593
3593
|
return function updateDashboard(untrustedConfig) {
|
|
3594
|
-
const config = validateAdapterConfig$
|
|
3594
|
+
const config = validateAdapterConfig$J(untrustedConfig, updateDashboard_ConfigPropertyNames);
|
|
3595
|
+
// Invalid or incomplete config
|
|
3596
|
+
if (config === null) {
|
|
3597
|
+
throw new Error('Invalid config for "updateDashboard"');
|
|
3598
|
+
}
|
|
3599
|
+
return buildNetworkSnapshot$J(luvio, config);
|
|
3600
|
+
};
|
|
3601
|
+
};
|
|
3602
|
+
|
|
3603
|
+
var DiscriminatorValues$3;
|
|
3604
|
+
(function (DiscriminatorValues) {
|
|
3605
|
+
DiscriminatorValues["Notification"] = "Notification";
|
|
3606
|
+
})(DiscriminatorValues$3 || (DiscriminatorValues$3 = {}));
|
|
3607
|
+
function validate$M(obj, path = 'DataAlertReceiversInputRepresentation') {
|
|
3608
|
+
const v_error = (() => {
|
|
3609
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3610
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3611
|
+
}
|
|
3612
|
+
const obj_type = obj.type;
|
|
3613
|
+
const path_type = path + '.type';
|
|
3614
|
+
if (typeof obj_type !== 'string') {
|
|
3615
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3616
|
+
}
|
|
3617
|
+
})();
|
|
3618
|
+
return v_error === undefined ? null : v_error;
|
|
3619
|
+
}
|
|
3620
|
+
|
|
3621
|
+
function validate$L(obj, path = 'DataAlertDeliveryConfigurationInputRepresentation') {
|
|
3622
|
+
const v_error = (() => {
|
|
3623
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3624
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3625
|
+
}
|
|
3626
|
+
const obj_receivers = obj.receivers;
|
|
3627
|
+
const path_receivers = path + '.receivers';
|
|
3628
|
+
if (!ArrayIsArray(obj_receivers)) {
|
|
3629
|
+
return new TypeError('Expected "array" but received "' + typeof obj_receivers + '" (at "' + path_receivers + '")');
|
|
3630
|
+
}
|
|
3631
|
+
for (let i = 0; i < obj_receivers.length; i++) {
|
|
3632
|
+
const obj_receivers_item = obj_receivers[i];
|
|
3633
|
+
const path_receivers_item = path_receivers + '[' + i + ']';
|
|
3634
|
+
const referencepath_receivers_itemValidationError = validate$M(obj_receivers_item, path_receivers_item);
|
|
3635
|
+
if (referencepath_receivers_itemValidationError !== null) {
|
|
3636
|
+
let message = 'Object doesn\'t match DataAlertReceiversInputRepresentation (at "' + path_receivers_item + '")\n';
|
|
3637
|
+
message += referencepath_receivers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3638
|
+
return new TypeError(message);
|
|
3639
|
+
}
|
|
3640
|
+
}
|
|
3641
|
+
})();
|
|
3642
|
+
return v_error === undefined ? null : v_error;
|
|
3643
|
+
}
|
|
3644
|
+
|
|
3645
|
+
var DiscriminatorValues$2;
|
|
3646
|
+
(function (DiscriminatorValues) {
|
|
3647
|
+
DiscriminatorValues["RawValue"] = "RawValue";
|
|
3648
|
+
DiscriminatorValues["Insights"] = "Insights";
|
|
3649
|
+
})(DiscriminatorValues$2 || (DiscriminatorValues$2 = {}));
|
|
3650
|
+
function validate$K(obj, path = 'DataAlertValueInputRepresentation') {
|
|
3651
|
+
const v_error = (() => {
|
|
3652
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3653
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3654
|
+
}
|
|
3655
|
+
const obj_type = obj.type;
|
|
3656
|
+
const path_type = path + '.type';
|
|
3657
|
+
if (typeof obj_type !== 'string') {
|
|
3658
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3659
|
+
}
|
|
3660
|
+
})();
|
|
3661
|
+
return v_error === undefined ? null : v_error;
|
|
3662
|
+
}
|
|
3663
|
+
|
|
3664
|
+
function validate$J(obj, path = 'DataAlertValueRightOperandInputRepresentation') {
|
|
3665
|
+
const v_error = (() => {
|
|
3666
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3667
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3668
|
+
}
|
|
3669
|
+
const obj_type = obj.type;
|
|
3670
|
+
const path_type = path + '.type';
|
|
3671
|
+
if (typeof obj_type !== 'string') {
|
|
3672
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3673
|
+
}
|
|
3674
|
+
})();
|
|
3675
|
+
return v_error === undefined ? null : v_error;
|
|
3676
|
+
}
|
|
3677
|
+
|
|
3678
|
+
function validate$I(obj, path = 'DataAlertConditionInputRepresentation') {
|
|
3679
|
+
const v_error = (() => {
|
|
3680
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3681
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3682
|
+
}
|
|
3683
|
+
const obj_leftOperand = obj.leftOperand;
|
|
3684
|
+
const path_leftOperand = path + '.leftOperand';
|
|
3685
|
+
const referencepath_leftOperandValidationError = validate$K(obj_leftOperand, path_leftOperand);
|
|
3686
|
+
if (referencepath_leftOperandValidationError !== null) {
|
|
3687
|
+
let message = 'Object doesn\'t match DataAlertValueInputRepresentation (at "' + path_leftOperand + '")\n';
|
|
3688
|
+
message += referencepath_leftOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3689
|
+
return new TypeError(message);
|
|
3690
|
+
}
|
|
3691
|
+
const obj_operator = obj.operator;
|
|
3692
|
+
const path_operator = path + '.operator';
|
|
3693
|
+
if (typeof obj_operator !== 'string') {
|
|
3694
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
3695
|
+
}
|
|
3696
|
+
const obj_rightOperand = obj.rightOperand;
|
|
3697
|
+
const path_rightOperand = path + '.rightOperand';
|
|
3698
|
+
const referencepath_rightOperandValidationError = validate$J(obj_rightOperand, path_rightOperand);
|
|
3699
|
+
if (referencepath_rightOperandValidationError !== null) {
|
|
3700
|
+
let message = 'Object doesn\'t match DataAlertValueRightOperandInputRepresentation (at "' + path_rightOperand + '")\n';
|
|
3701
|
+
message += referencepath_rightOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3702
|
+
return new TypeError(message);
|
|
3703
|
+
}
|
|
3704
|
+
})();
|
|
3705
|
+
return v_error === undefined ? null : v_error;
|
|
3706
|
+
}
|
|
3707
|
+
|
|
3708
|
+
function validate$H(obj, path = 'DataAlertThresholdsInputRepresentation') {
|
|
3709
|
+
const v_error = (() => {
|
|
3710
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3711
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3712
|
+
}
|
|
3713
|
+
const obj_conditions = obj.conditions;
|
|
3714
|
+
const path_conditions = path + '.conditions';
|
|
3715
|
+
if (!ArrayIsArray(obj_conditions)) {
|
|
3716
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conditions + '" (at "' + path_conditions + '")');
|
|
3717
|
+
}
|
|
3718
|
+
for (let i = 0; i < obj_conditions.length; i++) {
|
|
3719
|
+
const obj_conditions_item = obj_conditions[i];
|
|
3720
|
+
const path_conditions_item = path_conditions + '[' + i + ']';
|
|
3721
|
+
const referencepath_conditions_itemValidationError = validate$I(obj_conditions_item, path_conditions_item);
|
|
3722
|
+
if (referencepath_conditions_itemValidationError !== null) {
|
|
3723
|
+
let message = 'Object doesn\'t match DataAlertConditionInputRepresentation (at "' + path_conditions_item + '")\n';
|
|
3724
|
+
message += referencepath_conditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3725
|
+
return new TypeError(message);
|
|
3726
|
+
}
|
|
3727
|
+
}
|
|
3728
|
+
const obj_customLogicalOperation = obj.customLogicalOperation;
|
|
3729
|
+
const path_customLogicalOperation = path + '.customLogicalOperation';
|
|
3730
|
+
if (typeof obj_customLogicalOperation !== 'string') {
|
|
3731
|
+
return new TypeError('Expected "string" but received "' + typeof obj_customLogicalOperation + '" (at "' + path_customLogicalOperation + '")');
|
|
3732
|
+
}
|
|
3733
|
+
})();
|
|
3734
|
+
return v_error === undefined ? null : v_error;
|
|
3735
|
+
}
|
|
3736
|
+
|
|
3737
|
+
const TTL$i = 500;
|
|
3738
|
+
const VERSION$s = "7f11b071aca79c0d2d3ecbfb23e11589";
|
|
3739
|
+
function validate$G(obj, path = 'DataAlertRepresentation') {
|
|
3740
|
+
const v_error = (() => {
|
|
3741
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3742
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3743
|
+
}
|
|
3744
|
+
const obj_id = obj.id;
|
|
3745
|
+
const path_id = path + '.id';
|
|
3746
|
+
if (typeof obj_id !== 'string') {
|
|
3747
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3748
|
+
}
|
|
3749
|
+
})();
|
|
3750
|
+
return v_error === undefined ? null : v_error;
|
|
3751
|
+
}
|
|
3752
|
+
const RepresentationType$u = 'DataAlertRepresentation';
|
|
3753
|
+
function keyBuilder$_(luvio, config) {
|
|
3754
|
+
return keyPrefix + '::' + RepresentationType$u + ':' + config.dataAlertId;
|
|
3755
|
+
}
|
|
3756
|
+
function keyBuilderFromType$e(luvio, object) {
|
|
3757
|
+
const keyParams = {
|
|
3758
|
+
dataAlertId: object.id
|
|
3759
|
+
};
|
|
3760
|
+
return keyBuilder$_(luvio, keyParams);
|
|
3761
|
+
}
|
|
3762
|
+
function normalize$s(input, existing, path, luvio, store, timestamp) {
|
|
3763
|
+
return input;
|
|
3764
|
+
}
|
|
3765
|
+
const select$13 = function DataAlertRepresentationSelect() {
|
|
3766
|
+
return {
|
|
3767
|
+
kind: 'Fragment',
|
|
3768
|
+
version: VERSION$s,
|
|
3769
|
+
private: [],
|
|
3770
|
+
opaque: true
|
|
3771
|
+
};
|
|
3772
|
+
};
|
|
3773
|
+
function equals$s(existing, incoming) {
|
|
3774
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3775
|
+
return false;
|
|
3776
|
+
}
|
|
3777
|
+
return true;
|
|
3778
|
+
}
|
|
3779
|
+
const ingest$s = function DataAlertRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3780
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3781
|
+
const validateError = validate$G(input);
|
|
3782
|
+
if (validateError !== null) {
|
|
3783
|
+
throw validateError;
|
|
3784
|
+
}
|
|
3785
|
+
}
|
|
3786
|
+
const key = keyBuilderFromType$e(luvio, input);
|
|
3787
|
+
const ttlToUse = TTL$i;
|
|
3788
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$s, "UnifiedAnalytics", VERSION$s, RepresentationType$u, equals$s);
|
|
3789
|
+
return createLink(key);
|
|
3790
|
+
};
|
|
3791
|
+
function getTypeCacheKeys$s(rootKeySet, luvio, input, fullPathFactory) {
|
|
3792
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3793
|
+
const rootKey = keyBuilderFromType$e(luvio, input);
|
|
3794
|
+
rootKeySet.set(rootKey, {
|
|
3795
|
+
namespace: keyPrefix,
|
|
3796
|
+
representationName: RepresentationType$u,
|
|
3797
|
+
mergeable: false
|
|
3798
|
+
});
|
|
3799
|
+
}
|
|
3800
|
+
|
|
3801
|
+
function select$12(luvio, params) {
|
|
3802
|
+
return select$13();
|
|
3803
|
+
}
|
|
3804
|
+
function getResponseCacheKeys$I(storeKeyMap, luvio, resourceParams, response) {
|
|
3805
|
+
getTypeCacheKeys$s(storeKeyMap, luvio, response);
|
|
3806
|
+
}
|
|
3807
|
+
function ingestSuccess$C(luvio, resourceParams, response) {
|
|
3808
|
+
const { body } = response;
|
|
3809
|
+
const key = keyBuilderFromType$e(luvio, body);
|
|
3810
|
+
luvio.storeIngest(key, ingest$s, body);
|
|
3811
|
+
const snapshot = luvio.storeLookup({
|
|
3812
|
+
recordId: key,
|
|
3813
|
+
node: select$12(),
|
|
3814
|
+
variables: {},
|
|
3815
|
+
});
|
|
3816
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3817
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
3818
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3819
|
+
}
|
|
3820
|
+
}
|
|
3821
|
+
deepFreeze(snapshot.data);
|
|
3822
|
+
return snapshot;
|
|
3823
|
+
}
|
|
3824
|
+
function createResourceRequest$I(config) {
|
|
3825
|
+
const headers = {};
|
|
3826
|
+
return {
|
|
3827
|
+
baseUri: '/services/data/v63.0',
|
|
3828
|
+
basePath: '/tableau/dataAlerts',
|
|
3829
|
+
method: 'post',
|
|
3830
|
+
body: config.body,
|
|
3831
|
+
urlParams: {},
|
|
3832
|
+
queryParams: config.queryParams,
|
|
3833
|
+
headers,
|
|
3834
|
+
priority: 'normal',
|
|
3835
|
+
};
|
|
3836
|
+
}
|
|
3837
|
+
|
|
3838
|
+
var DiscriminatorValues$1;
|
|
3839
|
+
(function (DiscriminatorValues) {
|
|
3840
|
+
DiscriminatorValues["Metric"] = "Metric";
|
|
3841
|
+
})(DiscriminatorValues$1 || (DiscriminatorValues$1 = {}));
|
|
3842
|
+
function validate$F(obj, path = 'DataAlertContentInputRepresentation') {
|
|
3843
|
+
const v_error = (() => {
|
|
3844
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3845
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3846
|
+
}
|
|
3847
|
+
const obj_type = obj.type;
|
|
3848
|
+
const path_type = path + '.type';
|
|
3849
|
+
if (typeof obj_type !== 'string') {
|
|
3850
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3851
|
+
}
|
|
3852
|
+
})();
|
|
3853
|
+
return v_error === undefined ? null : v_error;
|
|
3854
|
+
}
|
|
3855
|
+
|
|
3856
|
+
var DiscriminatorValues;
|
|
3857
|
+
(function (DiscriminatorValues) {
|
|
3858
|
+
DiscriminatorValues["Daily"] = "Daily";
|
|
3859
|
+
DiscriminatorValues["Weekly"] = "Weekly";
|
|
3860
|
+
DiscriminatorValues["Cron"] = "Cron";
|
|
3861
|
+
})(DiscriminatorValues || (DiscriminatorValues = {}));
|
|
3862
|
+
function validate$E(obj, path = 'DataAlertScheduleInputRepresentation') {
|
|
3863
|
+
const v_error = (() => {
|
|
3864
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3865
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3866
|
+
}
|
|
3867
|
+
const obj_hoursOfDay = obj.hoursOfDay;
|
|
3868
|
+
const path_hoursOfDay = path + '.hoursOfDay';
|
|
3869
|
+
if (!ArrayIsArray(obj_hoursOfDay)) {
|
|
3870
|
+
return new TypeError('Expected "array" but received "' + typeof obj_hoursOfDay + '" (at "' + path_hoursOfDay + '")');
|
|
3871
|
+
}
|
|
3872
|
+
for (let i = 0; i < obj_hoursOfDay.length; i++) {
|
|
3873
|
+
const obj_hoursOfDay_item = obj_hoursOfDay[i];
|
|
3874
|
+
const path_hoursOfDay_item = path_hoursOfDay + '[' + i + ']';
|
|
3875
|
+
if (typeof obj_hoursOfDay_item !== 'number' || (typeof obj_hoursOfDay_item === 'number' && Math.floor(obj_hoursOfDay_item) !== obj_hoursOfDay_item)) {
|
|
3876
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_hoursOfDay_item + '" (at "' + path_hoursOfDay_item + '")');
|
|
3877
|
+
}
|
|
3878
|
+
}
|
|
3879
|
+
const obj_type = obj.type;
|
|
3880
|
+
const path_type = path + '.type';
|
|
3881
|
+
if (typeof obj_type !== 'string') {
|
|
3882
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3883
|
+
}
|
|
3884
|
+
})();
|
|
3885
|
+
return v_error === undefined ? null : v_error;
|
|
3886
|
+
}
|
|
3887
|
+
|
|
3888
|
+
const adapterName$I = 'createDataAlert';
|
|
3889
|
+
const createDataAlert_ConfigPropertyMetadata = [
|
|
3890
|
+
generateParamConfigMetadata('runNow', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
3891
|
+
generateParamConfigMetadata('analysisUtterance', true, 2 /* Body */, 0 /* String */),
|
|
3892
|
+
generateParamConfigMetadata('content', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3893
|
+
generateParamConfigMetadata('deliveryConfigurations', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3894
|
+
generateParamConfigMetadata('schedule', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3895
|
+
generateParamConfigMetadata('thresholds', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3896
|
+
generateParamConfigMetadata('utterance', true, 2 /* Body */, 0 /* String */),
|
|
3897
|
+
];
|
|
3898
|
+
const createDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$I, createDataAlert_ConfigPropertyMetadata);
|
|
3899
|
+
const createResourceParams$I = /*#__PURE__*/ createResourceParams$T(createDataAlert_ConfigPropertyMetadata);
|
|
3900
|
+
function typeCheckConfig$I(untrustedConfig) {
|
|
3901
|
+
const config = {};
|
|
3902
|
+
typeCheckConfig$T(untrustedConfig, config, createDataAlert_ConfigPropertyMetadata);
|
|
3903
|
+
const untrustedConfig_content = untrustedConfig.content;
|
|
3904
|
+
const referenceDataAlertContentInputRepresentationValidationError = validate$F(untrustedConfig_content);
|
|
3905
|
+
if (referenceDataAlertContentInputRepresentationValidationError === null) {
|
|
3906
|
+
config.content = untrustedConfig_content;
|
|
3907
|
+
}
|
|
3908
|
+
const untrustedConfig_deliveryConfigurations = untrustedConfig.deliveryConfigurations;
|
|
3909
|
+
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$L(untrustedConfig_deliveryConfigurations);
|
|
3910
|
+
if (referenceDataAlertDeliveryConfigurationInputRepresentationValidationError === null) {
|
|
3911
|
+
config.deliveryConfigurations = untrustedConfig_deliveryConfigurations;
|
|
3912
|
+
}
|
|
3913
|
+
const untrustedConfig_schedule = untrustedConfig.schedule;
|
|
3914
|
+
const referenceDataAlertScheduleInputRepresentationValidationError = validate$E(untrustedConfig_schedule);
|
|
3915
|
+
if (referenceDataAlertScheduleInputRepresentationValidationError === null) {
|
|
3916
|
+
config.schedule = untrustedConfig_schedule;
|
|
3917
|
+
}
|
|
3918
|
+
const untrustedConfig_thresholds = untrustedConfig.thresholds;
|
|
3919
|
+
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$H(untrustedConfig_thresholds);
|
|
3920
|
+
if (referenceDataAlertThresholdsInputRepresentationValidationError === null) {
|
|
3921
|
+
config.thresholds = untrustedConfig_thresholds;
|
|
3922
|
+
}
|
|
3923
|
+
return config;
|
|
3924
|
+
}
|
|
3925
|
+
function validateAdapterConfig$I(untrustedConfig, configPropertyNames) {
|
|
3926
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
3927
|
+
return null;
|
|
3928
|
+
}
|
|
3929
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3930
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
3931
|
+
}
|
|
3932
|
+
const config = typeCheckConfig$I(untrustedConfig);
|
|
3933
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3934
|
+
return null;
|
|
3935
|
+
}
|
|
3936
|
+
return config;
|
|
3937
|
+
}
|
|
3938
|
+
function buildNetworkSnapshot$I(luvio, config, options) {
|
|
3939
|
+
const resourceParams = createResourceParams$I(config);
|
|
3940
|
+
const request = createResourceRequest$I(resourceParams);
|
|
3941
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
3942
|
+
.then((response) => {
|
|
3943
|
+
return luvio.handleSuccessResponse(() => {
|
|
3944
|
+
const snapshot = ingestSuccess$C(luvio, resourceParams, response);
|
|
3945
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3946
|
+
}, () => {
|
|
3947
|
+
const cache = new StoreKeyMap();
|
|
3948
|
+
getResponseCacheKeys$I(cache, luvio, resourceParams, response.body);
|
|
3949
|
+
return cache;
|
|
3950
|
+
});
|
|
3951
|
+
}, (response) => {
|
|
3952
|
+
deepFreeze(response);
|
|
3953
|
+
throw response;
|
|
3954
|
+
});
|
|
3955
|
+
}
|
|
3956
|
+
const createDataAlertAdapterFactory = (luvio) => {
|
|
3957
|
+
return function createDataAlert(untrustedConfig) {
|
|
3958
|
+
const config = validateAdapterConfig$I(untrustedConfig, createDataAlert_ConfigPropertyNames);
|
|
3959
|
+
// Invalid or incomplete config
|
|
3960
|
+
if (config === null) {
|
|
3961
|
+
throw new Error('Invalid config for "createDataAlert"');
|
|
3962
|
+
}
|
|
3963
|
+
return buildNetworkSnapshot$I(luvio, config);
|
|
3964
|
+
};
|
|
3965
|
+
};
|
|
3966
|
+
|
|
3967
|
+
function select$11(luvio, params) {
|
|
3968
|
+
return select$13();
|
|
3969
|
+
}
|
|
3970
|
+
function getResponseCacheKeys$H(storeKeyMap, luvio, resourceParams, response) {
|
|
3971
|
+
getTypeCacheKeys$s(storeKeyMap, luvio, response);
|
|
3972
|
+
}
|
|
3973
|
+
function ingestSuccess$B(luvio, resourceParams, response) {
|
|
3974
|
+
const { body } = response;
|
|
3975
|
+
const key = keyBuilderFromType$e(luvio, body);
|
|
3976
|
+
luvio.storeIngest(key, ingest$s, body);
|
|
3977
|
+
const snapshot = luvio.storeLookup({
|
|
3978
|
+
recordId: key,
|
|
3979
|
+
node: select$11(),
|
|
3980
|
+
variables: {},
|
|
3981
|
+
});
|
|
3982
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3983
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
3984
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3985
|
+
}
|
|
3986
|
+
}
|
|
3987
|
+
deepFreeze(snapshot.data);
|
|
3988
|
+
return snapshot;
|
|
3989
|
+
}
|
|
3990
|
+
function createResourceRequest$H(config) {
|
|
3991
|
+
const headers = {};
|
|
3992
|
+
return {
|
|
3993
|
+
baseUri: '/services/data/v63.0',
|
|
3994
|
+
basePath: '/tableau/dataAlerts/' + config.urlParams.dataAlertId + '',
|
|
3995
|
+
method: 'put',
|
|
3996
|
+
body: config.body,
|
|
3997
|
+
urlParams: config.urlParams,
|
|
3998
|
+
queryParams: config.queryParams,
|
|
3999
|
+
headers,
|
|
4000
|
+
priority: 'normal',
|
|
4001
|
+
};
|
|
4002
|
+
}
|
|
4003
|
+
|
|
4004
|
+
const adapterName$H = 'updateDataAlert';
|
|
4005
|
+
const updateDataAlert_ConfigPropertyMetadata = [
|
|
4006
|
+
generateParamConfigMetadata('dataAlertId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4007
|
+
generateParamConfigMetadata('runNow', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
4008
|
+
generateParamConfigMetadata('analysisUtterance', true, 2 /* Body */, 0 /* String */),
|
|
4009
|
+
generateParamConfigMetadata('content', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4010
|
+
generateParamConfigMetadata('deliveryConfigurations', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4011
|
+
generateParamConfigMetadata('schedule', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4012
|
+
generateParamConfigMetadata('thresholds', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4013
|
+
generateParamConfigMetadata('utterance', true, 2 /* Body */, 0 /* String */),
|
|
4014
|
+
];
|
|
4015
|
+
const updateDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$H, updateDataAlert_ConfigPropertyMetadata);
|
|
4016
|
+
const createResourceParams$H = /*#__PURE__*/ createResourceParams$T(updateDataAlert_ConfigPropertyMetadata);
|
|
4017
|
+
function typeCheckConfig$H(untrustedConfig) {
|
|
4018
|
+
const config = {};
|
|
4019
|
+
typeCheckConfig$T(untrustedConfig, config, updateDataAlert_ConfigPropertyMetadata);
|
|
4020
|
+
const untrustedConfig_content = untrustedConfig.content;
|
|
4021
|
+
const referenceDataAlertContentInputRepresentationValidationError = validate$F(untrustedConfig_content);
|
|
4022
|
+
if (referenceDataAlertContentInputRepresentationValidationError === null) {
|
|
4023
|
+
config.content = untrustedConfig_content;
|
|
4024
|
+
}
|
|
4025
|
+
const untrustedConfig_deliveryConfigurations = untrustedConfig.deliveryConfigurations;
|
|
4026
|
+
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$L(untrustedConfig_deliveryConfigurations);
|
|
4027
|
+
if (referenceDataAlertDeliveryConfigurationInputRepresentationValidationError === null) {
|
|
4028
|
+
config.deliveryConfigurations = untrustedConfig_deliveryConfigurations;
|
|
4029
|
+
}
|
|
4030
|
+
const untrustedConfig_schedule = untrustedConfig.schedule;
|
|
4031
|
+
const referenceDataAlertScheduleInputRepresentationValidationError = validate$E(untrustedConfig_schedule);
|
|
4032
|
+
if (referenceDataAlertScheduleInputRepresentationValidationError === null) {
|
|
4033
|
+
config.schedule = untrustedConfig_schedule;
|
|
4034
|
+
}
|
|
4035
|
+
const untrustedConfig_thresholds = untrustedConfig.thresholds;
|
|
4036
|
+
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$H(untrustedConfig_thresholds);
|
|
4037
|
+
if (referenceDataAlertThresholdsInputRepresentationValidationError === null) {
|
|
4038
|
+
config.thresholds = untrustedConfig_thresholds;
|
|
4039
|
+
}
|
|
4040
|
+
return config;
|
|
4041
|
+
}
|
|
4042
|
+
function validateAdapterConfig$H(untrustedConfig, configPropertyNames) {
|
|
4043
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4044
|
+
return null;
|
|
4045
|
+
}
|
|
4046
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4047
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4048
|
+
}
|
|
4049
|
+
const config = typeCheckConfig$H(untrustedConfig);
|
|
4050
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4051
|
+
return null;
|
|
4052
|
+
}
|
|
4053
|
+
return config;
|
|
4054
|
+
}
|
|
4055
|
+
function buildNetworkSnapshot$H(luvio, config, options) {
|
|
4056
|
+
const resourceParams = createResourceParams$H(config);
|
|
4057
|
+
const request = createResourceRequest$H(resourceParams);
|
|
4058
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4059
|
+
.then((response) => {
|
|
4060
|
+
return luvio.handleSuccessResponse(() => {
|
|
4061
|
+
const snapshot = ingestSuccess$B(luvio, resourceParams, response);
|
|
4062
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4063
|
+
}, () => {
|
|
4064
|
+
const cache = new StoreKeyMap();
|
|
4065
|
+
getResponseCacheKeys$H(cache, luvio, resourceParams, response.body);
|
|
4066
|
+
return cache;
|
|
4067
|
+
});
|
|
4068
|
+
}, (response) => {
|
|
4069
|
+
deepFreeze(response);
|
|
4070
|
+
throw response;
|
|
4071
|
+
});
|
|
4072
|
+
}
|
|
4073
|
+
const updateDataAlertAdapterFactory = (luvio) => {
|
|
4074
|
+
return function updateDataAlert(untrustedConfig) {
|
|
4075
|
+
const config = validateAdapterConfig$H(untrustedConfig, updateDataAlert_ConfigPropertyNames);
|
|
3595
4076
|
// Invalid or incomplete config
|
|
3596
4077
|
if (config === null) {
|
|
3597
|
-
throw new Error('Invalid config for "
|
|
4078
|
+
throw new Error('Invalid config for "updateDataAlert"');
|
|
3598
4079
|
}
|
|
3599
|
-
return buildNetworkSnapshot$
|
|
4080
|
+
return buildNetworkSnapshot$H(luvio, config);
|
|
3600
4081
|
};
|
|
3601
4082
|
};
|
|
3602
4083
|
|
|
3603
4084
|
function validate$D(obj, path = 'AnalyticsUserRepresentation') {
|
|
3604
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
4085
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$S(obj, path);
|
|
3605
4086
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
3606
4087
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
3607
4088
|
}
|
|
@@ -4223,7 +4704,7 @@ function keyBuilderFromType$d(luvio, object) {
|
|
|
4223
4704
|
function normalize$r(input, existing, path, luvio, store, timestamp) {
|
|
4224
4705
|
return input;
|
|
4225
4706
|
}
|
|
4226
|
-
const select
|
|
4707
|
+
const select$10 = function DataAssetRequestRepresentationSelect() {
|
|
4227
4708
|
return {
|
|
4228
4709
|
kind: 'Fragment',
|
|
4229
4710
|
version: VERSION$r,
|
|
@@ -4288,7 +4769,7 @@ const RepresentationType$s = 'DataAssetRequestCollectionRepresentation';
|
|
|
4288
4769
|
function normalize$q(input, existing, path, luvio, store, timestamp) {
|
|
4289
4770
|
return input;
|
|
4290
4771
|
}
|
|
4291
|
-
const select
|
|
4772
|
+
const select$$ = function DataAssetRequestCollectionRepresentationSelect() {
|
|
4292
4773
|
return {
|
|
4293
4774
|
kind: 'Fragment',
|
|
4294
4775
|
version: VERSION$q,
|
|
@@ -4324,22 +4805,22 @@ function getTypeCacheKeys$q(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4324
4805
|
});
|
|
4325
4806
|
}
|
|
4326
4807
|
|
|
4327
|
-
function select$
|
|
4328
|
-
return select
|
|
4808
|
+
function select$_(luvio, params) {
|
|
4809
|
+
return select$$();
|
|
4329
4810
|
}
|
|
4330
4811
|
function keyBuilder$Y(luvio, params) {
|
|
4331
4812
|
return keyPrefix + '::DataAssetRequestCollectionRepresentation:(' + 'assetId:' + params.queryParams.assetId + ',' + 'assetType:' + params.queryParams.assetType + ',' + 'createdBy:' + params.queryParams.createdBy + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ',' + 'requestType:' + params.queryParams.requestType + ',' + 'searchQueryTerm:' + params.queryParams.searchQueryTerm + ',' + 'sortBy:' + params.queryParams.sortBy + ',' + 'status:' + params.queryParams.status + ',' + 'workspaceIdOrApiName:' + params.queryParams.workspaceIdOrApiName + ')';
|
|
4332
4813
|
}
|
|
4333
|
-
function getResponseCacheKeys$
|
|
4814
|
+
function getResponseCacheKeys$G(storeKeyMap, luvio, resourceParams, response) {
|
|
4334
4815
|
getTypeCacheKeys$q(storeKeyMap, luvio, response, () => keyBuilder$Y(luvio, resourceParams));
|
|
4335
4816
|
}
|
|
4336
|
-
function ingestSuccess$
|
|
4817
|
+
function ingestSuccess$A(luvio, resourceParams, response, snapshotRefresh) {
|
|
4337
4818
|
const { body } = response;
|
|
4338
4819
|
const key = keyBuilder$Y(luvio, resourceParams);
|
|
4339
4820
|
luvio.storeIngest(key, ingest$q, body);
|
|
4340
4821
|
const snapshot = luvio.storeLookup({
|
|
4341
4822
|
recordId: key,
|
|
4342
|
-
node: select$
|
|
4823
|
+
node: select$_(),
|
|
4343
4824
|
variables: {},
|
|
4344
4825
|
}, snapshotRefresh);
|
|
4345
4826
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4362,7 +4843,7 @@ function ingestError$j(luvio, params, error, snapshotRefresh) {
|
|
|
4362
4843
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4363
4844
|
return errorSnapshot;
|
|
4364
4845
|
}
|
|
4365
|
-
function createResourceRequest$
|
|
4846
|
+
function createResourceRequest$G(config) {
|
|
4366
4847
|
const headers = {};
|
|
4367
4848
|
return {
|
|
4368
4849
|
baseUri: '/services/data/v63.0',
|
|
@@ -4376,7 +4857,7 @@ function createResourceRequest$F(config) {
|
|
|
4376
4857
|
};
|
|
4377
4858
|
}
|
|
4378
4859
|
|
|
4379
|
-
const adapterName$
|
|
4860
|
+
const adapterName$G = 'getDataAssetRequests';
|
|
4380
4861
|
const getDataAssetRequests_ConfigPropertyMetadata = [
|
|
4381
4862
|
generateParamConfigMetadata('assetId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4382
4863
|
generateParamConfigMetadata('assetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -4390,56 +4871,56 @@ const getDataAssetRequests_ConfigPropertyMetadata = [
|
|
|
4390
4871
|
generateParamConfigMetadata('status', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4391
4872
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4392
4873
|
];
|
|
4393
|
-
const getDataAssetRequests_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4394
|
-
const createResourceParams$
|
|
4874
|
+
const getDataAssetRequests_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$G, getDataAssetRequests_ConfigPropertyMetadata);
|
|
4875
|
+
const createResourceParams$G = /*#__PURE__*/ createResourceParams$T(getDataAssetRequests_ConfigPropertyMetadata);
|
|
4395
4876
|
function keyBuilder$X(luvio, config) {
|
|
4396
|
-
const resourceParams = createResourceParams$
|
|
4877
|
+
const resourceParams = createResourceParams$G(config);
|
|
4397
4878
|
return keyBuilder$Y(luvio, resourceParams);
|
|
4398
4879
|
}
|
|
4399
|
-
function typeCheckConfig$
|
|
4880
|
+
function typeCheckConfig$G(untrustedConfig) {
|
|
4400
4881
|
const config = {};
|
|
4401
|
-
typeCheckConfig$
|
|
4882
|
+
typeCheckConfig$T(untrustedConfig, config, getDataAssetRequests_ConfigPropertyMetadata);
|
|
4402
4883
|
return config;
|
|
4403
4884
|
}
|
|
4404
|
-
function validateAdapterConfig$
|
|
4885
|
+
function validateAdapterConfig$G(untrustedConfig, configPropertyNames) {
|
|
4405
4886
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4406
4887
|
return null;
|
|
4407
4888
|
}
|
|
4408
4889
|
if (process.env.NODE_ENV !== 'production') {
|
|
4409
4890
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4410
4891
|
}
|
|
4411
|
-
const config = typeCheckConfig$
|
|
4892
|
+
const config = typeCheckConfig$G(untrustedConfig);
|
|
4412
4893
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4413
4894
|
return null;
|
|
4414
4895
|
}
|
|
4415
4896
|
return config;
|
|
4416
4897
|
}
|
|
4417
4898
|
function adapterFragment$j(luvio, config) {
|
|
4418
|
-
createResourceParams$
|
|
4419
|
-
return select$
|
|
4899
|
+
createResourceParams$G(config);
|
|
4900
|
+
return select$_();
|
|
4420
4901
|
}
|
|
4421
4902
|
function onFetchResponseSuccess$j(luvio, config, resourceParams, response) {
|
|
4422
|
-
const snapshot = ingestSuccess$
|
|
4903
|
+
const snapshot = ingestSuccess$A(luvio, resourceParams, response, {
|
|
4423
4904
|
config,
|
|
4424
|
-
resolve: () => buildNetworkSnapshot$
|
|
4905
|
+
resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions)
|
|
4425
4906
|
});
|
|
4426
4907
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4427
4908
|
}
|
|
4428
4909
|
function onFetchResponseError$j(luvio, config, resourceParams, response) {
|
|
4429
4910
|
const snapshot = ingestError$j(luvio, resourceParams, response, {
|
|
4430
4911
|
config,
|
|
4431
|
-
resolve: () => buildNetworkSnapshot$
|
|
4912
|
+
resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions)
|
|
4432
4913
|
});
|
|
4433
4914
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4434
4915
|
}
|
|
4435
|
-
function buildNetworkSnapshot$
|
|
4436
|
-
const resourceParams = createResourceParams$
|
|
4437
|
-
const request = createResourceRequest$
|
|
4916
|
+
function buildNetworkSnapshot$G(luvio, config, options) {
|
|
4917
|
+
const resourceParams = createResourceParams$G(config);
|
|
4918
|
+
const request = createResourceRequest$G(resourceParams);
|
|
4438
4919
|
return luvio.dispatchResourceRequest(request, options)
|
|
4439
4920
|
.then((response) => {
|
|
4440
4921
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$j(luvio, config, resourceParams, response), () => {
|
|
4441
4922
|
const cache = new StoreKeyMap();
|
|
4442
|
-
getResponseCacheKeys$
|
|
4923
|
+
getResponseCacheKeys$G(cache, luvio, resourceParams, response.body);
|
|
4443
4924
|
return cache;
|
|
4444
4925
|
});
|
|
4445
4926
|
}, (response) => {
|
|
@@ -4447,7 +4928,7 @@ function buildNetworkSnapshot$F(luvio, config, options) {
|
|
|
4447
4928
|
});
|
|
4448
4929
|
}
|
|
4449
4930
|
function buildNetworkSnapshotCachePolicy$j(context, coercedAdapterRequestContext) {
|
|
4450
|
-
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
4931
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$G, undefined, false);
|
|
4451
4932
|
}
|
|
4452
4933
|
function buildCachedSnapshotCachePolicy$j(context, storeLookup) {
|
|
4453
4934
|
const { luvio, config } = context;
|
|
@@ -4458,12 +4939,12 @@ function buildCachedSnapshotCachePolicy$j(context, storeLookup) {
|
|
|
4458
4939
|
};
|
|
4459
4940
|
const cacheSnapshot = storeLookup(selector, {
|
|
4460
4941
|
config,
|
|
4461
|
-
resolve: () => buildNetworkSnapshot$
|
|
4942
|
+
resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions)
|
|
4462
4943
|
});
|
|
4463
4944
|
return cacheSnapshot;
|
|
4464
4945
|
}
|
|
4465
4946
|
const getDataAssetRequestsAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAssetRequests(untrustedConfig, requestContext) {
|
|
4466
|
-
const config = validateAdapterConfig$
|
|
4947
|
+
const config = validateAdapterConfig$G(untrustedConfig, getDataAssetRequests_ConfigPropertyNames);
|
|
4467
4948
|
// Invalid or incomplete config
|
|
4468
4949
|
if (config === null) {
|
|
4469
4950
|
return null;
|
|
@@ -4472,19 +4953,19 @@ const getDataAssetRequestsAdapterFactory = (luvio) => function UnifiedAnalytics_
|
|
|
4472
4953
|
buildCachedSnapshotCachePolicy$j, buildNetworkSnapshotCachePolicy$j);
|
|
4473
4954
|
};
|
|
4474
4955
|
|
|
4475
|
-
function select$
|
|
4476
|
-
return select
|
|
4956
|
+
function select$Z(luvio, params) {
|
|
4957
|
+
return select$10();
|
|
4477
4958
|
}
|
|
4478
|
-
function getResponseCacheKeys$
|
|
4959
|
+
function getResponseCacheKeys$F(storeKeyMap, luvio, resourceParams, response) {
|
|
4479
4960
|
getTypeCacheKeys$r(storeKeyMap, luvio, response);
|
|
4480
4961
|
}
|
|
4481
|
-
function ingestSuccess$
|
|
4962
|
+
function ingestSuccess$z(luvio, resourceParams, response) {
|
|
4482
4963
|
const { body } = response;
|
|
4483
4964
|
const key = keyBuilderFromType$d(luvio, body);
|
|
4484
4965
|
luvio.storeIngest(key, ingest$r, body);
|
|
4485
4966
|
const snapshot = luvio.storeLookup({
|
|
4486
4967
|
recordId: key,
|
|
4487
|
-
node: select$
|
|
4968
|
+
node: select$Z(),
|
|
4488
4969
|
variables: {},
|
|
4489
4970
|
});
|
|
4490
4971
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4495,7 +4976,7 @@ function ingestSuccess$y(luvio, resourceParams, response) {
|
|
|
4495
4976
|
deepFreeze(snapshot.data);
|
|
4496
4977
|
return snapshot;
|
|
4497
4978
|
}
|
|
4498
|
-
function createResourceRequest$
|
|
4979
|
+
function createResourceRequest$F(config) {
|
|
4499
4980
|
const headers = {};
|
|
4500
4981
|
return {
|
|
4501
4982
|
baseUri: '/services/data/v63.0',
|
|
@@ -4509,7 +4990,7 @@ function createResourceRequest$E(config) {
|
|
|
4509
4990
|
};
|
|
4510
4991
|
}
|
|
4511
4992
|
|
|
4512
|
-
const adapterName$
|
|
4993
|
+
const adapterName$F = 'createDataAssetRequest';
|
|
4513
4994
|
const createDataAssetRequest_ConfigPropertyMetadata = [
|
|
4514
4995
|
generateParamConfigMetadata('assetId', false, 2 /* Body */, 0 /* String */),
|
|
4515
4996
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
@@ -4522,37 +5003,37 @@ const createDataAssetRequest_ConfigPropertyMetadata = [
|
|
|
4522
5003
|
generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
|
|
4523
5004
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 2 /* Body */, 0 /* String */),
|
|
4524
5005
|
];
|
|
4525
|
-
const createDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4526
|
-
const createResourceParams$
|
|
4527
|
-
function typeCheckConfig$
|
|
5006
|
+
const createDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$F, createDataAssetRequest_ConfigPropertyMetadata);
|
|
5007
|
+
const createResourceParams$F = /*#__PURE__*/ createResourceParams$T(createDataAssetRequest_ConfigPropertyMetadata);
|
|
5008
|
+
function typeCheckConfig$F(untrustedConfig) {
|
|
4528
5009
|
const config = {};
|
|
4529
|
-
typeCheckConfig$
|
|
5010
|
+
typeCheckConfig$T(untrustedConfig, config, createDataAssetRequest_ConfigPropertyMetadata);
|
|
4530
5011
|
return config;
|
|
4531
5012
|
}
|
|
4532
|
-
function validateAdapterConfig$
|
|
5013
|
+
function validateAdapterConfig$F(untrustedConfig, configPropertyNames) {
|
|
4533
5014
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4534
5015
|
return null;
|
|
4535
5016
|
}
|
|
4536
5017
|
if (process.env.NODE_ENV !== 'production') {
|
|
4537
5018
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4538
5019
|
}
|
|
4539
|
-
const config = typeCheckConfig$
|
|
5020
|
+
const config = typeCheckConfig$F(untrustedConfig);
|
|
4540
5021
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4541
5022
|
return null;
|
|
4542
5023
|
}
|
|
4543
5024
|
return config;
|
|
4544
5025
|
}
|
|
4545
|
-
function buildNetworkSnapshot$
|
|
4546
|
-
const resourceParams = createResourceParams$
|
|
4547
|
-
const request = createResourceRequest$
|
|
5026
|
+
function buildNetworkSnapshot$F(luvio, config, options) {
|
|
5027
|
+
const resourceParams = createResourceParams$F(config);
|
|
5028
|
+
const request = createResourceRequest$F(resourceParams);
|
|
4548
5029
|
return luvio.dispatchResourceRequest(request, options)
|
|
4549
5030
|
.then((response) => {
|
|
4550
5031
|
return luvio.handleSuccessResponse(() => {
|
|
4551
|
-
const snapshot = ingestSuccess$
|
|
5032
|
+
const snapshot = ingestSuccess$z(luvio, resourceParams, response);
|
|
4552
5033
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4553
5034
|
}, () => {
|
|
4554
5035
|
const cache = new StoreKeyMap();
|
|
4555
|
-
getResponseCacheKeys$
|
|
5036
|
+
getResponseCacheKeys$F(cache, luvio, resourceParams, response.body);
|
|
4556
5037
|
return cache;
|
|
4557
5038
|
});
|
|
4558
5039
|
}, (response) => {
|
|
@@ -4562,12 +5043,12 @@ function buildNetworkSnapshot$E(luvio, config, options) {
|
|
|
4562
5043
|
}
|
|
4563
5044
|
const createDataAssetRequestAdapterFactory = (luvio) => {
|
|
4564
5045
|
return function createDataAssetRequest(untrustedConfig) {
|
|
4565
|
-
const config = validateAdapterConfig$
|
|
5046
|
+
const config = validateAdapterConfig$F(untrustedConfig, createDataAssetRequest_ConfigPropertyNames);
|
|
4566
5047
|
// Invalid or incomplete config
|
|
4567
5048
|
if (config === null) {
|
|
4568
5049
|
throw new Error('Invalid config for "createDataAssetRequest"');
|
|
4569
5050
|
}
|
|
4570
|
-
return buildNetworkSnapshot$
|
|
5051
|
+
return buildNetworkSnapshot$F(luvio, config);
|
|
4571
5052
|
};
|
|
4572
5053
|
};
|
|
4573
5054
|
|
|
@@ -4590,7 +5071,7 @@ const RepresentationType$r = 'DataAssetRequestCountRepresentation';
|
|
|
4590
5071
|
function normalize$p(input, existing, path, luvio, store, timestamp) {
|
|
4591
5072
|
return input;
|
|
4592
5073
|
}
|
|
4593
|
-
const select$
|
|
5074
|
+
const select$Y = function DataAssetRequestCountRepresentationSelect() {
|
|
4594
5075
|
return {
|
|
4595
5076
|
kind: 'Fragment',
|
|
4596
5077
|
version: VERSION$p,
|
|
@@ -4626,22 +5107,22 @@ function getTypeCacheKeys$p(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4626
5107
|
});
|
|
4627
5108
|
}
|
|
4628
5109
|
|
|
4629
|
-
function select$
|
|
4630
|
-
return select$
|
|
5110
|
+
function select$X(luvio, params) {
|
|
5111
|
+
return select$Y();
|
|
4631
5112
|
}
|
|
4632
5113
|
function keyBuilder$W(luvio, params) {
|
|
4633
5114
|
return keyPrefix + '::DataAssetRequestCountRepresentation:(' + 'assetId:' + params.queryParams.assetId + ',' + 'assetType:' + params.queryParams.assetType + ',' + 'createdBy:' + params.queryParams.createdBy + ',' + 'searchQueryTerm:' + params.queryParams.searchQueryTerm + ',' + 'status:' + params.queryParams.status + ',' + 'taskType:' + params.queryParams.taskType + ',' + 'workspaceIdOrApiName:' + params.queryParams.workspaceIdOrApiName + ')';
|
|
4634
5115
|
}
|
|
4635
|
-
function getResponseCacheKeys$
|
|
5116
|
+
function getResponseCacheKeys$E(storeKeyMap, luvio, resourceParams, response) {
|
|
4636
5117
|
getTypeCacheKeys$p(storeKeyMap, luvio, response, () => keyBuilder$W(luvio, resourceParams));
|
|
4637
5118
|
}
|
|
4638
|
-
function ingestSuccess$
|
|
5119
|
+
function ingestSuccess$y(luvio, resourceParams, response, snapshotRefresh) {
|
|
4639
5120
|
const { body } = response;
|
|
4640
5121
|
const key = keyBuilder$W(luvio, resourceParams);
|
|
4641
5122
|
luvio.storeIngest(key, ingest$p, body);
|
|
4642
5123
|
const snapshot = luvio.storeLookup({
|
|
4643
5124
|
recordId: key,
|
|
4644
|
-
node: select$
|
|
5125
|
+
node: select$X(),
|
|
4645
5126
|
variables: {},
|
|
4646
5127
|
}, snapshotRefresh);
|
|
4647
5128
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4664,7 +5145,7 @@ function ingestError$i(luvio, params, error, snapshotRefresh) {
|
|
|
4664
5145
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4665
5146
|
return errorSnapshot;
|
|
4666
5147
|
}
|
|
4667
|
-
function createResourceRequest$
|
|
5148
|
+
function createResourceRequest$E(config) {
|
|
4668
5149
|
const headers = {};
|
|
4669
5150
|
return {
|
|
4670
5151
|
baseUri: '/services/data/v63.0',
|
|
@@ -4678,7 +5159,7 @@ function createResourceRequest$D(config) {
|
|
|
4678
5159
|
};
|
|
4679
5160
|
}
|
|
4680
5161
|
|
|
4681
|
-
const adapterName$
|
|
5162
|
+
const adapterName$E = 'getDataAssetRequestsCount';
|
|
4682
5163
|
const getDataAssetRequestsCount_ConfigPropertyMetadata = [
|
|
4683
5164
|
generateParamConfigMetadata('assetId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4684
5165
|
generateParamConfigMetadata('assetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -4688,56 +5169,56 @@ const getDataAssetRequestsCount_ConfigPropertyMetadata = [
|
|
|
4688
5169
|
generateParamConfigMetadata('taskType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4689
5170
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4690
5171
|
];
|
|
4691
|
-
const getDataAssetRequestsCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4692
|
-
const createResourceParams$
|
|
5172
|
+
const getDataAssetRequestsCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$E, getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
5173
|
+
const createResourceParams$E = /*#__PURE__*/ createResourceParams$T(getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
4693
5174
|
function keyBuilder$V(luvio, config) {
|
|
4694
|
-
const resourceParams = createResourceParams$
|
|
5175
|
+
const resourceParams = createResourceParams$E(config);
|
|
4695
5176
|
return keyBuilder$W(luvio, resourceParams);
|
|
4696
5177
|
}
|
|
4697
|
-
function typeCheckConfig$
|
|
5178
|
+
function typeCheckConfig$E(untrustedConfig) {
|
|
4698
5179
|
const config = {};
|
|
4699
|
-
typeCheckConfig$
|
|
5180
|
+
typeCheckConfig$T(untrustedConfig, config, getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
4700
5181
|
return config;
|
|
4701
5182
|
}
|
|
4702
|
-
function validateAdapterConfig$
|
|
5183
|
+
function validateAdapterConfig$E(untrustedConfig, configPropertyNames) {
|
|
4703
5184
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4704
5185
|
return null;
|
|
4705
5186
|
}
|
|
4706
5187
|
if (process.env.NODE_ENV !== 'production') {
|
|
4707
5188
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4708
5189
|
}
|
|
4709
|
-
const config = typeCheckConfig$
|
|
5190
|
+
const config = typeCheckConfig$E(untrustedConfig);
|
|
4710
5191
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4711
5192
|
return null;
|
|
4712
5193
|
}
|
|
4713
5194
|
return config;
|
|
4714
5195
|
}
|
|
4715
5196
|
function adapterFragment$i(luvio, config) {
|
|
4716
|
-
createResourceParams$
|
|
4717
|
-
return select$
|
|
5197
|
+
createResourceParams$E(config);
|
|
5198
|
+
return select$X();
|
|
4718
5199
|
}
|
|
4719
5200
|
function onFetchResponseSuccess$i(luvio, config, resourceParams, response) {
|
|
4720
|
-
const snapshot = ingestSuccess$
|
|
5201
|
+
const snapshot = ingestSuccess$y(luvio, resourceParams, response, {
|
|
4721
5202
|
config,
|
|
4722
|
-
resolve: () => buildNetworkSnapshot$
|
|
5203
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
|
|
4723
5204
|
});
|
|
4724
5205
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4725
5206
|
}
|
|
4726
5207
|
function onFetchResponseError$i(luvio, config, resourceParams, response) {
|
|
4727
5208
|
const snapshot = ingestError$i(luvio, resourceParams, response, {
|
|
4728
5209
|
config,
|
|
4729
|
-
resolve: () => buildNetworkSnapshot$
|
|
5210
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
|
|
4730
5211
|
});
|
|
4731
5212
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4732
5213
|
}
|
|
4733
|
-
function buildNetworkSnapshot$
|
|
4734
|
-
const resourceParams = createResourceParams$
|
|
4735
|
-
const request = createResourceRequest$
|
|
5214
|
+
function buildNetworkSnapshot$E(luvio, config, options) {
|
|
5215
|
+
const resourceParams = createResourceParams$E(config);
|
|
5216
|
+
const request = createResourceRequest$E(resourceParams);
|
|
4736
5217
|
return luvio.dispatchResourceRequest(request, options)
|
|
4737
5218
|
.then((response) => {
|
|
4738
5219
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$i(luvio, config, resourceParams, response), () => {
|
|
4739
5220
|
const cache = new StoreKeyMap();
|
|
4740
|
-
getResponseCacheKeys$
|
|
5221
|
+
getResponseCacheKeys$E(cache, luvio, resourceParams, response.body);
|
|
4741
5222
|
return cache;
|
|
4742
5223
|
});
|
|
4743
5224
|
}, (response) => {
|
|
@@ -4745,7 +5226,7 @@ function buildNetworkSnapshot$D(luvio, config, options) {
|
|
|
4745
5226
|
});
|
|
4746
5227
|
}
|
|
4747
5228
|
function buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext) {
|
|
4748
|
-
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
5229
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$E, undefined, false);
|
|
4749
5230
|
}
|
|
4750
5231
|
function buildCachedSnapshotCachePolicy$i(context, storeLookup) {
|
|
4751
5232
|
const { luvio, config } = context;
|
|
@@ -4756,12 +5237,12 @@ function buildCachedSnapshotCachePolicy$i(context, storeLookup) {
|
|
|
4756
5237
|
};
|
|
4757
5238
|
const cacheSnapshot = storeLookup(selector, {
|
|
4758
5239
|
config,
|
|
4759
|
-
resolve: () => buildNetworkSnapshot$
|
|
5240
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
|
|
4760
5241
|
});
|
|
4761
5242
|
return cacheSnapshot;
|
|
4762
5243
|
}
|
|
4763
5244
|
const getDataAssetRequestsCountAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAssetRequestsCount(untrustedConfig, requestContext) {
|
|
4764
|
-
const config = validateAdapterConfig$
|
|
5245
|
+
const config = validateAdapterConfig$E(untrustedConfig, getDataAssetRequestsCount_ConfigPropertyNames);
|
|
4765
5246
|
// Invalid or incomplete config
|
|
4766
5247
|
if (config === null) {
|
|
4767
5248
|
return null;
|
|
@@ -4770,24 +5251,24 @@ const getDataAssetRequestsCountAdapterFactory = (luvio) => function UnifiedAnaly
|
|
|
4770
5251
|
buildCachedSnapshotCachePolicy$i, buildNetworkSnapshotCachePolicy$i);
|
|
4771
5252
|
};
|
|
4772
5253
|
|
|
4773
|
-
function select$
|
|
4774
|
-
return select
|
|
5254
|
+
function select$W(luvio, params) {
|
|
5255
|
+
return select$10();
|
|
4775
5256
|
}
|
|
4776
5257
|
function keyBuilder$U(luvio, params) {
|
|
4777
5258
|
return keyBuilder$Z(luvio, {
|
|
4778
5259
|
dataAssetRequestId: params.urlParams.requestIdOrApiName
|
|
4779
5260
|
});
|
|
4780
5261
|
}
|
|
4781
|
-
function getResponseCacheKeys$
|
|
5262
|
+
function getResponseCacheKeys$D(storeKeyMap, luvio, resourceParams, response) {
|
|
4782
5263
|
getTypeCacheKeys$r(storeKeyMap, luvio, response);
|
|
4783
5264
|
}
|
|
4784
|
-
function ingestSuccess$
|
|
5265
|
+
function ingestSuccess$x(luvio, resourceParams, response, snapshotRefresh) {
|
|
4785
5266
|
const { body } = response;
|
|
4786
5267
|
const key = keyBuilder$U(luvio, resourceParams);
|
|
4787
5268
|
luvio.storeIngest(key, ingest$r, body);
|
|
4788
5269
|
const snapshot = luvio.storeLookup({
|
|
4789
5270
|
recordId: key,
|
|
4790
|
-
node: select$
|
|
5271
|
+
node: select$W(),
|
|
4791
5272
|
variables: {},
|
|
4792
5273
|
}, snapshotRefresh);
|
|
4793
5274
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4810,7 +5291,7 @@ function ingestError$h(luvio, params, error, snapshotRefresh) {
|
|
|
4810
5291
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4811
5292
|
return errorSnapshot;
|
|
4812
5293
|
}
|
|
4813
|
-
function createResourceRequest$
|
|
5294
|
+
function createResourceRequest$D(config) {
|
|
4814
5295
|
const headers = {};
|
|
4815
5296
|
return {
|
|
4816
5297
|
baseUri: '/services/data/v63.0',
|
|
@@ -4824,60 +5305,60 @@ function createResourceRequest$C(config) {
|
|
|
4824
5305
|
};
|
|
4825
5306
|
}
|
|
4826
5307
|
|
|
4827
|
-
const adapterName$
|
|
5308
|
+
const adapterName$D = 'getDataAssetRequestByIdOrApiName';
|
|
4828
5309
|
const getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata = [
|
|
4829
5310
|
generateParamConfigMetadata('requestIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4830
5311
|
];
|
|
4831
|
-
const getDataAssetRequestByIdOrApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4832
|
-
const createResourceParams$
|
|
5312
|
+
const getDataAssetRequestByIdOrApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$D, getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
5313
|
+
const createResourceParams$D = /*#__PURE__*/ createResourceParams$T(getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
4833
5314
|
function keyBuilder$T(luvio, config) {
|
|
4834
|
-
const resourceParams = createResourceParams$
|
|
5315
|
+
const resourceParams = createResourceParams$D(config);
|
|
4835
5316
|
return keyBuilder$U(luvio, resourceParams);
|
|
4836
5317
|
}
|
|
4837
|
-
function typeCheckConfig$
|
|
5318
|
+
function typeCheckConfig$D(untrustedConfig) {
|
|
4838
5319
|
const config = {};
|
|
4839
|
-
typeCheckConfig$
|
|
5320
|
+
typeCheckConfig$T(untrustedConfig, config, getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
4840
5321
|
return config;
|
|
4841
5322
|
}
|
|
4842
|
-
function validateAdapterConfig$
|
|
5323
|
+
function validateAdapterConfig$D(untrustedConfig, configPropertyNames) {
|
|
4843
5324
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4844
5325
|
return null;
|
|
4845
5326
|
}
|
|
4846
5327
|
if (process.env.NODE_ENV !== 'production') {
|
|
4847
5328
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4848
5329
|
}
|
|
4849
|
-
const config = typeCheckConfig$
|
|
5330
|
+
const config = typeCheckConfig$D(untrustedConfig);
|
|
4850
5331
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4851
5332
|
return null;
|
|
4852
5333
|
}
|
|
4853
5334
|
return config;
|
|
4854
5335
|
}
|
|
4855
5336
|
function adapterFragment$h(luvio, config) {
|
|
4856
|
-
createResourceParams$
|
|
4857
|
-
return select$
|
|
5337
|
+
createResourceParams$D(config);
|
|
5338
|
+
return select$W();
|
|
4858
5339
|
}
|
|
4859
5340
|
function onFetchResponseSuccess$h(luvio, config, resourceParams, response) {
|
|
4860
|
-
const snapshot = ingestSuccess$
|
|
5341
|
+
const snapshot = ingestSuccess$x(luvio, resourceParams, response, {
|
|
4861
5342
|
config,
|
|
4862
|
-
resolve: () => buildNetworkSnapshot$
|
|
5343
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
|
|
4863
5344
|
});
|
|
4864
5345
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4865
5346
|
}
|
|
4866
5347
|
function onFetchResponseError$h(luvio, config, resourceParams, response) {
|
|
4867
5348
|
const snapshot = ingestError$h(luvio, resourceParams, response, {
|
|
4868
5349
|
config,
|
|
4869
|
-
resolve: () => buildNetworkSnapshot$
|
|
5350
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
|
|
4870
5351
|
});
|
|
4871
5352
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4872
5353
|
}
|
|
4873
|
-
function buildNetworkSnapshot$
|
|
4874
|
-
const resourceParams = createResourceParams$
|
|
4875
|
-
const request = createResourceRequest$
|
|
5354
|
+
function buildNetworkSnapshot$D(luvio, config, options) {
|
|
5355
|
+
const resourceParams = createResourceParams$D(config);
|
|
5356
|
+
const request = createResourceRequest$D(resourceParams);
|
|
4876
5357
|
return luvio.dispatchResourceRequest(request, options)
|
|
4877
5358
|
.then((response) => {
|
|
4878
5359
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$h(luvio, config, resourceParams, response), () => {
|
|
4879
5360
|
const cache = new StoreKeyMap();
|
|
4880
|
-
getResponseCacheKeys$
|
|
5361
|
+
getResponseCacheKeys$D(cache, luvio, resourceParams, response.body);
|
|
4881
5362
|
return cache;
|
|
4882
5363
|
});
|
|
4883
5364
|
}, (response) => {
|
|
@@ -4885,7 +5366,7 @@ function buildNetworkSnapshot$C(luvio, config, options) {
|
|
|
4885
5366
|
});
|
|
4886
5367
|
}
|
|
4887
5368
|
function buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext) {
|
|
4888
|
-
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
5369
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$D, undefined, false);
|
|
4889
5370
|
}
|
|
4890
5371
|
function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
|
|
4891
5372
|
const { luvio, config } = context;
|
|
@@ -4896,12 +5377,12 @@ function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
|
|
|
4896
5377
|
};
|
|
4897
5378
|
const cacheSnapshot = storeLookup(selector, {
|
|
4898
5379
|
config,
|
|
4899
|
-
resolve: () => buildNetworkSnapshot$
|
|
5380
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
|
|
4900
5381
|
});
|
|
4901
5382
|
return cacheSnapshot;
|
|
4902
5383
|
}
|
|
4903
5384
|
const getDataAssetRequestByIdOrApiNameAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAssetRequestByIdOrApiName(untrustedConfig, requestContext) {
|
|
4904
|
-
const config = validateAdapterConfig$
|
|
5385
|
+
const config = validateAdapterConfig$D(untrustedConfig, getDataAssetRequestByIdOrApiName_ConfigPropertyNames);
|
|
4905
5386
|
// Invalid or incomplete config
|
|
4906
5387
|
if (config === null) {
|
|
4907
5388
|
return null;
|
|
@@ -4910,19 +5391,19 @@ const getDataAssetRequestByIdOrApiNameAdapterFactory = (luvio) => function Unifi
|
|
|
4910
5391
|
buildCachedSnapshotCachePolicy$h, buildNetworkSnapshotCachePolicy$h);
|
|
4911
5392
|
};
|
|
4912
5393
|
|
|
4913
|
-
function select$
|
|
4914
|
-
return select
|
|
5394
|
+
function select$V(luvio, params) {
|
|
5395
|
+
return select$10();
|
|
4915
5396
|
}
|
|
4916
|
-
function getResponseCacheKeys$
|
|
5397
|
+
function getResponseCacheKeys$C(storeKeyMap, luvio, resourceParams, response) {
|
|
4917
5398
|
getTypeCacheKeys$r(storeKeyMap, luvio, response);
|
|
4918
5399
|
}
|
|
4919
|
-
function ingestSuccess$
|
|
5400
|
+
function ingestSuccess$w(luvio, resourceParams, response) {
|
|
4920
5401
|
const { body } = response;
|
|
4921
5402
|
const key = keyBuilderFromType$d(luvio, body);
|
|
4922
5403
|
luvio.storeIngest(key, ingest$r, body);
|
|
4923
5404
|
const snapshot = luvio.storeLookup({
|
|
4924
5405
|
recordId: key,
|
|
4925
|
-
node: select$
|
|
5406
|
+
node: select$V(),
|
|
4926
5407
|
variables: {},
|
|
4927
5408
|
});
|
|
4928
5409
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4933,7 +5414,7 @@ function ingestSuccess$v(luvio, resourceParams, response) {
|
|
|
4933
5414
|
deepFreeze(snapshot.data);
|
|
4934
5415
|
return snapshot;
|
|
4935
5416
|
}
|
|
4936
|
-
function createResourceRequest$
|
|
5417
|
+
function createResourceRequest$C(config) {
|
|
4937
5418
|
const headers = {};
|
|
4938
5419
|
return {
|
|
4939
5420
|
baseUri: '/services/data/v63.0',
|
|
@@ -4947,7 +5428,7 @@ function createResourceRequest$B(config) {
|
|
|
4947
5428
|
};
|
|
4948
5429
|
}
|
|
4949
5430
|
|
|
4950
|
-
const adapterName$
|
|
5431
|
+
const adapterName$C = 'updateDataAssetRequest';
|
|
4951
5432
|
const updateDataAssetRequest_ConfigPropertyMetadata = [
|
|
4952
5433
|
generateParamConfigMetadata('requestIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4953
5434
|
generateParamConfigMetadata('assetId', false, 2 /* Body */, 0 /* String */),
|
|
@@ -4961,37 +5442,37 @@ const updateDataAssetRequest_ConfigPropertyMetadata = [
|
|
|
4961
5442
|
generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
|
|
4962
5443
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 2 /* Body */, 0 /* String */),
|
|
4963
5444
|
];
|
|
4964
|
-
const updateDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4965
|
-
const createResourceParams$
|
|
4966
|
-
function typeCheckConfig$
|
|
5445
|
+
const updateDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$C, updateDataAssetRequest_ConfigPropertyMetadata);
|
|
5446
|
+
const createResourceParams$C = /*#__PURE__*/ createResourceParams$T(updateDataAssetRequest_ConfigPropertyMetadata);
|
|
5447
|
+
function typeCheckConfig$C(untrustedConfig) {
|
|
4967
5448
|
const config = {};
|
|
4968
|
-
typeCheckConfig$
|
|
5449
|
+
typeCheckConfig$T(untrustedConfig, config, updateDataAssetRequest_ConfigPropertyMetadata);
|
|
4969
5450
|
return config;
|
|
4970
5451
|
}
|
|
4971
|
-
function validateAdapterConfig$
|
|
5452
|
+
function validateAdapterConfig$C(untrustedConfig, configPropertyNames) {
|
|
4972
5453
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4973
5454
|
return null;
|
|
4974
5455
|
}
|
|
4975
5456
|
if (process.env.NODE_ENV !== 'production') {
|
|
4976
5457
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4977
5458
|
}
|
|
4978
|
-
const config = typeCheckConfig$
|
|
5459
|
+
const config = typeCheckConfig$C(untrustedConfig);
|
|
4979
5460
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4980
5461
|
return null;
|
|
4981
5462
|
}
|
|
4982
5463
|
return config;
|
|
4983
5464
|
}
|
|
4984
|
-
function buildNetworkSnapshot$
|
|
4985
|
-
const resourceParams = createResourceParams$
|
|
4986
|
-
const request = createResourceRequest$
|
|
5465
|
+
function buildNetworkSnapshot$C(luvio, config, options) {
|
|
5466
|
+
const resourceParams = createResourceParams$C(config);
|
|
5467
|
+
const request = createResourceRequest$C(resourceParams);
|
|
4987
5468
|
return luvio.dispatchResourceRequest(request, options)
|
|
4988
5469
|
.then((response) => {
|
|
4989
5470
|
return luvio.handleSuccessResponse(() => {
|
|
4990
|
-
const snapshot = ingestSuccess$
|
|
5471
|
+
const snapshot = ingestSuccess$w(luvio, resourceParams, response);
|
|
4991
5472
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4992
5473
|
}, () => {
|
|
4993
5474
|
const cache = new StoreKeyMap();
|
|
4994
|
-
getResponseCacheKeys$
|
|
5475
|
+
getResponseCacheKeys$C(cache, luvio, resourceParams, response.body);
|
|
4995
5476
|
return cache;
|
|
4996
5477
|
});
|
|
4997
5478
|
}, (response) => {
|
|
@@ -5001,12 +5482,12 @@ function buildNetworkSnapshot$B(luvio, config, options) {
|
|
|
5001
5482
|
}
|
|
5002
5483
|
const updateDataAssetRequestAdapterFactory = (luvio) => {
|
|
5003
5484
|
return function updateDataAssetRequest(untrustedConfig) {
|
|
5004
|
-
const config = validateAdapterConfig$
|
|
5485
|
+
const config = validateAdapterConfig$C(untrustedConfig, updateDataAssetRequest_ConfigPropertyNames);
|
|
5005
5486
|
// Invalid or incomplete config
|
|
5006
5487
|
if (config === null) {
|
|
5007
5488
|
throw new Error('Invalid config for "updateDataAssetRequest"');
|
|
5008
5489
|
}
|
|
5009
|
-
return buildNetworkSnapshot$
|
|
5490
|
+
return buildNetworkSnapshot$C(luvio, config);
|
|
5010
5491
|
};
|
|
5011
5492
|
};
|
|
5012
5493
|
|
|
@@ -5134,7 +5615,7 @@ const RepresentationType$q = 'DataAssetDependentCollectionRepresentation';
|
|
|
5134
5615
|
function normalize$o(input, existing, path, luvio, store, timestamp) {
|
|
5135
5616
|
return input;
|
|
5136
5617
|
}
|
|
5137
|
-
const select$
|
|
5618
|
+
const select$U = function DataAssetDependentCollectionRepresentationSelect() {
|
|
5138
5619
|
return {
|
|
5139
5620
|
kind: 'Fragment',
|
|
5140
5621
|
version: VERSION$o,
|
|
@@ -5170,22 +5651,22 @@ function getTypeCacheKeys$o(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5170
5651
|
});
|
|
5171
5652
|
}
|
|
5172
5653
|
|
|
5173
|
-
function select$
|
|
5174
|
-
return select$
|
|
5654
|
+
function select$T(luvio, params) {
|
|
5655
|
+
return select$U();
|
|
5175
5656
|
}
|
|
5176
5657
|
function keyBuilder$S(luvio, params) {
|
|
5177
5658
|
return keyPrefix + '::DataAssetDependentCollectionRepresentation:(' + 'assetId:' + params.urlParams.assetId + ')';
|
|
5178
5659
|
}
|
|
5179
|
-
function getResponseCacheKeys$
|
|
5660
|
+
function getResponseCacheKeys$B(storeKeyMap, luvio, resourceParams, response) {
|
|
5180
5661
|
getTypeCacheKeys$o(storeKeyMap, luvio, response, () => keyBuilder$S(luvio, resourceParams));
|
|
5181
5662
|
}
|
|
5182
|
-
function ingestSuccess$
|
|
5663
|
+
function ingestSuccess$v(luvio, resourceParams, response, snapshotRefresh) {
|
|
5183
5664
|
const { body } = response;
|
|
5184
5665
|
const key = keyBuilder$S(luvio, resourceParams);
|
|
5185
5666
|
luvio.storeIngest(key, ingest$o, body);
|
|
5186
5667
|
const snapshot = luvio.storeLookup({
|
|
5187
5668
|
recordId: key,
|
|
5188
|
-
node: select$
|
|
5669
|
+
node: select$T(),
|
|
5189
5670
|
variables: {},
|
|
5190
5671
|
}, snapshotRefresh);
|
|
5191
5672
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5208,7 +5689,7 @@ function ingestError$g(luvio, params, error, snapshotRefresh) {
|
|
|
5208
5689
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5209
5690
|
return errorSnapshot;
|
|
5210
5691
|
}
|
|
5211
|
-
function createResourceRequest$
|
|
5692
|
+
function createResourceRequest$B(config) {
|
|
5212
5693
|
const headers = {};
|
|
5213
5694
|
return {
|
|
5214
5695
|
baseUri: '/services/data/v63.0',
|
|
@@ -5222,60 +5703,60 @@ function createResourceRequest$A(config) {
|
|
|
5222
5703
|
};
|
|
5223
5704
|
}
|
|
5224
5705
|
|
|
5225
|
-
const adapterName$
|
|
5706
|
+
const adapterName$B = 'getDataAssetDependencies';
|
|
5226
5707
|
const getDataAssetDependencies_ConfigPropertyMetadata = [
|
|
5227
5708
|
generateParamConfigMetadata('assetId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5228
5709
|
];
|
|
5229
|
-
const getDataAssetDependencies_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5230
|
-
const createResourceParams$
|
|
5710
|
+
const getDataAssetDependencies_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$B, getDataAssetDependencies_ConfigPropertyMetadata);
|
|
5711
|
+
const createResourceParams$B = /*#__PURE__*/ createResourceParams$T(getDataAssetDependencies_ConfigPropertyMetadata);
|
|
5231
5712
|
function keyBuilder$R(luvio, config) {
|
|
5232
|
-
const resourceParams = createResourceParams$
|
|
5713
|
+
const resourceParams = createResourceParams$B(config);
|
|
5233
5714
|
return keyBuilder$S(luvio, resourceParams);
|
|
5234
5715
|
}
|
|
5235
|
-
function typeCheckConfig$
|
|
5716
|
+
function typeCheckConfig$B(untrustedConfig) {
|
|
5236
5717
|
const config = {};
|
|
5237
|
-
typeCheckConfig$
|
|
5718
|
+
typeCheckConfig$T(untrustedConfig, config, getDataAssetDependencies_ConfigPropertyMetadata);
|
|
5238
5719
|
return config;
|
|
5239
5720
|
}
|
|
5240
|
-
function validateAdapterConfig$
|
|
5721
|
+
function validateAdapterConfig$B(untrustedConfig, configPropertyNames) {
|
|
5241
5722
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5242
5723
|
return null;
|
|
5243
5724
|
}
|
|
5244
5725
|
if (process.env.NODE_ENV !== 'production') {
|
|
5245
5726
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5246
5727
|
}
|
|
5247
|
-
const config = typeCheckConfig$
|
|
5728
|
+
const config = typeCheckConfig$B(untrustedConfig);
|
|
5248
5729
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5249
5730
|
return null;
|
|
5250
5731
|
}
|
|
5251
5732
|
return config;
|
|
5252
5733
|
}
|
|
5253
5734
|
function adapterFragment$g(luvio, config) {
|
|
5254
|
-
createResourceParams$
|
|
5255
|
-
return select$
|
|
5735
|
+
createResourceParams$B(config);
|
|
5736
|
+
return select$T();
|
|
5256
5737
|
}
|
|
5257
5738
|
function onFetchResponseSuccess$g(luvio, config, resourceParams, response) {
|
|
5258
|
-
const snapshot = ingestSuccess$
|
|
5739
|
+
const snapshot = ingestSuccess$v(luvio, resourceParams, response, {
|
|
5259
5740
|
config,
|
|
5260
|
-
resolve: () => buildNetworkSnapshot$
|
|
5741
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
5261
5742
|
});
|
|
5262
5743
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5263
5744
|
}
|
|
5264
5745
|
function onFetchResponseError$g(luvio, config, resourceParams, response) {
|
|
5265
5746
|
const snapshot = ingestError$g(luvio, resourceParams, response, {
|
|
5266
5747
|
config,
|
|
5267
|
-
resolve: () => buildNetworkSnapshot$
|
|
5748
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
5268
5749
|
});
|
|
5269
5750
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5270
5751
|
}
|
|
5271
|
-
function buildNetworkSnapshot$
|
|
5272
|
-
const resourceParams = createResourceParams$
|
|
5273
|
-
const request = createResourceRequest$
|
|
5752
|
+
function buildNetworkSnapshot$B(luvio, config, options) {
|
|
5753
|
+
const resourceParams = createResourceParams$B(config);
|
|
5754
|
+
const request = createResourceRequest$B(resourceParams);
|
|
5274
5755
|
return luvio.dispatchResourceRequest(request, options)
|
|
5275
5756
|
.then((response) => {
|
|
5276
5757
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$g(luvio, config, resourceParams, response), () => {
|
|
5277
5758
|
const cache = new StoreKeyMap();
|
|
5278
|
-
getResponseCacheKeys$
|
|
5759
|
+
getResponseCacheKeys$B(cache, luvio, resourceParams, response.body);
|
|
5279
5760
|
return cache;
|
|
5280
5761
|
});
|
|
5281
5762
|
}, (response) => {
|
|
@@ -5283,7 +5764,7 @@ function buildNetworkSnapshot$A(luvio, config, options) {
|
|
|
5283
5764
|
});
|
|
5284
5765
|
}
|
|
5285
5766
|
function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
|
|
5286
|
-
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
5767
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$B, undefined, false);
|
|
5287
5768
|
}
|
|
5288
5769
|
function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
5289
5770
|
const { luvio, config } = context;
|
|
@@ -5294,12 +5775,12 @@ function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
|
5294
5775
|
};
|
|
5295
5776
|
const cacheSnapshot = storeLookup(selector, {
|
|
5296
5777
|
config,
|
|
5297
|
-
resolve: () => buildNetworkSnapshot$
|
|
5778
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
5298
5779
|
});
|
|
5299
5780
|
return cacheSnapshot;
|
|
5300
5781
|
}
|
|
5301
5782
|
const getDataAssetDependenciesAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAssetDependencies(untrustedConfig, requestContext) {
|
|
5302
|
-
const config = validateAdapterConfig$
|
|
5783
|
+
const config = validateAdapterConfig$B(untrustedConfig, getDataAssetDependencies_ConfigPropertyNames);
|
|
5303
5784
|
// Invalid or incomplete config
|
|
5304
5785
|
if (config === null) {
|
|
5305
5786
|
return null;
|
|
@@ -5447,7 +5928,7 @@ function keyBuilderFromType$c(luvio, object) {
|
|
|
5447
5928
|
function normalize$n(input, existing, path, luvio, store, timestamp) {
|
|
5448
5929
|
return input;
|
|
5449
5930
|
}
|
|
5450
|
-
const select$
|
|
5931
|
+
const select$S = function FollowerAssetRepresentationSelect() {
|
|
5451
5932
|
return {
|
|
5452
5933
|
kind: 'Fragment',
|
|
5453
5934
|
version: VERSION$n,
|
|
@@ -5483,19 +5964,19 @@ function getTypeCacheKeys$n(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5483
5964
|
});
|
|
5484
5965
|
}
|
|
5485
5966
|
|
|
5486
|
-
function select$
|
|
5487
|
-
return select$
|
|
5967
|
+
function select$R(luvio, params) {
|
|
5968
|
+
return select$S();
|
|
5488
5969
|
}
|
|
5489
|
-
function getResponseCacheKeys$
|
|
5970
|
+
function getResponseCacheKeys$A(storeKeyMap, luvio, resourceParams, response) {
|
|
5490
5971
|
getTypeCacheKeys$n(storeKeyMap, luvio, response);
|
|
5491
5972
|
}
|
|
5492
|
-
function ingestSuccess$
|
|
5973
|
+
function ingestSuccess$u(luvio, resourceParams, response) {
|
|
5493
5974
|
const { body } = response;
|
|
5494
5975
|
const key = keyBuilderFromType$c(luvio, body);
|
|
5495
5976
|
luvio.storeIngest(key, ingest$n, body);
|
|
5496
5977
|
const snapshot = luvio.storeLookup({
|
|
5497
5978
|
recordId: key,
|
|
5498
|
-
node: select$
|
|
5979
|
+
node: select$R(),
|
|
5499
5980
|
variables: {},
|
|
5500
5981
|
});
|
|
5501
5982
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5506,7 +5987,7 @@ function ingestSuccess$t(luvio, resourceParams, response) {
|
|
|
5506
5987
|
deepFreeze(snapshot.data);
|
|
5507
5988
|
return snapshot;
|
|
5508
5989
|
}
|
|
5509
|
-
function createResourceRequest$
|
|
5990
|
+
function createResourceRequest$A(config) {
|
|
5510
5991
|
const headers = {};
|
|
5511
5992
|
return {
|
|
5512
5993
|
baseUri: '/services/data/v63.0',
|
|
@@ -5520,7 +6001,7 @@ function createResourceRequest$z(config) {
|
|
|
5520
6001
|
};
|
|
5521
6002
|
}
|
|
5522
6003
|
|
|
5523
|
-
const adapterName$
|
|
6004
|
+
const adapterName$A = 'follow';
|
|
5524
6005
|
const follow_ConfigPropertyMetadata = [
|
|
5525
6006
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5526
6007
|
generateParamConfigMetadata('assetId', true, 2 /* Body */, 0 /* String */),
|
|
@@ -5528,11 +6009,110 @@ const follow_ConfigPropertyMetadata = [
|
|
|
5528
6009
|
generateParamConfigMetadata('followerType', true, 2 /* Body */, 0 /* String */),
|
|
5529
6010
|
generateParamConfigMetadata('followedTimeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5530
6011
|
];
|
|
5531
|
-
const follow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5532
|
-
const createResourceParams$
|
|
6012
|
+
const follow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$A, follow_ConfigPropertyMetadata);
|
|
6013
|
+
const createResourceParams$A = /*#__PURE__*/ createResourceParams$T(follow_ConfigPropertyMetadata);
|
|
6014
|
+
function typeCheckConfig$A(untrustedConfig) {
|
|
6015
|
+
const config = {};
|
|
6016
|
+
typeCheckConfig$T(untrustedConfig, config, follow_ConfigPropertyMetadata);
|
|
6017
|
+
const untrustedConfig_followedTimeRange = untrustedConfig.followedTimeRange;
|
|
6018
|
+
const referenceFollowedTimeRangeRepresentationValidationError = validate$w(untrustedConfig_followedTimeRange);
|
|
6019
|
+
if (referenceFollowedTimeRangeRepresentationValidationError === null) {
|
|
6020
|
+
config.followedTimeRange = untrustedConfig_followedTimeRange;
|
|
6021
|
+
}
|
|
6022
|
+
return config;
|
|
6023
|
+
}
|
|
6024
|
+
function validateAdapterConfig$A(untrustedConfig, configPropertyNames) {
|
|
6025
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
6026
|
+
return null;
|
|
6027
|
+
}
|
|
6028
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6029
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
6030
|
+
}
|
|
6031
|
+
const config = typeCheckConfig$A(untrustedConfig);
|
|
6032
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6033
|
+
return null;
|
|
6034
|
+
}
|
|
6035
|
+
return config;
|
|
6036
|
+
}
|
|
6037
|
+
function buildNetworkSnapshot$A(luvio, config, options) {
|
|
6038
|
+
const resourceParams = createResourceParams$A(config);
|
|
6039
|
+
const request = createResourceRequest$A(resourceParams);
|
|
6040
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
6041
|
+
.then((response) => {
|
|
6042
|
+
return luvio.handleSuccessResponse(() => {
|
|
6043
|
+
const snapshot = ingestSuccess$u(luvio, resourceParams, response);
|
|
6044
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6045
|
+
}, () => {
|
|
6046
|
+
const cache = new StoreKeyMap();
|
|
6047
|
+
getResponseCacheKeys$A(cache, luvio, resourceParams, response.body);
|
|
6048
|
+
return cache;
|
|
6049
|
+
});
|
|
6050
|
+
}, (response) => {
|
|
6051
|
+
deepFreeze(response);
|
|
6052
|
+
throw response;
|
|
6053
|
+
});
|
|
6054
|
+
}
|
|
6055
|
+
const followAdapterFactory = (luvio) => {
|
|
6056
|
+
return function follow(untrustedConfig) {
|
|
6057
|
+
const config = validateAdapterConfig$A(untrustedConfig, follow_ConfigPropertyNames);
|
|
6058
|
+
// Invalid or incomplete config
|
|
6059
|
+
if (config === null) {
|
|
6060
|
+
throw new Error('Invalid config for "follow"');
|
|
6061
|
+
}
|
|
6062
|
+
return buildNetworkSnapshot$A(luvio, config);
|
|
6063
|
+
};
|
|
6064
|
+
};
|
|
6065
|
+
|
|
6066
|
+
function select$Q(luvio, params) {
|
|
6067
|
+
return select$S();
|
|
6068
|
+
}
|
|
6069
|
+
function getResponseCacheKeys$z(storeKeyMap, luvio, resourceParams, response) {
|
|
6070
|
+
getTypeCacheKeys$n(storeKeyMap, luvio, response);
|
|
6071
|
+
}
|
|
6072
|
+
function ingestSuccess$t(luvio, resourceParams, response) {
|
|
6073
|
+
const { body } = response;
|
|
6074
|
+
const key = keyBuilderFromType$c(luvio, body);
|
|
6075
|
+
luvio.storeIngest(key, ingest$n, body);
|
|
6076
|
+
const snapshot = luvio.storeLookup({
|
|
6077
|
+
recordId: key,
|
|
6078
|
+
node: select$Q(),
|
|
6079
|
+
variables: {},
|
|
6080
|
+
});
|
|
6081
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6082
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
6083
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
6084
|
+
}
|
|
6085
|
+
}
|
|
6086
|
+
deepFreeze(snapshot.data);
|
|
6087
|
+
return snapshot;
|
|
6088
|
+
}
|
|
6089
|
+
function createResourceRequest$z(config) {
|
|
6090
|
+
const headers = {};
|
|
6091
|
+
return {
|
|
6092
|
+
baseUri: '/services/data/v63.0',
|
|
6093
|
+
basePath: '/tableau/follow/followers/' + config.urlParams.followerId + '/follows',
|
|
6094
|
+
method: 'patch',
|
|
6095
|
+
body: config.body,
|
|
6096
|
+
urlParams: config.urlParams,
|
|
6097
|
+
queryParams: {},
|
|
6098
|
+
headers,
|
|
6099
|
+
priority: 'normal',
|
|
6100
|
+
};
|
|
6101
|
+
}
|
|
6102
|
+
|
|
6103
|
+
const adapterName$z = 'updateFollowedAsset';
|
|
6104
|
+
const updateFollowedAsset_ConfigPropertyMetadata = [
|
|
6105
|
+
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6106
|
+
generateParamConfigMetadata('assetId', true, 2 /* Body */, 0 /* String */),
|
|
6107
|
+
generateParamConfigMetadata('assetType', false, 2 /* Body */, 0 /* String */),
|
|
6108
|
+
generateParamConfigMetadata('followerType', false, 2 /* Body */, 0 /* String */),
|
|
6109
|
+
generateParamConfigMetadata('followedTimeRange', true, 2 /* Body */, 4 /* Unsupported */),
|
|
6110
|
+
];
|
|
6111
|
+
const updateFollowedAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$z, updateFollowedAsset_ConfigPropertyMetadata);
|
|
6112
|
+
const createResourceParams$z = /*#__PURE__*/ createResourceParams$T(updateFollowedAsset_ConfigPropertyMetadata);
|
|
5533
6113
|
function typeCheckConfig$z(untrustedConfig) {
|
|
5534
6114
|
const config = {};
|
|
5535
|
-
typeCheckConfig$
|
|
6115
|
+
typeCheckConfig$T(untrustedConfig, config, updateFollowedAsset_ConfigPropertyMetadata);
|
|
5536
6116
|
const untrustedConfig_followedTimeRange = untrustedConfig.followedTimeRange;
|
|
5537
6117
|
const referenceFollowedTimeRangeRepresentationValidationError = validate$w(untrustedConfig_followedTimeRange);
|
|
5538
6118
|
if (referenceFollowedTimeRangeRepresentationValidationError === null) {
|
|
@@ -5571,12 +6151,12 @@ function buildNetworkSnapshot$z(luvio, config, options) {
|
|
|
5571
6151
|
throw response;
|
|
5572
6152
|
});
|
|
5573
6153
|
}
|
|
5574
|
-
const
|
|
5575
|
-
return function
|
|
5576
|
-
const config = validateAdapterConfig$z(untrustedConfig,
|
|
6154
|
+
const updateFollowedAssetAdapterFactory = (luvio) => {
|
|
6155
|
+
return function updateFollowedAsset(untrustedConfig) {
|
|
6156
|
+
const config = validateAdapterConfig$z(untrustedConfig, updateFollowedAsset_ConfigPropertyNames);
|
|
5577
6157
|
// Invalid or incomplete config
|
|
5578
6158
|
if (config === null) {
|
|
5579
|
-
throw new Error('Invalid config for "
|
|
6159
|
+
throw new Error('Invalid config for "updateFollowedAsset"');
|
|
5580
6160
|
}
|
|
5581
6161
|
return buildNetworkSnapshot$z(luvio, config);
|
|
5582
6162
|
};
|
|
@@ -5714,10 +6294,10 @@ const unfollow_ConfigPropertyMetadata = [
|
|
|
5714
6294
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5715
6295
|
];
|
|
5716
6296
|
const unfollow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$y, unfollow_ConfigPropertyMetadata);
|
|
5717
|
-
const createResourceParams$y = /*#__PURE__*/ createResourceParams$
|
|
6297
|
+
const createResourceParams$y = /*#__PURE__*/ createResourceParams$T(unfollow_ConfigPropertyMetadata);
|
|
5718
6298
|
function typeCheckConfig$y(untrustedConfig) {
|
|
5719
6299
|
const config = {};
|
|
5720
|
-
typeCheckConfig$
|
|
6300
|
+
typeCheckConfig$T(untrustedConfig, config, unfollow_ConfigPropertyMetadata);
|
|
5721
6301
|
return config;
|
|
5722
6302
|
}
|
|
5723
6303
|
function validateAdapterConfig$y(untrustedConfig, configPropertyNames) {
|
|
@@ -5888,14 +6468,14 @@ const getFollowers_ConfigPropertyMetadata = [
|
|
|
5888
6468
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5889
6469
|
];
|
|
5890
6470
|
const getFollowers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$x, getFollowers_ConfigPropertyMetadata);
|
|
5891
|
-
const createResourceParams$x = /*#__PURE__*/ createResourceParams$
|
|
6471
|
+
const createResourceParams$x = /*#__PURE__*/ createResourceParams$T(getFollowers_ConfigPropertyMetadata);
|
|
5892
6472
|
function keyBuilder$M(luvio, config) {
|
|
5893
6473
|
const resourceParams = createResourceParams$x(config);
|
|
5894
6474
|
return keyBuilder$N(luvio, resourceParams);
|
|
5895
6475
|
}
|
|
5896
6476
|
function typeCheckConfig$x(untrustedConfig) {
|
|
5897
6477
|
const config = {};
|
|
5898
|
-
typeCheckConfig$
|
|
6478
|
+
typeCheckConfig$T(untrustedConfig, config, getFollowers_ConfigPropertyMetadata);
|
|
5899
6479
|
return config;
|
|
5900
6480
|
}
|
|
5901
6481
|
function validateAdapterConfig$x(untrustedConfig, configPropertyNames) {
|
|
@@ -6094,14 +6674,14 @@ const getFollowedAssets_ConfigPropertyMetadata = [
|
|
|
6094
6674
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
6095
6675
|
];
|
|
6096
6676
|
const getFollowedAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$w, getFollowedAssets_ConfigPropertyMetadata);
|
|
6097
|
-
const createResourceParams$w = /*#__PURE__*/ createResourceParams$
|
|
6677
|
+
const createResourceParams$w = /*#__PURE__*/ createResourceParams$T(getFollowedAssets_ConfigPropertyMetadata);
|
|
6098
6678
|
function keyBuilder$K(luvio, config) {
|
|
6099
6679
|
const resourceParams = createResourceParams$w(config);
|
|
6100
6680
|
return keyBuilder$L(luvio, resourceParams);
|
|
6101
6681
|
}
|
|
6102
6682
|
function typeCheckConfig$w(untrustedConfig) {
|
|
6103
6683
|
const config = {};
|
|
6104
|
-
typeCheckConfig$
|
|
6684
|
+
typeCheckConfig$T(untrustedConfig, config, getFollowedAssets_ConfigPropertyMetadata);
|
|
6105
6685
|
return config;
|
|
6106
6686
|
}
|
|
6107
6687
|
function validateAdapterConfig$w(untrustedConfig, configPropertyNames) {
|
|
@@ -6288,14 +6868,14 @@ const getUniqueFollowerCount_ConfigPropertyMetadata = [
|
|
|
6288
6868
|
generateParamConfigMetadata('followedAssetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6289
6869
|
];
|
|
6290
6870
|
const getUniqueFollowerCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$v, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
6291
|
-
const createResourceParams$v = /*#__PURE__*/ createResourceParams$
|
|
6871
|
+
const createResourceParams$v = /*#__PURE__*/ createResourceParams$T(getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
6292
6872
|
function keyBuilder$I(luvio, config) {
|
|
6293
6873
|
const resourceParams = createResourceParams$v(config);
|
|
6294
6874
|
return keyBuilder$J(luvio, resourceParams);
|
|
6295
6875
|
}
|
|
6296
6876
|
function typeCheckConfig$v(untrustedConfig) {
|
|
6297
6877
|
const config = {};
|
|
6298
|
-
typeCheckConfig$
|
|
6878
|
+
typeCheckConfig$T(untrustedConfig, config, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
6299
6879
|
return config;
|
|
6300
6880
|
}
|
|
6301
6881
|
function validateAdapterConfig$v(untrustedConfig, configPropertyNames) {
|
|
@@ -6485,7 +7065,7 @@ const createLoglines_ConfigPropertyMetadata = [
|
|
|
6485
7065
|
generateParamConfigMetadata('loglines', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
6486
7066
|
];
|
|
6487
7067
|
const createLoglines_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$u, createLoglines_ConfigPropertyMetadata);
|
|
6488
|
-
const createResourceParams$u = /*#__PURE__*/ createResourceParams$
|
|
7068
|
+
const createResourceParams$u = /*#__PURE__*/ createResourceParams$T(createLoglines_ConfigPropertyMetadata);
|
|
6489
7069
|
function typeCheckConfig$u(untrustedConfig) {
|
|
6490
7070
|
const config = {};
|
|
6491
7071
|
const untrustedConfig_loglines = untrustedConfig.loglines;
|
|
@@ -6698,7 +7278,7 @@ function createResourceRequest$t(config) {
|
|
|
6698
7278
|
const adapterName$t = 'getOrg';
|
|
6699
7279
|
const getOrg_ConfigPropertyMetadata = [];
|
|
6700
7280
|
const getOrg_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, getOrg_ConfigPropertyMetadata);
|
|
6701
|
-
const createResourceParams$t = /*#__PURE__*/ createResourceParams$
|
|
7281
|
+
const createResourceParams$t = /*#__PURE__*/ createResourceParams$T(getOrg_ConfigPropertyMetadata);
|
|
6702
7282
|
function keyBuilder$F(luvio, config) {
|
|
6703
7283
|
createResourceParams$t(config);
|
|
6704
7284
|
return keyBuilder$G();
|
|
@@ -6921,10 +7501,10 @@ const deleteAllShares_ConfigPropertyMetadata = [
|
|
|
6921
7501
|
generateParamConfigMetadata('recordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6922
7502
|
];
|
|
6923
7503
|
const deleteAllShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$s, deleteAllShares_ConfigPropertyMetadata);
|
|
6924
|
-
const createResourceParams$s = /*#__PURE__*/ createResourceParams$
|
|
7504
|
+
const createResourceParams$s = /*#__PURE__*/ createResourceParams$T(deleteAllShares_ConfigPropertyMetadata);
|
|
6925
7505
|
function typeCheckConfig$s(untrustedConfig) {
|
|
6926
7506
|
const config = {};
|
|
6927
|
-
typeCheckConfig$
|
|
7507
|
+
typeCheckConfig$T(untrustedConfig, config, deleteAllShares_ConfigPropertyMetadata);
|
|
6928
7508
|
return config;
|
|
6929
7509
|
}
|
|
6930
7510
|
function validateAdapterConfig$s(untrustedConfig, configPropertyNames) {
|
|
@@ -7031,14 +7611,14 @@ const getShares_ConfigPropertyMetadata = [
|
|
|
7031
7611
|
generateParamConfigMetadata('userOrGroupId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7032
7612
|
];
|
|
7033
7613
|
const getShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$r, getShares_ConfigPropertyMetadata);
|
|
7034
|
-
const createResourceParams$r = /*#__PURE__*/ createResourceParams$
|
|
7614
|
+
const createResourceParams$r = /*#__PURE__*/ createResourceParams$T(getShares_ConfigPropertyMetadata);
|
|
7035
7615
|
function keyBuilder$A(luvio, config) {
|
|
7036
7616
|
const resourceParams = createResourceParams$r(config);
|
|
7037
7617
|
return keyBuilder$B(luvio, resourceParams);
|
|
7038
7618
|
}
|
|
7039
7619
|
function typeCheckConfig$r(untrustedConfig) {
|
|
7040
7620
|
const config = {};
|
|
7041
|
-
typeCheckConfig$
|
|
7621
|
+
typeCheckConfig$T(untrustedConfig, config, getShares_ConfigPropertyMetadata);
|
|
7042
7622
|
return config;
|
|
7043
7623
|
}
|
|
7044
7624
|
function validateAdapterConfig$r(untrustedConfig, configPropertyNames) {
|
|
@@ -7328,10 +7908,10 @@ const updateRecordShares_ConfigPropertyMetadata = [
|
|
|
7328
7908
|
generateParamConfigMetadata('updateSetupRecordAccessItems', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
7329
7909
|
];
|
|
7330
7910
|
const updateRecordShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$q, updateRecordShares_ConfigPropertyMetadata);
|
|
7331
|
-
const createResourceParams$q = /*#__PURE__*/ createResourceParams$
|
|
7911
|
+
const createResourceParams$q = /*#__PURE__*/ createResourceParams$T(updateRecordShares_ConfigPropertyMetadata);
|
|
7332
7912
|
function typeCheckConfig$q(untrustedConfig) {
|
|
7333
7913
|
const config = {};
|
|
7334
|
-
typeCheckConfig$
|
|
7914
|
+
typeCheckConfig$T(untrustedConfig, config, updateRecordShares_ConfigPropertyMetadata);
|
|
7335
7915
|
const untrustedConfig_updateSetupRecordAccessItems = untrustedConfig.updateSetupRecordAccessItems;
|
|
7336
7916
|
if (ArrayIsArray$1(untrustedConfig_updateSetupRecordAccessItems)) {
|
|
7337
7917
|
const untrustedConfig_updateSetupRecordAccessItems_array = [];
|
|
@@ -7428,10 +8008,10 @@ const createRecordShares_ConfigPropertyMetadata = [
|
|
|
7428
8008
|
generateParamConfigMetadata('accessRequestItems', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
7429
8009
|
];
|
|
7430
8010
|
const createRecordShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$p, createRecordShares_ConfigPropertyMetadata);
|
|
7431
|
-
const createResourceParams$p = /*#__PURE__*/ createResourceParams$
|
|
8011
|
+
const createResourceParams$p = /*#__PURE__*/ createResourceParams$T(createRecordShares_ConfigPropertyMetadata);
|
|
7432
8012
|
function typeCheckConfig$p(untrustedConfig) {
|
|
7433
8013
|
const config = {};
|
|
7434
|
-
typeCheckConfig$
|
|
8014
|
+
typeCheckConfig$T(untrustedConfig, config, createRecordShares_ConfigPropertyMetadata);
|
|
7435
8015
|
const untrustedConfig_accessRequestItems = untrustedConfig.accessRequestItems;
|
|
7436
8016
|
if (ArrayIsArray$1(untrustedConfig_accessRequestItems)) {
|
|
7437
8017
|
const untrustedConfig_accessRequestItems_array = [];
|
|
@@ -7523,10 +8103,10 @@ const deleteRecordShare_ConfigPropertyMetadata = [
|
|
|
7523
8103
|
generateParamConfigMetadata('userOrGroupId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7524
8104
|
];
|
|
7525
8105
|
const deleteRecordShare_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, deleteRecordShare_ConfigPropertyMetadata);
|
|
7526
|
-
const createResourceParams$o = /*#__PURE__*/ createResourceParams$
|
|
8106
|
+
const createResourceParams$o = /*#__PURE__*/ createResourceParams$T(deleteRecordShare_ConfigPropertyMetadata);
|
|
7527
8107
|
function typeCheckConfig$o(untrustedConfig) {
|
|
7528
8108
|
const config = {};
|
|
7529
|
-
typeCheckConfig$
|
|
8109
|
+
typeCheckConfig$T(untrustedConfig, config, deleteRecordShare_ConfigPropertyMetadata);
|
|
7530
8110
|
return config;
|
|
7531
8111
|
}
|
|
7532
8112
|
function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
|
|
@@ -7851,14 +8431,14 @@ const getAssetSlackChannels_ConfigPropertyMetadata = [
|
|
|
7851
8431
|
generateParamConfigMetadata('assetId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
7852
8432
|
];
|
|
7853
8433
|
const getAssetSlackChannels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
7854
|
-
const createResourceParams$n = /*#__PURE__*/ createResourceParams$
|
|
8434
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$T(getAssetSlackChannels_ConfigPropertyMetadata);
|
|
7855
8435
|
function keyBuilder$v(luvio, config) {
|
|
7856
8436
|
const resourceParams = createResourceParams$n(config);
|
|
7857
8437
|
return keyBuilder$w(luvio, resourceParams);
|
|
7858
8438
|
}
|
|
7859
8439
|
function typeCheckConfig$n(untrustedConfig) {
|
|
7860
8440
|
const config = {};
|
|
7861
|
-
typeCheckConfig$
|
|
8441
|
+
typeCheckConfig$T(untrustedConfig, config, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
7862
8442
|
return config;
|
|
7863
8443
|
}
|
|
7864
8444
|
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
@@ -7976,10 +8556,10 @@ const createAssetSlackChannel_ConfigPropertyMetadata = [
|
|
|
7976
8556
|
generateParamConfigMetadata('teamId', true, 2 /* Body */, 0 /* String */),
|
|
7977
8557
|
];
|
|
7978
8558
|
const createAssetSlackChannel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
7979
|
-
const createResourceParams$m = /*#__PURE__*/ createResourceParams$
|
|
8559
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$T(createAssetSlackChannel_ConfigPropertyMetadata);
|
|
7980
8560
|
function typeCheckConfig$m(untrustedConfig) {
|
|
7981
8561
|
const config = {};
|
|
7982
|
-
typeCheckConfig$
|
|
8562
|
+
typeCheckConfig$T(untrustedConfig, config, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
7983
8563
|
return config;
|
|
7984
8564
|
}
|
|
7985
8565
|
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
@@ -8159,10 +8739,10 @@ const queryUsers_ConfigPropertyMetadata = [
|
|
|
8159
8739
|
generateParamConfigMetadata('offset', true, 2 /* Body */, 3 /* Integer */),
|
|
8160
8740
|
];
|
|
8161
8741
|
const queryUsers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, queryUsers_ConfigPropertyMetadata);
|
|
8162
|
-
const createResourceParams$l = /*#__PURE__*/ createResourceParams$
|
|
8742
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$T(queryUsers_ConfigPropertyMetadata);
|
|
8163
8743
|
function typeCheckConfig$l(untrustedConfig) {
|
|
8164
8744
|
const config = {};
|
|
8165
|
-
typeCheckConfig$
|
|
8745
|
+
typeCheckConfig$T(untrustedConfig, config, queryUsers_ConfigPropertyMetadata);
|
|
8166
8746
|
return config;
|
|
8167
8747
|
}
|
|
8168
8748
|
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
@@ -8552,14 +9132,14 @@ const getVisualizations_ConfigPropertyMetadata = [
|
|
|
8552
9132
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
8553
9133
|
];
|
|
8554
9134
|
const getVisualizations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getVisualizations_ConfigPropertyMetadata);
|
|
8555
|
-
const createResourceParams$k = /*#__PURE__*/ createResourceParams$
|
|
9135
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$T(getVisualizations_ConfigPropertyMetadata);
|
|
8556
9136
|
function keyBuilder$r(luvio, config) {
|
|
8557
9137
|
const resourceParams = createResourceParams$k(config);
|
|
8558
9138
|
return keyBuilder$s(luvio, resourceParams);
|
|
8559
9139
|
}
|
|
8560
9140
|
function typeCheckConfig$k(untrustedConfig) {
|
|
8561
9141
|
const config = {};
|
|
8562
|
-
typeCheckConfig$
|
|
9142
|
+
typeCheckConfig$T(untrustedConfig, config, getVisualizations_ConfigPropertyMetadata);
|
|
8563
9143
|
return config;
|
|
8564
9144
|
}
|
|
8565
9145
|
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
@@ -8684,10 +9264,10 @@ const createVisualization_ConfigPropertyMetadata = [
|
|
|
8684
9264
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
8685
9265
|
];
|
|
8686
9266
|
const createVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, createVisualization_ConfigPropertyMetadata);
|
|
8687
|
-
const createResourceParams$j = /*#__PURE__*/ createResourceParams$
|
|
9267
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$T(createVisualization_ConfigPropertyMetadata);
|
|
8688
9268
|
function typeCheckConfig$j(untrustedConfig) {
|
|
8689
9269
|
const config = {};
|
|
8690
|
-
typeCheckConfig$
|
|
9270
|
+
typeCheckConfig$T(untrustedConfig, config, createVisualization_ConfigPropertyMetadata);
|
|
8691
9271
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
8692
9272
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
8693
9273
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -8852,10 +9432,10 @@ const deleteVisualization_ConfigPropertyMetadata = [
|
|
|
8852
9432
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8853
9433
|
];
|
|
8854
9434
|
const deleteVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, deleteVisualization_ConfigPropertyMetadata);
|
|
8855
|
-
const createResourceParams$i = /*#__PURE__*/ createResourceParams$
|
|
9435
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$T(deleteVisualization_ConfigPropertyMetadata);
|
|
8856
9436
|
function typeCheckConfig$i(untrustedConfig) {
|
|
8857
9437
|
const config = {};
|
|
8858
|
-
typeCheckConfig$
|
|
9438
|
+
typeCheckConfig$T(untrustedConfig, config, deleteVisualization_ConfigPropertyMetadata);
|
|
8859
9439
|
return config;
|
|
8860
9440
|
}
|
|
8861
9441
|
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
@@ -8953,14 +9533,14 @@ const getVisualization_ConfigPropertyMetadata = [
|
|
|
8953
9533
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8954
9534
|
];
|
|
8955
9535
|
const getVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getVisualization_ConfigPropertyMetadata);
|
|
8956
|
-
const createResourceParams$h = /*#__PURE__*/ createResourceParams$
|
|
9536
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$T(getVisualization_ConfigPropertyMetadata);
|
|
8957
9537
|
function keyBuilder$o(luvio, config) {
|
|
8958
9538
|
const resourceParams = createResourceParams$h(config);
|
|
8959
9539
|
return keyBuilder$p(luvio, resourceParams);
|
|
8960
9540
|
}
|
|
8961
9541
|
function typeCheckConfig$h(untrustedConfig) {
|
|
8962
9542
|
const config = {};
|
|
8963
|
-
typeCheckConfig$
|
|
9543
|
+
typeCheckConfig$T(untrustedConfig, config, getVisualization_ConfigPropertyMetadata);
|
|
8964
9544
|
return config;
|
|
8965
9545
|
}
|
|
8966
9546
|
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
@@ -9086,10 +9666,10 @@ const updateVisualization_ConfigPropertyMetadata = [
|
|
|
9086
9666
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9087
9667
|
];
|
|
9088
9668
|
const updateVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, updateVisualization_ConfigPropertyMetadata);
|
|
9089
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
9669
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$T(updateVisualization_ConfigPropertyMetadata);
|
|
9090
9670
|
function typeCheckConfig$g(untrustedConfig) {
|
|
9091
9671
|
const config = {};
|
|
9092
|
-
typeCheckConfig$
|
|
9672
|
+
typeCheckConfig$T(untrustedConfig, config, updateVisualization_ConfigPropertyMetadata);
|
|
9093
9673
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
9094
9674
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
9095
9675
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -9353,14 +9933,14 @@ const getVisualizationBundle_ConfigPropertyMetadata = [
|
|
|
9353
9933
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9354
9934
|
];
|
|
9355
9935
|
const getVisualizationBundle_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getVisualizationBundle_ConfigPropertyMetadata);
|
|
9356
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
9936
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$T(getVisualizationBundle_ConfigPropertyMetadata);
|
|
9357
9937
|
function keyBuilder$l(luvio, config) {
|
|
9358
9938
|
const resourceParams = createResourceParams$f(config);
|
|
9359
9939
|
return keyBuilder$m(luvio, resourceParams);
|
|
9360
9940
|
}
|
|
9361
9941
|
function typeCheckConfig$f(untrustedConfig) {
|
|
9362
9942
|
const config = {};
|
|
9363
|
-
typeCheckConfig$
|
|
9943
|
+
typeCheckConfig$T(untrustedConfig, config, getVisualizationBundle_ConfigPropertyMetadata);
|
|
9364
9944
|
return config;
|
|
9365
9945
|
}
|
|
9366
9946
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -9698,14 +10278,14 @@ const getWorkspaces_ConfigPropertyMetadata = [
|
|
|
9698
10278
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
9699
10279
|
];
|
|
9700
10280
|
const getWorkspaces_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getWorkspaces_ConfigPropertyMetadata);
|
|
9701
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
10281
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$T(getWorkspaces_ConfigPropertyMetadata);
|
|
9702
10282
|
function keyBuilder$i(luvio, config) {
|
|
9703
10283
|
const resourceParams = createResourceParams$e(config);
|
|
9704
10284
|
return keyBuilder$j(luvio, resourceParams);
|
|
9705
10285
|
}
|
|
9706
10286
|
function typeCheckConfig$e(untrustedConfig) {
|
|
9707
10287
|
const config = {};
|
|
9708
|
-
typeCheckConfig$
|
|
10288
|
+
typeCheckConfig$T(untrustedConfig, config, getWorkspaces_ConfigPropertyMetadata);
|
|
9709
10289
|
return config;
|
|
9710
10290
|
}
|
|
9711
10291
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -9824,10 +10404,10 @@ const createWorkspace_ConfigPropertyMetadata = [
|
|
|
9824
10404
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
9825
10405
|
];
|
|
9826
10406
|
const createWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, createWorkspace_ConfigPropertyMetadata);
|
|
9827
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
10407
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$T(createWorkspace_ConfigPropertyMetadata);
|
|
9828
10408
|
function typeCheckConfig$d(untrustedConfig) {
|
|
9829
10409
|
const config = {};
|
|
9830
|
-
typeCheckConfig$
|
|
10410
|
+
typeCheckConfig$T(untrustedConfig, config, createWorkspace_ConfigPropertyMetadata);
|
|
9831
10411
|
return config;
|
|
9832
10412
|
}
|
|
9833
10413
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -9908,10 +10488,10 @@ const deleteWorkspace_ConfigPropertyMetadata = [
|
|
|
9908
10488
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9909
10489
|
];
|
|
9910
10490
|
const deleteWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, deleteWorkspace_ConfigPropertyMetadata);
|
|
9911
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
10491
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$T(deleteWorkspace_ConfigPropertyMetadata);
|
|
9912
10492
|
function typeCheckConfig$c(untrustedConfig) {
|
|
9913
10493
|
const config = {};
|
|
9914
|
-
typeCheckConfig$
|
|
10494
|
+
typeCheckConfig$T(untrustedConfig, config, deleteWorkspace_ConfigPropertyMetadata);
|
|
9915
10495
|
return config;
|
|
9916
10496
|
}
|
|
9917
10497
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -10009,14 +10589,14 @@ const getWorkspaceByIdOrName_ConfigPropertyMetadata = [
|
|
|
10009
10589
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10010
10590
|
];
|
|
10011
10591
|
const getWorkspaceByIdOrName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
10012
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
10592
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$T(getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
10013
10593
|
function keyBuilder$f(luvio, config) {
|
|
10014
10594
|
const resourceParams = createResourceParams$b(config);
|
|
10015
10595
|
return keyBuilder$g(luvio, resourceParams);
|
|
10016
10596
|
}
|
|
10017
10597
|
function typeCheckConfig$b(untrustedConfig) {
|
|
10018
10598
|
const config = {};
|
|
10019
|
-
typeCheckConfig$
|
|
10599
|
+
typeCheckConfig$T(untrustedConfig, config, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
10020
10600
|
return config;
|
|
10021
10601
|
}
|
|
10022
10602
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -10136,10 +10716,10 @@ const updateWorkspace_ConfigPropertyMetadata = [
|
|
|
10136
10716
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
10137
10717
|
];
|
|
10138
10718
|
const updateWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, updateWorkspace_ConfigPropertyMetadata);
|
|
10139
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
10719
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$T(updateWorkspace_ConfigPropertyMetadata);
|
|
10140
10720
|
function typeCheckConfig$a(untrustedConfig) {
|
|
10141
10721
|
const config = {};
|
|
10142
|
-
typeCheckConfig$
|
|
10722
|
+
typeCheckConfig$T(untrustedConfig, config, updateWorkspace_ConfigPropertyMetadata);
|
|
10143
10723
|
return config;
|
|
10144
10724
|
}
|
|
10145
10725
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -10320,10 +10900,10 @@ const createWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
10320
10900
|
generateParamConfigMetadata('assetUsageType', true, 2 /* Body */, 0 /* String */),
|
|
10321
10901
|
];
|
|
10322
10902
|
const createWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
10323
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
10903
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$T(createWorkspaceAsset_ConfigPropertyMetadata);
|
|
10324
10904
|
function typeCheckConfig$9(untrustedConfig) {
|
|
10325
10905
|
const config = {};
|
|
10326
|
-
typeCheckConfig$
|
|
10906
|
+
typeCheckConfig$T(untrustedConfig, config, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
10327
10907
|
return config;
|
|
10328
10908
|
}
|
|
10329
10909
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -10405,10 +10985,10 @@ const deleteWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
10405
10985
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10406
10986
|
];
|
|
10407
10987
|
const deleteWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
10408
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
10988
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$T(deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
10409
10989
|
function typeCheckConfig$8(untrustedConfig) {
|
|
10410
10990
|
const config = {};
|
|
10411
|
-
typeCheckConfig$
|
|
10991
|
+
typeCheckConfig$T(untrustedConfig, config, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
10412
10992
|
return config;
|
|
10413
10993
|
}
|
|
10414
10994
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -10792,14 +11372,14 @@ const getFlows_ConfigPropertyMetadata = [
|
|
|
10792
11372
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
10793
11373
|
];
|
|
10794
11374
|
const getFlows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getFlows_ConfigPropertyMetadata);
|
|
10795
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
11375
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$T(getFlows_ConfigPropertyMetadata);
|
|
10796
11376
|
function keyBuilder$b(luvio, config) {
|
|
10797
11377
|
const resourceParams = createResourceParams$7(config);
|
|
10798
11378
|
return keyBuilder$c(luvio, resourceParams);
|
|
10799
11379
|
}
|
|
10800
11380
|
function typeCheckConfig$7(untrustedConfig) {
|
|
10801
11381
|
const config = {};
|
|
10802
|
-
typeCheckConfig$
|
|
11382
|
+
typeCheckConfig$T(untrustedConfig, config, getFlows_ConfigPropertyMetadata);
|
|
10803
11383
|
return config;
|
|
10804
11384
|
}
|
|
10805
11385
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -10924,14 +11504,14 @@ const getFlowByName_ConfigPropertyMetadata = [
|
|
|
10924
11504
|
generateParamConfigMetadata('flowApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10925
11505
|
];
|
|
10926
11506
|
const getFlowByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getFlowByName_ConfigPropertyMetadata);
|
|
10927
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
11507
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$T(getFlowByName_ConfigPropertyMetadata);
|
|
10928
11508
|
function keyBuilder$9(luvio, config) {
|
|
10929
11509
|
const resourceParams = createResourceParams$6(config);
|
|
10930
11510
|
return keyBuilder$a(luvio, resourceParams);
|
|
10931
11511
|
}
|
|
10932
11512
|
function typeCheckConfig$6(untrustedConfig) {
|
|
10933
11513
|
const config = {};
|
|
10934
|
-
typeCheckConfig$
|
|
11514
|
+
typeCheckConfig$T(untrustedConfig, config, getFlowByName_ConfigPropertyMetadata);
|
|
10935
11515
|
return config;
|
|
10936
11516
|
}
|
|
10937
11517
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -11138,14 +11718,14 @@ const getSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
11138
11718
|
generateParamConfigMetadata('digestConfigOwner', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11139
11719
|
];
|
|
11140
11720
|
const getSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
11141
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
11721
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$T(getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
11142
11722
|
function keyBuilder$6(luvio, config) {
|
|
11143
11723
|
const resourceParams = createResourceParams$5(config);
|
|
11144
11724
|
return keyBuilder$7(luvio, resourceParams);
|
|
11145
11725
|
}
|
|
11146
11726
|
function typeCheckConfig$5(untrustedConfig) {
|
|
11147
11727
|
const config = {};
|
|
11148
|
-
typeCheckConfig$
|
|
11728
|
+
typeCheckConfig$T(untrustedConfig, config, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
11149
11729
|
return config;
|
|
11150
11730
|
}
|
|
11151
11731
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -11263,10 +11843,10 @@ const updateSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
11263
11843
|
generateParamConfigMetadata('scheduleType', true, 2 /* Body */, 0 /* String */),
|
|
11264
11844
|
];
|
|
11265
11845
|
const updateSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
11266
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
11846
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$T(updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
11267
11847
|
function typeCheckConfig$4(untrustedConfig) {
|
|
11268
11848
|
const config = {};
|
|
11269
|
-
typeCheckConfig$
|
|
11849
|
+
typeCheckConfig$T(untrustedConfig, config, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
11270
11850
|
return config;
|
|
11271
11851
|
}
|
|
11272
11852
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -11498,10 +12078,10 @@ const getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata = [
|
|
|
11498
12078
|
generateParamConfigMetadata('sortDirection', false, 2 /* Body */, 0 /* String */),
|
|
11499
12079
|
];
|
|
11500
12080
|
const getUnifiedAnalyticsLibraryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
11501
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
12081
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$T(getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
11502
12082
|
function typeCheckConfig$3(untrustedConfig) {
|
|
11503
12083
|
const config = {};
|
|
11504
|
-
typeCheckConfig$
|
|
12084
|
+
typeCheckConfig$T(untrustedConfig, config, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
11505
12085
|
const untrustedConfig_assetTypes = untrustedConfig.assetTypes;
|
|
11506
12086
|
if (ArrayIsArray$1(untrustedConfig_assetTypes)) {
|
|
11507
12087
|
const untrustedConfig_assetTypes_array = [];
|
|
@@ -11733,10 +12313,10 @@ const generateSFDriveCredentials_ConfigPropertyMetadata = [
|
|
|
11733
12313
|
generateParamConfigMetadata('path', true, 2 /* Body */, 0 /* String */),
|
|
11734
12314
|
];
|
|
11735
12315
|
const generateSFDriveCredentials_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
11736
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
12316
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$T(generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
11737
12317
|
function typeCheckConfig$2(untrustedConfig) {
|
|
11738
12318
|
const config = {};
|
|
11739
|
-
typeCheckConfig$
|
|
12319
|
+
typeCheckConfig$T(untrustedConfig, config, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
11740
12320
|
return config;
|
|
11741
12321
|
}
|
|
11742
12322
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -11907,14 +12487,14 @@ const initiateMarketplaceListingInstallation_ConfigPropertyMetadata = [
|
|
|
11907
12487
|
generateParamConfigMetadata('listingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11908
12488
|
];
|
|
11909
12489
|
const initiateMarketplaceListingInstallation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
11910
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
12490
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$T(initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
11911
12491
|
function keyBuilder$2(luvio, config) {
|
|
11912
12492
|
const resourceParams = createResourceParams$1(config);
|
|
11913
12493
|
return keyBuilder$3(luvio, resourceParams);
|
|
11914
12494
|
}
|
|
11915
12495
|
function typeCheckConfig$1(untrustedConfig) {
|
|
11916
12496
|
const config = {};
|
|
11917
|
-
typeCheckConfig$
|
|
12497
|
+
typeCheckConfig$T(untrustedConfig, config, initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
11918
12498
|
return config;
|
|
11919
12499
|
}
|
|
11920
12500
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -12141,14 +12721,14 @@ const getMarketplaceListingInstallationProgress_ConfigPropertyMetadata = [
|
|
|
12141
12721
|
generateParamConfigMetadata('installationId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12142
12722
|
];
|
|
12143
12723
|
const getMarketplaceListingInstallationProgress_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
12144
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
12724
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$T(getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
12145
12725
|
function keyBuilder(luvio, config) {
|
|
12146
12726
|
const resourceParams = createResourceParams(config);
|
|
12147
12727
|
return keyBuilder$1(luvio, resourceParams);
|
|
12148
12728
|
}
|
|
12149
12729
|
function typeCheckConfig(untrustedConfig) {
|
|
12150
12730
|
const config = {};
|
|
12151
|
-
typeCheckConfig$
|
|
12731
|
+
typeCheckConfig$T(untrustedConfig, config, getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
12152
12732
|
return config;
|
|
12153
12733
|
}
|
|
12154
12734
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -12222,4 +12802,4 @@ const getMarketplaceListingInstallationProgressAdapterFactory = (luvio) => funct
|
|
|
12222
12802
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
12223
12803
|
};
|
|
12224
12804
|
|
|
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 };
|
|
12805
|
+
export { createAnnotationAdapterFactory, createAssetSlackChannelAdapterFactory, createDashboardAdapterFactory, createDataAlertAdapterFactory, createDataAssetRequestAdapterFactory, createLoglinesAdapterFactory, createRecordSharesAdapterFactory, createVisualizationAdapterFactory, createWorkspaceAdapterFactory, createWorkspaceAssetAdapterFactory, deleteAllSharesAdapterFactory, deleteDashboardAdapterFactory, deleteRecordShareAdapterFactory, deleteVisualizationAdapterFactory, deleteWorkspaceAdapterFactory, deleteWorkspaceAssetAdapterFactory, followAdapterFactory, generateSFDriveCredentialsAdapterFactory, getAnnotationsAdapterFactory, getAssetSlackChannelsAdapterFactory, getDashboardByNameAdapterFactory, getDashboardsAdapterFactory, getDataAssetDependenciesAdapterFactory, getDataAssetRequestByIdOrApiNameAdapterFactory, getDataAssetRequestsAdapterFactory, getDataAssetRequestsCountAdapterFactory, getFlowByNameAdapterFactory, getFlowsAdapterFactory, getFollowedAssetsAdapterFactory, getFollowersAdapterFactory, getMarketplaceListingInstallationProgressAdapterFactory, getOrgAdapterFactory, getSharesAdapterFactory, getSlackAppInfoAdapterFactory, getSubscriptionDigestConfigAdapterFactory, getUnifiedAnalyticsLibraryAssetsAdapterFactory, getUniqueFollowerCountAdapterFactory, getVisualizationAdapterFactory, getVisualizationBundleAdapterFactory, getVisualizationsAdapterFactory, getWorkspaceByIdOrNameAdapterFactory, getWorkspacesAdapterFactory, initiateMarketplaceListingInstallationAdapterFactory, publishAdapterFactory, queryAssetsAdapterFactory, queryUsersAdapterFactory, unfollowAdapterFactory, updateDashboardAdapterFactory, updateDataAlertAdapterFactory, updateDataAssetRequestAdapterFactory, updateFollowedAssetAdapterFactory, updateRecordSharesAdapterFactory, updateSubscriptionDigestConfigAdapterFactory, updateVisualizationAdapterFactory, updateWorkspaceAdapterFactory };
|