@salesforce/lds-adapters-analytics-unifiedanalytics 1.332.0-dev1 → 1.332.0-dev10
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 +1778 -577
- package/dist/es/es2018/types/src/generated/adapters/createDataAssetRequest.d.ts +24 -0
- package/dist/es/es2018/types/src/generated/adapters/getDataAssetDependencies.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/getDataAssetRequestByIdOrApiName.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getDataAssetRequests.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/adapters/getDataAssetRequestsCount.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/adapters/updateDataAssetRequest.d.ts +25 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +6 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +12 -1
- package/dist/es/es2018/types/src/generated/resources/getTableauDataAssetsDependenciesByAssetId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getTableauDataAssetsRequests.d.ts +25 -0
- package/dist/es/es2018/types/src/generated/resources/getTableauDataAssetsRequestsByRequestIdOrApiName.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getTableauDataAssetsRequestsCount.d.ts +21 -0
- package/dist/es/es2018/types/src/generated/resources/patchTableauDataAssetsRequestsByRequestIdOrApiName.d.ts +24 -0
- package/dist/es/es2018/types/src/generated/resources/postTableauDataAssetsRequests.d.ts +21 -0
- package/dist/es/es2018/types/src/generated/types/AnalyticsLibraryDashboardTemplateRepresentation.d.ts +7 -4
- package/dist/es/es2018/types/src/generated/types/DataAssetDependentCollectionRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/DataAssetDependentRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/DataAssetRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/DataAssetRequestCollectionRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/DataAssetRequestCountRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/DataAssetRequestInputRepresentation.d.ts +55 -0
- package/dist/es/es2018/types/src/generated/types/DataAssetRequestRepresentation.d.ts +117 -0
- package/package.json +3 -3
- package/sfdc/index.js +2890 -1591
- package/src/raml/api.raml +352 -3
- package/src/raml/luvio.raml +50 -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$Q, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$o, typeCheckConfig as typeCheckConfig$Q } 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$m = 1000;
|
|
97
|
+
const VERSION$y = "3c943f1d2e5251ceef13b3e2fdb5f916";
|
|
98
|
+
function validate$X(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$R(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$A = 'TableauExternalMonitoringEventItemRepresentation';
|
|
122
|
+
function keyBuilder$1a(luvio, config) {
|
|
123
|
+
return keyPrefix + '::' + RepresentationType$A + ':' + config.id;
|
|
124
124
|
}
|
|
125
|
-
function keyBuilderFromType$
|
|
125
|
+
function keyBuilderFromType$h(luvio, object) {
|
|
126
126
|
const keyParams = {
|
|
127
127
|
id: object.id
|
|
128
128
|
};
|
|
129
|
-
return keyBuilder$
|
|
129
|
+
return keyBuilder$1a(luvio, keyParams);
|
|
130
130
|
}
|
|
131
|
-
function normalize$
|
|
131
|
+
function normalize$y(input, existing, path, luvio, store, timestamp) {
|
|
132
132
|
return input;
|
|
133
133
|
}
|
|
134
|
-
const select$
|
|
134
|
+
const select$1f = function TableauExternalMonitoringEventItemRepresentationSelect() {
|
|
135
135
|
return {
|
|
136
136
|
kind: 'Fragment',
|
|
137
|
-
version: VERSION$
|
|
137
|
+
version: VERSION$y,
|
|
138
138
|
private: [],
|
|
139
139
|
opaque: true
|
|
140
140
|
};
|
|
141
141
|
};
|
|
142
|
-
function equals$
|
|
142
|
+
function equals$y(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$y = function TableauExternalMonitoringEventItemRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
149
149
|
if (process.env.NODE_ENV !== 'production') {
|
|
150
|
-
const validateError = validate$
|
|
150
|
+
const validateError = validate$X(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$h(luvio, input);
|
|
156
|
+
const ttlToUse = TTL$m;
|
|
157
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$y, "UnifiedAnalytics", VERSION$y, RepresentationType$A, equals$y);
|
|
158
158
|
return createLink(key);
|
|
159
159
|
};
|
|
160
|
-
function getTypeCacheKeys$
|
|
160
|
+
function getTypeCacheKeys$y(rootKeySet, luvio, input, fullPathFactory) {
|
|
161
161
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
162
|
-
const rootKey = keyBuilderFromType$
|
|
162
|
+
const rootKey = keyBuilderFromType$h(luvio, input);
|
|
163
163
|
rootKeySet.set(rootKey, {
|
|
164
164
|
namespace: keyPrefix,
|
|
165
|
-
representationName: RepresentationType$
|
|
165
|
+
representationName: RepresentationType$A,
|
|
166
166
|
mergeable: false
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
function select$
|
|
171
|
-
return select$
|
|
170
|
+
function select$1e(luvio, params) {
|
|
171
|
+
return select$1f();
|
|
172
172
|
}
|
|
173
|
-
function getResponseCacheKeys$
|
|
174
|
-
getTypeCacheKeys$
|
|
173
|
+
function getResponseCacheKeys$P(storeKeyMap, luvio, resourceParams, response) {
|
|
174
|
+
getTypeCacheKeys$y(storeKeyMap, luvio, response);
|
|
175
175
|
}
|
|
176
|
-
function ingestSuccess$
|
|
176
|
+
function ingestSuccess$I(luvio, resourceParams, response) {
|
|
177
177
|
const { body } = response;
|
|
178
|
-
const key = keyBuilderFromType$
|
|
179
|
-
luvio.storeIngest(key, ingest$
|
|
178
|
+
const key = keyBuilderFromType$h(luvio, body);
|
|
179
|
+
luvio.storeIngest(key, ingest$y, body);
|
|
180
180
|
const snapshot = luvio.storeLookup({
|
|
181
181
|
recordId: key,
|
|
182
|
-
node: select$
|
|
182
|
+
node: select$1e(),
|
|
183
183
|
variables: {},
|
|
184
184
|
});
|
|
185
185
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -190,7 +190,7 @@ function ingestSuccess$C(luvio, resourceParams, response) {
|
|
|
190
190
|
deepFreeze(snapshot.data);
|
|
191
191
|
return snapshot;
|
|
192
192
|
}
|
|
193
|
-
function createResourceRequest$
|
|
193
|
+
function createResourceRequest$P(config) {
|
|
194
194
|
const headers = {};
|
|
195
195
|
return {
|
|
196
196
|
baseUri: '/services/data/v63.0',
|
|
@@ -204,13 +204,13 @@ function createResourceRequest$J(config) {
|
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
const adapterName$
|
|
207
|
+
const adapterName$P = '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$P, publish_ConfigPropertyMetadata);
|
|
212
|
+
const createResourceParams$P = /*#__PURE__*/ createResourceParams$Q(publish_ConfigPropertyMetadata);
|
|
213
|
+
function typeCheckConfig$P(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$J(untrustedConfig) {
|
|
|
223
223
|
}
|
|
224
224
|
return config;
|
|
225
225
|
}
|
|
226
|
-
function validateAdapterConfig$
|
|
226
|
+
function validateAdapterConfig$P(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$P(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$P(luvio, config, options) {
|
|
240
|
+
const resourceParams = createResourceParams$P(config);
|
|
241
|
+
const request = createResourceRequest$P(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$I(luvio, resourceParams, response);
|
|
246
246
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
247
247
|
}, () => {
|
|
248
248
|
const cache = new StoreKeyMap();
|
|
249
|
-
getResponseCacheKeys$
|
|
249
|
+
getResponseCacheKeys$P(cache, luvio, resourceParams, response.body);
|
|
250
250
|
return cache;
|
|
251
251
|
});
|
|
252
252
|
}, (response) => {
|
|
@@ -256,16 +256,16 @@ function buildNetworkSnapshot$J(luvio, config, options) {
|
|
|
256
256
|
}
|
|
257
257
|
const publishAdapterFactory = (luvio) => {
|
|
258
258
|
return function publish(untrustedConfig) {
|
|
259
|
-
const config = validateAdapterConfig$
|
|
259
|
+
const config = validateAdapterConfig$P(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$P(luvio, config);
|
|
265
265
|
};
|
|
266
266
|
};
|
|
267
267
|
|
|
268
|
-
function validate$
|
|
268
|
+
function validate$W(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$Q(obj, path = 'DashboardAnnotationAnchorRepresentation') {
|
|
|
279
279
|
return v_error === undefined ? null : v_error;
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
function validate$
|
|
282
|
+
function validate$V(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$P(obj, path = 'AnnotationAssetRepresentation') {
|
|
|
298
298
|
return v_error === undefined ? null : v_error;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
function validate$
|
|
301
|
+
function validate$U(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$O(obj, path = 'FileTypeOutputRepresentation') {
|
|
|
317
317
|
return v_error === undefined ? null : v_error;
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
function validate$
|
|
320
|
+
function validate$T(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$N(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$U(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$N(obj, path = 'ContentVersionOutputRepresentation') {
|
|
|
401
401
|
return v_error === undefined ? null : v_error;
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
-
function validate$
|
|
404
|
+
function validate$S(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$U(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$M(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$T(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$M(obj, path = 'ContentDocumentOutputRepresentation') {
|
|
|
441
441
|
return v_error === undefined ? null : v_error;
|
|
442
442
|
}
|
|
443
443
|
|
|
444
|
-
function validate$
|
|
444
|
+
function validate$R(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$L(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$S(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$L(obj, path = 'SlackFileOutputRepresentation') {
|
|
|
550
550
|
return v_error === undefined ? null : v_error;
|
|
551
551
|
}
|
|
552
552
|
|
|
553
|
-
function validate$
|
|
553
|
+
function validate$Q(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$K(obj, path = 'SlackEmojiOutputRepresentation') {
|
|
|
674
674
|
return v_error === undefined ? null : v_error;
|
|
675
675
|
}
|
|
676
676
|
|
|
677
|
-
function validate$
|
|
677
|
+
function validate$P(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$J(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$Q(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$J(obj, path = 'SlackUserInfoOutputRepresentation') {
|
|
|
1064
1064
|
return v_error === undefined ? null : v_error;
|
|
1065
1065
|
}
|
|
1066
1066
|
|
|
1067
|
-
function validate$
|
|
1067
|
+
function validate$O(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$I(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$P(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$I(obj, path = 'SlackReactionOutputRepresentation') {
|
|
|
1233
1233
|
return v_error === undefined ? null : v_error;
|
|
1234
1234
|
}
|
|
1235
1235
|
|
|
1236
|
-
function validate$
|
|
1236
|
+
function validate$N(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$H(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$R(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$H(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$O(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$H(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$P(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$H(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$P(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$H(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1627
1627
|
return v_error === undefined ? null : v_error;
|
|
1628
1628
|
}
|
|
1629
1629
|
|
|
1630
|
-
function validate$
|
|
1630
|
+
function validate$M(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$G(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$N(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$G(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$l = 1000;
|
|
1691
|
+
const VERSION$x = "bacc25da56cffff8126d9bdafc471a37";
|
|
1692
|
+
function validate$L(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$F(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$W(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$F(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$V(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$F(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$M(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$F(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$z = 'AnnotationRepresentation';
|
|
1742
|
+
function keyBuilder$19(luvio, config) {
|
|
1743
|
+
return keyPrefix + '::' + RepresentationType$z + ':' + config.id;
|
|
1744
1744
|
}
|
|
1745
|
-
function keyBuilderFromType$
|
|
1745
|
+
function keyBuilderFromType$g(luvio, object) {
|
|
1746
1746
|
const keyParams = {
|
|
1747
1747
|
id: object.id
|
|
1748
1748
|
};
|
|
1749
|
-
return keyBuilder$
|
|
1749
|
+
return keyBuilder$19(luvio, keyParams);
|
|
1750
1750
|
}
|
|
1751
|
-
function normalize$
|
|
1751
|
+
function normalize$x(input, existing, path, luvio, store, timestamp) {
|
|
1752
1752
|
return input;
|
|
1753
1753
|
}
|
|
1754
|
-
const select$
|
|
1754
|
+
const select$1d = function AnnotationRepresentationSelect() {
|
|
1755
1755
|
return {
|
|
1756
1756
|
kind: 'Fragment',
|
|
1757
|
-
version: VERSION$
|
|
1757
|
+
version: VERSION$x,
|
|
1758
1758
|
private: [],
|
|
1759
1759
|
opaque: true
|
|
1760
1760
|
};
|
|
1761
1761
|
};
|
|
1762
|
-
function equals$
|
|
1762
|
+
function equals$x(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$x = function AnnotationRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1769
1769
|
if (process.env.NODE_ENV !== 'production') {
|
|
1770
|
-
const validateError = validate$
|
|
1770
|
+
const validateError = validate$L(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$g(luvio, input);
|
|
1776
|
+
const ttlToUse = TTL$l;
|
|
1777
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$x, "UnifiedAnalytics", VERSION$x, RepresentationType$z, equals$x);
|
|
1778
1778
|
return createLink(key);
|
|
1779
1779
|
};
|
|
1780
|
-
function getTypeCacheKeys$
|
|
1780
|
+
function getTypeCacheKeys$x(rootKeySet, luvio, input, fullPathFactory) {
|
|
1781
1781
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1782
|
-
const rootKey = keyBuilderFromType$
|
|
1782
|
+
const rootKey = keyBuilderFromType$g(luvio, input);
|
|
1783
1783
|
rootKeySet.set(rootKey, {
|
|
1784
1784
|
namespace: keyPrefix,
|
|
1785
|
-
representationName: RepresentationType$
|
|
1785
|
+
representationName: RepresentationType$z,
|
|
1786
1786
|
mergeable: false
|
|
1787
1787
|
});
|
|
1788
1788
|
}
|
|
1789
1789
|
|
|
1790
|
-
const TTL$
|
|
1791
|
-
const VERSION$
|
|
1792
|
-
function validate$
|
|
1790
|
+
const TTL$k = 1000;
|
|
1791
|
+
const VERSION$w = "a80c8e970184cc7789e13f69392d6203";
|
|
1792
|
+
function validate$K(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$E(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$y = 'AnnotationCollectionRepresentation';
|
|
1818
|
+
function normalize$w(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$x(input_annotations_item, {
|
|
1825
1825
|
fullPath: input_annotations_item_id,
|
|
1826
1826
|
propertyName: i,
|
|
1827
1827
|
parent: {
|
|
@@ -1834,17 +1834,17 @@ function normalize$s(input, existing, path, luvio, store, timestamp) {
|
|
|
1834
1834
|
}
|
|
1835
1835
|
return input;
|
|
1836
1836
|
}
|
|
1837
|
-
const select$
|
|
1837
|
+
const select$1c = function AnnotationCollectionRepresentationSelect() {
|
|
1838
1838
|
return {
|
|
1839
1839
|
kind: 'Fragment',
|
|
1840
|
-
version: VERSION$
|
|
1840
|
+
version: VERSION$w,
|
|
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$1d()
|
|
1848
1848
|
},
|
|
1849
1849
|
{
|
|
1850
1850
|
name: 'total',
|
|
@@ -1853,7 +1853,7 @@ const select$12 = function AnnotationCollectionRepresentationSelect() {
|
|
|
1853
1853
|
]
|
|
1854
1854
|
};
|
|
1855
1855
|
};
|
|
1856
|
-
function equals$
|
|
1856
|
+
function equals$w(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$s(existing, incoming) {
|
|
|
1871
1871
|
}
|
|
1872
1872
|
return true;
|
|
1873
1873
|
}
|
|
1874
|
-
const ingest$
|
|
1874
|
+
const ingest$w = function AnnotationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1875
1875
|
if (process.env.NODE_ENV !== 'production') {
|
|
1876
|
-
const validateError = validate$
|
|
1876
|
+
const validateError = validate$K(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$k;
|
|
1883
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$w, "UnifiedAnalytics", VERSION$w, RepresentationType$y, equals$w);
|
|
1884
1884
|
return createLink(key);
|
|
1885
1885
|
};
|
|
1886
|
-
function getTypeCacheKeys$
|
|
1886
|
+
function getTypeCacheKeys$w(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$y,
|
|
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$x(rootKeySet, luvio, input.annotations[i]);
|
|
1897
1897
|
}
|
|
1898
1898
|
}
|
|
1899
1899
|
|
|
1900
|
-
function select$
|
|
1901
|
-
return select$
|
|
1900
|
+
function select$1b(luvio, params) {
|
|
1901
|
+
return select$1c();
|
|
1902
1902
|
}
|
|
1903
|
-
function keyBuilder
|
|
1903
|
+
function keyBuilder$18(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$O(storeKeyMap, luvio, resourceParams, response) {
|
|
1907
|
+
getTypeCacheKeys$w(storeKeyMap, luvio, response, () => keyBuilder$18(luvio, resourceParams));
|
|
1908
1908
|
}
|
|
1909
|
-
function ingestSuccess$
|
|
1909
|
+
function ingestSuccess$H(luvio, resourceParams, response, snapshotRefresh) {
|
|
1910
1910
|
const { body } = response;
|
|
1911
|
-
const key = keyBuilder
|
|
1912
|
-
luvio.storeIngest(key, ingest$
|
|
1911
|
+
const key = keyBuilder$18(luvio, resourceParams);
|
|
1912
|
+
luvio.storeIngest(key, ingest$w, body);
|
|
1913
1913
|
const snapshot = luvio.storeLookup({
|
|
1914
1914
|
recordId: key,
|
|
1915
|
-
node: select$
|
|
1915
|
+
node: select$1b(),
|
|
1916
1916
|
variables: {},
|
|
1917
1917
|
}, snapshotRefresh);
|
|
1918
1918
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1923,19 +1923,19 @@ function ingestSuccess$B(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1923
1923
|
deepFreeze(snapshot.data);
|
|
1924
1924
|
return snapshot;
|
|
1925
1925
|
}
|
|
1926
|
-
function ingestError$
|
|
1927
|
-
const key = keyBuilder
|
|
1926
|
+
function ingestError$n(luvio, params, error, snapshotRefresh) {
|
|
1927
|
+
const key = keyBuilder$18(luvio, params);
|
|
1928
1928
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1929
1929
|
const storeMetadataParams = {
|
|
1930
|
-
ttl: TTL$
|
|
1930
|
+
ttl: TTL$k,
|
|
1931
1931
|
namespace: keyPrefix,
|
|
1932
|
-
version: VERSION$
|
|
1933
|
-
representationName: RepresentationType$
|
|
1932
|
+
version: VERSION$w,
|
|
1933
|
+
representationName: RepresentationType$y
|
|
1934
1934
|
};
|
|
1935
1935
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1936
1936
|
return errorSnapshot;
|
|
1937
1937
|
}
|
|
1938
|
-
function createResourceRequest$
|
|
1938
|
+
function createResourceRequest$O(config) {
|
|
1939
1939
|
const headers = {};
|
|
1940
1940
|
return {
|
|
1941
1941
|
baseUri: '/services/data/v63.0',
|
|
@@ -1949,7 +1949,7 @@ function createResourceRequest$I(config) {
|
|
|
1949
1949
|
};
|
|
1950
1950
|
}
|
|
1951
1951
|
|
|
1952
|
-
const adapterName$
|
|
1952
|
+
const adapterName$O = 'getAnnotations';
|
|
1953
1953
|
const getAnnotations_ConfigPropertyMetadata = [
|
|
1954
1954
|
generateParamConfigMetadata('assetIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
1955
1955
|
generateParamConfigMetadata('includeTopMessage', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -1957,101 +1957,101 @@ const getAnnotations_ConfigPropertyMetadata = [
|
|
|
1957
1957
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1958
1958
|
generateParamConfigMetadata('slackAppId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1959
1959
|
];
|
|
1960
|
-
const getAnnotations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1961
|
-
const createResourceParams$
|
|
1962
|
-
function keyBuilder$
|
|
1963
|
-
const resourceParams = createResourceParams$
|
|
1964
|
-
return keyBuilder
|
|
1960
|
+
const getAnnotations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$O, getAnnotations_ConfigPropertyMetadata);
|
|
1961
|
+
const createResourceParams$O = /*#__PURE__*/ createResourceParams$Q(getAnnotations_ConfigPropertyMetadata);
|
|
1962
|
+
function keyBuilder$17(luvio, config) {
|
|
1963
|
+
const resourceParams = createResourceParams$O(config);
|
|
1964
|
+
return keyBuilder$18(luvio, resourceParams);
|
|
1965
1965
|
}
|
|
1966
|
-
function typeCheckConfig$
|
|
1966
|
+
function typeCheckConfig$O(untrustedConfig) {
|
|
1967
1967
|
const config = {};
|
|
1968
|
-
typeCheckConfig$
|
|
1968
|
+
typeCheckConfig$Q(untrustedConfig, config, getAnnotations_ConfigPropertyMetadata);
|
|
1969
1969
|
return config;
|
|
1970
1970
|
}
|
|
1971
|
-
function validateAdapterConfig$
|
|
1971
|
+
function validateAdapterConfig$O(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$O(untrustedConfig);
|
|
1979
1979
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1980
1980
|
return null;
|
|
1981
1981
|
}
|
|
1982
1982
|
return config;
|
|
1983
1983
|
}
|
|
1984
|
-
function adapterFragment$
|
|
1985
|
-
createResourceParams$
|
|
1986
|
-
return select$
|
|
1984
|
+
function adapterFragment$n(luvio, config) {
|
|
1985
|
+
createResourceParams$O(config);
|
|
1986
|
+
return select$1b();
|
|
1987
1987
|
}
|
|
1988
|
-
function onFetchResponseSuccess$
|
|
1989
|
-
const snapshot = ingestSuccess$
|
|
1988
|
+
function onFetchResponseSuccess$n(luvio, config, resourceParams, response) {
|
|
1989
|
+
const snapshot = ingestSuccess$H(luvio, resourceParams, response, {
|
|
1990
1990
|
config,
|
|
1991
|
-
resolve: () => buildNetworkSnapshot$
|
|
1991
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions)
|
|
1992
1992
|
});
|
|
1993
1993
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1994
1994
|
}
|
|
1995
|
-
function onFetchResponseError$
|
|
1996
|
-
const snapshot = ingestError$
|
|
1995
|
+
function onFetchResponseError$n(luvio, config, resourceParams, response) {
|
|
1996
|
+
const snapshot = ingestError$n(luvio, resourceParams, response, {
|
|
1997
1997
|
config,
|
|
1998
|
-
resolve: () => buildNetworkSnapshot$
|
|
1998
|
+
resolve: () => buildNetworkSnapshot$O(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$O(luvio, config, options) {
|
|
2003
|
+
const resourceParams = createResourceParams$O(config);
|
|
2004
|
+
const request = createResourceRequest$O(resourceParams);
|
|
2005
2005
|
return luvio.dispatchResourceRequest(request, options)
|
|
2006
2006
|
.then((response) => {
|
|
2007
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2007
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$n(luvio, config, resourceParams, response), () => {
|
|
2008
2008
|
const cache = new StoreKeyMap();
|
|
2009
|
-
getResponseCacheKeys$
|
|
2009
|
+
getResponseCacheKeys$O(cache, luvio, resourceParams, response.body);
|
|
2010
2010
|
return cache;
|
|
2011
2011
|
});
|
|
2012
2012
|
}, (response) => {
|
|
2013
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2013
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$n(luvio, config, resourceParams, response));
|
|
2014
2014
|
});
|
|
2015
2015
|
}
|
|
2016
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2017
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2016
|
+
function buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext) {
|
|
2017
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$O, undefined, false);
|
|
2018
2018
|
}
|
|
2019
|
-
function buildCachedSnapshotCachePolicy$
|
|
2019
|
+
function buildCachedSnapshotCachePolicy$n(context, storeLookup) {
|
|
2020
2020
|
const { luvio, config } = context;
|
|
2021
2021
|
const selector = {
|
|
2022
|
-
recordId: keyBuilder$
|
|
2023
|
-
node: adapterFragment$
|
|
2022
|
+
recordId: keyBuilder$17(luvio, config),
|
|
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$O(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$O(untrustedConfig, getAnnotations_ConfigPropertyNames);
|
|
2034
2034
|
// Invalid or incomplete config
|
|
2035
2035
|
if (config === null) {
|
|
2036
2036
|
return null;
|
|
2037
2037
|
}
|
|
2038
2038
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2039
|
-
buildCachedSnapshotCachePolicy$
|
|
2039
|
+
buildCachedSnapshotCachePolicy$n, buildNetworkSnapshotCachePolicy$n);
|
|
2040
2040
|
};
|
|
2041
2041
|
|
|
2042
|
-
function select$
|
|
2043
|
-
return select$
|
|
2042
|
+
function select$1a(luvio, params) {
|
|
2043
|
+
return select$1d();
|
|
2044
2044
|
}
|
|
2045
|
-
function getResponseCacheKeys$
|
|
2046
|
-
getTypeCacheKeys$
|
|
2045
|
+
function getResponseCacheKeys$N(storeKeyMap, luvio, resourceParams, response) {
|
|
2046
|
+
getTypeCacheKeys$x(storeKeyMap, luvio, response);
|
|
2047
2047
|
}
|
|
2048
|
-
function ingestSuccess$
|
|
2048
|
+
function ingestSuccess$G(luvio, resourceParams, response) {
|
|
2049
2049
|
const { body } = response;
|
|
2050
|
-
const key = keyBuilderFromType$
|
|
2051
|
-
luvio.storeIngest(key, ingest$
|
|
2050
|
+
const key = keyBuilderFromType$g(luvio, body);
|
|
2051
|
+
luvio.storeIngest(key, ingest$x, body);
|
|
2052
2052
|
const snapshot = luvio.storeLookup({
|
|
2053
2053
|
recordId: key,
|
|
2054
|
-
node: select$
|
|
2054
|
+
node: select$1a(),
|
|
2055
2055
|
variables: {},
|
|
2056
2056
|
});
|
|
2057
2057
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2062,7 +2062,7 @@ function ingestSuccess$A(luvio, resourceParams, response) {
|
|
|
2062
2062
|
deepFreeze(snapshot.data);
|
|
2063
2063
|
return snapshot;
|
|
2064
2064
|
}
|
|
2065
|
-
function createResourceRequest$
|
|
2065
|
+
function createResourceRequest$N(config) {
|
|
2066
2066
|
const headers = {};
|
|
2067
2067
|
return {
|
|
2068
2068
|
baseUri: '/services/data/v63.0',
|
|
@@ -2076,7 +2076,7 @@ function createResourceRequest$H(config) {
|
|
|
2076
2076
|
};
|
|
2077
2077
|
}
|
|
2078
2078
|
|
|
2079
|
-
const adapterName$
|
|
2079
|
+
const adapterName$N = '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$N, createAnnotation_ConfigPropertyMetadata);
|
|
2089
|
+
const createResourceParams$N = /*#__PURE__*/ createResourceParams$Q(createAnnotation_ConfigPropertyMetadata);
|
|
2090
|
+
function typeCheckConfig$N(untrustedConfig) {
|
|
2091
2091
|
const config = {};
|
|
2092
|
-
typeCheckConfig$
|
|
2092
|
+
typeCheckConfig$Q(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$N(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$N(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$N(luvio, config, options) {
|
|
2113
|
+
const resourceParams = createResourceParams$N(config);
|
|
2114
|
+
const request = createResourceRequest$N(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$G(luvio, resourceParams, response);
|
|
2119
2119
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2120
2120
|
}, () => {
|
|
2121
2121
|
const cache = new StoreKeyMap();
|
|
2122
|
-
getResponseCacheKeys$
|
|
2122
|
+
getResponseCacheKeys$N(cache, luvio, resourceParams, response.body);
|
|
2123
2123
|
return cache;
|
|
2124
2124
|
});
|
|
2125
2125
|
}, (response) => {
|
|
@@ -2129,18 +2129,18 @@ function buildNetworkSnapshot$H(luvio, config, options) {
|
|
|
2129
2129
|
}
|
|
2130
2130
|
const createAnnotationAdapterFactory = (luvio) => {
|
|
2131
2131
|
return function createAnnotation(untrustedConfig) {
|
|
2132
|
-
const config = validateAdapterConfig$
|
|
2132
|
+
const config = validateAdapterConfig$N(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$N(luvio, config);
|
|
2138
2138
|
};
|
|
2139
2139
|
};
|
|
2140
2140
|
|
|
2141
|
-
const TTL$
|
|
2142
|
-
const VERSION$
|
|
2143
|
-
function validate$
|
|
2141
|
+
const TTL$j = 5000;
|
|
2142
|
+
const VERSION$v = "505a83d97fefa7ce68ec6512264b0543";
|
|
2143
|
+
function validate$J(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$D(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$x = 'SlackAppInfoRepresentation';
|
|
2184
|
+
function normalize$v(input, existing, path, luvio, store, timestamp) {
|
|
2185
2185
|
return input;
|
|
2186
2186
|
}
|
|
2187
|
-
const select
|
|
2187
|
+
const select$19 = function SlackAppInfoRepresentationSelect() {
|
|
2188
2188
|
return {
|
|
2189
2189
|
kind: 'Fragment',
|
|
2190
|
-
version: VERSION$
|
|
2190
|
+
version: VERSION$v,
|
|
2191
2191
|
private: [],
|
|
2192
2192
|
selections: [
|
|
2193
2193
|
{
|
|
@@ -2214,7 +2214,7 @@ const select$$ = function SlackAppInfoRepresentationSelect() {
|
|
|
2214
2214
|
]
|
|
2215
2215
|
};
|
|
2216
2216
|
};
|
|
2217
|
-
function equals$
|
|
2217
|
+
function equals$v(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$r(existing, incoming) {
|
|
|
2247
2247
|
}
|
|
2248
2248
|
return true;
|
|
2249
2249
|
}
|
|
2250
|
-
const ingest$
|
|
2250
|
+
const ingest$v = function SlackAppInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2251
2251
|
if (process.env.NODE_ENV !== 'production') {
|
|
2252
|
-
const validateError = validate$
|
|
2252
|
+
const validateError = validate$J(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$j;
|
|
2259
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$v, "UnifiedAnalytics", VERSION$v, RepresentationType$x, equals$v);
|
|
2260
2260
|
return createLink(key);
|
|
2261
2261
|
};
|
|
2262
|
-
function getTypeCacheKeys$
|
|
2262
|
+
function getTypeCacheKeys$v(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$x,
|
|
2268
2268
|
mergeable: false
|
|
2269
2269
|
});
|
|
2270
2270
|
}
|
|
2271
2271
|
|
|
2272
|
-
function select$
|
|
2273
|
-
return select
|
|
2272
|
+
function select$18(luvio, params) {
|
|
2273
|
+
return select$19();
|
|
2274
2274
|
}
|
|
2275
|
-
function keyBuilder$
|
|
2275
|
+
function keyBuilder$16(luvio, params) {
|
|
2276
2276
|
return keyPrefix + '::SlackAppInfoRepresentation:(' + ')';
|
|
2277
2277
|
}
|
|
2278
|
-
function getResponseCacheKeys$
|
|
2279
|
-
getTypeCacheKeys$
|
|
2278
|
+
function getResponseCacheKeys$M(storeKeyMap, luvio, resourceParams, response) {
|
|
2279
|
+
getTypeCacheKeys$v(storeKeyMap, luvio, response, () => keyBuilder$16());
|
|
2280
2280
|
}
|
|
2281
|
-
function ingestSuccess$
|
|
2281
|
+
function ingestSuccess$F(luvio, resourceParams, response, snapshotRefresh) {
|
|
2282
2282
|
const { body } = response;
|
|
2283
|
-
const key = keyBuilder$
|
|
2284
|
-
luvio.storeIngest(key, ingest$
|
|
2283
|
+
const key = keyBuilder$16();
|
|
2284
|
+
luvio.storeIngest(key, ingest$v, body);
|
|
2285
2285
|
const snapshot = luvio.storeLookup({
|
|
2286
2286
|
recordId: key,
|
|
2287
|
-
node: select$
|
|
2287
|
+
node: select$18(),
|
|
2288
2288
|
variables: {},
|
|
2289
2289
|
}, snapshotRefresh);
|
|
2290
2290
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2295,19 +2295,19 @@ function ingestSuccess$z(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2295
2295
|
deepFreeze(snapshot.data);
|
|
2296
2296
|
return snapshot;
|
|
2297
2297
|
}
|
|
2298
|
-
function ingestError$
|
|
2299
|
-
const key = keyBuilder$
|
|
2298
|
+
function ingestError$m(luvio, params, error, snapshotRefresh) {
|
|
2299
|
+
const key = keyBuilder$16();
|
|
2300
2300
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2301
2301
|
const storeMetadataParams = {
|
|
2302
|
-
ttl: TTL$
|
|
2302
|
+
ttl: TTL$j,
|
|
2303
2303
|
namespace: keyPrefix,
|
|
2304
|
-
version: VERSION$
|
|
2305
|
-
representationName: RepresentationType$
|
|
2304
|
+
version: VERSION$v,
|
|
2305
|
+
representationName: RepresentationType$x
|
|
2306
2306
|
};
|
|
2307
2307
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2308
2308
|
return errorSnapshot;
|
|
2309
2309
|
}
|
|
2310
|
-
function createResourceRequest$
|
|
2310
|
+
function createResourceRequest$M(config) {
|
|
2311
2311
|
const headers = {};
|
|
2312
2312
|
return {
|
|
2313
2313
|
baseUri: '/services/data/v63.0',
|
|
@@ -2321,90 +2321,90 @@ function createResourceRequest$G(config) {
|
|
|
2321
2321
|
};
|
|
2322
2322
|
}
|
|
2323
2323
|
|
|
2324
|
-
const adapterName$
|
|
2324
|
+
const adapterName$M = '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$M, getSlackAppInfo_ConfigPropertyMetadata);
|
|
2327
|
+
const createResourceParams$M = /*#__PURE__*/ createResourceParams$Q(getSlackAppInfo_ConfigPropertyMetadata);
|
|
2328
|
+
function keyBuilder$15(luvio, config) {
|
|
2329
|
+
createResourceParams$M(config);
|
|
2330
|
+
return keyBuilder$16();
|
|
2331
2331
|
}
|
|
2332
|
-
function typeCheckConfig$
|
|
2332
|
+
function typeCheckConfig$M(untrustedConfig) {
|
|
2333
2333
|
const config = {};
|
|
2334
2334
|
return config;
|
|
2335
2335
|
}
|
|
2336
|
-
function validateAdapterConfig$
|
|
2336
|
+
function validateAdapterConfig$M(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$M();
|
|
2344
2344
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2345
2345
|
return null;
|
|
2346
2346
|
}
|
|
2347
2347
|
return config;
|
|
2348
2348
|
}
|
|
2349
|
-
function adapterFragment$
|
|
2350
|
-
createResourceParams$
|
|
2351
|
-
return select$
|
|
2349
|
+
function adapterFragment$m(luvio, config) {
|
|
2350
|
+
createResourceParams$M(config);
|
|
2351
|
+
return select$18();
|
|
2352
2352
|
}
|
|
2353
|
-
function onFetchResponseSuccess$
|
|
2354
|
-
const snapshot = ingestSuccess$
|
|
2353
|
+
function onFetchResponseSuccess$m(luvio, config, resourceParams, response) {
|
|
2354
|
+
const snapshot = ingestSuccess$F(luvio, resourceParams, response, {
|
|
2355
2355
|
config,
|
|
2356
|
-
resolve: () => buildNetworkSnapshot$
|
|
2356
|
+
resolve: () => buildNetworkSnapshot$M(luvio, config, snapshotRefreshOptions)
|
|
2357
2357
|
});
|
|
2358
2358
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2359
2359
|
}
|
|
2360
|
-
function onFetchResponseError$
|
|
2361
|
-
const snapshot = ingestError$
|
|
2360
|
+
function onFetchResponseError$m(luvio, config, resourceParams, response) {
|
|
2361
|
+
const snapshot = ingestError$m(luvio, resourceParams, response, {
|
|
2362
2362
|
config,
|
|
2363
|
-
resolve: () => buildNetworkSnapshot$
|
|
2363
|
+
resolve: () => buildNetworkSnapshot$M(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$M(luvio, config, options) {
|
|
2368
|
+
const resourceParams = createResourceParams$M(config);
|
|
2369
|
+
const request = createResourceRequest$M();
|
|
2370
2370
|
return luvio.dispatchResourceRequest(request, options)
|
|
2371
2371
|
.then((response) => {
|
|
2372
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2372
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$m(luvio, config, resourceParams, response), () => {
|
|
2373
2373
|
const cache = new StoreKeyMap();
|
|
2374
|
-
getResponseCacheKeys$
|
|
2374
|
+
getResponseCacheKeys$M(cache, luvio, resourceParams, response.body);
|
|
2375
2375
|
return cache;
|
|
2376
2376
|
});
|
|
2377
2377
|
}, (response) => {
|
|
2378
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2378
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$m(luvio, config, resourceParams, response));
|
|
2379
2379
|
});
|
|
2380
2380
|
}
|
|
2381
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2382
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2381
|
+
function buildNetworkSnapshotCachePolicy$m(context, coercedAdapterRequestContext) {
|
|
2382
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$M, undefined, false);
|
|
2383
2383
|
}
|
|
2384
|
-
function buildCachedSnapshotCachePolicy$
|
|
2384
|
+
function buildCachedSnapshotCachePolicy$m(context, storeLookup) {
|
|
2385
2385
|
const { luvio, config } = context;
|
|
2386
2386
|
const selector = {
|
|
2387
|
-
recordId: keyBuilder$
|
|
2388
|
-
node: adapterFragment$
|
|
2387
|
+
recordId: keyBuilder$15(luvio, config),
|
|
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$M(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$M(untrustedConfig, getSlackAppInfo_ConfigPropertyNames);
|
|
2399
2399
|
// Invalid or incomplete config
|
|
2400
2400
|
if (config === null) {
|
|
2401
2401
|
return null;
|
|
2402
2402
|
}
|
|
2403
2403
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2404
|
-
buildCachedSnapshotCachePolicy$
|
|
2404
|
+
buildCachedSnapshotCachePolicy$m, buildNetworkSnapshotCachePolicy$m);
|
|
2405
2405
|
};
|
|
2406
2406
|
|
|
2407
|
-
function validate$
|
|
2407
|
+
function validate$I(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$C(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$H(obj, path = 'AnalyticsAssetsQueryResultsWorkspaceRepresentation') {
|
|
2443
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$I(obj, path);
|
|
2444
2444
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
2445
2445
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
2446
2446
|
}
|
|
@@ -2452,8 +2452,8 @@ function validate$B(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$G(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation') {
|
|
2456
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$I(obj, path);
|
|
2457
2457
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
2458
2458
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
2459
2459
|
}
|
|
@@ -2494,7 +2494,7 @@ function validate$A(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$H(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$A(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$i = 500;
|
|
2528
|
+
const VERSION$u = "ed60d9cca169a3e5ed897c67d11a23db";
|
|
2529
|
+
function validate$F(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$z(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$G(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$z(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$w = 'AnalyticsAssetsQueryResultsRepresentation';
|
|
2568
|
+
function keyBuilder$14(luvio, config) {
|
|
2569
|
+
return keyPrefix + '::' + RepresentationType$w + ':' + config.searchId;
|
|
2570
2570
|
}
|
|
2571
|
-
function keyBuilderFromType$
|
|
2571
|
+
function keyBuilderFromType$f(luvio, object) {
|
|
2572
2572
|
const keyParams = {
|
|
2573
2573
|
searchId: object.queryKey
|
|
2574
2574
|
};
|
|
2575
|
-
return keyBuilder$
|
|
2575
|
+
return keyBuilder$14(luvio, keyParams);
|
|
2576
2576
|
}
|
|
2577
|
-
function normalize$
|
|
2577
|
+
function normalize$u(input, existing, path, luvio, store, timestamp) {
|
|
2578
2578
|
return input;
|
|
2579
2579
|
}
|
|
2580
|
-
const select$
|
|
2580
|
+
const select$17 = function AnalyticsAssetsQueryResultsRepresentationSelect() {
|
|
2581
2581
|
return {
|
|
2582
2582
|
kind: 'Fragment',
|
|
2583
|
-
version: VERSION$
|
|
2583
|
+
version: VERSION$u,
|
|
2584
2584
|
private: [],
|
|
2585
2585
|
opaque: true
|
|
2586
2586
|
};
|
|
2587
2587
|
};
|
|
2588
|
-
function equals$
|
|
2588
|
+
function equals$u(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$u = function AnalyticsAssetsQueryResultsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2595
2595
|
if (process.env.NODE_ENV !== 'production') {
|
|
2596
|
-
const validateError = validate$
|
|
2596
|
+
const validateError = validate$F(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$f(luvio, input);
|
|
2602
|
+
const ttlToUse = TTL$i;
|
|
2603
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$u, "UnifiedAnalytics", VERSION$u, RepresentationType$w, equals$u);
|
|
2604
2604
|
return createLink(key);
|
|
2605
2605
|
};
|
|
2606
|
-
function getTypeCacheKeys$
|
|
2606
|
+
function getTypeCacheKeys$u(rootKeySet, luvio, input, fullPathFactory) {
|
|
2607
2607
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2608
|
-
const rootKey = keyBuilderFromType$
|
|
2608
|
+
const rootKey = keyBuilderFromType$f(luvio, input);
|
|
2609
2609
|
rootKeySet.set(rootKey, {
|
|
2610
2610
|
namespace: keyPrefix,
|
|
2611
|
-
representationName: RepresentationType$
|
|
2611
|
+
representationName: RepresentationType$w,
|
|
2612
2612
|
mergeable: false
|
|
2613
2613
|
});
|
|
2614
2614
|
}
|
|
2615
2615
|
|
|
2616
|
-
function select$
|
|
2617
|
-
return select$
|
|
2616
|
+
function select$16(luvio, params) {
|
|
2617
|
+
return select$17();
|
|
2618
2618
|
}
|
|
2619
|
-
function getResponseCacheKeys$
|
|
2620
|
-
getTypeCacheKeys$
|
|
2619
|
+
function getResponseCacheKeys$L(storeKeyMap, luvio, resourceParams, response) {
|
|
2620
|
+
getTypeCacheKeys$u(storeKeyMap, luvio, response);
|
|
2621
2621
|
}
|
|
2622
|
-
function ingestSuccess$
|
|
2622
|
+
function ingestSuccess$E(luvio, resourceParams, response) {
|
|
2623
2623
|
const { body } = response;
|
|
2624
|
-
const key = keyBuilderFromType$
|
|
2625
|
-
luvio.storeIngest(key, ingest$
|
|
2624
|
+
const key = keyBuilderFromType$f(luvio, body);
|
|
2625
|
+
luvio.storeIngest(key, ingest$u, body);
|
|
2626
2626
|
const snapshot = luvio.storeLookup({
|
|
2627
2627
|
recordId: key,
|
|
2628
|
-
node: select$
|
|
2628
|
+
node: select$16(),
|
|
2629
2629
|
variables: {},
|
|
2630
2630
|
});
|
|
2631
2631
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2636,7 +2636,7 @@ function ingestSuccess$y(luvio, resourceParams, response) {
|
|
|
2636
2636
|
deepFreeze(snapshot.data);
|
|
2637
2637
|
return snapshot;
|
|
2638
2638
|
}
|
|
2639
|
-
function createResourceRequest$
|
|
2639
|
+
function createResourceRequest$L(config) {
|
|
2640
2640
|
const headers = {};
|
|
2641
2641
|
return {
|
|
2642
2642
|
baseUri: '/services/data/v63.0',
|
|
@@ -2650,7 +2650,7 @@ function createResourceRequest$F(config) {
|
|
|
2650
2650
|
};
|
|
2651
2651
|
}
|
|
2652
2652
|
|
|
2653
|
-
const adapterName$
|
|
2653
|
+
const adapterName$L = '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$L, queryAssets_ConfigPropertyMetadata);
|
|
2663
|
+
const createResourceParams$L = /*#__PURE__*/ createResourceParams$Q(queryAssets_ConfigPropertyMetadata);
|
|
2664
|
+
function typeCheckConfig$L(untrustedConfig) {
|
|
2665
2665
|
const config = {};
|
|
2666
|
-
typeCheckConfig$
|
|
2666
|
+
typeCheckConfig$Q(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$F(untrustedConfig) {
|
|
|
2681
2681
|
}
|
|
2682
2682
|
return config;
|
|
2683
2683
|
}
|
|
2684
|
-
function validateAdapterConfig$
|
|
2684
|
+
function validateAdapterConfig$L(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$L(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$L(luvio, config, options) {
|
|
2698
|
+
const resourceParams = createResourceParams$L(config);
|
|
2699
|
+
const request = createResourceRequest$L(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$E(luvio, resourceParams, response);
|
|
2704
2704
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2705
2705
|
}, () => {
|
|
2706
2706
|
const cache = new StoreKeyMap();
|
|
2707
|
-
getResponseCacheKeys$
|
|
2707
|
+
getResponseCacheKeys$L(cache, luvio, resourceParams, response.body);
|
|
2708
2708
|
return cache;
|
|
2709
2709
|
});
|
|
2710
2710
|
}, (response) => {
|
|
@@ -2714,17 +2714,17 @@ function buildNetworkSnapshot$F(luvio, config, options) {
|
|
|
2714
2714
|
}
|
|
2715
2715
|
const queryAssetsAdapterFactory = (luvio) => {
|
|
2716
2716
|
return function queryAssets(untrustedConfig) {
|
|
2717
|
-
const config = validateAdapterConfig$
|
|
2717
|
+
const config = validateAdapterConfig$L(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$L(luvio, config);
|
|
2723
2723
|
};
|
|
2724
2724
|
};
|
|
2725
2725
|
|
|
2726
|
-
const VERSION$
|
|
2727
|
-
function validate$
|
|
2726
|
+
const VERSION$t = "948ac50067b64bee8680b553b1e19a09";
|
|
2727
|
+
function validate$E(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$y(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$v = 'DashboardRepresentation';
|
|
2836
|
+
function keyBuilder$13(luvio, config) {
|
|
2837
|
+
return keyPrefix + '::' + RepresentationType$v + ':' + config.name;
|
|
2838
2838
|
}
|
|
2839
|
-
function keyBuilderFromType$
|
|
2839
|
+
function keyBuilderFromType$e(luvio, object) {
|
|
2840
2840
|
const keyParams = {
|
|
2841
2841
|
name: object.name
|
|
2842
2842
|
};
|
|
2843
|
-
return keyBuilder$
|
|
2843
|
+
return keyBuilder$13(luvio, keyParams);
|
|
2844
2844
|
}
|
|
2845
|
-
function normalize$
|
|
2845
|
+
function normalize$t(input, existing, path, luvio, store, timestamp) {
|
|
2846
2846
|
return input;
|
|
2847
2847
|
}
|
|
2848
|
-
const select$
|
|
2848
|
+
const select$15 = function DashboardRepresentationSelect() {
|
|
2849
2849
|
return {
|
|
2850
2850
|
kind: 'Fragment',
|
|
2851
|
-
version: VERSION$
|
|
2851
|
+
version: VERSION$t,
|
|
2852
2852
|
private: [],
|
|
2853
2853
|
opaque: true
|
|
2854
2854
|
};
|
|
2855
2855
|
};
|
|
2856
|
-
function equals$
|
|
2856
|
+
function equals$t(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$t = function DashboardRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2863
2863
|
if (process.env.NODE_ENV !== 'production') {
|
|
2864
|
-
const validateError = validate$
|
|
2864
|
+
const validateError = validate$E(input);
|
|
2865
2865
|
if (validateError !== null) {
|
|
2866
2866
|
throw validateError;
|
|
2867
2867
|
}
|
|
2868
2868
|
}
|
|
2869
|
-
const key = keyBuilderFromType$
|
|
2869
|
+
const key = keyBuilderFromType$e(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$t, "UnifiedAnalytics", VERSION$t, RepresentationType$v, equals$t);
|
|
2872
2872
|
return createLink(key);
|
|
2873
2873
|
};
|
|
2874
|
-
function getTypeCacheKeys$
|
|
2874
|
+
function getTypeCacheKeys$t(rootKeySet, luvio, input, fullPathFactory) {
|
|
2875
2875
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2876
|
-
const rootKey = keyBuilderFromType$
|
|
2876
|
+
const rootKey = keyBuilderFromType$e(luvio, input);
|
|
2877
2877
|
rootKeySet.set(rootKey, {
|
|
2878
2878
|
namespace: keyPrefix,
|
|
2879
|
-
representationName: RepresentationType$
|
|
2879
|
+
representationName: RepresentationType$v,
|
|
2880
2880
|
mergeable: false
|
|
2881
2881
|
});
|
|
2882
2882
|
}
|
|
2883
2883
|
|
|
2884
|
-
const VERSION$
|
|
2885
|
-
function validate$
|
|
2884
|
+
const VERSION$s = "962823130e6a9315240ef0e0f0c5f757";
|
|
2885
|
+
function validate$D(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$x(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$u = 'DashboardCollectionRepresentation';
|
|
2906
|
+
function normalize$s(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$t(input_dashboards_item, {
|
|
2913
2913
|
fullPath: input_dashboards_item_id,
|
|
2914
2914
|
propertyName: i,
|
|
2915
2915
|
parent: {
|
|
@@ -2922,22 +2922,22 @@ function normalize$o(input, existing, path, luvio, store, timestamp) {
|
|
|
2922
2922
|
}
|
|
2923
2923
|
return input;
|
|
2924
2924
|
}
|
|
2925
|
-
const select$
|
|
2925
|
+
const select$14 = function DashboardCollectionRepresentationSelect() {
|
|
2926
2926
|
return {
|
|
2927
2927
|
kind: 'Fragment',
|
|
2928
|
-
version: VERSION$
|
|
2928
|
+
version: VERSION$s,
|
|
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$15()
|
|
2936
2936
|
}
|
|
2937
2937
|
]
|
|
2938
2938
|
};
|
|
2939
2939
|
};
|
|
2940
|
-
function equals$
|
|
2940
|
+
function equals$s(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$o(existing, incoming) {
|
|
|
2950
2950
|
}
|
|
2951
2951
|
return true;
|
|
2952
2952
|
}
|
|
2953
|
-
const ingest$
|
|
2953
|
+
const ingest$s = function DashboardCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2954
2954
|
if (process.env.NODE_ENV !== 'production') {
|
|
2955
|
-
const validateError = validate$
|
|
2955
|
+
const validateError = validate$D(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$s, "UnifiedAnalytics", VERSION$s, RepresentationType$u, equals$s);
|
|
2963
2963
|
return createLink(key);
|
|
2964
2964
|
};
|
|
2965
|
-
function getTypeCacheKeys$
|
|
2965
|
+
function getTypeCacheKeys$s(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$u,
|
|
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$t(rootKeySet, luvio, input.dashboards[i]);
|
|
2976
2976
|
}
|
|
2977
2977
|
}
|
|
2978
2978
|
|
|
2979
|
-
function select$
|
|
2980
|
-
return select$
|
|
2979
|
+
function select$13(luvio, params) {
|
|
2980
|
+
return select$14();
|
|
2981
2981
|
}
|
|
2982
|
-
function keyBuilder$
|
|
2982
|
+
function keyBuilder$12(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$K(storeKeyMap, luvio, resourceParams, response) {
|
|
2986
|
+
getTypeCacheKeys$s(storeKeyMap, luvio, response, () => keyBuilder$12(luvio, resourceParams));
|
|
2987
2987
|
}
|
|
2988
|
-
function ingestSuccess$
|
|
2988
|
+
function ingestSuccess$D(luvio, resourceParams, response, snapshotRefresh) {
|
|
2989
2989
|
const { body } = response;
|
|
2990
|
-
const key = keyBuilder$
|
|
2991
|
-
luvio.storeIngest(key, ingest$
|
|
2990
|
+
const key = keyBuilder$12(luvio, resourceParams);
|
|
2991
|
+
luvio.storeIngest(key, ingest$s, body);
|
|
2992
2992
|
const snapshot = luvio.storeLookup({
|
|
2993
2993
|
recordId: key,
|
|
2994
|
-
node: select$
|
|
2994
|
+
node: select$13(),
|
|
2995
2995
|
variables: {},
|
|
2996
2996
|
}, snapshotRefresh);
|
|
2997
2997
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3002,13 +3002,13 @@ function ingestSuccess$x(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3002
3002
|
deepFreeze(snapshot.data);
|
|
3003
3003
|
return snapshot;
|
|
3004
3004
|
}
|
|
3005
|
-
function ingestError$
|
|
3006
|
-
const key = keyBuilder$
|
|
3005
|
+
function ingestError$l(luvio, params, error, snapshotRefresh) {
|
|
3006
|
+
const key = keyBuilder$12(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$K(config) {
|
|
3012
3012
|
const headers = {};
|
|
3013
3013
|
return {
|
|
3014
3014
|
baseUri: '/services/data/v63.0',
|
|
@@ -3022,106 +3022,106 @@ function createResourceRequest$E(config) {
|
|
|
3022
3022
|
};
|
|
3023
3023
|
}
|
|
3024
3024
|
|
|
3025
|
-
const adapterName$
|
|
3025
|
+
const adapterName$K = '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$K, getDashboards_ConfigPropertyMetadata);
|
|
3031
|
+
const createResourceParams$K = /*#__PURE__*/ createResourceParams$Q(getDashboards_ConfigPropertyMetadata);
|
|
3032
|
+
function keyBuilder$11(luvio, config) {
|
|
3033
|
+
const resourceParams = createResourceParams$K(config);
|
|
3034
|
+
return keyBuilder$12(luvio, resourceParams);
|
|
3035
3035
|
}
|
|
3036
|
-
function typeCheckConfig$
|
|
3036
|
+
function typeCheckConfig$K(untrustedConfig) {
|
|
3037
3037
|
const config = {};
|
|
3038
|
-
typeCheckConfig$
|
|
3038
|
+
typeCheckConfig$Q(untrustedConfig, config, getDashboards_ConfigPropertyMetadata);
|
|
3039
3039
|
return config;
|
|
3040
3040
|
}
|
|
3041
|
-
function validateAdapterConfig$
|
|
3041
|
+
function validateAdapterConfig$K(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$K(untrustedConfig);
|
|
3049
3049
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3050
3050
|
return null;
|
|
3051
3051
|
}
|
|
3052
3052
|
return config;
|
|
3053
3053
|
}
|
|
3054
|
-
function adapterFragment$
|
|
3055
|
-
createResourceParams$
|
|
3056
|
-
return select$
|
|
3054
|
+
function adapterFragment$l(luvio, config) {
|
|
3055
|
+
createResourceParams$K(config);
|
|
3056
|
+
return select$13();
|
|
3057
3057
|
}
|
|
3058
|
-
function onFetchResponseSuccess$
|
|
3059
|
-
const snapshot = ingestSuccess$
|
|
3058
|
+
function onFetchResponseSuccess$l(luvio, config, resourceParams, response) {
|
|
3059
|
+
const snapshot = ingestSuccess$D(luvio, resourceParams, response, {
|
|
3060
3060
|
config,
|
|
3061
|
-
resolve: () => buildNetworkSnapshot$
|
|
3061
|
+
resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions)
|
|
3062
3062
|
});
|
|
3063
3063
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3064
3064
|
}
|
|
3065
|
-
function onFetchResponseError$
|
|
3066
|
-
const snapshot = ingestError$
|
|
3065
|
+
function onFetchResponseError$l(luvio, config, resourceParams, response) {
|
|
3066
|
+
const snapshot = ingestError$l(luvio, resourceParams, response, {
|
|
3067
3067
|
config,
|
|
3068
|
-
resolve: () => buildNetworkSnapshot$
|
|
3068
|
+
resolve: () => buildNetworkSnapshot$K(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$K(luvio, config, options) {
|
|
3073
|
+
const resourceParams = createResourceParams$K(config);
|
|
3074
|
+
const request = createResourceRequest$K(resourceParams);
|
|
3075
3075
|
return luvio.dispatchResourceRequest(request, options)
|
|
3076
3076
|
.then((response) => {
|
|
3077
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3077
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$l(luvio, config, resourceParams, response), () => {
|
|
3078
3078
|
const cache = new StoreKeyMap();
|
|
3079
|
-
getResponseCacheKeys$
|
|
3079
|
+
getResponseCacheKeys$K(cache, luvio, resourceParams, response.body);
|
|
3080
3080
|
return cache;
|
|
3081
3081
|
});
|
|
3082
3082
|
}, (response) => {
|
|
3083
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3083
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$l(luvio, config, resourceParams, response));
|
|
3084
3084
|
});
|
|
3085
3085
|
}
|
|
3086
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3087
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3086
|
+
function buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext) {
|
|
3087
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$K, undefined, false);
|
|
3088
3088
|
}
|
|
3089
|
-
function buildCachedSnapshotCachePolicy$
|
|
3089
|
+
function buildCachedSnapshotCachePolicy$l(context, storeLookup) {
|
|
3090
3090
|
const { luvio, config } = context;
|
|
3091
3091
|
const selector = {
|
|
3092
|
-
recordId: keyBuilder$
|
|
3093
|
-
node: adapterFragment$
|
|
3092
|
+
recordId: keyBuilder$11(luvio, config),
|
|
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$K(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$K(untrustedConfig, getDashboards_ConfigPropertyNames);
|
|
3104
3104
|
// Invalid or incomplete config
|
|
3105
3105
|
if (config === null) {
|
|
3106
3106
|
return null;
|
|
3107
3107
|
}
|
|
3108
3108
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3109
|
-
buildCachedSnapshotCachePolicy$
|
|
3109
|
+
buildCachedSnapshotCachePolicy$l, buildNetworkSnapshotCachePolicy$l);
|
|
3110
3110
|
};
|
|
3111
3111
|
|
|
3112
|
-
function select$
|
|
3113
|
-
return select$
|
|
3112
|
+
function select$12(luvio, params) {
|
|
3113
|
+
return select$15();
|
|
3114
3114
|
}
|
|
3115
|
-
function getResponseCacheKeys$
|
|
3116
|
-
getTypeCacheKeys$
|
|
3115
|
+
function getResponseCacheKeys$J(storeKeyMap, luvio, resourceParams, response) {
|
|
3116
|
+
getTypeCacheKeys$t(storeKeyMap, luvio, response);
|
|
3117
3117
|
}
|
|
3118
|
-
function ingestSuccess$
|
|
3118
|
+
function ingestSuccess$C(luvio, resourceParams, response) {
|
|
3119
3119
|
const { body } = response;
|
|
3120
|
-
const key = keyBuilderFromType$
|
|
3121
|
-
luvio.storeIngest(key, ingest$
|
|
3120
|
+
const key = keyBuilderFromType$e(luvio, body);
|
|
3121
|
+
luvio.storeIngest(key, ingest$t, body);
|
|
3122
3122
|
const snapshot = luvio.storeLookup({
|
|
3123
3123
|
recordId: key,
|
|
3124
|
-
node: select$
|
|
3124
|
+
node: select$12(),
|
|
3125
3125
|
variables: {},
|
|
3126
3126
|
});
|
|
3127
3127
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3132,7 +3132,7 @@ function ingestSuccess$w(luvio, resourceParams, response) {
|
|
|
3132
3132
|
deepFreeze(snapshot.data);
|
|
3133
3133
|
return snapshot;
|
|
3134
3134
|
}
|
|
3135
|
-
function createResourceRequest$
|
|
3135
|
+
function createResourceRequest$J(config) {
|
|
3136
3136
|
const headers = {};
|
|
3137
3137
|
return {
|
|
3138
3138
|
baseUri: '/services/data/v63.0',
|
|
@@ -3146,7 +3146,7 @@ function createResourceRequest$D(config) {
|
|
|
3146
3146
|
};
|
|
3147
3147
|
}
|
|
3148
3148
|
|
|
3149
|
-
const adapterName$
|
|
3149
|
+
const adapterName$J = '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$J, createDashboard_ConfigPropertyMetadata);
|
|
3161
|
+
const createResourceParams$J = /*#__PURE__*/ createResourceParams$Q(createDashboard_ConfigPropertyMetadata);
|
|
3162
|
+
function typeCheckConfig$J(untrustedConfig) {
|
|
3163
3163
|
const config = {};
|
|
3164
|
-
typeCheckConfig$
|
|
3164
|
+
typeCheckConfig$Q(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$D(untrustedConfig) {
|
|
|
3203
3203
|
}
|
|
3204
3204
|
return config;
|
|
3205
3205
|
}
|
|
3206
|
-
function validateAdapterConfig$
|
|
3206
|
+
function validateAdapterConfig$J(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$J(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$J(luvio, config, options) {
|
|
3220
|
+
const resourceParams = createResourceParams$J(config);
|
|
3221
|
+
const request = createResourceRequest$J(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$C(luvio, resourceParams, response);
|
|
3226
3226
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3227
3227
|
}, () => {
|
|
3228
3228
|
const cache = new StoreKeyMap();
|
|
3229
|
-
getResponseCacheKeys$
|
|
3229
|
+
getResponseCacheKeys$J(cache, luvio, resourceParams, response.body);
|
|
3230
3230
|
return cache;
|
|
3231
3231
|
});
|
|
3232
3232
|
}, (response) => {
|
|
@@ -3236,33 +3236,33 @@ function buildNetworkSnapshot$D(luvio, config, options) {
|
|
|
3236
3236
|
}
|
|
3237
3237
|
const createDashboardAdapterFactory = (luvio) => {
|
|
3238
3238
|
return function createDashboard(untrustedConfig) {
|
|
3239
|
-
const config = validateAdapterConfig$
|
|
3239
|
+
const config = validateAdapterConfig$J(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$J(luvio, config);
|
|
3245
3245
|
};
|
|
3246
3246
|
};
|
|
3247
3247
|
|
|
3248
|
-
function keyBuilder$
|
|
3249
|
-
return keyBuilder$
|
|
3248
|
+
function keyBuilder$10(luvio, params) {
|
|
3249
|
+
return keyBuilder$13(luvio, {
|
|
3250
3250
|
name: params.urlParams.dashboardIdOrApiName
|
|
3251
3251
|
});
|
|
3252
3252
|
}
|
|
3253
|
-
function getResponseCacheKeys$
|
|
3254
|
-
const key = keyBuilder$
|
|
3253
|
+
function getResponseCacheKeys$I(cacheKeyMap, luvio, resourceParams) {
|
|
3254
|
+
const key = keyBuilder$10(luvio, resourceParams);
|
|
3255
3255
|
cacheKeyMap.set(key, {
|
|
3256
3256
|
namespace: keyPrefix,
|
|
3257
|
-
representationName: RepresentationType$
|
|
3257
|
+
representationName: RepresentationType$v,
|
|
3258
3258
|
mergeable: false
|
|
3259
3259
|
});
|
|
3260
3260
|
}
|
|
3261
3261
|
function evictSuccess$6(luvio, resourceParams) {
|
|
3262
|
-
const key = keyBuilder$
|
|
3262
|
+
const key = keyBuilder$10(luvio, resourceParams);
|
|
3263
3263
|
luvio.storeEvict(key);
|
|
3264
3264
|
}
|
|
3265
|
-
function createResourceRequest$
|
|
3265
|
+
function createResourceRequest$I(config) {
|
|
3266
3266
|
const headers = {};
|
|
3267
3267
|
return {
|
|
3268
3268
|
baseUri: '/services/data/v63.0',
|
|
@@ -3276,33 +3276,33 @@ function createResourceRequest$C(config) {
|
|
|
3276
3276
|
};
|
|
3277
3277
|
}
|
|
3278
3278
|
|
|
3279
|
-
const adapterName$
|
|
3279
|
+
const adapterName$I = '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$I, deleteDashboard_ConfigPropertyMetadata);
|
|
3284
|
+
const createResourceParams$I = /*#__PURE__*/ createResourceParams$Q(deleteDashboard_ConfigPropertyMetadata);
|
|
3285
|
+
function typeCheckConfig$I(untrustedConfig) {
|
|
3286
3286
|
const config = {};
|
|
3287
|
-
typeCheckConfig$
|
|
3287
|
+
typeCheckConfig$Q(untrustedConfig, config, deleteDashboard_ConfigPropertyMetadata);
|
|
3288
3288
|
return config;
|
|
3289
3289
|
}
|
|
3290
|
-
function validateAdapterConfig$
|
|
3290
|
+
function validateAdapterConfig$I(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$I(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$I(luvio, config, options) {
|
|
3304
|
+
const resourceParams = createResourceParams$I(config);
|
|
3305
|
+
const request = createResourceRequest$I(resourceParams);
|
|
3306
3306
|
return luvio.dispatchResourceRequest(request, options)
|
|
3307
3307
|
.then(() => {
|
|
3308
3308
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -3310,7 +3310,7 @@ function buildNetworkSnapshot$C(luvio, config, options) {
|
|
|
3310
3310
|
return luvio.storeBroadcast();
|
|
3311
3311
|
}, () => {
|
|
3312
3312
|
const cache = new StoreKeyMap();
|
|
3313
|
-
getResponseCacheKeys$
|
|
3313
|
+
getResponseCacheKeys$I(cache, luvio, resourceParams);
|
|
3314
3314
|
return cache;
|
|
3315
3315
|
});
|
|
3316
3316
|
}, (response) => {
|
|
@@ -3320,33 +3320,33 @@ function buildNetworkSnapshot$C(luvio, config, options) {
|
|
|
3320
3320
|
}
|
|
3321
3321
|
const deleteDashboardAdapterFactory = (luvio) => {
|
|
3322
3322
|
return function UnifiedAnalyticsdeleteDashboard(untrustedConfig) {
|
|
3323
|
-
const config = validateAdapterConfig$
|
|
3323
|
+
const config = validateAdapterConfig$I(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$I}"`);
|
|
3327
3327
|
}
|
|
3328
|
-
return buildNetworkSnapshot$
|
|
3328
|
+
return buildNetworkSnapshot$I(luvio, config);
|
|
3329
3329
|
};
|
|
3330
3330
|
};
|
|
3331
3331
|
|
|
3332
|
-
function select$
|
|
3333
|
-
return select$
|
|
3332
|
+
function select$11(luvio, params) {
|
|
3333
|
+
return select$15();
|
|
3334
3334
|
}
|
|
3335
|
-
function keyBuilder
|
|
3336
|
-
return keyBuilder$
|
|
3335
|
+
function keyBuilder$$(luvio, params) {
|
|
3336
|
+
return keyBuilder$13(luvio, {
|
|
3337
3337
|
name: params.urlParams.dashboardIdOrApiName
|
|
3338
3338
|
});
|
|
3339
3339
|
}
|
|
3340
|
-
function getResponseCacheKeys$
|
|
3341
|
-
getTypeCacheKeys$
|
|
3340
|
+
function getResponseCacheKeys$H(storeKeyMap, luvio, resourceParams, response) {
|
|
3341
|
+
getTypeCacheKeys$t(storeKeyMap, luvio, response);
|
|
3342
3342
|
}
|
|
3343
|
-
function ingestSuccess$
|
|
3343
|
+
function ingestSuccess$B(luvio, resourceParams, response, snapshotRefresh) {
|
|
3344
3344
|
const { body } = response;
|
|
3345
|
-
const key = keyBuilder
|
|
3346
|
-
luvio.storeIngest(key, ingest$
|
|
3345
|
+
const key = keyBuilder$$(luvio, resourceParams);
|
|
3346
|
+
luvio.storeIngest(key, ingest$t, body);
|
|
3347
3347
|
const snapshot = luvio.storeLookup({
|
|
3348
3348
|
recordId: key,
|
|
3349
|
-
node: select$
|
|
3349
|
+
node: select$11(),
|
|
3350
3350
|
variables: {},
|
|
3351
3351
|
}, snapshotRefresh);
|
|
3352
3352
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3357,13 +3357,13 @@ function ingestSuccess$v(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3357
3357
|
deepFreeze(snapshot.data);
|
|
3358
3358
|
return snapshot;
|
|
3359
3359
|
}
|
|
3360
|
-
function ingestError$
|
|
3361
|
-
const key = keyBuilder
|
|
3360
|
+
function ingestError$k(luvio, params, error, snapshotRefresh) {
|
|
3361
|
+
const key = keyBuilder$$(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$H(config) {
|
|
3367
3367
|
const headers = {};
|
|
3368
3368
|
return {
|
|
3369
3369
|
baseUri: '/services/data/v63.0',
|
|
@@ -3377,105 +3377,105 @@ function createResourceRequest$B(config) {
|
|
|
3377
3377
|
};
|
|
3378
3378
|
}
|
|
3379
3379
|
|
|
3380
|
-
const adapterName$
|
|
3380
|
+
const adapterName$H = '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$H, getDashboardByName_ConfigPropertyMetadata);
|
|
3385
|
+
const createResourceParams$H = /*#__PURE__*/ createResourceParams$Q(getDashboardByName_ConfigPropertyMetadata);
|
|
3386
|
+
function keyBuilder$_(luvio, config) {
|
|
3387
|
+
const resourceParams = createResourceParams$H(config);
|
|
3388
|
+
return keyBuilder$$(luvio, resourceParams);
|
|
3389
3389
|
}
|
|
3390
|
-
function typeCheckConfig$
|
|
3390
|
+
function typeCheckConfig$H(untrustedConfig) {
|
|
3391
3391
|
const config = {};
|
|
3392
|
-
typeCheckConfig$
|
|
3392
|
+
typeCheckConfig$Q(untrustedConfig, config, getDashboardByName_ConfigPropertyMetadata);
|
|
3393
3393
|
return config;
|
|
3394
3394
|
}
|
|
3395
|
-
function validateAdapterConfig$
|
|
3395
|
+
function validateAdapterConfig$H(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$H(untrustedConfig);
|
|
3403
3403
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3404
3404
|
return null;
|
|
3405
3405
|
}
|
|
3406
3406
|
return config;
|
|
3407
3407
|
}
|
|
3408
|
-
function adapterFragment$
|
|
3409
|
-
createResourceParams$
|
|
3410
|
-
return select$
|
|
3408
|
+
function adapterFragment$k(luvio, config) {
|
|
3409
|
+
createResourceParams$H(config);
|
|
3410
|
+
return select$11();
|
|
3411
3411
|
}
|
|
3412
|
-
function onFetchResponseSuccess$
|
|
3413
|
-
const snapshot = ingestSuccess$
|
|
3412
|
+
function onFetchResponseSuccess$k(luvio, config, resourceParams, response) {
|
|
3413
|
+
const snapshot = ingestSuccess$B(luvio, resourceParams, response, {
|
|
3414
3414
|
config,
|
|
3415
|
-
resolve: () => buildNetworkSnapshot$
|
|
3415
|
+
resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions)
|
|
3416
3416
|
});
|
|
3417
3417
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3418
3418
|
}
|
|
3419
|
-
function onFetchResponseError$
|
|
3420
|
-
const snapshot = ingestError$
|
|
3419
|
+
function onFetchResponseError$k(luvio, config, resourceParams, response) {
|
|
3420
|
+
const snapshot = ingestError$k(luvio, resourceParams, response, {
|
|
3421
3421
|
config,
|
|
3422
|
-
resolve: () => buildNetworkSnapshot$
|
|
3422
|
+
resolve: () => buildNetworkSnapshot$H(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$H(luvio, config, options) {
|
|
3427
|
+
const resourceParams = createResourceParams$H(config);
|
|
3428
|
+
const request = createResourceRequest$H(resourceParams);
|
|
3429
3429
|
return luvio.dispatchResourceRequest(request, options)
|
|
3430
3430
|
.then((response) => {
|
|
3431
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3431
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$k(luvio, config, resourceParams, response), () => {
|
|
3432
3432
|
const cache = new StoreKeyMap();
|
|
3433
|
-
getResponseCacheKeys$
|
|
3433
|
+
getResponseCacheKeys$H(cache, luvio, resourceParams, response.body);
|
|
3434
3434
|
return cache;
|
|
3435
3435
|
});
|
|
3436
3436
|
}, (response) => {
|
|
3437
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3437
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$k(luvio, config, resourceParams, response));
|
|
3438
3438
|
});
|
|
3439
3439
|
}
|
|
3440
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3441
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3440
|
+
function buildNetworkSnapshotCachePolicy$k(context, coercedAdapterRequestContext) {
|
|
3441
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$H, undefined, false);
|
|
3442
3442
|
}
|
|
3443
|
-
function buildCachedSnapshotCachePolicy$
|
|
3443
|
+
function buildCachedSnapshotCachePolicy$k(context, storeLookup) {
|
|
3444
3444
|
const { luvio, config } = context;
|
|
3445
3445
|
const selector = {
|
|
3446
|
-
recordId: keyBuilder$
|
|
3447
|
-
node: adapterFragment$
|
|
3446
|
+
recordId: keyBuilder$_(luvio, config),
|
|
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$H(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$H(untrustedConfig, getDashboardByName_ConfigPropertyNames);
|
|
3458
3458
|
// Invalid or incomplete config
|
|
3459
3459
|
if (config === null) {
|
|
3460
3460
|
return null;
|
|
3461
3461
|
}
|
|
3462
3462
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3463
|
-
buildCachedSnapshotCachePolicy$
|
|
3463
|
+
buildCachedSnapshotCachePolicy$k, buildNetworkSnapshotCachePolicy$k);
|
|
3464
3464
|
};
|
|
3465
3465
|
|
|
3466
|
-
function select$
|
|
3467
|
-
return select$
|
|
3466
|
+
function select$10(luvio, params) {
|
|
3467
|
+
return select$15();
|
|
3468
3468
|
}
|
|
3469
|
-
function getResponseCacheKeys$
|
|
3470
|
-
getTypeCacheKeys$
|
|
3469
|
+
function getResponseCacheKeys$G(storeKeyMap, luvio, resourceParams, response) {
|
|
3470
|
+
getTypeCacheKeys$t(storeKeyMap, luvio, response);
|
|
3471
3471
|
}
|
|
3472
|
-
function ingestSuccess$
|
|
3472
|
+
function ingestSuccess$A(luvio, resourceParams, response) {
|
|
3473
3473
|
const { body } = response;
|
|
3474
|
-
const key = keyBuilderFromType$
|
|
3475
|
-
luvio.storeIngest(key, ingest$
|
|
3474
|
+
const key = keyBuilderFromType$e(luvio, body);
|
|
3475
|
+
luvio.storeIngest(key, ingest$t, body);
|
|
3476
3476
|
const snapshot = luvio.storeLookup({
|
|
3477
3477
|
recordId: key,
|
|
3478
|
-
node: select$
|
|
3478
|
+
node: select$10(),
|
|
3479
3479
|
variables: {},
|
|
3480
3480
|
});
|
|
3481
3481
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3486,7 +3486,7 @@ function ingestSuccess$u(luvio, resourceParams, response) {
|
|
|
3486
3486
|
deepFreeze(snapshot.data);
|
|
3487
3487
|
return snapshot;
|
|
3488
3488
|
}
|
|
3489
|
-
function createResourceRequest$
|
|
3489
|
+
function createResourceRequest$G(config) {
|
|
3490
3490
|
const headers = {};
|
|
3491
3491
|
return {
|
|
3492
3492
|
baseUri: '/services/data/v63.0',
|
|
@@ -3500,7 +3500,7 @@ function createResourceRequest$A(config) {
|
|
|
3500
3500
|
};
|
|
3501
3501
|
}
|
|
3502
3502
|
|
|
3503
|
-
const adapterName$
|
|
3503
|
+
const adapterName$G = '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$G, updateDashboard_ConfigPropertyMetadata);
|
|
3516
|
+
const createResourceParams$G = /*#__PURE__*/ createResourceParams$Q(updateDashboard_ConfigPropertyMetadata);
|
|
3517
|
+
function typeCheckConfig$G(untrustedConfig) {
|
|
3518
3518
|
const config = {};
|
|
3519
|
-
typeCheckConfig$
|
|
3519
|
+
typeCheckConfig$Q(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$A(untrustedConfig) {
|
|
|
3558
3558
|
}
|
|
3559
3559
|
return config;
|
|
3560
3560
|
}
|
|
3561
|
-
function validateAdapterConfig$
|
|
3561
|
+
function validateAdapterConfig$G(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$G(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$G(luvio, config, options) {
|
|
3575
|
+
const resourceParams = createResourceParams$G(config);
|
|
3576
|
+
const request = createResourceRequest$G(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$A(luvio, resourceParams, response);
|
|
3581
3581
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3582
3582
|
}, () => {
|
|
3583
3583
|
const cache = new StoreKeyMap();
|
|
3584
|
-
getResponseCacheKeys$
|
|
3584
|
+
getResponseCacheKeys$G(cache, luvio, resourceParams, response.body);
|
|
3585
3585
|
return cache;
|
|
3586
3586
|
});
|
|
3587
3587
|
}, (response) => {
|
|
@@ -3591,17 +3591,17 @@ function buildNetworkSnapshot$A(luvio, config, options) {
|
|
|
3591
3591
|
}
|
|
3592
3592
|
const updateDashboardAdapterFactory = (luvio) => {
|
|
3593
3593
|
return function updateDashboard(untrustedConfig) {
|
|
3594
|
-
const config = validateAdapterConfig$
|
|
3594
|
+
const config = validateAdapterConfig$G(untrustedConfig, updateDashboard_ConfigPropertyNames);
|
|
3595
3595
|
// Invalid or incomplete config
|
|
3596
3596
|
if (config === null) {
|
|
3597
3597
|
throw new Error('Invalid config for "updateDashboard"');
|
|
3598
3598
|
}
|
|
3599
|
-
return buildNetworkSnapshot$
|
|
3599
|
+
return buildNetworkSnapshot$G(luvio, config);
|
|
3600
3600
|
};
|
|
3601
3601
|
};
|
|
3602
3602
|
|
|
3603
|
-
function validate$
|
|
3604
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
3603
|
+
function validate$C(obj, path = 'AnalyticsUserRepresentation') {
|
|
3604
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$I(obj, path);
|
|
3605
3605
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
3606
3606
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
3607
3607
|
}
|
|
@@ -3641,6 +3641,1207 @@ function validate$w(obj, path = 'AnalyticsUserRepresentation') {
|
|
|
3641
3641
|
return v_error === undefined ? null : v_error;
|
|
3642
3642
|
}
|
|
3643
3643
|
|
|
3644
|
+
const TTL$h = 500;
|
|
3645
|
+
const VERSION$r = "c15a48fd883f79a937626b94739e8f58";
|
|
3646
|
+
function validate$B(obj, path = 'DataAssetRequestRepresentation') {
|
|
3647
|
+
const v_error = (() => {
|
|
3648
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3649
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3650
|
+
}
|
|
3651
|
+
const obj_acknowledgedBy = obj.acknowledgedBy;
|
|
3652
|
+
const path_acknowledgedBy = path + '.acknowledgedBy';
|
|
3653
|
+
const referencepath_acknowledgedByValidationError = validate$C(obj_acknowledgedBy, path_acknowledgedBy);
|
|
3654
|
+
if (referencepath_acknowledgedByValidationError !== null) {
|
|
3655
|
+
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_acknowledgedBy + '")\n';
|
|
3656
|
+
message += referencepath_acknowledgedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3657
|
+
return new TypeError(message);
|
|
3658
|
+
}
|
|
3659
|
+
const obj_acknowledgedDate = obj.acknowledgedDate;
|
|
3660
|
+
const path_acknowledgedDate = path + '.acknowledgedDate';
|
|
3661
|
+
if (typeof obj_acknowledgedDate !== 'string') {
|
|
3662
|
+
return new TypeError('Expected "string" but received "' + typeof obj_acknowledgedDate + '" (at "' + path_acknowledgedDate + '")');
|
|
3663
|
+
}
|
|
3664
|
+
const obj_assetId = obj.assetId;
|
|
3665
|
+
const path_assetId = path + '.assetId';
|
|
3666
|
+
if (typeof obj_assetId !== 'string') {
|
|
3667
|
+
return new TypeError('Expected "string" but received "' + typeof obj_assetId + '" (at "' + path_assetId + '")');
|
|
3668
|
+
}
|
|
3669
|
+
const obj_assetLabel = obj.assetLabel;
|
|
3670
|
+
const path_assetLabel = path + '.assetLabel';
|
|
3671
|
+
if (typeof obj_assetLabel !== 'string') {
|
|
3672
|
+
return new TypeError('Expected "string" but received "' + typeof obj_assetLabel + '" (at "' + path_assetLabel + '")');
|
|
3673
|
+
}
|
|
3674
|
+
const obj_cancelledBy = obj.cancelledBy;
|
|
3675
|
+
const path_cancelledBy = path + '.cancelledBy';
|
|
3676
|
+
const referencepath_cancelledByValidationError = validate$C(obj_cancelledBy, path_cancelledBy);
|
|
3677
|
+
if (referencepath_cancelledByValidationError !== null) {
|
|
3678
|
+
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_cancelledBy + '")\n';
|
|
3679
|
+
message += referencepath_cancelledByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3680
|
+
return new TypeError(message);
|
|
3681
|
+
}
|
|
3682
|
+
const obj_cancelledDate = obj.cancelledDate;
|
|
3683
|
+
const path_cancelledDate = path + '.cancelledDate';
|
|
3684
|
+
if (typeof obj_cancelledDate !== 'string') {
|
|
3685
|
+
return new TypeError('Expected "string" but received "' + typeof obj_cancelledDate + '" (at "' + path_cancelledDate + '")');
|
|
3686
|
+
}
|
|
3687
|
+
const obj_completedBy = obj.completedBy;
|
|
3688
|
+
const path_completedBy = path + '.completedBy';
|
|
3689
|
+
const referencepath_completedByValidationError = validate$C(obj_completedBy, path_completedBy);
|
|
3690
|
+
if (referencepath_completedByValidationError !== null) {
|
|
3691
|
+
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_completedBy + '")\n';
|
|
3692
|
+
message += referencepath_completedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3693
|
+
return new TypeError(message);
|
|
3694
|
+
}
|
|
3695
|
+
const obj_completedDate = obj.completedDate;
|
|
3696
|
+
const path_completedDate = path + '.completedDate';
|
|
3697
|
+
if (typeof obj_completedDate !== 'string') {
|
|
3698
|
+
return new TypeError('Expected "string" but received "' + typeof obj_completedDate + '" (at "' + path_completedDate + '")');
|
|
3699
|
+
}
|
|
3700
|
+
const obj_failedDate = obj.failedDate;
|
|
3701
|
+
const path_failedDate = path + '.failedDate';
|
|
3702
|
+
if (typeof obj_failedDate !== 'string') {
|
|
3703
|
+
return new TypeError('Expected "string" but received "' + typeof obj_failedDate + '" (at "' + path_failedDate + '")');
|
|
3704
|
+
}
|
|
3705
|
+
const obj_id = obj.id;
|
|
3706
|
+
const path_id = path + '.id';
|
|
3707
|
+
if (typeof obj_id !== 'string') {
|
|
3708
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3709
|
+
}
|
|
3710
|
+
const obj_installedDate = obj.installedDate;
|
|
3711
|
+
const path_installedDate = path + '.installedDate';
|
|
3712
|
+
if (typeof obj_installedDate !== 'string') {
|
|
3713
|
+
return new TypeError('Expected "string" but received "' + typeof obj_installedDate + '" (at "' + path_installedDate + '")');
|
|
3714
|
+
}
|
|
3715
|
+
const obj_label = obj.label;
|
|
3716
|
+
const path_label = path + '.label';
|
|
3717
|
+
if (typeof obj_label !== 'string') {
|
|
3718
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
3719
|
+
}
|
|
3720
|
+
const obj_migrationSucceededDate = obj.migrationSucceededDate;
|
|
3721
|
+
const path_migrationSucceededDate = path + '.migrationSucceededDate';
|
|
3722
|
+
if (typeof obj_migrationSucceededDate !== 'string') {
|
|
3723
|
+
return new TypeError('Expected "string" but received "' + typeof obj_migrationSucceededDate + '" (at "' + path_migrationSucceededDate + '")');
|
|
3724
|
+
}
|
|
3725
|
+
const obj_numberOfDependencies = obj.numberOfDependencies;
|
|
3726
|
+
const path_numberOfDependencies = path + '.numberOfDependencies';
|
|
3727
|
+
if (typeof obj_numberOfDependencies !== 'number' || (typeof obj_numberOfDependencies === 'number' && Math.floor(obj_numberOfDependencies) !== obj_numberOfDependencies)) {
|
|
3728
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_numberOfDependencies + '" (at "' + path_numberOfDependencies + '")');
|
|
3729
|
+
}
|
|
3730
|
+
const obj_personalOrgId = obj.personalOrgId;
|
|
3731
|
+
const path_personalOrgId = path + '.personalOrgId';
|
|
3732
|
+
if (typeof obj_personalOrgId !== 'string') {
|
|
3733
|
+
return new TypeError('Expected "string" but received "' + typeof obj_personalOrgId + '" (at "' + path_personalOrgId + '")');
|
|
3734
|
+
}
|
|
3735
|
+
const obj_personalOrgWorkspaceId = obj.personalOrgWorkspaceId;
|
|
3736
|
+
const path_personalOrgWorkspaceId = path + '.personalOrgWorkspaceId';
|
|
3737
|
+
if (typeof obj_personalOrgWorkspaceId !== 'string') {
|
|
3738
|
+
return new TypeError('Expected "string" but received "' + typeof obj_personalOrgWorkspaceId + '" (at "' + path_personalOrgWorkspaceId + '")');
|
|
3739
|
+
}
|
|
3740
|
+
const obj_productionOrgId = obj.productionOrgId;
|
|
3741
|
+
const path_productionOrgId = path + '.productionOrgId';
|
|
3742
|
+
if (typeof obj_productionOrgId !== 'string') {
|
|
3743
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productionOrgId + '" (at "' + path_productionOrgId + '")');
|
|
3744
|
+
}
|
|
3745
|
+
const obj_productionOrgWorkspaceId = obj.productionOrgWorkspaceId;
|
|
3746
|
+
const path_productionOrgWorkspaceId = path + '.productionOrgWorkspaceId';
|
|
3747
|
+
if (typeof obj_productionOrgWorkspaceId !== 'string') {
|
|
3748
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productionOrgWorkspaceId + '" (at "' + path_productionOrgWorkspaceId + '")');
|
|
3749
|
+
}
|
|
3750
|
+
const obj_rejectionComment = obj.rejectionComment;
|
|
3751
|
+
const path_rejectionComment = path + '.rejectionComment';
|
|
3752
|
+
if (typeof obj_rejectionComment !== 'string') {
|
|
3753
|
+
return new TypeError('Expected "string" but received "' + typeof obj_rejectionComment + '" (at "' + path_rejectionComment + '")');
|
|
3754
|
+
}
|
|
3755
|
+
const obj_requestType = obj.requestType;
|
|
3756
|
+
const path_requestType = path + '.requestType';
|
|
3757
|
+
if (typeof obj_requestType !== 'string') {
|
|
3758
|
+
return new TypeError('Expected "string" but received "' + typeof obj_requestType + '" (at "' + path_requestType + '")');
|
|
3759
|
+
}
|
|
3760
|
+
const obj_requestedBy = obj.requestedBy;
|
|
3761
|
+
const path_requestedBy = path + '.requestedBy';
|
|
3762
|
+
const referencepath_requestedByValidationError = validate$C(obj_requestedBy, path_requestedBy);
|
|
3763
|
+
if (referencepath_requestedByValidationError !== null) {
|
|
3764
|
+
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_requestedBy + '")\n';
|
|
3765
|
+
message += referencepath_requestedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3766
|
+
return new TypeError(message);
|
|
3767
|
+
}
|
|
3768
|
+
const obj_requestedDate = obj.requestedDate;
|
|
3769
|
+
const path_requestedDate = path + '.requestedDate';
|
|
3770
|
+
if (typeof obj_requestedDate !== 'string') {
|
|
3771
|
+
return new TypeError('Expected "string" but received "' + typeof obj_requestedDate + '" (at "' + path_requestedDate + '")');
|
|
3772
|
+
}
|
|
3773
|
+
const obj_requesterComment = obj.requesterComment;
|
|
3774
|
+
const path_requesterComment = path + '.requesterComment';
|
|
3775
|
+
if (typeof obj_requesterComment !== 'string') {
|
|
3776
|
+
return new TypeError('Expected "string" but received "' + typeof obj_requesterComment + '" (at "' + path_requesterComment + '")');
|
|
3777
|
+
}
|
|
3778
|
+
const obj_sourceRequestId = obj.sourceRequestId;
|
|
3779
|
+
const path_sourceRequestId = path + '.sourceRequestId';
|
|
3780
|
+
if (typeof obj_sourceRequestId !== 'string') {
|
|
3781
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sourceRequestId + '" (at "' + path_sourceRequestId + '")');
|
|
3782
|
+
}
|
|
3783
|
+
const obj_status = obj.status;
|
|
3784
|
+
const path_status = path + '.status';
|
|
3785
|
+
if (typeof obj_status !== 'string') {
|
|
3786
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
3787
|
+
}
|
|
3788
|
+
const obj_targetRequestId = obj.targetRequestId;
|
|
3789
|
+
const path_targetRequestId = path + '.targetRequestId';
|
|
3790
|
+
if (typeof obj_targetRequestId !== 'string') {
|
|
3791
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetRequestId + '" (at "' + path_targetRequestId + '")');
|
|
3792
|
+
}
|
|
3793
|
+
const obj_workspaceAssetId = obj.workspaceAssetId;
|
|
3794
|
+
const path_workspaceAssetId = path + '.workspaceAssetId';
|
|
3795
|
+
if (typeof obj_workspaceAssetId !== 'string') {
|
|
3796
|
+
return new TypeError('Expected "string" but received "' + typeof obj_workspaceAssetId + '" (at "' + path_workspaceAssetId + '")');
|
|
3797
|
+
}
|
|
3798
|
+
})();
|
|
3799
|
+
return v_error === undefined ? null : v_error;
|
|
3800
|
+
}
|
|
3801
|
+
const RepresentationType$t = 'DataAssetRequestRepresentation';
|
|
3802
|
+
function keyBuilder$Z(luvio, config) {
|
|
3803
|
+
return keyPrefix + '::' + RepresentationType$t + ':' + config.dataAssetRequestId;
|
|
3804
|
+
}
|
|
3805
|
+
function keyBuilderFromType$d(luvio, object) {
|
|
3806
|
+
const keyParams = {
|
|
3807
|
+
dataAssetRequestId: object.id
|
|
3808
|
+
};
|
|
3809
|
+
return keyBuilder$Z(luvio, keyParams);
|
|
3810
|
+
}
|
|
3811
|
+
function normalize$r(input, existing, path, luvio, store, timestamp) {
|
|
3812
|
+
return input;
|
|
3813
|
+
}
|
|
3814
|
+
const select$$ = function DataAssetRequestRepresentationSelect() {
|
|
3815
|
+
return {
|
|
3816
|
+
kind: 'Fragment',
|
|
3817
|
+
version: VERSION$r,
|
|
3818
|
+
private: [],
|
|
3819
|
+
opaque: true
|
|
3820
|
+
};
|
|
3821
|
+
};
|
|
3822
|
+
function equals$r(existing, incoming) {
|
|
3823
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3824
|
+
return false;
|
|
3825
|
+
}
|
|
3826
|
+
return true;
|
|
3827
|
+
}
|
|
3828
|
+
const ingest$r = function DataAssetRequestRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3829
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3830
|
+
const validateError = validate$B(input);
|
|
3831
|
+
if (validateError !== null) {
|
|
3832
|
+
throw validateError;
|
|
3833
|
+
}
|
|
3834
|
+
}
|
|
3835
|
+
const key = keyBuilderFromType$d(luvio, input);
|
|
3836
|
+
const ttlToUse = TTL$h;
|
|
3837
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$r, "UnifiedAnalytics", VERSION$r, RepresentationType$t, equals$r);
|
|
3838
|
+
return createLink(key);
|
|
3839
|
+
};
|
|
3840
|
+
function getTypeCacheKeys$r(rootKeySet, luvio, input, fullPathFactory) {
|
|
3841
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3842
|
+
const rootKey = keyBuilderFromType$d(luvio, input);
|
|
3843
|
+
rootKeySet.set(rootKey, {
|
|
3844
|
+
namespace: keyPrefix,
|
|
3845
|
+
representationName: RepresentationType$t,
|
|
3846
|
+
mergeable: false
|
|
3847
|
+
});
|
|
3848
|
+
}
|
|
3849
|
+
|
|
3850
|
+
const TTL$g = 500;
|
|
3851
|
+
const VERSION$q = "b130e3ebdd5cd1a5007c21dad3bfa38a";
|
|
3852
|
+
function validate$A(obj, path = 'DataAssetRequestCollectionRepresentation') {
|
|
3853
|
+
const v_error = (() => {
|
|
3854
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3855
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3856
|
+
}
|
|
3857
|
+
const obj_dataAssetRequests = obj.dataAssetRequests;
|
|
3858
|
+
const path_dataAssetRequests = path + '.dataAssetRequests';
|
|
3859
|
+
if (!ArrayIsArray(obj_dataAssetRequests)) {
|
|
3860
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dataAssetRequests + '" (at "' + path_dataAssetRequests + '")');
|
|
3861
|
+
}
|
|
3862
|
+
for (let i = 0; i < obj_dataAssetRequests.length; i++) {
|
|
3863
|
+
const obj_dataAssetRequests_item = obj_dataAssetRequests[i];
|
|
3864
|
+
const path_dataAssetRequests_item = path_dataAssetRequests + '[' + i + ']';
|
|
3865
|
+
const referencepath_dataAssetRequests_itemValidationError = validate$B(obj_dataAssetRequests_item, path_dataAssetRequests_item);
|
|
3866
|
+
if (referencepath_dataAssetRequests_itemValidationError !== null) {
|
|
3867
|
+
let message = 'Object doesn\'t match DataAssetRequestRepresentation (at "' + path_dataAssetRequests_item + '")\n';
|
|
3868
|
+
message += referencepath_dataAssetRequests_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3869
|
+
return new TypeError(message);
|
|
3870
|
+
}
|
|
3871
|
+
}
|
|
3872
|
+
})();
|
|
3873
|
+
return v_error === undefined ? null : v_error;
|
|
3874
|
+
}
|
|
3875
|
+
const RepresentationType$s = 'DataAssetRequestCollectionRepresentation';
|
|
3876
|
+
function normalize$q(input, existing, path, luvio, store, timestamp) {
|
|
3877
|
+
return input;
|
|
3878
|
+
}
|
|
3879
|
+
const select$_ = function DataAssetRequestCollectionRepresentationSelect() {
|
|
3880
|
+
return {
|
|
3881
|
+
kind: 'Fragment',
|
|
3882
|
+
version: VERSION$q,
|
|
3883
|
+
private: [],
|
|
3884
|
+
opaque: true
|
|
3885
|
+
};
|
|
3886
|
+
};
|
|
3887
|
+
function equals$q(existing, incoming) {
|
|
3888
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3889
|
+
return false;
|
|
3890
|
+
}
|
|
3891
|
+
return true;
|
|
3892
|
+
}
|
|
3893
|
+
const ingest$q = function DataAssetRequestCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3894
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3895
|
+
const validateError = validate$A(input);
|
|
3896
|
+
if (validateError !== null) {
|
|
3897
|
+
throw validateError;
|
|
3898
|
+
}
|
|
3899
|
+
}
|
|
3900
|
+
const key = path.fullPath;
|
|
3901
|
+
const ttlToUse = TTL$g;
|
|
3902
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$q, "UnifiedAnalytics", VERSION$q, RepresentationType$s, equals$q);
|
|
3903
|
+
return createLink(key);
|
|
3904
|
+
};
|
|
3905
|
+
function getTypeCacheKeys$q(rootKeySet, luvio, input, fullPathFactory) {
|
|
3906
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3907
|
+
const rootKey = fullPathFactory();
|
|
3908
|
+
rootKeySet.set(rootKey, {
|
|
3909
|
+
namespace: keyPrefix,
|
|
3910
|
+
representationName: RepresentationType$s,
|
|
3911
|
+
mergeable: false
|
|
3912
|
+
});
|
|
3913
|
+
}
|
|
3914
|
+
|
|
3915
|
+
function select$Z(luvio, params) {
|
|
3916
|
+
return select$_();
|
|
3917
|
+
}
|
|
3918
|
+
function keyBuilder$Y(luvio, params) {
|
|
3919
|
+
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 + ')';
|
|
3920
|
+
}
|
|
3921
|
+
function getResponseCacheKeys$F(storeKeyMap, luvio, resourceParams, response) {
|
|
3922
|
+
getTypeCacheKeys$q(storeKeyMap, luvio, response, () => keyBuilder$Y(luvio, resourceParams));
|
|
3923
|
+
}
|
|
3924
|
+
function ingestSuccess$z(luvio, resourceParams, response, snapshotRefresh) {
|
|
3925
|
+
const { body } = response;
|
|
3926
|
+
const key = keyBuilder$Y(luvio, resourceParams);
|
|
3927
|
+
luvio.storeIngest(key, ingest$q, body);
|
|
3928
|
+
const snapshot = luvio.storeLookup({
|
|
3929
|
+
recordId: key,
|
|
3930
|
+
node: select$Z(),
|
|
3931
|
+
variables: {},
|
|
3932
|
+
}, snapshotRefresh);
|
|
3933
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3934
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
3935
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3936
|
+
}
|
|
3937
|
+
}
|
|
3938
|
+
deepFreeze(snapshot.data);
|
|
3939
|
+
return snapshot;
|
|
3940
|
+
}
|
|
3941
|
+
function ingestError$j(luvio, params, error, snapshotRefresh) {
|
|
3942
|
+
const key = keyBuilder$Y(luvio, params);
|
|
3943
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3944
|
+
const storeMetadataParams = {
|
|
3945
|
+
ttl: TTL$g,
|
|
3946
|
+
namespace: keyPrefix,
|
|
3947
|
+
version: VERSION$q,
|
|
3948
|
+
representationName: RepresentationType$s
|
|
3949
|
+
};
|
|
3950
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
3951
|
+
return errorSnapshot;
|
|
3952
|
+
}
|
|
3953
|
+
function createResourceRequest$F(config) {
|
|
3954
|
+
const headers = {};
|
|
3955
|
+
return {
|
|
3956
|
+
baseUri: '/services/data/v63.0',
|
|
3957
|
+
basePath: '/tableau/data-assets/requests',
|
|
3958
|
+
method: 'get',
|
|
3959
|
+
body: null,
|
|
3960
|
+
urlParams: {},
|
|
3961
|
+
queryParams: config.queryParams,
|
|
3962
|
+
headers,
|
|
3963
|
+
priority: 'normal',
|
|
3964
|
+
};
|
|
3965
|
+
}
|
|
3966
|
+
|
|
3967
|
+
const adapterName$F = 'getDataAssetRequests';
|
|
3968
|
+
const getDataAssetRequests_ConfigPropertyMetadata = [
|
|
3969
|
+
generateParamConfigMetadata('assetId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3970
|
+
generateParamConfigMetadata('assetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3971
|
+
generateParamConfigMetadata('createdBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3972
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3973
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3974
|
+
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3975
|
+
generateParamConfigMetadata('requestType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3976
|
+
generateParamConfigMetadata('searchQueryTerm', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3977
|
+
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3978
|
+
generateParamConfigMetadata('status', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3979
|
+
generateParamConfigMetadata('workspaceIdOrApiName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3980
|
+
];
|
|
3981
|
+
const getDataAssetRequests_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$F, getDataAssetRequests_ConfigPropertyMetadata);
|
|
3982
|
+
const createResourceParams$F = /*#__PURE__*/ createResourceParams$Q(getDataAssetRequests_ConfigPropertyMetadata);
|
|
3983
|
+
function keyBuilder$X(luvio, config) {
|
|
3984
|
+
const resourceParams = createResourceParams$F(config);
|
|
3985
|
+
return keyBuilder$Y(luvio, resourceParams);
|
|
3986
|
+
}
|
|
3987
|
+
function typeCheckConfig$F(untrustedConfig) {
|
|
3988
|
+
const config = {};
|
|
3989
|
+
typeCheckConfig$Q(untrustedConfig, config, getDataAssetRequests_ConfigPropertyMetadata);
|
|
3990
|
+
return config;
|
|
3991
|
+
}
|
|
3992
|
+
function validateAdapterConfig$F(untrustedConfig, configPropertyNames) {
|
|
3993
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
3994
|
+
return null;
|
|
3995
|
+
}
|
|
3996
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3997
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
3998
|
+
}
|
|
3999
|
+
const config = typeCheckConfig$F(untrustedConfig);
|
|
4000
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4001
|
+
return null;
|
|
4002
|
+
}
|
|
4003
|
+
return config;
|
|
4004
|
+
}
|
|
4005
|
+
function adapterFragment$j(luvio, config) {
|
|
4006
|
+
createResourceParams$F(config);
|
|
4007
|
+
return select$Z();
|
|
4008
|
+
}
|
|
4009
|
+
function onFetchResponseSuccess$j(luvio, config, resourceParams, response) {
|
|
4010
|
+
const snapshot = ingestSuccess$z(luvio, resourceParams, response, {
|
|
4011
|
+
config,
|
|
4012
|
+
resolve: () => buildNetworkSnapshot$F(luvio, config, snapshotRefreshOptions)
|
|
4013
|
+
});
|
|
4014
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4015
|
+
}
|
|
4016
|
+
function onFetchResponseError$j(luvio, config, resourceParams, response) {
|
|
4017
|
+
const snapshot = ingestError$j(luvio, resourceParams, response, {
|
|
4018
|
+
config,
|
|
4019
|
+
resolve: () => buildNetworkSnapshot$F(luvio, config, snapshotRefreshOptions)
|
|
4020
|
+
});
|
|
4021
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4022
|
+
}
|
|
4023
|
+
function buildNetworkSnapshot$F(luvio, config, options) {
|
|
4024
|
+
const resourceParams = createResourceParams$F(config);
|
|
4025
|
+
const request = createResourceRequest$F(resourceParams);
|
|
4026
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4027
|
+
.then((response) => {
|
|
4028
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$j(luvio, config, resourceParams, response), () => {
|
|
4029
|
+
const cache = new StoreKeyMap();
|
|
4030
|
+
getResponseCacheKeys$F(cache, luvio, resourceParams, response.body);
|
|
4031
|
+
return cache;
|
|
4032
|
+
});
|
|
4033
|
+
}, (response) => {
|
|
4034
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$j(luvio, config, resourceParams, response));
|
|
4035
|
+
});
|
|
4036
|
+
}
|
|
4037
|
+
function buildNetworkSnapshotCachePolicy$j(context, coercedAdapterRequestContext) {
|
|
4038
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$F, undefined, false);
|
|
4039
|
+
}
|
|
4040
|
+
function buildCachedSnapshotCachePolicy$j(context, storeLookup) {
|
|
4041
|
+
const { luvio, config } = context;
|
|
4042
|
+
const selector = {
|
|
4043
|
+
recordId: keyBuilder$X(luvio, config),
|
|
4044
|
+
node: adapterFragment$j(luvio, config),
|
|
4045
|
+
variables: {},
|
|
4046
|
+
};
|
|
4047
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4048
|
+
config,
|
|
4049
|
+
resolve: () => buildNetworkSnapshot$F(luvio, config, snapshotRefreshOptions)
|
|
4050
|
+
});
|
|
4051
|
+
return cacheSnapshot;
|
|
4052
|
+
}
|
|
4053
|
+
const getDataAssetRequestsAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAssetRequests(untrustedConfig, requestContext) {
|
|
4054
|
+
const config = validateAdapterConfig$F(untrustedConfig, getDataAssetRequests_ConfigPropertyNames);
|
|
4055
|
+
// Invalid or incomplete config
|
|
4056
|
+
if (config === null) {
|
|
4057
|
+
return null;
|
|
4058
|
+
}
|
|
4059
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4060
|
+
buildCachedSnapshotCachePolicy$j, buildNetworkSnapshotCachePolicy$j);
|
|
4061
|
+
};
|
|
4062
|
+
|
|
4063
|
+
function select$Y(luvio, params) {
|
|
4064
|
+
return select$$();
|
|
4065
|
+
}
|
|
4066
|
+
function getResponseCacheKeys$E(storeKeyMap, luvio, resourceParams, response) {
|
|
4067
|
+
getTypeCacheKeys$r(storeKeyMap, luvio, response);
|
|
4068
|
+
}
|
|
4069
|
+
function ingestSuccess$y(luvio, resourceParams, response) {
|
|
4070
|
+
const { body } = response;
|
|
4071
|
+
const key = keyBuilderFromType$d(luvio, body);
|
|
4072
|
+
luvio.storeIngest(key, ingest$r, body);
|
|
4073
|
+
const snapshot = luvio.storeLookup({
|
|
4074
|
+
recordId: key,
|
|
4075
|
+
node: select$Y(),
|
|
4076
|
+
variables: {},
|
|
4077
|
+
});
|
|
4078
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4079
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4080
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4081
|
+
}
|
|
4082
|
+
}
|
|
4083
|
+
deepFreeze(snapshot.data);
|
|
4084
|
+
return snapshot;
|
|
4085
|
+
}
|
|
4086
|
+
function createResourceRequest$E(config) {
|
|
4087
|
+
const headers = {};
|
|
4088
|
+
return {
|
|
4089
|
+
baseUri: '/services/data/v63.0',
|
|
4090
|
+
basePath: '/tableau/data-assets/requests',
|
|
4091
|
+
method: 'post',
|
|
4092
|
+
body: config.body,
|
|
4093
|
+
urlParams: {},
|
|
4094
|
+
queryParams: {},
|
|
4095
|
+
headers,
|
|
4096
|
+
priority: 'normal',
|
|
4097
|
+
};
|
|
4098
|
+
}
|
|
4099
|
+
|
|
4100
|
+
const adapterName$E = 'createDataAssetRequest';
|
|
4101
|
+
const createDataAssetRequest_ConfigPropertyMetadata = [
|
|
4102
|
+
generateParamConfigMetadata('assetId', true, 2 /* Body */, 0 /* String */),
|
|
4103
|
+
generateParamConfigMetadata('id', true, 2 /* Body */, 0 /* String */),
|
|
4104
|
+
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
4105
|
+
generateParamConfigMetadata('numberOfDependencies', true, 2 /* Body */, 3 /* Integer */),
|
|
4106
|
+
generateParamConfigMetadata('rejectionComment', true, 2 /* Body */, 0 /* String */),
|
|
4107
|
+
generateParamConfigMetadata('requestType', true, 2 /* Body */, 0 /* String */),
|
|
4108
|
+
generateParamConfigMetadata('requesterComment', true, 2 /* Body */, 0 /* String */),
|
|
4109
|
+
generateParamConfigMetadata('sourceRequestId', true, 2 /* Body */, 0 /* String */),
|
|
4110
|
+
generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
|
|
4111
|
+
generateParamConfigMetadata('workspaceIdOrApiName', true, 2 /* Body */, 0 /* String */),
|
|
4112
|
+
];
|
|
4113
|
+
const createDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$E, createDataAssetRequest_ConfigPropertyMetadata);
|
|
4114
|
+
const createResourceParams$E = /*#__PURE__*/ createResourceParams$Q(createDataAssetRequest_ConfigPropertyMetadata);
|
|
4115
|
+
function typeCheckConfig$E(untrustedConfig) {
|
|
4116
|
+
const config = {};
|
|
4117
|
+
typeCheckConfig$Q(untrustedConfig, config, createDataAssetRequest_ConfigPropertyMetadata);
|
|
4118
|
+
return config;
|
|
4119
|
+
}
|
|
4120
|
+
function validateAdapterConfig$E(untrustedConfig, configPropertyNames) {
|
|
4121
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4122
|
+
return null;
|
|
4123
|
+
}
|
|
4124
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4125
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4126
|
+
}
|
|
4127
|
+
const config = typeCheckConfig$E(untrustedConfig);
|
|
4128
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4129
|
+
return null;
|
|
4130
|
+
}
|
|
4131
|
+
return config;
|
|
4132
|
+
}
|
|
4133
|
+
function buildNetworkSnapshot$E(luvio, config, options) {
|
|
4134
|
+
const resourceParams = createResourceParams$E(config);
|
|
4135
|
+
const request = createResourceRequest$E(resourceParams);
|
|
4136
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4137
|
+
.then((response) => {
|
|
4138
|
+
return luvio.handleSuccessResponse(() => {
|
|
4139
|
+
const snapshot = ingestSuccess$y(luvio, resourceParams, response);
|
|
4140
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4141
|
+
}, () => {
|
|
4142
|
+
const cache = new StoreKeyMap();
|
|
4143
|
+
getResponseCacheKeys$E(cache, luvio, resourceParams, response.body);
|
|
4144
|
+
return cache;
|
|
4145
|
+
});
|
|
4146
|
+
}, (response) => {
|
|
4147
|
+
deepFreeze(response);
|
|
4148
|
+
throw response;
|
|
4149
|
+
});
|
|
4150
|
+
}
|
|
4151
|
+
const createDataAssetRequestAdapterFactory = (luvio) => {
|
|
4152
|
+
return function createDataAssetRequest(untrustedConfig) {
|
|
4153
|
+
const config = validateAdapterConfig$E(untrustedConfig, createDataAssetRequest_ConfigPropertyNames);
|
|
4154
|
+
// Invalid or incomplete config
|
|
4155
|
+
if (config === null) {
|
|
4156
|
+
throw new Error('Invalid config for "createDataAssetRequest"');
|
|
4157
|
+
}
|
|
4158
|
+
return buildNetworkSnapshot$E(luvio, config);
|
|
4159
|
+
};
|
|
4160
|
+
};
|
|
4161
|
+
|
|
4162
|
+
const TTL$f = 500;
|
|
4163
|
+
const VERSION$p = "e424b55efdacaf049d687461eddd10cc";
|
|
4164
|
+
function validate$z(obj, path = 'DataAssetRequestCountRepresentation') {
|
|
4165
|
+
const v_error = (() => {
|
|
4166
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4167
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4168
|
+
}
|
|
4169
|
+
const obj_count = obj.count;
|
|
4170
|
+
const path_count = path + '.count';
|
|
4171
|
+
if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
|
|
4172
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_count + '" (at "' + path_count + '")');
|
|
4173
|
+
}
|
|
4174
|
+
})();
|
|
4175
|
+
return v_error === undefined ? null : v_error;
|
|
4176
|
+
}
|
|
4177
|
+
const RepresentationType$r = 'DataAssetRequestCountRepresentation';
|
|
4178
|
+
function normalize$p(input, existing, path, luvio, store, timestamp) {
|
|
4179
|
+
return input;
|
|
4180
|
+
}
|
|
4181
|
+
const select$X = function DataAssetRequestCountRepresentationSelect() {
|
|
4182
|
+
return {
|
|
4183
|
+
kind: 'Fragment',
|
|
4184
|
+
version: VERSION$p,
|
|
4185
|
+
private: [],
|
|
4186
|
+
opaque: true
|
|
4187
|
+
};
|
|
4188
|
+
};
|
|
4189
|
+
function equals$p(existing, incoming) {
|
|
4190
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4191
|
+
return false;
|
|
4192
|
+
}
|
|
4193
|
+
return true;
|
|
4194
|
+
}
|
|
4195
|
+
const ingest$p = function DataAssetRequestCountRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4196
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4197
|
+
const validateError = validate$z(input);
|
|
4198
|
+
if (validateError !== null) {
|
|
4199
|
+
throw validateError;
|
|
4200
|
+
}
|
|
4201
|
+
}
|
|
4202
|
+
const key = path.fullPath;
|
|
4203
|
+
const ttlToUse = TTL$f;
|
|
4204
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$p, "UnifiedAnalytics", VERSION$p, RepresentationType$r, equals$p);
|
|
4205
|
+
return createLink(key);
|
|
4206
|
+
};
|
|
4207
|
+
function getTypeCacheKeys$p(rootKeySet, luvio, input, fullPathFactory) {
|
|
4208
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4209
|
+
const rootKey = fullPathFactory();
|
|
4210
|
+
rootKeySet.set(rootKey, {
|
|
4211
|
+
namespace: keyPrefix,
|
|
4212
|
+
representationName: RepresentationType$r,
|
|
4213
|
+
mergeable: false
|
|
4214
|
+
});
|
|
4215
|
+
}
|
|
4216
|
+
|
|
4217
|
+
function select$W(luvio, params) {
|
|
4218
|
+
return select$X();
|
|
4219
|
+
}
|
|
4220
|
+
function keyBuilder$W(luvio, params) {
|
|
4221
|
+
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 + ')';
|
|
4222
|
+
}
|
|
4223
|
+
function getResponseCacheKeys$D(storeKeyMap, luvio, resourceParams, response) {
|
|
4224
|
+
getTypeCacheKeys$p(storeKeyMap, luvio, response, () => keyBuilder$W(luvio, resourceParams));
|
|
4225
|
+
}
|
|
4226
|
+
function ingestSuccess$x(luvio, resourceParams, response, snapshotRefresh) {
|
|
4227
|
+
const { body } = response;
|
|
4228
|
+
const key = keyBuilder$W(luvio, resourceParams);
|
|
4229
|
+
luvio.storeIngest(key, ingest$p, body);
|
|
4230
|
+
const snapshot = luvio.storeLookup({
|
|
4231
|
+
recordId: key,
|
|
4232
|
+
node: select$W(),
|
|
4233
|
+
variables: {},
|
|
4234
|
+
}, snapshotRefresh);
|
|
4235
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4236
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4237
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4238
|
+
}
|
|
4239
|
+
}
|
|
4240
|
+
deepFreeze(snapshot.data);
|
|
4241
|
+
return snapshot;
|
|
4242
|
+
}
|
|
4243
|
+
function ingestError$i(luvio, params, error, snapshotRefresh) {
|
|
4244
|
+
const key = keyBuilder$W(luvio, params);
|
|
4245
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4246
|
+
const storeMetadataParams = {
|
|
4247
|
+
ttl: TTL$f,
|
|
4248
|
+
namespace: keyPrefix,
|
|
4249
|
+
version: VERSION$p,
|
|
4250
|
+
representationName: RepresentationType$r
|
|
4251
|
+
};
|
|
4252
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4253
|
+
return errorSnapshot;
|
|
4254
|
+
}
|
|
4255
|
+
function createResourceRequest$D(config) {
|
|
4256
|
+
const headers = {};
|
|
4257
|
+
return {
|
|
4258
|
+
baseUri: '/services/data/v63.0',
|
|
4259
|
+
basePath: '/tableau/data-assets/requests/count',
|
|
4260
|
+
method: 'get',
|
|
4261
|
+
body: null,
|
|
4262
|
+
urlParams: {},
|
|
4263
|
+
queryParams: config.queryParams,
|
|
4264
|
+
headers,
|
|
4265
|
+
priority: 'normal',
|
|
4266
|
+
};
|
|
4267
|
+
}
|
|
4268
|
+
|
|
4269
|
+
const adapterName$D = 'getDataAssetRequestsCount';
|
|
4270
|
+
const getDataAssetRequestsCount_ConfigPropertyMetadata = [
|
|
4271
|
+
generateParamConfigMetadata('assetId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4272
|
+
generateParamConfigMetadata('assetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4273
|
+
generateParamConfigMetadata('createdBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4274
|
+
generateParamConfigMetadata('searchQueryTerm', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4275
|
+
generateParamConfigMetadata('status', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4276
|
+
generateParamConfigMetadata('taskType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4277
|
+
generateParamConfigMetadata('workspaceIdOrApiName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4278
|
+
];
|
|
4279
|
+
const getDataAssetRequestsCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$D, getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
4280
|
+
const createResourceParams$D = /*#__PURE__*/ createResourceParams$Q(getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
4281
|
+
function keyBuilder$V(luvio, config) {
|
|
4282
|
+
const resourceParams = createResourceParams$D(config);
|
|
4283
|
+
return keyBuilder$W(luvio, resourceParams);
|
|
4284
|
+
}
|
|
4285
|
+
function typeCheckConfig$D(untrustedConfig) {
|
|
4286
|
+
const config = {};
|
|
4287
|
+
typeCheckConfig$Q(untrustedConfig, config, getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
4288
|
+
return config;
|
|
4289
|
+
}
|
|
4290
|
+
function validateAdapterConfig$D(untrustedConfig, configPropertyNames) {
|
|
4291
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4292
|
+
return null;
|
|
4293
|
+
}
|
|
4294
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4295
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4296
|
+
}
|
|
4297
|
+
const config = typeCheckConfig$D(untrustedConfig);
|
|
4298
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4299
|
+
return null;
|
|
4300
|
+
}
|
|
4301
|
+
return config;
|
|
4302
|
+
}
|
|
4303
|
+
function adapterFragment$i(luvio, config) {
|
|
4304
|
+
createResourceParams$D(config);
|
|
4305
|
+
return select$W();
|
|
4306
|
+
}
|
|
4307
|
+
function onFetchResponseSuccess$i(luvio, config, resourceParams, response) {
|
|
4308
|
+
const snapshot = ingestSuccess$x(luvio, resourceParams, response, {
|
|
4309
|
+
config,
|
|
4310
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
|
|
4311
|
+
});
|
|
4312
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4313
|
+
}
|
|
4314
|
+
function onFetchResponseError$i(luvio, config, resourceParams, response) {
|
|
4315
|
+
const snapshot = ingestError$i(luvio, resourceParams, response, {
|
|
4316
|
+
config,
|
|
4317
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
|
|
4318
|
+
});
|
|
4319
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4320
|
+
}
|
|
4321
|
+
function buildNetworkSnapshot$D(luvio, config, options) {
|
|
4322
|
+
const resourceParams = createResourceParams$D(config);
|
|
4323
|
+
const request = createResourceRequest$D(resourceParams);
|
|
4324
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4325
|
+
.then((response) => {
|
|
4326
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$i(luvio, config, resourceParams, response), () => {
|
|
4327
|
+
const cache = new StoreKeyMap();
|
|
4328
|
+
getResponseCacheKeys$D(cache, luvio, resourceParams, response.body);
|
|
4329
|
+
return cache;
|
|
4330
|
+
});
|
|
4331
|
+
}, (response) => {
|
|
4332
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$i(luvio, config, resourceParams, response));
|
|
4333
|
+
});
|
|
4334
|
+
}
|
|
4335
|
+
function buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext) {
|
|
4336
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$D, undefined, false);
|
|
4337
|
+
}
|
|
4338
|
+
function buildCachedSnapshotCachePolicy$i(context, storeLookup) {
|
|
4339
|
+
const { luvio, config } = context;
|
|
4340
|
+
const selector = {
|
|
4341
|
+
recordId: keyBuilder$V(luvio, config),
|
|
4342
|
+
node: adapterFragment$i(luvio, config),
|
|
4343
|
+
variables: {},
|
|
4344
|
+
};
|
|
4345
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4346
|
+
config,
|
|
4347
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
|
|
4348
|
+
});
|
|
4349
|
+
return cacheSnapshot;
|
|
4350
|
+
}
|
|
4351
|
+
const getDataAssetRequestsCountAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAssetRequestsCount(untrustedConfig, requestContext) {
|
|
4352
|
+
const config = validateAdapterConfig$D(untrustedConfig, getDataAssetRequestsCount_ConfigPropertyNames);
|
|
4353
|
+
// Invalid or incomplete config
|
|
4354
|
+
if (config === null) {
|
|
4355
|
+
return null;
|
|
4356
|
+
}
|
|
4357
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4358
|
+
buildCachedSnapshotCachePolicy$i, buildNetworkSnapshotCachePolicy$i);
|
|
4359
|
+
};
|
|
4360
|
+
|
|
4361
|
+
function select$V(luvio, params) {
|
|
4362
|
+
return select$$();
|
|
4363
|
+
}
|
|
4364
|
+
function keyBuilder$U(luvio, params) {
|
|
4365
|
+
return keyBuilder$Z(luvio, {
|
|
4366
|
+
dataAssetRequestId: params.urlParams.requestIdOrApiName
|
|
4367
|
+
});
|
|
4368
|
+
}
|
|
4369
|
+
function getResponseCacheKeys$C(storeKeyMap, luvio, resourceParams, response) {
|
|
4370
|
+
getTypeCacheKeys$r(storeKeyMap, luvio, response);
|
|
4371
|
+
}
|
|
4372
|
+
function ingestSuccess$w(luvio, resourceParams, response, snapshotRefresh) {
|
|
4373
|
+
const { body } = response;
|
|
4374
|
+
const key = keyBuilder$U(luvio, resourceParams);
|
|
4375
|
+
luvio.storeIngest(key, ingest$r, body);
|
|
4376
|
+
const snapshot = luvio.storeLookup({
|
|
4377
|
+
recordId: key,
|
|
4378
|
+
node: select$V(),
|
|
4379
|
+
variables: {},
|
|
4380
|
+
}, snapshotRefresh);
|
|
4381
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4382
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4383
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4384
|
+
}
|
|
4385
|
+
}
|
|
4386
|
+
deepFreeze(snapshot.data);
|
|
4387
|
+
return snapshot;
|
|
4388
|
+
}
|
|
4389
|
+
function ingestError$h(luvio, params, error, snapshotRefresh) {
|
|
4390
|
+
const key = keyBuilder$U(luvio, params);
|
|
4391
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4392
|
+
const storeMetadataParams = {
|
|
4393
|
+
ttl: TTL$h,
|
|
4394
|
+
namespace: keyPrefix,
|
|
4395
|
+
version: VERSION$r,
|
|
4396
|
+
representationName: RepresentationType$t
|
|
4397
|
+
};
|
|
4398
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4399
|
+
return errorSnapshot;
|
|
4400
|
+
}
|
|
4401
|
+
function createResourceRequest$C(config) {
|
|
4402
|
+
const headers = {};
|
|
4403
|
+
return {
|
|
4404
|
+
baseUri: '/services/data/v63.0',
|
|
4405
|
+
basePath: '/tableau/data-assets/requests/' + config.urlParams.requestIdOrApiName + '',
|
|
4406
|
+
method: 'get',
|
|
4407
|
+
body: null,
|
|
4408
|
+
urlParams: config.urlParams,
|
|
4409
|
+
queryParams: {},
|
|
4410
|
+
headers,
|
|
4411
|
+
priority: 'normal',
|
|
4412
|
+
};
|
|
4413
|
+
}
|
|
4414
|
+
|
|
4415
|
+
const adapterName$C = 'getDataAssetRequestByIdOrApiName';
|
|
4416
|
+
const getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata = [
|
|
4417
|
+
generateParamConfigMetadata('requestIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4418
|
+
];
|
|
4419
|
+
const getDataAssetRequestByIdOrApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$C, getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
4420
|
+
const createResourceParams$C = /*#__PURE__*/ createResourceParams$Q(getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
4421
|
+
function keyBuilder$T(luvio, config) {
|
|
4422
|
+
const resourceParams = createResourceParams$C(config);
|
|
4423
|
+
return keyBuilder$U(luvio, resourceParams);
|
|
4424
|
+
}
|
|
4425
|
+
function typeCheckConfig$C(untrustedConfig) {
|
|
4426
|
+
const config = {};
|
|
4427
|
+
typeCheckConfig$Q(untrustedConfig, config, getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
4428
|
+
return config;
|
|
4429
|
+
}
|
|
4430
|
+
function validateAdapterConfig$C(untrustedConfig, configPropertyNames) {
|
|
4431
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4432
|
+
return null;
|
|
4433
|
+
}
|
|
4434
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4435
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4436
|
+
}
|
|
4437
|
+
const config = typeCheckConfig$C(untrustedConfig);
|
|
4438
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4439
|
+
return null;
|
|
4440
|
+
}
|
|
4441
|
+
return config;
|
|
4442
|
+
}
|
|
4443
|
+
function adapterFragment$h(luvio, config) {
|
|
4444
|
+
createResourceParams$C(config);
|
|
4445
|
+
return select$V();
|
|
4446
|
+
}
|
|
4447
|
+
function onFetchResponseSuccess$h(luvio, config, resourceParams, response) {
|
|
4448
|
+
const snapshot = ingestSuccess$w(luvio, resourceParams, response, {
|
|
4449
|
+
config,
|
|
4450
|
+
resolve: () => buildNetworkSnapshot$C(luvio, config, snapshotRefreshOptions)
|
|
4451
|
+
});
|
|
4452
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4453
|
+
}
|
|
4454
|
+
function onFetchResponseError$h(luvio, config, resourceParams, response) {
|
|
4455
|
+
const snapshot = ingestError$h(luvio, resourceParams, response, {
|
|
4456
|
+
config,
|
|
4457
|
+
resolve: () => buildNetworkSnapshot$C(luvio, config, snapshotRefreshOptions)
|
|
4458
|
+
});
|
|
4459
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4460
|
+
}
|
|
4461
|
+
function buildNetworkSnapshot$C(luvio, config, options) {
|
|
4462
|
+
const resourceParams = createResourceParams$C(config);
|
|
4463
|
+
const request = createResourceRequest$C(resourceParams);
|
|
4464
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4465
|
+
.then((response) => {
|
|
4466
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$h(luvio, config, resourceParams, response), () => {
|
|
4467
|
+
const cache = new StoreKeyMap();
|
|
4468
|
+
getResponseCacheKeys$C(cache, luvio, resourceParams, response.body);
|
|
4469
|
+
return cache;
|
|
4470
|
+
});
|
|
4471
|
+
}, (response) => {
|
|
4472
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$h(luvio, config, resourceParams, response));
|
|
4473
|
+
});
|
|
4474
|
+
}
|
|
4475
|
+
function buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext) {
|
|
4476
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$C, undefined, false);
|
|
4477
|
+
}
|
|
4478
|
+
function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
|
|
4479
|
+
const { luvio, config } = context;
|
|
4480
|
+
const selector = {
|
|
4481
|
+
recordId: keyBuilder$T(luvio, config),
|
|
4482
|
+
node: adapterFragment$h(luvio, config),
|
|
4483
|
+
variables: {},
|
|
4484
|
+
};
|
|
4485
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4486
|
+
config,
|
|
4487
|
+
resolve: () => buildNetworkSnapshot$C(luvio, config, snapshotRefreshOptions)
|
|
4488
|
+
});
|
|
4489
|
+
return cacheSnapshot;
|
|
4490
|
+
}
|
|
4491
|
+
const getDataAssetRequestByIdOrApiNameAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAssetRequestByIdOrApiName(untrustedConfig, requestContext) {
|
|
4492
|
+
const config = validateAdapterConfig$C(untrustedConfig, getDataAssetRequestByIdOrApiName_ConfigPropertyNames);
|
|
4493
|
+
// Invalid or incomplete config
|
|
4494
|
+
if (config === null) {
|
|
4495
|
+
return null;
|
|
4496
|
+
}
|
|
4497
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4498
|
+
buildCachedSnapshotCachePolicy$h, buildNetworkSnapshotCachePolicy$h);
|
|
4499
|
+
};
|
|
4500
|
+
|
|
4501
|
+
function select$U(luvio, params) {
|
|
4502
|
+
return select$$();
|
|
4503
|
+
}
|
|
4504
|
+
function getResponseCacheKeys$B(storeKeyMap, luvio, resourceParams, response) {
|
|
4505
|
+
getTypeCacheKeys$r(storeKeyMap, luvio, response);
|
|
4506
|
+
}
|
|
4507
|
+
function ingestSuccess$v(luvio, resourceParams, response) {
|
|
4508
|
+
const { body } = response;
|
|
4509
|
+
const key = keyBuilderFromType$d(luvio, body);
|
|
4510
|
+
luvio.storeIngest(key, ingest$r, body);
|
|
4511
|
+
const snapshot = luvio.storeLookup({
|
|
4512
|
+
recordId: key,
|
|
4513
|
+
node: select$U(),
|
|
4514
|
+
variables: {},
|
|
4515
|
+
});
|
|
4516
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4517
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4518
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4519
|
+
}
|
|
4520
|
+
}
|
|
4521
|
+
deepFreeze(snapshot.data);
|
|
4522
|
+
return snapshot;
|
|
4523
|
+
}
|
|
4524
|
+
function createResourceRequest$B(config) {
|
|
4525
|
+
const headers = {};
|
|
4526
|
+
return {
|
|
4527
|
+
baseUri: '/services/data/v63.0',
|
|
4528
|
+
basePath: '/tableau/data-assets/requests/' + config.urlParams.requestIdOrApiName + '',
|
|
4529
|
+
method: 'patch',
|
|
4530
|
+
body: config.body,
|
|
4531
|
+
urlParams: config.urlParams,
|
|
4532
|
+
queryParams: {},
|
|
4533
|
+
headers,
|
|
4534
|
+
priority: 'normal',
|
|
4535
|
+
};
|
|
4536
|
+
}
|
|
4537
|
+
|
|
4538
|
+
const adapterName$B = 'updateDataAssetRequest';
|
|
4539
|
+
const updateDataAssetRequest_ConfigPropertyMetadata = [
|
|
4540
|
+
generateParamConfigMetadata('requestIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4541
|
+
generateParamConfigMetadata('assetId', true, 2 /* Body */, 0 /* String */),
|
|
4542
|
+
generateParamConfigMetadata('id', true, 2 /* Body */, 0 /* String */),
|
|
4543
|
+
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
4544
|
+
generateParamConfigMetadata('numberOfDependencies', true, 2 /* Body */, 3 /* Integer */),
|
|
4545
|
+
generateParamConfigMetadata('rejectionComment', true, 2 /* Body */, 0 /* String */),
|
|
4546
|
+
generateParamConfigMetadata('requestType', true, 2 /* Body */, 0 /* String */),
|
|
4547
|
+
generateParamConfigMetadata('requesterComment', true, 2 /* Body */, 0 /* String */),
|
|
4548
|
+
generateParamConfigMetadata('sourceRequestId', true, 2 /* Body */, 0 /* String */),
|
|
4549
|
+
generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
|
|
4550
|
+
generateParamConfigMetadata('workspaceIdOrApiName', true, 2 /* Body */, 0 /* String */),
|
|
4551
|
+
];
|
|
4552
|
+
const updateDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$B, updateDataAssetRequest_ConfigPropertyMetadata);
|
|
4553
|
+
const createResourceParams$B = /*#__PURE__*/ createResourceParams$Q(updateDataAssetRequest_ConfigPropertyMetadata);
|
|
4554
|
+
function typeCheckConfig$B(untrustedConfig) {
|
|
4555
|
+
const config = {};
|
|
4556
|
+
typeCheckConfig$Q(untrustedConfig, config, updateDataAssetRequest_ConfigPropertyMetadata);
|
|
4557
|
+
return config;
|
|
4558
|
+
}
|
|
4559
|
+
function validateAdapterConfig$B(untrustedConfig, configPropertyNames) {
|
|
4560
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4561
|
+
return null;
|
|
4562
|
+
}
|
|
4563
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4564
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4565
|
+
}
|
|
4566
|
+
const config = typeCheckConfig$B(untrustedConfig);
|
|
4567
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4568
|
+
return null;
|
|
4569
|
+
}
|
|
4570
|
+
return config;
|
|
4571
|
+
}
|
|
4572
|
+
function buildNetworkSnapshot$B(luvio, config, options) {
|
|
4573
|
+
const resourceParams = createResourceParams$B(config);
|
|
4574
|
+
const request = createResourceRequest$B(resourceParams);
|
|
4575
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4576
|
+
.then((response) => {
|
|
4577
|
+
return luvio.handleSuccessResponse(() => {
|
|
4578
|
+
const snapshot = ingestSuccess$v(luvio, resourceParams, response);
|
|
4579
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4580
|
+
}, () => {
|
|
4581
|
+
const cache = new StoreKeyMap();
|
|
4582
|
+
getResponseCacheKeys$B(cache, luvio, resourceParams, response.body);
|
|
4583
|
+
return cache;
|
|
4584
|
+
});
|
|
4585
|
+
}, (response) => {
|
|
4586
|
+
deepFreeze(response);
|
|
4587
|
+
throw response;
|
|
4588
|
+
});
|
|
4589
|
+
}
|
|
4590
|
+
const updateDataAssetRequestAdapterFactory = (luvio) => {
|
|
4591
|
+
return function updateDataAssetRequest(untrustedConfig) {
|
|
4592
|
+
const config = validateAdapterConfig$B(untrustedConfig, updateDataAssetRequest_ConfigPropertyNames);
|
|
4593
|
+
// Invalid or incomplete config
|
|
4594
|
+
if (config === null) {
|
|
4595
|
+
throw new Error('Invalid config for "updateDataAssetRequest"');
|
|
4596
|
+
}
|
|
4597
|
+
return buildNetworkSnapshot$B(luvio, config);
|
|
4598
|
+
};
|
|
4599
|
+
};
|
|
4600
|
+
|
|
4601
|
+
function validate$y(obj, path = 'DataAssetRepresentation') {
|
|
4602
|
+
const v_error = (() => {
|
|
4603
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4604
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4605
|
+
}
|
|
4606
|
+
const obj_assetId = obj.assetId;
|
|
4607
|
+
const path_assetId = path + '.assetId';
|
|
4608
|
+
if (typeof obj_assetId !== 'string') {
|
|
4609
|
+
return new TypeError('Expected "string" but received "' + typeof obj_assetId + '" (at "' + path_assetId + '")');
|
|
4610
|
+
}
|
|
4611
|
+
const obj_assetType = obj.assetType;
|
|
4612
|
+
const path_assetType = path + '.assetType';
|
|
4613
|
+
if (typeof obj_assetType !== 'string') {
|
|
4614
|
+
return new TypeError('Expected "string" but received "' + typeof obj_assetType + '" (at "' + path_assetType + '")');
|
|
4615
|
+
}
|
|
4616
|
+
const obj_workspaceId = obj.workspaceId;
|
|
4617
|
+
const path_workspaceId = path + '.workspaceId';
|
|
4618
|
+
if (typeof obj_workspaceId !== 'string') {
|
|
4619
|
+
return new TypeError('Expected "string" but received "' + typeof obj_workspaceId + '" (at "' + path_workspaceId + '")');
|
|
4620
|
+
}
|
|
4621
|
+
})();
|
|
4622
|
+
return v_error === undefined ? null : v_error;
|
|
4623
|
+
}
|
|
4624
|
+
|
|
4625
|
+
function validate$x(obj, path = 'DataAssetDependentRepresentation') {
|
|
4626
|
+
const v_error = (() => {
|
|
4627
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4628
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4629
|
+
}
|
|
4630
|
+
const obj_dataAsset = obj.dataAsset;
|
|
4631
|
+
const path_dataAsset = path + '.dataAsset';
|
|
4632
|
+
const referencepath_dataAssetValidationError = validate$y(obj_dataAsset, path_dataAsset);
|
|
4633
|
+
if (referencepath_dataAssetValidationError !== null) {
|
|
4634
|
+
let message = 'Object doesn\'t match DataAssetRepresentation (at "' + path_dataAsset + '")\n';
|
|
4635
|
+
message += referencepath_dataAssetValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4636
|
+
return new TypeError(message);
|
|
4637
|
+
}
|
|
4638
|
+
})();
|
|
4639
|
+
return v_error === undefined ? null : v_error;
|
|
4640
|
+
}
|
|
4641
|
+
|
|
4642
|
+
const TTL$e = 500;
|
|
4643
|
+
const VERSION$o = "bc1bcd1c96c7c70c3cde837dafdafaba";
|
|
4644
|
+
function validate$w(obj, path = 'DataAssetDependentCollectionRepresentation') {
|
|
4645
|
+
const v_error = (() => {
|
|
4646
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4647
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4648
|
+
}
|
|
4649
|
+
const obj_dependentDataAssets = obj.dependentDataAssets;
|
|
4650
|
+
const path_dependentDataAssets = path + '.dependentDataAssets';
|
|
4651
|
+
if (!ArrayIsArray(obj_dependentDataAssets)) {
|
|
4652
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dependentDataAssets + '" (at "' + path_dependentDataAssets + '")');
|
|
4653
|
+
}
|
|
4654
|
+
for (let i = 0; i < obj_dependentDataAssets.length; i++) {
|
|
4655
|
+
const obj_dependentDataAssets_item = obj_dependentDataAssets[i];
|
|
4656
|
+
const path_dependentDataAssets_item = path_dependentDataAssets + '[' + i + ']';
|
|
4657
|
+
const referencepath_dependentDataAssets_itemValidationError = validate$x(obj_dependentDataAssets_item, path_dependentDataAssets_item);
|
|
4658
|
+
if (referencepath_dependentDataAssets_itemValidationError !== null) {
|
|
4659
|
+
let message = 'Object doesn\'t match DataAssetDependentRepresentation (at "' + path_dependentDataAssets_item + '")\n';
|
|
4660
|
+
message += referencepath_dependentDataAssets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4661
|
+
return new TypeError(message);
|
|
4662
|
+
}
|
|
4663
|
+
}
|
|
4664
|
+
})();
|
|
4665
|
+
return v_error === undefined ? null : v_error;
|
|
4666
|
+
}
|
|
4667
|
+
const RepresentationType$q = 'DataAssetDependentCollectionRepresentation';
|
|
4668
|
+
function normalize$o(input, existing, path, luvio, store, timestamp) {
|
|
4669
|
+
return input;
|
|
4670
|
+
}
|
|
4671
|
+
const select$T = function DataAssetDependentCollectionRepresentationSelect() {
|
|
4672
|
+
return {
|
|
4673
|
+
kind: 'Fragment',
|
|
4674
|
+
version: VERSION$o,
|
|
4675
|
+
private: [],
|
|
4676
|
+
opaque: true
|
|
4677
|
+
};
|
|
4678
|
+
};
|
|
4679
|
+
function equals$o(existing, incoming) {
|
|
4680
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4681
|
+
return false;
|
|
4682
|
+
}
|
|
4683
|
+
return true;
|
|
4684
|
+
}
|
|
4685
|
+
const ingest$o = function DataAssetDependentCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4686
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4687
|
+
const validateError = validate$w(input);
|
|
4688
|
+
if (validateError !== null) {
|
|
4689
|
+
throw validateError;
|
|
4690
|
+
}
|
|
4691
|
+
}
|
|
4692
|
+
const key = path.fullPath;
|
|
4693
|
+
const ttlToUse = TTL$e;
|
|
4694
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$o, "UnifiedAnalytics", VERSION$o, RepresentationType$q, equals$o);
|
|
4695
|
+
return createLink(key);
|
|
4696
|
+
};
|
|
4697
|
+
function getTypeCacheKeys$o(rootKeySet, luvio, input, fullPathFactory) {
|
|
4698
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4699
|
+
const rootKey = fullPathFactory();
|
|
4700
|
+
rootKeySet.set(rootKey, {
|
|
4701
|
+
namespace: keyPrefix,
|
|
4702
|
+
representationName: RepresentationType$q,
|
|
4703
|
+
mergeable: false
|
|
4704
|
+
});
|
|
4705
|
+
}
|
|
4706
|
+
|
|
4707
|
+
function select$S(luvio, params) {
|
|
4708
|
+
return select$T();
|
|
4709
|
+
}
|
|
4710
|
+
function keyBuilder$S(luvio, params) {
|
|
4711
|
+
return keyPrefix + '::DataAssetDependentCollectionRepresentation:(' + 'assetId:' + params.urlParams.assetId + ')';
|
|
4712
|
+
}
|
|
4713
|
+
function getResponseCacheKeys$A(storeKeyMap, luvio, resourceParams, response) {
|
|
4714
|
+
getTypeCacheKeys$o(storeKeyMap, luvio, response, () => keyBuilder$S(luvio, resourceParams));
|
|
4715
|
+
}
|
|
4716
|
+
function ingestSuccess$u(luvio, resourceParams, response, snapshotRefresh) {
|
|
4717
|
+
const { body } = response;
|
|
4718
|
+
const key = keyBuilder$S(luvio, resourceParams);
|
|
4719
|
+
luvio.storeIngest(key, ingest$o, body);
|
|
4720
|
+
const snapshot = luvio.storeLookup({
|
|
4721
|
+
recordId: key,
|
|
4722
|
+
node: select$S(),
|
|
4723
|
+
variables: {},
|
|
4724
|
+
}, snapshotRefresh);
|
|
4725
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4726
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4727
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4728
|
+
}
|
|
4729
|
+
}
|
|
4730
|
+
deepFreeze(snapshot.data);
|
|
4731
|
+
return snapshot;
|
|
4732
|
+
}
|
|
4733
|
+
function ingestError$g(luvio, params, error, snapshotRefresh) {
|
|
4734
|
+
const key = keyBuilder$S(luvio, params);
|
|
4735
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4736
|
+
const storeMetadataParams = {
|
|
4737
|
+
ttl: TTL$e,
|
|
4738
|
+
namespace: keyPrefix,
|
|
4739
|
+
version: VERSION$o,
|
|
4740
|
+
representationName: RepresentationType$q
|
|
4741
|
+
};
|
|
4742
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4743
|
+
return errorSnapshot;
|
|
4744
|
+
}
|
|
4745
|
+
function createResourceRequest$A(config) {
|
|
4746
|
+
const headers = {};
|
|
4747
|
+
return {
|
|
4748
|
+
baseUri: '/services/data/v63.0',
|
|
4749
|
+
basePath: '/tableau/data-assets/dependencies/' + config.urlParams.assetId + '',
|
|
4750
|
+
method: 'get',
|
|
4751
|
+
body: null,
|
|
4752
|
+
urlParams: config.urlParams,
|
|
4753
|
+
queryParams: {},
|
|
4754
|
+
headers,
|
|
4755
|
+
priority: 'normal',
|
|
4756
|
+
};
|
|
4757
|
+
}
|
|
4758
|
+
|
|
4759
|
+
const adapterName$A = 'getDataAssetDependencies';
|
|
4760
|
+
const getDataAssetDependencies_ConfigPropertyMetadata = [
|
|
4761
|
+
generateParamConfigMetadata('assetId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4762
|
+
];
|
|
4763
|
+
const getDataAssetDependencies_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$A, getDataAssetDependencies_ConfigPropertyMetadata);
|
|
4764
|
+
const createResourceParams$A = /*#__PURE__*/ createResourceParams$Q(getDataAssetDependencies_ConfigPropertyMetadata);
|
|
4765
|
+
function keyBuilder$R(luvio, config) {
|
|
4766
|
+
const resourceParams = createResourceParams$A(config);
|
|
4767
|
+
return keyBuilder$S(luvio, resourceParams);
|
|
4768
|
+
}
|
|
4769
|
+
function typeCheckConfig$A(untrustedConfig) {
|
|
4770
|
+
const config = {};
|
|
4771
|
+
typeCheckConfig$Q(untrustedConfig, config, getDataAssetDependencies_ConfigPropertyMetadata);
|
|
4772
|
+
return config;
|
|
4773
|
+
}
|
|
4774
|
+
function validateAdapterConfig$A(untrustedConfig, configPropertyNames) {
|
|
4775
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4776
|
+
return null;
|
|
4777
|
+
}
|
|
4778
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4779
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4780
|
+
}
|
|
4781
|
+
const config = typeCheckConfig$A(untrustedConfig);
|
|
4782
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4783
|
+
return null;
|
|
4784
|
+
}
|
|
4785
|
+
return config;
|
|
4786
|
+
}
|
|
4787
|
+
function adapterFragment$g(luvio, config) {
|
|
4788
|
+
createResourceParams$A(config);
|
|
4789
|
+
return select$S();
|
|
4790
|
+
}
|
|
4791
|
+
function onFetchResponseSuccess$g(luvio, config, resourceParams, response) {
|
|
4792
|
+
const snapshot = ingestSuccess$u(luvio, resourceParams, response, {
|
|
4793
|
+
config,
|
|
4794
|
+
resolve: () => buildNetworkSnapshot$A(luvio, config, snapshotRefreshOptions)
|
|
4795
|
+
});
|
|
4796
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4797
|
+
}
|
|
4798
|
+
function onFetchResponseError$g(luvio, config, resourceParams, response) {
|
|
4799
|
+
const snapshot = ingestError$g(luvio, resourceParams, response, {
|
|
4800
|
+
config,
|
|
4801
|
+
resolve: () => buildNetworkSnapshot$A(luvio, config, snapshotRefreshOptions)
|
|
4802
|
+
});
|
|
4803
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4804
|
+
}
|
|
4805
|
+
function buildNetworkSnapshot$A(luvio, config, options) {
|
|
4806
|
+
const resourceParams = createResourceParams$A(config);
|
|
4807
|
+
const request = createResourceRequest$A(resourceParams);
|
|
4808
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4809
|
+
.then((response) => {
|
|
4810
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$g(luvio, config, resourceParams, response), () => {
|
|
4811
|
+
const cache = new StoreKeyMap();
|
|
4812
|
+
getResponseCacheKeys$A(cache, luvio, resourceParams, response.body);
|
|
4813
|
+
return cache;
|
|
4814
|
+
});
|
|
4815
|
+
}, (response) => {
|
|
4816
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$g(luvio, config, resourceParams, response));
|
|
4817
|
+
});
|
|
4818
|
+
}
|
|
4819
|
+
function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
|
|
4820
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$A, undefined, false);
|
|
4821
|
+
}
|
|
4822
|
+
function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
4823
|
+
const { luvio, config } = context;
|
|
4824
|
+
const selector = {
|
|
4825
|
+
recordId: keyBuilder$R(luvio, config),
|
|
4826
|
+
node: adapterFragment$g(luvio, config),
|
|
4827
|
+
variables: {},
|
|
4828
|
+
};
|
|
4829
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4830
|
+
config,
|
|
4831
|
+
resolve: () => buildNetworkSnapshot$A(luvio, config, snapshotRefreshOptions)
|
|
4832
|
+
});
|
|
4833
|
+
return cacheSnapshot;
|
|
4834
|
+
}
|
|
4835
|
+
const getDataAssetDependenciesAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAssetDependencies(untrustedConfig, requestContext) {
|
|
4836
|
+
const config = validateAdapterConfig$A(untrustedConfig, getDataAssetDependencies_ConfigPropertyNames);
|
|
4837
|
+
// Invalid or incomplete config
|
|
4838
|
+
if (config === null) {
|
|
4839
|
+
return null;
|
|
4840
|
+
}
|
|
4841
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4842
|
+
buildCachedSnapshotCachePolicy$g, buildNetworkSnapshotCachePolicy$g);
|
|
4843
|
+
};
|
|
4844
|
+
|
|
3644
4845
|
const TTL$d = 500;
|
|
3645
4846
|
const VERSION$n = "9a4f1166e92aab266ef84b910ef0c322";
|
|
3646
4847
|
function validate$v(obj, path = 'FollowerAssetRepresentation') {
|
|
@@ -3650,7 +4851,7 @@ function validate$v(obj, path = 'FollowerAssetRepresentation') {
|
|
|
3650
4851
|
}
|
|
3651
4852
|
const obj_createdBy = obj.createdBy;
|
|
3652
4853
|
const path_createdBy = path + '.createdBy';
|
|
3653
|
-
const referencepath_createdByValidationError = validate$
|
|
4854
|
+
const referencepath_createdByValidationError = validate$C(obj_createdBy, path_createdBy);
|
|
3654
4855
|
if (referencepath_createdByValidationError !== null) {
|
|
3655
4856
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
3656
4857
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3778,10 +4979,10 @@ const follow_ConfigPropertyMetadata = [
|
|
|
3778
4979
|
generateParamConfigMetadata('followerType', true, 2 /* Body */, 0 /* String */),
|
|
3779
4980
|
];
|
|
3780
4981
|
const follow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$z, follow_ConfigPropertyMetadata);
|
|
3781
|
-
const createResourceParams$z = /*#__PURE__*/ createResourceParams$
|
|
4982
|
+
const createResourceParams$z = /*#__PURE__*/ createResourceParams$Q(follow_ConfigPropertyMetadata);
|
|
3782
4983
|
function typeCheckConfig$z(untrustedConfig) {
|
|
3783
4984
|
const config = {};
|
|
3784
|
-
typeCheckConfig$
|
|
4985
|
+
typeCheckConfig$Q(untrustedConfig, config, follow_ConfigPropertyMetadata);
|
|
3785
4986
|
return config;
|
|
3786
4987
|
}
|
|
3787
4988
|
function validateAdapterConfig$z(untrustedConfig, configPropertyNames) {
|
|
@@ -3927,10 +5128,10 @@ const unfollow_ConfigPropertyMetadata = [
|
|
|
3927
5128
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3928
5129
|
];
|
|
3929
5130
|
const unfollow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$y, unfollow_ConfigPropertyMetadata);
|
|
3930
|
-
const createResourceParams$y = /*#__PURE__*/ createResourceParams$
|
|
5131
|
+
const createResourceParams$y = /*#__PURE__*/ createResourceParams$Q(unfollow_ConfigPropertyMetadata);
|
|
3931
5132
|
function typeCheckConfig$y(untrustedConfig) {
|
|
3932
5133
|
const config = {};
|
|
3933
|
-
typeCheckConfig$
|
|
5134
|
+
typeCheckConfig$Q(untrustedConfig, config, unfollow_ConfigPropertyMetadata);
|
|
3934
5135
|
return config;
|
|
3935
5136
|
}
|
|
3936
5137
|
function validateAdapterConfig$y(untrustedConfig, configPropertyNames) {
|
|
@@ -3990,7 +5191,7 @@ function validate$t(obj, path = 'FollowerCollectionRepresentation') {
|
|
|
3990
5191
|
for (let i = 0; i < obj_followers.length; i++) {
|
|
3991
5192
|
const obj_followers_item = obj_followers[i];
|
|
3992
5193
|
const path_followers_item = path_followers + '[' + i + ']';
|
|
3993
|
-
const referencepath_followers_itemValidationError = validate$
|
|
5194
|
+
const referencepath_followers_itemValidationError = validate$C(obj_followers_item, path_followers_item);
|
|
3994
5195
|
if (referencepath_followers_itemValidationError !== null) {
|
|
3995
5196
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_followers_item + '")\n';
|
|
3996
5197
|
message += referencepath_followers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4101,14 +5302,14 @@ const getFollowers_ConfigPropertyMetadata = [
|
|
|
4101
5302
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4102
5303
|
];
|
|
4103
5304
|
const getFollowers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$x, getFollowers_ConfigPropertyMetadata);
|
|
4104
|
-
const createResourceParams$x = /*#__PURE__*/ createResourceParams$
|
|
5305
|
+
const createResourceParams$x = /*#__PURE__*/ createResourceParams$Q(getFollowers_ConfigPropertyMetadata);
|
|
4105
5306
|
function keyBuilder$M(luvio, config) {
|
|
4106
5307
|
const resourceParams = createResourceParams$x(config);
|
|
4107
5308
|
return keyBuilder$N(luvio, resourceParams);
|
|
4108
5309
|
}
|
|
4109
5310
|
function typeCheckConfig$x(untrustedConfig) {
|
|
4110
5311
|
const config = {};
|
|
4111
|
-
typeCheckConfig$
|
|
5312
|
+
typeCheckConfig$Q(untrustedConfig, config, getFollowers_ConfigPropertyMetadata);
|
|
4112
5313
|
return config;
|
|
4113
5314
|
}
|
|
4114
5315
|
function validateAdapterConfig$x(untrustedConfig, configPropertyNames) {
|
|
@@ -4157,7 +5358,7 @@ function buildNetworkSnapshot$x(luvio, config, options) {
|
|
|
4157
5358
|
});
|
|
4158
5359
|
}
|
|
4159
5360
|
function buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext) {
|
|
4160
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5361
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$x, undefined, false);
|
|
4161
5362
|
}
|
|
4162
5363
|
function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
|
|
4163
5364
|
const { luvio, config } = context;
|
|
@@ -4307,14 +5508,14 @@ const getFollowedAssets_ConfigPropertyMetadata = [
|
|
|
4307
5508
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4308
5509
|
];
|
|
4309
5510
|
const getFollowedAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$w, getFollowedAssets_ConfigPropertyMetadata);
|
|
4310
|
-
const createResourceParams$w = /*#__PURE__*/ createResourceParams$
|
|
5511
|
+
const createResourceParams$w = /*#__PURE__*/ createResourceParams$Q(getFollowedAssets_ConfigPropertyMetadata);
|
|
4311
5512
|
function keyBuilder$K(luvio, config) {
|
|
4312
5513
|
const resourceParams = createResourceParams$w(config);
|
|
4313
5514
|
return keyBuilder$L(luvio, resourceParams);
|
|
4314
5515
|
}
|
|
4315
5516
|
function typeCheckConfig$w(untrustedConfig) {
|
|
4316
5517
|
const config = {};
|
|
4317
|
-
typeCheckConfig$
|
|
5518
|
+
typeCheckConfig$Q(untrustedConfig, config, getFollowedAssets_ConfigPropertyMetadata);
|
|
4318
5519
|
return config;
|
|
4319
5520
|
}
|
|
4320
5521
|
function validateAdapterConfig$w(untrustedConfig, configPropertyNames) {
|
|
@@ -4363,7 +5564,7 @@ function buildNetworkSnapshot$w(luvio, config, options) {
|
|
|
4363
5564
|
});
|
|
4364
5565
|
}
|
|
4365
5566
|
function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
|
|
4366
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5567
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$w, undefined, false);
|
|
4367
5568
|
}
|
|
4368
5569
|
function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
|
|
4369
5570
|
const { luvio, config } = context;
|
|
@@ -4501,14 +5702,14 @@ const getUniqueFollowerCount_ConfigPropertyMetadata = [
|
|
|
4501
5702
|
generateParamConfigMetadata('followedAssetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4502
5703
|
];
|
|
4503
5704
|
const getUniqueFollowerCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$v, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
4504
|
-
const createResourceParams$v = /*#__PURE__*/ createResourceParams$
|
|
5705
|
+
const createResourceParams$v = /*#__PURE__*/ createResourceParams$Q(getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
4505
5706
|
function keyBuilder$I(luvio, config) {
|
|
4506
5707
|
const resourceParams = createResourceParams$v(config);
|
|
4507
5708
|
return keyBuilder$J(luvio, resourceParams);
|
|
4508
5709
|
}
|
|
4509
5710
|
function typeCheckConfig$v(untrustedConfig) {
|
|
4510
5711
|
const config = {};
|
|
4511
|
-
typeCheckConfig$
|
|
5712
|
+
typeCheckConfig$Q(untrustedConfig, config, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
4512
5713
|
return config;
|
|
4513
5714
|
}
|
|
4514
5715
|
function validateAdapterConfig$v(untrustedConfig, configPropertyNames) {
|
|
@@ -4557,7 +5758,7 @@ function buildNetworkSnapshot$v(luvio, config, options) {
|
|
|
4557
5758
|
});
|
|
4558
5759
|
}
|
|
4559
5760
|
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
4560
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5761
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$v, undefined, false);
|
|
4561
5762
|
}
|
|
4562
5763
|
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
4563
5764
|
const { luvio, config } = context;
|
|
@@ -4698,7 +5899,7 @@ const createLoglines_ConfigPropertyMetadata = [
|
|
|
4698
5899
|
generateParamConfigMetadata('loglines', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4699
5900
|
];
|
|
4700
5901
|
const createLoglines_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$u, createLoglines_ConfigPropertyMetadata);
|
|
4701
|
-
const createResourceParams$u = /*#__PURE__*/ createResourceParams$
|
|
5902
|
+
const createResourceParams$u = /*#__PURE__*/ createResourceParams$Q(createLoglines_ConfigPropertyMetadata);
|
|
4702
5903
|
function typeCheckConfig$u(untrustedConfig) {
|
|
4703
5904
|
const config = {};
|
|
4704
5905
|
const untrustedConfig_loglines = untrustedConfig.loglines;
|
|
@@ -4913,14 +6114,14 @@ const getOrg_ConfigPropertyMetadata = [
|
|
|
4913
6114
|
generateParamConfigMetadata('userName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4914
6115
|
];
|
|
4915
6116
|
const getOrg_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, getOrg_ConfigPropertyMetadata);
|
|
4916
|
-
const createResourceParams$t = /*#__PURE__*/ createResourceParams$
|
|
6117
|
+
const createResourceParams$t = /*#__PURE__*/ createResourceParams$Q(getOrg_ConfigPropertyMetadata);
|
|
4917
6118
|
function keyBuilder$F(luvio, config) {
|
|
4918
6119
|
const resourceParams = createResourceParams$t(config);
|
|
4919
6120
|
return keyBuilder$G(luvio, resourceParams);
|
|
4920
6121
|
}
|
|
4921
6122
|
function typeCheckConfig$t(untrustedConfig) {
|
|
4922
6123
|
const config = {};
|
|
4923
|
-
typeCheckConfig$
|
|
6124
|
+
typeCheckConfig$Q(untrustedConfig, config, getOrg_ConfigPropertyMetadata);
|
|
4924
6125
|
return config;
|
|
4925
6126
|
}
|
|
4926
6127
|
function validateAdapterConfig$t(untrustedConfig, configPropertyNames) {
|
|
@@ -4969,7 +6170,7 @@ function buildNetworkSnapshot$t(luvio, config, options) {
|
|
|
4969
6170
|
});
|
|
4970
6171
|
}
|
|
4971
6172
|
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
4972
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6173
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$t, undefined, false);
|
|
4973
6174
|
}
|
|
4974
6175
|
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
4975
6176
|
const { luvio, config } = context;
|
|
@@ -5137,10 +6338,10 @@ const deleteAllShares_ConfigPropertyMetadata = [
|
|
|
5137
6338
|
generateParamConfigMetadata('recordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5138
6339
|
];
|
|
5139
6340
|
const deleteAllShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$s, deleteAllShares_ConfigPropertyMetadata);
|
|
5140
|
-
const createResourceParams$s = /*#__PURE__*/ createResourceParams$
|
|
6341
|
+
const createResourceParams$s = /*#__PURE__*/ createResourceParams$Q(deleteAllShares_ConfigPropertyMetadata);
|
|
5141
6342
|
function typeCheckConfig$s(untrustedConfig) {
|
|
5142
6343
|
const config = {};
|
|
5143
|
-
typeCheckConfig$
|
|
6344
|
+
typeCheckConfig$Q(untrustedConfig, config, deleteAllShares_ConfigPropertyMetadata);
|
|
5144
6345
|
return config;
|
|
5145
6346
|
}
|
|
5146
6347
|
function validateAdapterConfig$s(untrustedConfig, configPropertyNames) {
|
|
@@ -5247,14 +6448,14 @@ const getShares_ConfigPropertyMetadata = [
|
|
|
5247
6448
|
generateParamConfigMetadata('userOrGroupId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5248
6449
|
];
|
|
5249
6450
|
const getShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$r, getShares_ConfigPropertyMetadata);
|
|
5250
|
-
const createResourceParams$r = /*#__PURE__*/ createResourceParams$
|
|
6451
|
+
const createResourceParams$r = /*#__PURE__*/ createResourceParams$Q(getShares_ConfigPropertyMetadata);
|
|
5251
6452
|
function keyBuilder$A(luvio, config) {
|
|
5252
6453
|
const resourceParams = createResourceParams$r(config);
|
|
5253
6454
|
return keyBuilder$B(luvio, resourceParams);
|
|
5254
6455
|
}
|
|
5255
6456
|
function typeCheckConfig$r(untrustedConfig) {
|
|
5256
6457
|
const config = {};
|
|
5257
|
-
typeCheckConfig$
|
|
6458
|
+
typeCheckConfig$Q(untrustedConfig, config, getShares_ConfigPropertyMetadata);
|
|
5258
6459
|
return config;
|
|
5259
6460
|
}
|
|
5260
6461
|
function validateAdapterConfig$r(untrustedConfig, configPropertyNames) {
|
|
@@ -5303,7 +6504,7 @@ function buildNetworkSnapshot$r(luvio, config, options) {
|
|
|
5303
6504
|
});
|
|
5304
6505
|
}
|
|
5305
6506
|
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
5306
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6507
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$r, undefined, false);
|
|
5307
6508
|
}
|
|
5308
6509
|
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
5309
6510
|
const { luvio, config } = context;
|
|
@@ -5369,7 +6570,7 @@ function validate$k(obj, path = 'SetupRecordShareRepresentation') {
|
|
|
5369
6570
|
}
|
|
5370
6571
|
const obj_createdBy = obj.createdBy;
|
|
5371
6572
|
const path_createdBy = path + '.createdBy';
|
|
5372
|
-
const referencepath_createdByValidationError = validate$
|
|
6573
|
+
const referencepath_createdByValidationError = validate$C(obj_createdBy, path_createdBy);
|
|
5373
6574
|
if (referencepath_createdByValidationError !== null) {
|
|
5374
6575
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
5375
6576
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5382,7 +6583,7 @@ function validate$k(obj, path = 'SetupRecordShareRepresentation') {
|
|
|
5382
6583
|
}
|
|
5383
6584
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
5384
6585
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
5385
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
6586
|
+
const referencepath_lastModifiedByValidationError = validate$C(obj_lastModifiedBy, path_lastModifiedBy);
|
|
5386
6587
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
5387
6588
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
5388
6589
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5544,10 +6745,10 @@ const updateRecordShares_ConfigPropertyMetadata = [
|
|
|
5544
6745
|
generateParamConfigMetadata('updateSetupRecordAccessItems', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5545
6746
|
];
|
|
5546
6747
|
const updateRecordShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$q, updateRecordShares_ConfigPropertyMetadata);
|
|
5547
|
-
const createResourceParams$q = /*#__PURE__*/ createResourceParams$
|
|
6748
|
+
const createResourceParams$q = /*#__PURE__*/ createResourceParams$Q(updateRecordShares_ConfigPropertyMetadata);
|
|
5548
6749
|
function typeCheckConfig$q(untrustedConfig) {
|
|
5549
6750
|
const config = {};
|
|
5550
|
-
typeCheckConfig$
|
|
6751
|
+
typeCheckConfig$Q(untrustedConfig, config, updateRecordShares_ConfigPropertyMetadata);
|
|
5551
6752
|
const untrustedConfig_updateSetupRecordAccessItems = untrustedConfig.updateSetupRecordAccessItems;
|
|
5552
6753
|
if (ArrayIsArray$1(untrustedConfig_updateSetupRecordAccessItems)) {
|
|
5553
6754
|
const untrustedConfig_updateSetupRecordAccessItems_array = [];
|
|
@@ -5644,10 +6845,10 @@ const createRecordShares_ConfigPropertyMetadata = [
|
|
|
5644
6845
|
generateParamConfigMetadata('accessRequestItems', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5645
6846
|
];
|
|
5646
6847
|
const createRecordShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$p, createRecordShares_ConfigPropertyMetadata);
|
|
5647
|
-
const createResourceParams$p = /*#__PURE__*/ createResourceParams$
|
|
6848
|
+
const createResourceParams$p = /*#__PURE__*/ createResourceParams$Q(createRecordShares_ConfigPropertyMetadata);
|
|
5648
6849
|
function typeCheckConfig$p(untrustedConfig) {
|
|
5649
6850
|
const config = {};
|
|
5650
|
-
typeCheckConfig$
|
|
6851
|
+
typeCheckConfig$Q(untrustedConfig, config, createRecordShares_ConfigPropertyMetadata);
|
|
5651
6852
|
const untrustedConfig_accessRequestItems = untrustedConfig.accessRequestItems;
|
|
5652
6853
|
if (ArrayIsArray$1(untrustedConfig_accessRequestItems)) {
|
|
5653
6854
|
const untrustedConfig_accessRequestItems_array = [];
|
|
@@ -5739,10 +6940,10 @@ const deleteRecordShare_ConfigPropertyMetadata = [
|
|
|
5739
6940
|
generateParamConfigMetadata('userOrGroupId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5740
6941
|
];
|
|
5741
6942
|
const deleteRecordShare_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, deleteRecordShare_ConfigPropertyMetadata);
|
|
5742
|
-
const createResourceParams$o = /*#__PURE__*/ createResourceParams$
|
|
6943
|
+
const createResourceParams$o = /*#__PURE__*/ createResourceParams$Q(deleteRecordShare_ConfigPropertyMetadata);
|
|
5743
6944
|
function typeCheckConfig$o(untrustedConfig) {
|
|
5744
6945
|
const config = {};
|
|
5745
|
-
typeCheckConfig$
|
|
6946
|
+
typeCheckConfig$Q(untrustedConfig, config, deleteRecordShare_ConfigPropertyMetadata);
|
|
5746
6947
|
return config;
|
|
5747
6948
|
}
|
|
5748
6949
|
function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
|
|
@@ -6067,14 +7268,14 @@ const getAssetSlackChannels_ConfigPropertyMetadata = [
|
|
|
6067
7268
|
generateParamConfigMetadata('assetId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
6068
7269
|
];
|
|
6069
7270
|
const getAssetSlackChannels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
6070
|
-
const createResourceParams$n = /*#__PURE__*/ createResourceParams$
|
|
7271
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$Q(getAssetSlackChannels_ConfigPropertyMetadata);
|
|
6071
7272
|
function keyBuilder$v(luvio, config) {
|
|
6072
7273
|
const resourceParams = createResourceParams$n(config);
|
|
6073
7274
|
return keyBuilder$w(luvio, resourceParams);
|
|
6074
7275
|
}
|
|
6075
7276
|
function typeCheckConfig$n(untrustedConfig) {
|
|
6076
7277
|
const config = {};
|
|
6077
|
-
typeCheckConfig$
|
|
7278
|
+
typeCheckConfig$Q(untrustedConfig, config, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
6078
7279
|
return config;
|
|
6079
7280
|
}
|
|
6080
7281
|
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
@@ -6123,7 +7324,7 @@ function buildNetworkSnapshot$n(luvio, config, options) {
|
|
|
6123
7324
|
});
|
|
6124
7325
|
}
|
|
6125
7326
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
6126
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7327
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$n, undefined, false);
|
|
6127
7328
|
}
|
|
6128
7329
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
6129
7330
|
const { luvio, config } = context;
|
|
@@ -6192,10 +7393,10 @@ const createAssetSlackChannel_ConfigPropertyMetadata = [
|
|
|
6192
7393
|
generateParamConfigMetadata('teamId', true, 2 /* Body */, 0 /* String */),
|
|
6193
7394
|
];
|
|
6194
7395
|
const createAssetSlackChannel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
6195
|
-
const createResourceParams$m = /*#__PURE__*/ createResourceParams$
|
|
7396
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$Q(createAssetSlackChannel_ConfigPropertyMetadata);
|
|
6196
7397
|
function typeCheckConfig$m(untrustedConfig) {
|
|
6197
7398
|
const config = {};
|
|
6198
|
-
typeCheckConfig$
|
|
7399
|
+
typeCheckConfig$Q(untrustedConfig, config, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
6199
7400
|
return config;
|
|
6200
7401
|
}
|
|
6201
7402
|
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
@@ -6255,7 +7456,7 @@ function validate$g(obj, path = 'AnalyticsUsersQueryResultsRepresentation') {
|
|
|
6255
7456
|
for (let i = 0; i < obj_items.length; i++) {
|
|
6256
7457
|
const obj_items_item = obj_items[i];
|
|
6257
7458
|
const path_items_item = path_items + '[' + i + ']';
|
|
6258
|
-
const referencepath_items_itemValidationError = validate$
|
|
7459
|
+
const referencepath_items_itemValidationError = validate$C(obj_items_item, path_items_item);
|
|
6259
7460
|
if (referencepath_items_itemValidationError !== null) {
|
|
6260
7461
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_items_item + '")\n';
|
|
6261
7462
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6372,10 +7573,10 @@ const queryUsers_ConfigPropertyMetadata = [
|
|
|
6372
7573
|
generateParamConfigMetadata('useAutoSuggest', true, 2 /* Body */, 1 /* Boolean */),
|
|
6373
7574
|
];
|
|
6374
7575
|
const queryUsers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, queryUsers_ConfigPropertyMetadata);
|
|
6375
|
-
const createResourceParams$l = /*#__PURE__*/ createResourceParams$
|
|
7576
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$Q(queryUsers_ConfigPropertyMetadata);
|
|
6376
7577
|
function typeCheckConfig$l(untrustedConfig) {
|
|
6377
7578
|
const config = {};
|
|
6378
|
-
typeCheckConfig$
|
|
7579
|
+
typeCheckConfig$Q(untrustedConfig, config, queryUsers_ConfigPropertyMetadata);
|
|
6379
7580
|
return config;
|
|
6380
7581
|
}
|
|
6381
7582
|
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
@@ -6428,7 +7629,7 @@ function validate$f(obj, path = 'VisualizationRepresentation') {
|
|
|
6428
7629
|
}
|
|
6429
7630
|
const obj_createdBy = obj.createdBy;
|
|
6430
7631
|
const path_createdBy = path + '.createdBy';
|
|
6431
|
-
const referencepath_createdByValidationError = validate$
|
|
7632
|
+
const referencepath_createdByValidationError = validate$C(obj_createdBy, path_createdBy);
|
|
6432
7633
|
if (referencepath_createdByValidationError !== null) {
|
|
6433
7634
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
6434
7635
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6503,7 +7704,7 @@ function validate$f(obj, path = 'VisualizationRepresentation') {
|
|
|
6503
7704
|
if (obj.lastModifiedBy !== undefined) {
|
|
6504
7705
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
6505
7706
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
6506
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
7707
|
+
const referencepath_lastModifiedByValidationError = validate$C(obj_lastModifiedBy, path_lastModifiedBy);
|
|
6507
7708
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
6508
7709
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
6509
7710
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6765,14 +7966,14 @@ const getVisualizations_ConfigPropertyMetadata = [
|
|
|
6765
7966
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
6766
7967
|
];
|
|
6767
7968
|
const getVisualizations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getVisualizations_ConfigPropertyMetadata);
|
|
6768
|
-
const createResourceParams$k = /*#__PURE__*/ createResourceParams$
|
|
7969
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$Q(getVisualizations_ConfigPropertyMetadata);
|
|
6769
7970
|
function keyBuilder$r(luvio, config) {
|
|
6770
7971
|
const resourceParams = createResourceParams$k(config);
|
|
6771
7972
|
return keyBuilder$s(luvio, resourceParams);
|
|
6772
7973
|
}
|
|
6773
7974
|
function typeCheckConfig$k(untrustedConfig) {
|
|
6774
7975
|
const config = {};
|
|
6775
|
-
typeCheckConfig$
|
|
7976
|
+
typeCheckConfig$Q(untrustedConfig, config, getVisualizations_ConfigPropertyMetadata);
|
|
6776
7977
|
return config;
|
|
6777
7978
|
}
|
|
6778
7979
|
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
@@ -6821,7 +8022,7 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
6821
8022
|
});
|
|
6822
8023
|
}
|
|
6823
8024
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
6824
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8025
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
6825
8026
|
}
|
|
6826
8027
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
6827
8028
|
const { luvio, config } = context;
|
|
@@ -6897,10 +8098,10 @@ const createVisualization_ConfigPropertyMetadata = [
|
|
|
6897
8098
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
6898
8099
|
];
|
|
6899
8100
|
const createVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, createVisualization_ConfigPropertyMetadata);
|
|
6900
|
-
const createResourceParams$j = /*#__PURE__*/ createResourceParams$
|
|
8101
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$Q(createVisualization_ConfigPropertyMetadata);
|
|
6901
8102
|
function typeCheckConfig$j(untrustedConfig) {
|
|
6902
8103
|
const config = {};
|
|
6903
|
-
typeCheckConfig$
|
|
8104
|
+
typeCheckConfig$Q(untrustedConfig, config, createVisualization_ConfigPropertyMetadata);
|
|
6904
8105
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
6905
8106
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
6906
8107
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -7065,10 +8266,10 @@ const deleteVisualization_ConfigPropertyMetadata = [
|
|
|
7065
8266
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7066
8267
|
];
|
|
7067
8268
|
const deleteVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, deleteVisualization_ConfigPropertyMetadata);
|
|
7068
|
-
const createResourceParams$i = /*#__PURE__*/ createResourceParams$
|
|
8269
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$Q(deleteVisualization_ConfigPropertyMetadata);
|
|
7069
8270
|
function typeCheckConfig$i(untrustedConfig) {
|
|
7070
8271
|
const config = {};
|
|
7071
|
-
typeCheckConfig$
|
|
8272
|
+
typeCheckConfig$Q(untrustedConfig, config, deleteVisualization_ConfigPropertyMetadata);
|
|
7072
8273
|
return config;
|
|
7073
8274
|
}
|
|
7074
8275
|
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
@@ -7166,14 +8367,14 @@ const getVisualization_ConfigPropertyMetadata = [
|
|
|
7166
8367
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7167
8368
|
];
|
|
7168
8369
|
const getVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getVisualization_ConfigPropertyMetadata);
|
|
7169
|
-
const createResourceParams$h = /*#__PURE__*/ createResourceParams$
|
|
8370
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$Q(getVisualization_ConfigPropertyMetadata);
|
|
7170
8371
|
function keyBuilder$o(luvio, config) {
|
|
7171
8372
|
const resourceParams = createResourceParams$h(config);
|
|
7172
8373
|
return keyBuilder$p(luvio, resourceParams);
|
|
7173
8374
|
}
|
|
7174
8375
|
function typeCheckConfig$h(untrustedConfig) {
|
|
7175
8376
|
const config = {};
|
|
7176
|
-
typeCheckConfig$
|
|
8377
|
+
typeCheckConfig$Q(untrustedConfig, config, getVisualization_ConfigPropertyMetadata);
|
|
7177
8378
|
return config;
|
|
7178
8379
|
}
|
|
7179
8380
|
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
@@ -7222,7 +8423,7 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
7222
8423
|
});
|
|
7223
8424
|
}
|
|
7224
8425
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
7225
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8426
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
7226
8427
|
}
|
|
7227
8428
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
7228
8429
|
const { luvio, config } = context;
|
|
@@ -7299,10 +8500,10 @@ const updateVisualization_ConfigPropertyMetadata = [
|
|
|
7299
8500
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
7300
8501
|
];
|
|
7301
8502
|
const updateVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, updateVisualization_ConfigPropertyMetadata);
|
|
7302
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
8503
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$Q(updateVisualization_ConfigPropertyMetadata);
|
|
7303
8504
|
function typeCheckConfig$g(untrustedConfig) {
|
|
7304
8505
|
const config = {};
|
|
7305
|
-
typeCheckConfig$
|
|
8506
|
+
typeCheckConfig$Q(untrustedConfig, config, updateVisualization_ConfigPropertyMetadata);
|
|
7306
8507
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
7307
8508
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
7308
8509
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -7566,14 +8767,14 @@ const getVisualizationBundle_ConfigPropertyMetadata = [
|
|
|
7566
8767
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7567
8768
|
];
|
|
7568
8769
|
const getVisualizationBundle_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getVisualizationBundle_ConfigPropertyMetadata);
|
|
7569
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
8770
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$Q(getVisualizationBundle_ConfigPropertyMetadata);
|
|
7570
8771
|
function keyBuilder$l(luvio, config) {
|
|
7571
8772
|
const resourceParams = createResourceParams$f(config);
|
|
7572
8773
|
return keyBuilder$m(luvio, resourceParams);
|
|
7573
8774
|
}
|
|
7574
8775
|
function typeCheckConfig$f(untrustedConfig) {
|
|
7575
8776
|
const config = {};
|
|
7576
|
-
typeCheckConfig$
|
|
8777
|
+
typeCheckConfig$Q(untrustedConfig, config, getVisualizationBundle_ConfigPropertyMetadata);
|
|
7577
8778
|
return config;
|
|
7578
8779
|
}
|
|
7579
8780
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -7622,7 +8823,7 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
7622
8823
|
});
|
|
7623
8824
|
}
|
|
7624
8825
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
7625
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8826
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
7626
8827
|
}
|
|
7627
8828
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
7628
8829
|
const { luvio, config } = context;
|
|
@@ -7660,7 +8861,7 @@ function validate$c(obj, path = 'WorkspaceRepresentation') {
|
|
|
7660
8861
|
}
|
|
7661
8862
|
const obj_createdBy = obj.createdBy;
|
|
7662
8863
|
const path_createdBy = path + '.createdBy';
|
|
7663
|
-
const referencepath_createdByValidationError = validate$
|
|
8864
|
+
const referencepath_createdByValidationError = validate$C(obj_createdBy, path_createdBy);
|
|
7664
8865
|
if (referencepath_createdByValidationError !== null) {
|
|
7665
8866
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
7666
8867
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7911,14 +9112,14 @@ const getWorkspaces_ConfigPropertyMetadata = [
|
|
|
7911
9112
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
7912
9113
|
];
|
|
7913
9114
|
const getWorkspaces_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getWorkspaces_ConfigPropertyMetadata);
|
|
7914
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
9115
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$Q(getWorkspaces_ConfigPropertyMetadata);
|
|
7915
9116
|
function keyBuilder$i(luvio, config) {
|
|
7916
9117
|
const resourceParams = createResourceParams$e(config);
|
|
7917
9118
|
return keyBuilder$j(luvio, resourceParams);
|
|
7918
9119
|
}
|
|
7919
9120
|
function typeCheckConfig$e(untrustedConfig) {
|
|
7920
9121
|
const config = {};
|
|
7921
|
-
typeCheckConfig$
|
|
9122
|
+
typeCheckConfig$Q(untrustedConfig, config, getWorkspaces_ConfigPropertyMetadata);
|
|
7922
9123
|
return config;
|
|
7923
9124
|
}
|
|
7924
9125
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -7967,7 +9168,7 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
7967
9168
|
});
|
|
7968
9169
|
}
|
|
7969
9170
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
7970
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9171
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
7971
9172
|
}
|
|
7972
9173
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
7973
9174
|
const { luvio, config } = context;
|
|
@@ -8037,10 +9238,10 @@ const createWorkspace_ConfigPropertyMetadata = [
|
|
|
8037
9238
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
8038
9239
|
];
|
|
8039
9240
|
const createWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, createWorkspace_ConfigPropertyMetadata);
|
|
8040
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
9241
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$Q(createWorkspace_ConfigPropertyMetadata);
|
|
8041
9242
|
function typeCheckConfig$d(untrustedConfig) {
|
|
8042
9243
|
const config = {};
|
|
8043
|
-
typeCheckConfig$
|
|
9244
|
+
typeCheckConfig$Q(untrustedConfig, config, createWorkspace_ConfigPropertyMetadata);
|
|
8044
9245
|
return config;
|
|
8045
9246
|
}
|
|
8046
9247
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -8121,10 +9322,10 @@ const deleteWorkspace_ConfigPropertyMetadata = [
|
|
|
8121
9322
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8122
9323
|
];
|
|
8123
9324
|
const deleteWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, deleteWorkspace_ConfigPropertyMetadata);
|
|
8124
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
9325
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$Q(deleteWorkspace_ConfigPropertyMetadata);
|
|
8125
9326
|
function typeCheckConfig$c(untrustedConfig) {
|
|
8126
9327
|
const config = {};
|
|
8127
|
-
typeCheckConfig$
|
|
9328
|
+
typeCheckConfig$Q(untrustedConfig, config, deleteWorkspace_ConfigPropertyMetadata);
|
|
8128
9329
|
return config;
|
|
8129
9330
|
}
|
|
8130
9331
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -8222,14 +9423,14 @@ const getWorkspaceByIdOrName_ConfigPropertyMetadata = [
|
|
|
8222
9423
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8223
9424
|
];
|
|
8224
9425
|
const getWorkspaceByIdOrName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
8225
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
9426
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$Q(getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
8226
9427
|
function keyBuilder$f(luvio, config) {
|
|
8227
9428
|
const resourceParams = createResourceParams$b(config);
|
|
8228
9429
|
return keyBuilder$g(luvio, resourceParams);
|
|
8229
9430
|
}
|
|
8230
9431
|
function typeCheckConfig$b(untrustedConfig) {
|
|
8231
9432
|
const config = {};
|
|
8232
|
-
typeCheckConfig$
|
|
9433
|
+
typeCheckConfig$Q(untrustedConfig, config, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
8233
9434
|
return config;
|
|
8234
9435
|
}
|
|
8235
9436
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -8278,7 +9479,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
8278
9479
|
});
|
|
8279
9480
|
}
|
|
8280
9481
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
8281
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9482
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
8282
9483
|
}
|
|
8283
9484
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
8284
9485
|
const { luvio, config } = context;
|
|
@@ -8349,10 +9550,10 @@ const updateWorkspace_ConfigPropertyMetadata = [
|
|
|
8349
9550
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
8350
9551
|
];
|
|
8351
9552
|
const updateWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, updateWorkspace_ConfigPropertyMetadata);
|
|
8352
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
9553
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$Q(updateWorkspace_ConfigPropertyMetadata);
|
|
8353
9554
|
function typeCheckConfig$a(untrustedConfig) {
|
|
8354
9555
|
const config = {};
|
|
8355
|
-
typeCheckConfig$
|
|
9556
|
+
typeCheckConfig$Q(untrustedConfig, config, updateWorkspace_ConfigPropertyMetadata);
|
|
8356
9557
|
return config;
|
|
8357
9558
|
}
|
|
8358
9559
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -8420,7 +9621,7 @@ function validate$a(obj, path = 'WorkspaceAssetRepresentation') {
|
|
|
8420
9621
|
}
|
|
8421
9622
|
const obj_createdBy = obj.createdBy;
|
|
8422
9623
|
const path_createdBy = path + '.createdBy';
|
|
8423
|
-
const referencepath_createdByValidationError = validate$
|
|
9624
|
+
const referencepath_createdByValidationError = validate$C(obj_createdBy, path_createdBy);
|
|
8424
9625
|
if (referencepath_createdByValidationError !== null) {
|
|
8425
9626
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
8426
9627
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8533,10 +9734,10 @@ const createWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
8533
9734
|
generateParamConfigMetadata('assetUsageType', true, 2 /* Body */, 0 /* String */),
|
|
8534
9735
|
];
|
|
8535
9736
|
const createWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
8536
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
9737
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$Q(createWorkspaceAsset_ConfigPropertyMetadata);
|
|
8537
9738
|
function typeCheckConfig$9(untrustedConfig) {
|
|
8538
9739
|
const config = {};
|
|
8539
|
-
typeCheckConfig$
|
|
9740
|
+
typeCheckConfig$Q(untrustedConfig, config, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
8540
9741
|
return config;
|
|
8541
9742
|
}
|
|
8542
9743
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -8618,10 +9819,10 @@ const deleteWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
8618
9819
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8619
9820
|
];
|
|
8620
9821
|
const deleteWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
8621
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
9822
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$Q(deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
8622
9823
|
function typeCheckConfig$8(untrustedConfig) {
|
|
8623
9824
|
const config = {};
|
|
8624
|
-
typeCheckConfig$
|
|
9825
|
+
typeCheckConfig$Q(untrustedConfig, config, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
8625
9826
|
return config;
|
|
8626
9827
|
}
|
|
8627
9828
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -9005,14 +10206,14 @@ const getFlows_ConfigPropertyMetadata = [
|
|
|
9005
10206
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
9006
10207
|
];
|
|
9007
10208
|
const getFlows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getFlows_ConfigPropertyMetadata);
|
|
9008
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
10209
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$Q(getFlows_ConfigPropertyMetadata);
|
|
9009
10210
|
function keyBuilder$b(luvio, config) {
|
|
9010
10211
|
const resourceParams = createResourceParams$7(config);
|
|
9011
10212
|
return keyBuilder$c(luvio, resourceParams);
|
|
9012
10213
|
}
|
|
9013
10214
|
function typeCheckConfig$7(untrustedConfig) {
|
|
9014
10215
|
const config = {};
|
|
9015
|
-
typeCheckConfig$
|
|
10216
|
+
typeCheckConfig$Q(untrustedConfig, config, getFlows_ConfigPropertyMetadata);
|
|
9016
10217
|
return config;
|
|
9017
10218
|
}
|
|
9018
10219
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -9061,7 +10262,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
9061
10262
|
});
|
|
9062
10263
|
}
|
|
9063
10264
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
9064
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10265
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
9065
10266
|
}
|
|
9066
10267
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
9067
10268
|
const { luvio, config } = context;
|
|
@@ -9137,14 +10338,14 @@ const getFlowByName_ConfigPropertyMetadata = [
|
|
|
9137
10338
|
generateParamConfigMetadata('flowApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9138
10339
|
];
|
|
9139
10340
|
const getFlowByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getFlowByName_ConfigPropertyMetadata);
|
|
9140
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
10341
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$Q(getFlowByName_ConfigPropertyMetadata);
|
|
9141
10342
|
function keyBuilder$9(luvio, config) {
|
|
9142
10343
|
const resourceParams = createResourceParams$6(config);
|
|
9143
10344
|
return keyBuilder$a(luvio, resourceParams);
|
|
9144
10345
|
}
|
|
9145
10346
|
function typeCheckConfig$6(untrustedConfig) {
|
|
9146
10347
|
const config = {};
|
|
9147
|
-
typeCheckConfig$
|
|
10348
|
+
typeCheckConfig$Q(untrustedConfig, config, getFlowByName_ConfigPropertyMetadata);
|
|
9148
10349
|
return config;
|
|
9149
10350
|
}
|
|
9150
10351
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -9193,7 +10394,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
9193
10394
|
});
|
|
9194
10395
|
}
|
|
9195
10396
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
9196
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10397
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
9197
10398
|
}
|
|
9198
10399
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
9199
10400
|
const { luvio, config } = context;
|
|
@@ -9351,14 +10552,14 @@ const getSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
9351
10552
|
generateParamConfigMetadata('digestConfigOwner', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9352
10553
|
];
|
|
9353
10554
|
const getSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
9354
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
10555
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$Q(getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
9355
10556
|
function keyBuilder$6(luvio, config) {
|
|
9356
10557
|
const resourceParams = createResourceParams$5(config);
|
|
9357
10558
|
return keyBuilder$7(luvio, resourceParams);
|
|
9358
10559
|
}
|
|
9359
10560
|
function typeCheckConfig$5(untrustedConfig) {
|
|
9360
10561
|
const config = {};
|
|
9361
|
-
typeCheckConfig$
|
|
10562
|
+
typeCheckConfig$Q(untrustedConfig, config, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
9362
10563
|
return config;
|
|
9363
10564
|
}
|
|
9364
10565
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -9407,7 +10608,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
9407
10608
|
});
|
|
9408
10609
|
}
|
|
9409
10610
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
9410
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10611
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
9411
10612
|
}
|
|
9412
10613
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
9413
10614
|
const { luvio, config } = context;
|
|
@@ -9476,10 +10677,10 @@ const updateSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
9476
10677
|
generateParamConfigMetadata('scheduleType', true, 2 /* Body */, 0 /* String */),
|
|
9477
10678
|
];
|
|
9478
10679
|
const updateSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
9479
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
10680
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$Q(updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
9480
10681
|
function typeCheckConfig$4(untrustedConfig) {
|
|
9481
10682
|
const config = {};
|
|
9482
|
-
typeCheckConfig$
|
|
10683
|
+
typeCheckConfig$Q(untrustedConfig, config, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
9483
10684
|
return config;
|
|
9484
10685
|
}
|
|
9485
10686
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -9711,10 +10912,10 @@ const getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata = [
|
|
|
9711
10912
|
generateParamConfigMetadata('sortDirection', false, 2 /* Body */, 0 /* String */),
|
|
9712
10913
|
];
|
|
9713
10914
|
const getUnifiedAnalyticsLibraryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
9714
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
10915
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$Q(getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
9715
10916
|
function typeCheckConfig$3(untrustedConfig) {
|
|
9716
10917
|
const config = {};
|
|
9717
|
-
typeCheckConfig$
|
|
10918
|
+
typeCheckConfig$Q(untrustedConfig, config, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
9718
10919
|
const untrustedConfig_assetTypes = untrustedConfig.assetTypes;
|
|
9719
10920
|
if (ArrayIsArray$1(untrustedConfig_assetTypes)) {
|
|
9720
10921
|
const untrustedConfig_assetTypes_array = [];
|
|
@@ -9946,10 +11147,10 @@ const generateSFDriveCredentials_ConfigPropertyMetadata = [
|
|
|
9946
11147
|
generateParamConfigMetadata('path', true, 2 /* Body */, 0 /* String */),
|
|
9947
11148
|
];
|
|
9948
11149
|
const generateSFDriveCredentials_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
9949
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
11150
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$Q(generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
9950
11151
|
function typeCheckConfig$2(untrustedConfig) {
|
|
9951
11152
|
const config = {};
|
|
9952
|
-
typeCheckConfig$
|
|
11153
|
+
typeCheckConfig$Q(untrustedConfig, config, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
9953
11154
|
return config;
|
|
9954
11155
|
}
|
|
9955
11156
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -10120,14 +11321,14 @@ const initiateMarketplaceListingInstallation_ConfigPropertyMetadata = [
|
|
|
10120
11321
|
generateParamConfigMetadata('listingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10121
11322
|
];
|
|
10122
11323
|
const initiateMarketplaceListingInstallation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
10123
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
11324
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$Q(initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
10124
11325
|
function keyBuilder$2(luvio, config) {
|
|
10125
11326
|
const resourceParams = createResourceParams$1(config);
|
|
10126
11327
|
return keyBuilder$3(luvio, resourceParams);
|
|
10127
11328
|
}
|
|
10128
11329
|
function typeCheckConfig$1(untrustedConfig) {
|
|
10129
11330
|
const config = {};
|
|
10130
|
-
typeCheckConfig$
|
|
11331
|
+
typeCheckConfig$Q(untrustedConfig, config, initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
10131
11332
|
return config;
|
|
10132
11333
|
}
|
|
10133
11334
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -10176,7 +11377,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
10176
11377
|
});
|
|
10177
11378
|
}
|
|
10178
11379
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
10179
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11380
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
10180
11381
|
}
|
|
10181
11382
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
10182
11383
|
const { luvio, config } = context;
|
|
@@ -10354,14 +11555,14 @@ const getMarketplaceListingInstallationProgress_ConfigPropertyMetadata = [
|
|
|
10354
11555
|
generateParamConfigMetadata('installationId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10355
11556
|
];
|
|
10356
11557
|
const getMarketplaceListingInstallationProgress_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
10357
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
11558
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$Q(getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
10358
11559
|
function keyBuilder(luvio, config) {
|
|
10359
11560
|
const resourceParams = createResourceParams(config);
|
|
10360
11561
|
return keyBuilder$1(luvio, resourceParams);
|
|
10361
11562
|
}
|
|
10362
11563
|
function typeCheckConfig(untrustedConfig) {
|
|
10363
11564
|
const config = {};
|
|
10364
|
-
typeCheckConfig$
|
|
11565
|
+
typeCheckConfig$Q(untrustedConfig, config, getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
10365
11566
|
return config;
|
|
10366
11567
|
}
|
|
10367
11568
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -10410,7 +11611,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
10410
11611
|
});
|
|
10411
11612
|
}
|
|
10412
11613
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
10413
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11614
|
+
return buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
10414
11615
|
}
|
|
10415
11616
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
10416
11617
|
const { luvio, config } = context;
|
|
@@ -10435,4 +11636,4 @@ const getMarketplaceListingInstallationProgressAdapterFactory = (luvio) => funct
|
|
|
10435
11636
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
10436
11637
|
};
|
|
10437
11638
|
|
|
10438
|
-
export { createAnnotationAdapterFactory, createAssetSlackChannelAdapterFactory, createDashboardAdapterFactory, createLoglinesAdapterFactory, createRecordSharesAdapterFactory, createVisualizationAdapterFactory, createWorkspaceAdapterFactory, createWorkspaceAssetAdapterFactory, deleteAllSharesAdapterFactory, deleteDashboardAdapterFactory, deleteRecordShareAdapterFactory, deleteVisualizationAdapterFactory, deleteWorkspaceAdapterFactory, deleteWorkspaceAssetAdapterFactory, followAdapterFactory, generateSFDriveCredentialsAdapterFactory, getAnnotationsAdapterFactory, getAssetSlackChannelsAdapterFactory, getDashboardByNameAdapterFactory, getDashboardsAdapterFactory, getFlowByNameAdapterFactory, getFlowsAdapterFactory, getFollowedAssetsAdapterFactory, getFollowersAdapterFactory, getMarketplaceListingInstallationProgressAdapterFactory, getOrgAdapterFactory, getSharesAdapterFactory, getSlackAppInfoAdapterFactory, getSubscriptionDigestConfigAdapterFactory, getUnifiedAnalyticsLibraryAssetsAdapterFactory, getUniqueFollowerCountAdapterFactory, getVisualizationAdapterFactory, getVisualizationBundleAdapterFactory, getVisualizationsAdapterFactory, getWorkspaceByIdOrNameAdapterFactory, getWorkspacesAdapterFactory, initiateMarketplaceListingInstallationAdapterFactory, publishAdapterFactory, queryAssetsAdapterFactory, queryUsersAdapterFactory, unfollowAdapterFactory, updateDashboardAdapterFactory, updateRecordSharesAdapterFactory, updateSubscriptionDigestConfigAdapterFactory, updateVisualizationAdapterFactory, updateWorkspaceAdapterFactory };
|
|
11639
|
+
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 };
|