@salesforce/lds-adapters-analytics-unifiedanalytics 1.332.0-dev6 → 1.332.0-dev8
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 +1534 -577
- package/dist/es/es2018/types/src/generated/adapters/createDataAssetRequest.d.ts +24 -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 +5 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +10 -1
- 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/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 +2623 -1580
- package/src/raml/api.raml +302 -3
- package/src/raml/luvio.raml +34 -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$P, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$n, typeCheckConfig as typeCheckConfig$P } 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$l = 1000;
|
|
97
|
+
const VERSION$x = "3c943f1d2e5251ceef13b3e2fdb5f916";
|
|
98
|
+
function validate$U(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$z = 'TableauExternalMonitoringEventItemRepresentation';
|
|
122
|
+
function keyBuilder$18(luvio, config) {
|
|
123
|
+
return keyPrefix + '::' + RepresentationType$z + ':' + 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$18(luvio, keyParams);
|
|
130
130
|
}
|
|
131
|
-
function normalize$
|
|
131
|
+
function normalize$x(input, existing, path, luvio, store, timestamp) {
|
|
132
132
|
return input;
|
|
133
133
|
}
|
|
134
|
-
const select$
|
|
134
|
+
const select$1d = function TableauExternalMonitoringEventItemRepresentationSelect() {
|
|
135
135
|
return {
|
|
136
136
|
kind: 'Fragment',
|
|
137
|
-
version: VERSION$
|
|
137
|
+
version: VERSION$x,
|
|
138
138
|
private: [],
|
|
139
139
|
opaque: true
|
|
140
140
|
};
|
|
141
141
|
};
|
|
142
|
-
function equals$
|
|
142
|
+
function equals$x(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$x = function TableauExternalMonitoringEventItemRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
149
149
|
if (process.env.NODE_ENV !== 'production') {
|
|
150
|
-
const validateError = validate$
|
|
150
|
+
const validateError = validate$U(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$l;
|
|
157
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$x, "UnifiedAnalytics", VERSION$x, RepresentationType$z, equals$x);
|
|
158
158
|
return createLink(key);
|
|
159
159
|
};
|
|
160
|
-
function getTypeCacheKeys$
|
|
160
|
+
function getTypeCacheKeys$x(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$z,
|
|
166
166
|
mergeable: false
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
function select$
|
|
171
|
-
return select$
|
|
170
|
+
function select$1c(luvio, params) {
|
|
171
|
+
return select$1d();
|
|
172
172
|
}
|
|
173
|
-
function getResponseCacheKeys$
|
|
174
|
-
getTypeCacheKeys$
|
|
173
|
+
function getResponseCacheKeys$O(storeKeyMap, luvio, resourceParams, response) {
|
|
174
|
+
getTypeCacheKeys$x(storeKeyMap, luvio, response);
|
|
175
175
|
}
|
|
176
|
-
function ingestSuccess$
|
|
176
|
+
function ingestSuccess$H(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$x, body);
|
|
180
180
|
const snapshot = luvio.storeLookup({
|
|
181
181
|
recordId: key,
|
|
182
|
-
node: select$
|
|
182
|
+
node: select$1c(),
|
|
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$O(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$O = '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$O, publish_ConfigPropertyMetadata);
|
|
212
|
+
const createResourceParams$O = /*#__PURE__*/ createResourceParams$P(publish_ConfigPropertyMetadata);
|
|
213
|
+
function typeCheckConfig$O(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$O(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$O(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$O(luvio, config, options) {
|
|
240
|
+
const resourceParams = createResourceParams$O(config);
|
|
241
|
+
const request = createResourceRequest$O(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$H(luvio, resourceParams, response);
|
|
246
246
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
247
247
|
}, () => {
|
|
248
248
|
const cache = new StoreKeyMap();
|
|
249
|
-
getResponseCacheKeys$
|
|
249
|
+
getResponseCacheKeys$O(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$O(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$O(luvio, config);
|
|
265
265
|
};
|
|
266
266
|
};
|
|
267
267
|
|
|
268
|
-
function validate$
|
|
268
|
+
function validate$T(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$S(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$R(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$Q(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$R(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$P(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$R(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$Q(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$O(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$P(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$N(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$M(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$N(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$L(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$M(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$K(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$O(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$L(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$M(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$M(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$J(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$K(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$k = 1000;
|
|
1691
|
+
const VERSION$w = "bacc25da56cffff8126d9bdafc471a37";
|
|
1692
|
+
function validate$I(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$T(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$S(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$J(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$y = 'AnnotationRepresentation';
|
|
1742
|
+
function keyBuilder$17(luvio, config) {
|
|
1743
|
+
return keyPrefix + '::' + RepresentationType$y + ':' + 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$17(luvio, keyParams);
|
|
1750
1750
|
}
|
|
1751
|
-
function normalize$
|
|
1751
|
+
function normalize$w(input, existing, path, luvio, store, timestamp) {
|
|
1752
1752
|
return input;
|
|
1753
1753
|
}
|
|
1754
|
-
const select$
|
|
1754
|
+
const select$1b = function AnnotationRepresentationSelect() {
|
|
1755
1755
|
return {
|
|
1756
1756
|
kind: 'Fragment',
|
|
1757
|
-
version: VERSION$
|
|
1757
|
+
version: VERSION$w,
|
|
1758
1758
|
private: [],
|
|
1759
1759
|
opaque: true
|
|
1760
1760
|
};
|
|
1761
1761
|
};
|
|
1762
|
-
function equals$
|
|
1762
|
+
function equals$w(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$w = function AnnotationRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1769
1769
|
if (process.env.NODE_ENV !== 'production') {
|
|
1770
|
-
const validateError = validate$
|
|
1770
|
+
const validateError = validate$I(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$k;
|
|
1777
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$w, "UnifiedAnalytics", VERSION$w, RepresentationType$y, equals$w);
|
|
1778
1778
|
return createLink(key);
|
|
1779
1779
|
};
|
|
1780
|
-
function getTypeCacheKeys$
|
|
1780
|
+
function getTypeCacheKeys$w(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$y,
|
|
1786
1786
|
mergeable: false
|
|
1787
1787
|
});
|
|
1788
1788
|
}
|
|
1789
1789
|
|
|
1790
|
-
const TTL$
|
|
1791
|
-
const VERSION$
|
|
1792
|
-
function validate$
|
|
1790
|
+
const TTL$j = 1000;
|
|
1791
|
+
const VERSION$v = "a80c8e970184cc7789e13f69392d6203";
|
|
1792
|
+
function validate$H(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$x = 'AnnotationCollectionRepresentation';
|
|
1818
|
+
function normalize$v(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$w(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$1a = function AnnotationCollectionRepresentationSelect() {
|
|
1838
1838
|
return {
|
|
1839
1839
|
kind: 'Fragment',
|
|
1840
|
-
version: VERSION$
|
|
1840
|
+
version: VERSION$v,
|
|
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$1b()
|
|
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$v(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$v = function AnnotationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1875
1875
|
if (process.env.NODE_ENV !== 'production') {
|
|
1876
|
-
const validateError = validate$
|
|
1876
|
+
const validateError = validate$H(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$j;
|
|
1883
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$v, "UnifiedAnalytics", VERSION$v, RepresentationType$x, equals$v);
|
|
1884
1884
|
return createLink(key);
|
|
1885
1885
|
};
|
|
1886
|
-
function getTypeCacheKeys$
|
|
1886
|
+
function getTypeCacheKeys$v(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$x,
|
|
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$w(rootKeySet, luvio, input.annotations[i]);
|
|
1897
1897
|
}
|
|
1898
1898
|
}
|
|
1899
1899
|
|
|
1900
|
-
function select$
|
|
1901
|
-
return select$
|
|
1900
|
+
function select$19(luvio, params) {
|
|
1901
|
+
return select$1a();
|
|
1902
1902
|
}
|
|
1903
|
-
function keyBuilder
|
|
1903
|
+
function keyBuilder$16(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$N(storeKeyMap, luvio, resourceParams, response) {
|
|
1907
|
+
getTypeCacheKeys$v(storeKeyMap, luvio, response, () => keyBuilder$16(luvio, resourceParams));
|
|
1908
1908
|
}
|
|
1909
|
-
function ingestSuccess$
|
|
1909
|
+
function ingestSuccess$G(luvio, resourceParams, response, snapshotRefresh) {
|
|
1910
1910
|
const { body } = response;
|
|
1911
|
-
const key = keyBuilder
|
|
1912
|
-
luvio.storeIngest(key, ingest$
|
|
1911
|
+
const key = keyBuilder$16(luvio, resourceParams);
|
|
1912
|
+
luvio.storeIngest(key, ingest$v, body);
|
|
1913
1913
|
const snapshot = luvio.storeLookup({
|
|
1914
1914
|
recordId: key,
|
|
1915
|
-
node: select$
|
|
1915
|
+
node: select$19(),
|
|
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$m(luvio, params, error, snapshotRefresh) {
|
|
1927
|
+
const key = keyBuilder$16(luvio, params);
|
|
1928
1928
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1929
1929
|
const storeMetadataParams = {
|
|
1930
|
-
ttl: TTL$
|
|
1930
|
+
ttl: TTL$j,
|
|
1931
1931
|
namespace: keyPrefix,
|
|
1932
|
-
version: VERSION$
|
|
1933
|
-
representationName: RepresentationType$
|
|
1932
|
+
version: VERSION$v,
|
|
1933
|
+
representationName: RepresentationType$x
|
|
1934
1934
|
};
|
|
1935
1935
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1936
1936
|
return errorSnapshot;
|
|
1937
1937
|
}
|
|
1938
|
-
function createResourceRequest$
|
|
1938
|
+
function createResourceRequest$N(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$N = '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$N, getAnnotations_ConfigPropertyMetadata);
|
|
1961
|
+
const createResourceParams$N = /*#__PURE__*/ createResourceParams$P(getAnnotations_ConfigPropertyMetadata);
|
|
1962
|
+
function keyBuilder$15(luvio, config) {
|
|
1963
|
+
const resourceParams = createResourceParams$N(config);
|
|
1964
|
+
return keyBuilder$16(luvio, resourceParams);
|
|
1965
1965
|
}
|
|
1966
|
-
function typeCheckConfig$
|
|
1966
|
+
function typeCheckConfig$N(untrustedConfig) {
|
|
1967
1967
|
const config = {};
|
|
1968
|
-
typeCheckConfig$
|
|
1968
|
+
typeCheckConfig$P(untrustedConfig, config, getAnnotations_ConfigPropertyMetadata);
|
|
1969
1969
|
return config;
|
|
1970
1970
|
}
|
|
1971
|
-
function validateAdapterConfig$
|
|
1971
|
+
function validateAdapterConfig$N(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$N(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$m(luvio, config) {
|
|
1985
|
+
createResourceParams$N(config);
|
|
1986
|
+
return select$19();
|
|
1987
1987
|
}
|
|
1988
|
-
function onFetchResponseSuccess$
|
|
1989
|
-
const snapshot = ingestSuccess$
|
|
1988
|
+
function onFetchResponseSuccess$m(luvio, config, resourceParams, response) {
|
|
1989
|
+
const snapshot = ingestSuccess$G(luvio, resourceParams, response, {
|
|
1990
1990
|
config,
|
|
1991
|
-
resolve: () => buildNetworkSnapshot$
|
|
1991
|
+
resolve: () => buildNetworkSnapshot$N(luvio, config, snapshotRefreshOptions)
|
|
1992
1992
|
});
|
|
1993
1993
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1994
1994
|
}
|
|
1995
|
-
function onFetchResponseError$
|
|
1996
|
-
const snapshot = ingestError$
|
|
1995
|
+
function onFetchResponseError$m(luvio, config, resourceParams, response) {
|
|
1996
|
+
const snapshot = ingestError$m(luvio, resourceParams, response, {
|
|
1997
1997
|
config,
|
|
1998
|
-
resolve: () => buildNetworkSnapshot$
|
|
1998
|
+
resolve: () => buildNetworkSnapshot$N(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$N(luvio, config, options) {
|
|
2003
|
+
const resourceParams = createResourceParams$N(config);
|
|
2004
|
+
const request = createResourceRequest$N(resourceParams);
|
|
2005
2005
|
return luvio.dispatchResourceRequest(request, options)
|
|
2006
2006
|
.then((response) => {
|
|
2007
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2007
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$m(luvio, config, resourceParams, response), () => {
|
|
2008
2008
|
const cache = new StoreKeyMap();
|
|
2009
|
-
getResponseCacheKeys$
|
|
2009
|
+
getResponseCacheKeys$N(cache, luvio, resourceParams, response.body);
|
|
2010
2010
|
return cache;
|
|
2011
2011
|
});
|
|
2012
2012
|
}, (response) => {
|
|
2013
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2013
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$m(luvio, config, resourceParams, response));
|
|
2014
2014
|
});
|
|
2015
2015
|
}
|
|
2016
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2017
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2016
|
+
function buildNetworkSnapshotCachePolicy$m(context, coercedAdapterRequestContext) {
|
|
2017
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$N, undefined, false);
|
|
2018
2018
|
}
|
|
2019
|
-
function buildCachedSnapshotCachePolicy$
|
|
2019
|
+
function buildCachedSnapshotCachePolicy$m(context, storeLookup) {
|
|
2020
2020
|
const { luvio, config } = context;
|
|
2021
2021
|
const selector = {
|
|
2022
|
-
recordId: keyBuilder$
|
|
2023
|
-
node: adapterFragment$
|
|
2022
|
+
recordId: keyBuilder$15(luvio, config),
|
|
2023
|
+
node: adapterFragment$m(luvio, config),
|
|
2024
2024
|
variables: {},
|
|
2025
2025
|
};
|
|
2026
2026
|
const cacheSnapshot = storeLookup(selector, {
|
|
2027
2027
|
config,
|
|
2028
|
-
resolve: () => buildNetworkSnapshot$
|
|
2028
|
+
resolve: () => buildNetworkSnapshot$N(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$N(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$m, buildNetworkSnapshotCachePolicy$m);
|
|
2040
2040
|
};
|
|
2041
2041
|
|
|
2042
|
-
function select$
|
|
2043
|
-
return select$
|
|
2042
|
+
function select$18(luvio, params) {
|
|
2043
|
+
return select$1b();
|
|
2044
2044
|
}
|
|
2045
|
-
function getResponseCacheKeys$
|
|
2046
|
-
getTypeCacheKeys$
|
|
2045
|
+
function getResponseCacheKeys$M(storeKeyMap, luvio, resourceParams, response) {
|
|
2046
|
+
getTypeCacheKeys$w(storeKeyMap, luvio, response);
|
|
2047
2047
|
}
|
|
2048
|
-
function ingestSuccess$
|
|
2048
|
+
function ingestSuccess$F(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$w, body);
|
|
2052
2052
|
const snapshot = luvio.storeLookup({
|
|
2053
2053
|
recordId: key,
|
|
2054
|
-
node: select$
|
|
2054
|
+
node: select$18(),
|
|
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$M(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$M = '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$M, createAnnotation_ConfigPropertyMetadata);
|
|
2089
|
+
const createResourceParams$M = /*#__PURE__*/ createResourceParams$P(createAnnotation_ConfigPropertyMetadata);
|
|
2090
|
+
function typeCheckConfig$M(untrustedConfig) {
|
|
2091
2091
|
const config = {};
|
|
2092
|
-
typeCheckConfig$
|
|
2092
|
+
typeCheckConfig$P(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$M(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$M(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$M(luvio, config, options) {
|
|
2113
|
+
const resourceParams = createResourceParams$M(config);
|
|
2114
|
+
const request = createResourceRequest$M(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$F(luvio, resourceParams, response);
|
|
2119
2119
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2120
2120
|
}, () => {
|
|
2121
2121
|
const cache = new StoreKeyMap();
|
|
2122
|
-
getResponseCacheKeys$
|
|
2122
|
+
getResponseCacheKeys$M(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$M(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$M(luvio, config);
|
|
2138
2138
|
};
|
|
2139
2139
|
};
|
|
2140
2140
|
|
|
2141
|
-
const TTL$
|
|
2142
|
-
const VERSION$
|
|
2143
|
-
function validate$
|
|
2141
|
+
const TTL$i = 5000;
|
|
2142
|
+
const VERSION$u = "505a83d97fefa7ce68ec6512264b0543";
|
|
2143
|
+
function validate$G(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$w = 'SlackAppInfoRepresentation';
|
|
2184
|
+
function normalize$u(input, existing, path, luvio, store, timestamp) {
|
|
2185
2185
|
return input;
|
|
2186
2186
|
}
|
|
2187
|
-
const select
|
|
2187
|
+
const select$17 = function SlackAppInfoRepresentationSelect() {
|
|
2188
2188
|
return {
|
|
2189
2189
|
kind: 'Fragment',
|
|
2190
|
-
version: VERSION$
|
|
2190
|
+
version: VERSION$u,
|
|
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$u(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$u = function SlackAppInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2251
2251
|
if (process.env.NODE_ENV !== 'production') {
|
|
2252
|
-
const validateError = validate$
|
|
2252
|
+
const validateError = validate$G(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$i;
|
|
2259
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$u, "UnifiedAnalytics", VERSION$u, RepresentationType$w, equals$u);
|
|
2260
2260
|
return createLink(key);
|
|
2261
2261
|
};
|
|
2262
|
-
function getTypeCacheKeys$
|
|
2262
|
+
function getTypeCacheKeys$u(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$w,
|
|
2268
2268
|
mergeable: false
|
|
2269
2269
|
});
|
|
2270
2270
|
}
|
|
2271
2271
|
|
|
2272
|
-
function select$
|
|
2273
|
-
return select
|
|
2272
|
+
function select$16(luvio, params) {
|
|
2273
|
+
return select$17();
|
|
2274
2274
|
}
|
|
2275
|
-
function keyBuilder$
|
|
2275
|
+
function keyBuilder$14(luvio, params) {
|
|
2276
2276
|
return keyPrefix + '::SlackAppInfoRepresentation:(' + ')';
|
|
2277
2277
|
}
|
|
2278
|
-
function getResponseCacheKeys$
|
|
2279
|
-
getTypeCacheKeys$
|
|
2278
|
+
function getResponseCacheKeys$L(storeKeyMap, luvio, resourceParams, response) {
|
|
2279
|
+
getTypeCacheKeys$u(storeKeyMap, luvio, response, () => keyBuilder$14());
|
|
2280
2280
|
}
|
|
2281
|
-
function ingestSuccess$
|
|
2281
|
+
function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
|
|
2282
2282
|
const { body } = response;
|
|
2283
|
-
const key = keyBuilder$
|
|
2284
|
-
luvio.storeIngest(key, ingest$
|
|
2283
|
+
const key = keyBuilder$14();
|
|
2284
|
+
luvio.storeIngest(key, ingest$u, body);
|
|
2285
2285
|
const snapshot = luvio.storeLookup({
|
|
2286
2286
|
recordId: key,
|
|
2287
|
-
node: select$
|
|
2287
|
+
node: select$16(),
|
|
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$l(luvio, params, error, snapshotRefresh) {
|
|
2299
|
+
const key = keyBuilder$14();
|
|
2300
2300
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2301
2301
|
const storeMetadataParams = {
|
|
2302
|
-
ttl: TTL$
|
|
2302
|
+
ttl: TTL$i,
|
|
2303
2303
|
namespace: keyPrefix,
|
|
2304
|
-
version: VERSION$
|
|
2305
|
-
representationName: RepresentationType$
|
|
2304
|
+
version: VERSION$u,
|
|
2305
|
+
representationName: RepresentationType$w
|
|
2306
2306
|
};
|
|
2307
2307
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2308
2308
|
return errorSnapshot;
|
|
2309
2309
|
}
|
|
2310
|
-
function createResourceRequest$
|
|
2310
|
+
function createResourceRequest$L(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$L = '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$L, getSlackAppInfo_ConfigPropertyMetadata);
|
|
2327
|
+
const createResourceParams$L = /*#__PURE__*/ createResourceParams$P(getSlackAppInfo_ConfigPropertyMetadata);
|
|
2328
|
+
function keyBuilder$13(luvio, config) {
|
|
2329
|
+
createResourceParams$L(config);
|
|
2330
|
+
return keyBuilder$14();
|
|
2331
2331
|
}
|
|
2332
|
-
function typeCheckConfig$
|
|
2332
|
+
function typeCheckConfig$L(untrustedConfig) {
|
|
2333
2333
|
const config = {};
|
|
2334
2334
|
return config;
|
|
2335
2335
|
}
|
|
2336
|
-
function validateAdapterConfig$
|
|
2336
|
+
function validateAdapterConfig$L(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$L();
|
|
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$l(luvio, config) {
|
|
2350
|
+
createResourceParams$L(config);
|
|
2351
|
+
return select$16();
|
|
2352
2352
|
}
|
|
2353
|
-
function onFetchResponseSuccess$
|
|
2354
|
-
const snapshot = ingestSuccess$
|
|
2353
|
+
function onFetchResponseSuccess$l(luvio, config, resourceParams, response) {
|
|
2354
|
+
const snapshot = ingestSuccess$E(luvio, resourceParams, response, {
|
|
2355
2355
|
config,
|
|
2356
|
-
resolve: () => buildNetworkSnapshot$
|
|
2356
|
+
resolve: () => buildNetworkSnapshot$L(luvio, config, snapshotRefreshOptions)
|
|
2357
2357
|
});
|
|
2358
2358
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2359
2359
|
}
|
|
2360
|
-
function onFetchResponseError$
|
|
2361
|
-
const snapshot = ingestError$
|
|
2360
|
+
function onFetchResponseError$l(luvio, config, resourceParams, response) {
|
|
2361
|
+
const snapshot = ingestError$l(luvio, resourceParams, response, {
|
|
2362
2362
|
config,
|
|
2363
|
-
resolve: () => buildNetworkSnapshot$
|
|
2363
|
+
resolve: () => buildNetworkSnapshot$L(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$L(luvio, config, options) {
|
|
2368
|
+
const resourceParams = createResourceParams$L(config);
|
|
2369
|
+
const request = createResourceRequest$L();
|
|
2370
2370
|
return luvio.dispatchResourceRequest(request, options)
|
|
2371
2371
|
.then((response) => {
|
|
2372
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2372
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$l(luvio, config, resourceParams, response), () => {
|
|
2373
2373
|
const cache = new StoreKeyMap();
|
|
2374
|
-
getResponseCacheKeys$
|
|
2374
|
+
getResponseCacheKeys$L(cache, luvio, resourceParams, response.body);
|
|
2375
2375
|
return cache;
|
|
2376
2376
|
});
|
|
2377
2377
|
}, (response) => {
|
|
2378
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2378
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$l(luvio, config, resourceParams, response));
|
|
2379
2379
|
});
|
|
2380
2380
|
}
|
|
2381
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2382
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2381
|
+
function buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext) {
|
|
2382
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$L, undefined, false);
|
|
2383
2383
|
}
|
|
2384
|
-
function buildCachedSnapshotCachePolicy$
|
|
2384
|
+
function buildCachedSnapshotCachePolicy$l(context, storeLookup) {
|
|
2385
2385
|
const { luvio, config } = context;
|
|
2386
2386
|
const selector = {
|
|
2387
|
-
recordId: keyBuilder$
|
|
2388
|
-
node: adapterFragment$
|
|
2387
|
+
recordId: keyBuilder$13(luvio, config),
|
|
2388
|
+
node: adapterFragment$l(luvio, config),
|
|
2389
2389
|
variables: {},
|
|
2390
2390
|
};
|
|
2391
2391
|
const cacheSnapshot = storeLookup(selector, {
|
|
2392
2392
|
config,
|
|
2393
|
-
resolve: () => buildNetworkSnapshot$
|
|
2393
|
+
resolve: () => buildNetworkSnapshot$L(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$L(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$l, buildNetworkSnapshotCachePolicy$l);
|
|
2405
2405
|
};
|
|
2406
2406
|
|
|
2407
|
-
function validate$
|
|
2407
|
+
function validate$F(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$E(obj, path = 'AnalyticsAssetsQueryResultsWorkspaceRepresentation') {
|
|
2443
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$F(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$D(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation') {
|
|
2456
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$F(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$E(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$h = 500;
|
|
2528
|
+
const VERSION$t = "ed60d9cca169a3e5ed897c67d11a23db";
|
|
2529
|
+
function validate$C(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$D(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$v = 'AnalyticsAssetsQueryResultsRepresentation';
|
|
2568
|
+
function keyBuilder$12(luvio, config) {
|
|
2569
|
+
return keyPrefix + '::' + RepresentationType$v + ':' + 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$12(luvio, keyParams);
|
|
2576
2576
|
}
|
|
2577
|
-
function normalize$
|
|
2577
|
+
function normalize$t(input, existing, path, luvio, store, timestamp) {
|
|
2578
2578
|
return input;
|
|
2579
2579
|
}
|
|
2580
|
-
const select$
|
|
2580
|
+
const select$15 = function AnalyticsAssetsQueryResultsRepresentationSelect() {
|
|
2581
2581
|
return {
|
|
2582
2582
|
kind: 'Fragment',
|
|
2583
|
-
version: VERSION$
|
|
2583
|
+
version: VERSION$t,
|
|
2584
2584
|
private: [],
|
|
2585
2585
|
opaque: true
|
|
2586
2586
|
};
|
|
2587
2587
|
};
|
|
2588
|
-
function equals$
|
|
2588
|
+
function equals$t(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$t = function AnalyticsAssetsQueryResultsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2595
2595
|
if (process.env.NODE_ENV !== 'production') {
|
|
2596
|
-
const validateError = validate$
|
|
2596
|
+
const validateError = validate$C(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$h;
|
|
2603
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$t, "UnifiedAnalytics", VERSION$t, RepresentationType$v, equals$t);
|
|
2604
2604
|
return createLink(key);
|
|
2605
2605
|
};
|
|
2606
|
-
function getTypeCacheKeys$
|
|
2606
|
+
function getTypeCacheKeys$t(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$v,
|
|
2612
2612
|
mergeable: false
|
|
2613
2613
|
});
|
|
2614
2614
|
}
|
|
2615
2615
|
|
|
2616
|
-
function select$
|
|
2617
|
-
return select$
|
|
2616
|
+
function select$14(luvio, params) {
|
|
2617
|
+
return select$15();
|
|
2618
2618
|
}
|
|
2619
|
-
function getResponseCacheKeys$
|
|
2620
|
-
getTypeCacheKeys$
|
|
2619
|
+
function getResponseCacheKeys$K(storeKeyMap, luvio, resourceParams, response) {
|
|
2620
|
+
getTypeCacheKeys$t(storeKeyMap, luvio, response);
|
|
2621
2621
|
}
|
|
2622
|
-
function ingestSuccess$
|
|
2622
|
+
function ingestSuccess$D(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$t, body);
|
|
2626
2626
|
const snapshot = luvio.storeLookup({
|
|
2627
2627
|
recordId: key,
|
|
2628
|
-
node: select$
|
|
2628
|
+
node: select$14(),
|
|
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$K(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$K = '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$K, queryAssets_ConfigPropertyMetadata);
|
|
2663
|
+
const createResourceParams$K = /*#__PURE__*/ createResourceParams$P(queryAssets_ConfigPropertyMetadata);
|
|
2664
|
+
function typeCheckConfig$K(untrustedConfig) {
|
|
2665
2665
|
const config = {};
|
|
2666
|
-
typeCheckConfig$
|
|
2666
|
+
typeCheckConfig$P(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$K(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$K(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$K(luvio, config, options) {
|
|
2698
|
+
const resourceParams = createResourceParams$K(config);
|
|
2699
|
+
const request = createResourceRequest$K(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$D(luvio, resourceParams, response);
|
|
2704
2704
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2705
2705
|
}, () => {
|
|
2706
2706
|
const cache = new StoreKeyMap();
|
|
2707
|
-
getResponseCacheKeys$
|
|
2707
|
+
getResponseCacheKeys$K(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$K(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$K(luvio, config);
|
|
2723
2723
|
};
|
|
2724
2724
|
};
|
|
2725
2725
|
|
|
2726
|
-
const VERSION$
|
|
2727
|
-
function validate$
|
|
2726
|
+
const VERSION$s = "948ac50067b64bee8680b553b1e19a09";
|
|
2727
|
+
function validate$B(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$u = 'DashboardRepresentation';
|
|
2836
|
+
function keyBuilder$11(luvio, config) {
|
|
2837
|
+
return keyPrefix + '::' + RepresentationType$u + ':' + 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$11(luvio, keyParams);
|
|
2844
2844
|
}
|
|
2845
|
-
function normalize$
|
|
2845
|
+
function normalize$s(input, existing, path, luvio, store, timestamp) {
|
|
2846
2846
|
return input;
|
|
2847
2847
|
}
|
|
2848
|
-
const select$
|
|
2848
|
+
const select$13 = function DashboardRepresentationSelect() {
|
|
2849
2849
|
return {
|
|
2850
2850
|
kind: 'Fragment',
|
|
2851
|
-
version: VERSION$
|
|
2851
|
+
version: VERSION$s,
|
|
2852
2852
|
private: [],
|
|
2853
2853
|
opaque: true
|
|
2854
2854
|
};
|
|
2855
2855
|
};
|
|
2856
|
-
function equals$
|
|
2856
|
+
function equals$s(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$s = function DashboardRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2863
2863
|
if (process.env.NODE_ENV !== 'production') {
|
|
2864
|
-
const validateError = validate$
|
|
2864
|
+
const validateError = validate$B(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$s, "UnifiedAnalytics", VERSION$s, RepresentationType$u, equals$s);
|
|
2872
2872
|
return createLink(key);
|
|
2873
2873
|
};
|
|
2874
|
-
function getTypeCacheKeys$
|
|
2874
|
+
function getTypeCacheKeys$s(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$u,
|
|
2880
2880
|
mergeable: false
|
|
2881
2881
|
});
|
|
2882
2882
|
}
|
|
2883
2883
|
|
|
2884
|
-
const VERSION$
|
|
2885
|
-
function validate$
|
|
2884
|
+
const VERSION$r = "962823130e6a9315240ef0e0f0c5f757";
|
|
2885
|
+
function validate$A(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$t = 'DashboardCollectionRepresentation';
|
|
2906
|
+
function normalize$r(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$s(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$12 = function DashboardCollectionRepresentationSelect() {
|
|
2926
2926
|
return {
|
|
2927
2927
|
kind: 'Fragment',
|
|
2928
|
-
version: VERSION$
|
|
2928
|
+
version: VERSION$r,
|
|
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$13()
|
|
2936
2936
|
}
|
|
2937
2937
|
]
|
|
2938
2938
|
};
|
|
2939
2939
|
};
|
|
2940
|
-
function equals$
|
|
2940
|
+
function equals$r(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$r = function DashboardCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2954
2954
|
if (process.env.NODE_ENV !== 'production') {
|
|
2955
|
-
const validateError = validate$
|
|
2955
|
+
const validateError = validate$A(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$r, "UnifiedAnalytics", VERSION$r, RepresentationType$t, equals$r);
|
|
2963
2963
|
return createLink(key);
|
|
2964
2964
|
};
|
|
2965
|
-
function getTypeCacheKeys$
|
|
2965
|
+
function getTypeCacheKeys$r(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$t,
|
|
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$s(rootKeySet, luvio, input.dashboards[i]);
|
|
2976
2976
|
}
|
|
2977
2977
|
}
|
|
2978
2978
|
|
|
2979
|
-
function select$
|
|
2980
|
-
return select$
|
|
2979
|
+
function select$11(luvio, params) {
|
|
2980
|
+
return select$12();
|
|
2981
2981
|
}
|
|
2982
|
-
function keyBuilder$
|
|
2982
|
+
function keyBuilder$10(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$J(storeKeyMap, luvio, resourceParams, response) {
|
|
2986
|
+
getTypeCacheKeys$r(storeKeyMap, luvio, response, () => keyBuilder$10(luvio, resourceParams));
|
|
2987
2987
|
}
|
|
2988
|
-
function ingestSuccess$
|
|
2988
|
+
function ingestSuccess$C(luvio, resourceParams, response, snapshotRefresh) {
|
|
2989
2989
|
const { body } = response;
|
|
2990
|
-
const key = keyBuilder$
|
|
2991
|
-
luvio.storeIngest(key, ingest$
|
|
2990
|
+
const key = keyBuilder$10(luvio, resourceParams);
|
|
2991
|
+
luvio.storeIngest(key, ingest$r, body);
|
|
2992
2992
|
const snapshot = luvio.storeLookup({
|
|
2993
2993
|
recordId: key,
|
|
2994
|
-
node: select$
|
|
2994
|
+
node: select$11(),
|
|
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$k(luvio, params, error, snapshotRefresh) {
|
|
3006
|
+
const key = keyBuilder$10(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$J(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$J = '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$J, getDashboards_ConfigPropertyMetadata);
|
|
3031
|
+
const createResourceParams$J = /*#__PURE__*/ createResourceParams$P(getDashboards_ConfigPropertyMetadata);
|
|
3032
|
+
function keyBuilder$$(luvio, config) {
|
|
3033
|
+
const resourceParams = createResourceParams$J(config);
|
|
3034
|
+
return keyBuilder$10(luvio, resourceParams);
|
|
3035
3035
|
}
|
|
3036
|
-
function typeCheckConfig$
|
|
3036
|
+
function typeCheckConfig$J(untrustedConfig) {
|
|
3037
3037
|
const config = {};
|
|
3038
|
-
typeCheckConfig$
|
|
3038
|
+
typeCheckConfig$P(untrustedConfig, config, getDashboards_ConfigPropertyMetadata);
|
|
3039
3039
|
return config;
|
|
3040
3040
|
}
|
|
3041
|
-
function validateAdapterConfig$
|
|
3041
|
+
function validateAdapterConfig$J(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$J(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$k(luvio, config) {
|
|
3055
|
+
createResourceParams$J(config);
|
|
3056
|
+
return select$11();
|
|
3057
3057
|
}
|
|
3058
|
-
function onFetchResponseSuccess$
|
|
3059
|
-
const snapshot = ingestSuccess$
|
|
3058
|
+
function onFetchResponseSuccess$k(luvio, config, resourceParams, response) {
|
|
3059
|
+
const snapshot = ingestSuccess$C(luvio, resourceParams, response, {
|
|
3060
3060
|
config,
|
|
3061
|
-
resolve: () => buildNetworkSnapshot$
|
|
3061
|
+
resolve: () => buildNetworkSnapshot$J(luvio, config, snapshotRefreshOptions)
|
|
3062
3062
|
});
|
|
3063
3063
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3064
3064
|
}
|
|
3065
|
-
function onFetchResponseError$
|
|
3066
|
-
const snapshot = ingestError$
|
|
3065
|
+
function onFetchResponseError$k(luvio, config, resourceParams, response) {
|
|
3066
|
+
const snapshot = ingestError$k(luvio, resourceParams, response, {
|
|
3067
3067
|
config,
|
|
3068
|
-
resolve: () => buildNetworkSnapshot$
|
|
3068
|
+
resolve: () => buildNetworkSnapshot$J(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$J(luvio, config, options) {
|
|
3073
|
+
const resourceParams = createResourceParams$J(config);
|
|
3074
|
+
const request = createResourceRequest$J(resourceParams);
|
|
3075
3075
|
return luvio.dispatchResourceRequest(request, options)
|
|
3076
3076
|
.then((response) => {
|
|
3077
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3077
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$k(luvio, config, resourceParams, response), () => {
|
|
3078
3078
|
const cache = new StoreKeyMap();
|
|
3079
|
-
getResponseCacheKeys$
|
|
3079
|
+
getResponseCacheKeys$J(cache, luvio, resourceParams, response.body);
|
|
3080
3080
|
return cache;
|
|
3081
3081
|
});
|
|
3082
3082
|
}, (response) => {
|
|
3083
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3083
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$k(luvio, config, resourceParams, response));
|
|
3084
3084
|
});
|
|
3085
3085
|
}
|
|
3086
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3087
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3086
|
+
function buildNetworkSnapshotCachePolicy$k(context, coercedAdapterRequestContext) {
|
|
3087
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$J, undefined, false);
|
|
3088
3088
|
}
|
|
3089
|
-
function buildCachedSnapshotCachePolicy$
|
|
3089
|
+
function buildCachedSnapshotCachePolicy$k(context, storeLookup) {
|
|
3090
3090
|
const { luvio, config } = context;
|
|
3091
3091
|
const selector = {
|
|
3092
|
-
recordId: keyBuilder
|
|
3093
|
-
node: adapterFragment$
|
|
3092
|
+
recordId: keyBuilder$$(luvio, config),
|
|
3093
|
+
node: adapterFragment$k(luvio, config),
|
|
3094
3094
|
variables: {},
|
|
3095
3095
|
};
|
|
3096
3096
|
const cacheSnapshot = storeLookup(selector, {
|
|
3097
3097
|
config,
|
|
3098
|
-
resolve: () => buildNetworkSnapshot$
|
|
3098
|
+
resolve: () => buildNetworkSnapshot$J(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$J(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$k, buildNetworkSnapshotCachePolicy$k);
|
|
3110
3110
|
};
|
|
3111
3111
|
|
|
3112
|
-
function select$
|
|
3113
|
-
return select$
|
|
3112
|
+
function select$10(luvio, params) {
|
|
3113
|
+
return select$13();
|
|
3114
3114
|
}
|
|
3115
|
-
function getResponseCacheKeys$
|
|
3116
|
-
getTypeCacheKeys$
|
|
3115
|
+
function getResponseCacheKeys$I(storeKeyMap, luvio, resourceParams, response) {
|
|
3116
|
+
getTypeCacheKeys$s(storeKeyMap, luvio, response);
|
|
3117
3117
|
}
|
|
3118
|
-
function ingestSuccess$
|
|
3118
|
+
function ingestSuccess$B(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$s, body);
|
|
3122
3122
|
const snapshot = luvio.storeLookup({
|
|
3123
3123
|
recordId: key,
|
|
3124
|
-
node: select$
|
|
3124
|
+
node: select$10(),
|
|
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$I(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$I = '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$I, createDashboard_ConfigPropertyMetadata);
|
|
3161
|
+
const createResourceParams$I = /*#__PURE__*/ createResourceParams$P(createDashboard_ConfigPropertyMetadata);
|
|
3162
|
+
function typeCheckConfig$I(untrustedConfig) {
|
|
3163
3163
|
const config = {};
|
|
3164
|
-
typeCheckConfig$
|
|
3164
|
+
typeCheckConfig$P(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$I(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$I(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$I(luvio, config, options) {
|
|
3220
|
+
const resourceParams = createResourceParams$I(config);
|
|
3221
|
+
const request = createResourceRequest$I(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$B(luvio, resourceParams, response);
|
|
3226
3226
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3227
3227
|
}, () => {
|
|
3228
3228
|
const cache = new StoreKeyMap();
|
|
3229
|
-
getResponseCacheKeys$
|
|
3229
|
+
getResponseCacheKeys$I(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$I(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$I(luvio, config);
|
|
3245
3245
|
};
|
|
3246
3246
|
};
|
|
3247
3247
|
|
|
3248
|
-
function keyBuilder$
|
|
3249
|
-
return keyBuilder$
|
|
3248
|
+
function keyBuilder$_(luvio, params) {
|
|
3249
|
+
return keyBuilder$11(luvio, {
|
|
3250
3250
|
name: params.urlParams.dashboardIdOrApiName
|
|
3251
3251
|
});
|
|
3252
3252
|
}
|
|
3253
|
-
function getResponseCacheKeys$
|
|
3254
|
-
const key = keyBuilder$
|
|
3253
|
+
function getResponseCacheKeys$H(cacheKeyMap, luvio, resourceParams) {
|
|
3254
|
+
const key = keyBuilder$_(luvio, resourceParams);
|
|
3255
3255
|
cacheKeyMap.set(key, {
|
|
3256
3256
|
namespace: keyPrefix,
|
|
3257
|
-
representationName: RepresentationType$
|
|
3257
|
+
representationName: RepresentationType$u,
|
|
3258
3258
|
mergeable: false
|
|
3259
3259
|
});
|
|
3260
3260
|
}
|
|
3261
3261
|
function evictSuccess$6(luvio, resourceParams) {
|
|
3262
|
-
const key = keyBuilder$
|
|
3262
|
+
const key = keyBuilder$_(luvio, resourceParams);
|
|
3263
3263
|
luvio.storeEvict(key);
|
|
3264
3264
|
}
|
|
3265
|
-
function createResourceRequest$
|
|
3265
|
+
function createResourceRequest$H(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$H = '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$H, deleteDashboard_ConfigPropertyMetadata);
|
|
3284
|
+
const createResourceParams$H = /*#__PURE__*/ createResourceParams$P(deleteDashboard_ConfigPropertyMetadata);
|
|
3285
|
+
function typeCheckConfig$H(untrustedConfig) {
|
|
3286
3286
|
const config = {};
|
|
3287
|
-
typeCheckConfig$
|
|
3287
|
+
typeCheckConfig$P(untrustedConfig, config, deleteDashboard_ConfigPropertyMetadata);
|
|
3288
3288
|
return config;
|
|
3289
3289
|
}
|
|
3290
|
-
function validateAdapterConfig$
|
|
3290
|
+
function validateAdapterConfig$H(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$H(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$H(luvio, config, options) {
|
|
3304
|
+
const resourceParams = createResourceParams$H(config);
|
|
3305
|
+
const request = createResourceRequest$H(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$H(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$H(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$H}"`);
|
|
3327
3327
|
}
|
|
3328
|
-
return buildNetworkSnapshot$
|
|
3328
|
+
return buildNetworkSnapshot$H(luvio, config);
|
|
3329
3329
|
};
|
|
3330
3330
|
};
|
|
3331
3331
|
|
|
3332
|
-
function select
|
|
3333
|
-
return select$
|
|
3332
|
+
function select$$(luvio, params) {
|
|
3333
|
+
return select$13();
|
|
3334
3334
|
}
|
|
3335
|
-
function keyBuilder$
|
|
3336
|
-
return keyBuilder$
|
|
3335
|
+
function keyBuilder$Z(luvio, params) {
|
|
3336
|
+
return keyBuilder$11(luvio, {
|
|
3337
3337
|
name: params.urlParams.dashboardIdOrApiName
|
|
3338
3338
|
});
|
|
3339
3339
|
}
|
|
3340
|
-
function getResponseCacheKeys$
|
|
3341
|
-
getTypeCacheKeys$
|
|
3340
|
+
function getResponseCacheKeys$G(storeKeyMap, luvio, resourceParams, response) {
|
|
3341
|
+
getTypeCacheKeys$s(storeKeyMap, luvio, response);
|
|
3342
3342
|
}
|
|
3343
|
-
function ingestSuccess$
|
|
3343
|
+
function ingestSuccess$A(luvio, resourceParams, response, snapshotRefresh) {
|
|
3344
3344
|
const { body } = response;
|
|
3345
|
-
const key = keyBuilder$
|
|
3346
|
-
luvio.storeIngest(key, ingest$
|
|
3345
|
+
const key = keyBuilder$Z(luvio, resourceParams);
|
|
3346
|
+
luvio.storeIngest(key, ingest$s, body);
|
|
3347
3347
|
const snapshot = luvio.storeLookup({
|
|
3348
3348
|
recordId: key,
|
|
3349
|
-
node: select
|
|
3349
|
+
node: select$$(),
|
|
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$j(luvio, params, error, snapshotRefresh) {
|
|
3361
|
+
const key = keyBuilder$Z(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$G(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$G = '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$G, getDashboardByName_ConfigPropertyMetadata);
|
|
3385
|
+
const createResourceParams$G = /*#__PURE__*/ createResourceParams$P(getDashboardByName_ConfigPropertyMetadata);
|
|
3386
|
+
function keyBuilder$Y(luvio, config) {
|
|
3387
|
+
const resourceParams = createResourceParams$G(config);
|
|
3388
|
+
return keyBuilder$Z(luvio, resourceParams);
|
|
3389
3389
|
}
|
|
3390
|
-
function typeCheckConfig$
|
|
3390
|
+
function typeCheckConfig$G(untrustedConfig) {
|
|
3391
3391
|
const config = {};
|
|
3392
|
-
typeCheckConfig$
|
|
3392
|
+
typeCheckConfig$P(untrustedConfig, config, getDashboardByName_ConfigPropertyMetadata);
|
|
3393
3393
|
return config;
|
|
3394
3394
|
}
|
|
3395
|
-
function validateAdapterConfig$
|
|
3395
|
+
function validateAdapterConfig$G(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$G(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$j(luvio, config) {
|
|
3409
|
+
createResourceParams$G(config);
|
|
3410
|
+
return select$$();
|
|
3411
3411
|
}
|
|
3412
|
-
function onFetchResponseSuccess$
|
|
3413
|
-
const snapshot = ingestSuccess$
|
|
3412
|
+
function onFetchResponseSuccess$j(luvio, config, resourceParams, response) {
|
|
3413
|
+
const snapshot = ingestSuccess$A(luvio, resourceParams, response, {
|
|
3414
3414
|
config,
|
|
3415
|
-
resolve: () => buildNetworkSnapshot$
|
|
3415
|
+
resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions)
|
|
3416
3416
|
});
|
|
3417
3417
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3418
3418
|
}
|
|
3419
|
-
function onFetchResponseError$
|
|
3420
|
-
const snapshot = ingestError$
|
|
3419
|
+
function onFetchResponseError$j(luvio, config, resourceParams, response) {
|
|
3420
|
+
const snapshot = ingestError$j(luvio, resourceParams, response, {
|
|
3421
3421
|
config,
|
|
3422
|
-
resolve: () => buildNetworkSnapshot$
|
|
3422
|
+
resolve: () => buildNetworkSnapshot$G(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$G(luvio, config, options) {
|
|
3427
|
+
const resourceParams = createResourceParams$G(config);
|
|
3428
|
+
const request = createResourceRequest$G(resourceParams);
|
|
3429
3429
|
return luvio.dispatchResourceRequest(request, options)
|
|
3430
3430
|
.then((response) => {
|
|
3431
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3431
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$j(luvio, config, resourceParams, response), () => {
|
|
3432
3432
|
const cache = new StoreKeyMap();
|
|
3433
|
-
getResponseCacheKeys$
|
|
3433
|
+
getResponseCacheKeys$G(cache, luvio, resourceParams, response.body);
|
|
3434
3434
|
return cache;
|
|
3435
3435
|
});
|
|
3436
3436
|
}, (response) => {
|
|
3437
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3437
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$j(luvio, config, resourceParams, response));
|
|
3438
3438
|
});
|
|
3439
3439
|
}
|
|
3440
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3441
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3440
|
+
function buildNetworkSnapshotCachePolicy$j(context, coercedAdapterRequestContext) {
|
|
3441
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$G, undefined, false);
|
|
3442
3442
|
}
|
|
3443
|
-
function buildCachedSnapshotCachePolicy$
|
|
3443
|
+
function buildCachedSnapshotCachePolicy$j(context, storeLookup) {
|
|
3444
3444
|
const { luvio, config } = context;
|
|
3445
3445
|
const selector = {
|
|
3446
|
-
recordId: keyBuilder$
|
|
3447
|
-
node: adapterFragment$
|
|
3446
|
+
recordId: keyBuilder$Y(luvio, config),
|
|
3447
|
+
node: adapterFragment$j(luvio, config),
|
|
3448
3448
|
variables: {},
|
|
3449
3449
|
};
|
|
3450
3450
|
const cacheSnapshot = storeLookup(selector, {
|
|
3451
3451
|
config,
|
|
3452
|
-
resolve: () => buildNetworkSnapshot$
|
|
3452
|
+
resolve: () => buildNetworkSnapshot$G(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$G(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$j, buildNetworkSnapshotCachePolicy$j);
|
|
3464
3464
|
};
|
|
3465
3465
|
|
|
3466
|
-
function select$
|
|
3467
|
-
return select$
|
|
3466
|
+
function select$_(luvio, params) {
|
|
3467
|
+
return select$13();
|
|
3468
3468
|
}
|
|
3469
|
-
function getResponseCacheKeys$
|
|
3470
|
-
getTypeCacheKeys$
|
|
3469
|
+
function getResponseCacheKeys$F(storeKeyMap, luvio, resourceParams, response) {
|
|
3470
|
+
getTypeCacheKeys$s(storeKeyMap, luvio, response);
|
|
3471
3471
|
}
|
|
3472
|
-
function ingestSuccess$
|
|
3472
|
+
function ingestSuccess$z(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$s, body);
|
|
3476
3476
|
const snapshot = luvio.storeLookup({
|
|
3477
3477
|
recordId: key,
|
|
3478
|
-
node: select$
|
|
3478
|
+
node: select$_(),
|
|
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$F(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$F = '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$F, updateDashboard_ConfigPropertyMetadata);
|
|
3516
|
+
const createResourceParams$F = /*#__PURE__*/ createResourceParams$P(updateDashboard_ConfigPropertyMetadata);
|
|
3517
|
+
function typeCheckConfig$F(untrustedConfig) {
|
|
3518
3518
|
const config = {};
|
|
3519
|
-
typeCheckConfig$
|
|
3519
|
+
typeCheckConfig$P(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$F(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$F(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$F(luvio, config, options) {
|
|
3575
|
+
const resourceParams = createResourceParams$F(config);
|
|
3576
|
+
const request = createResourceRequest$F(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$z(luvio, resourceParams, response);
|
|
3581
3581
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3582
3582
|
}, () => {
|
|
3583
3583
|
const cache = new StoreKeyMap();
|
|
3584
|
-
getResponseCacheKeys$
|
|
3584
|
+
getResponseCacheKeys$F(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$F(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$F(luvio, config);
|
|
3600
3600
|
};
|
|
3601
3601
|
};
|
|
3602
3602
|
|
|
3603
|
-
function validate$
|
|
3604
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
3603
|
+
function validate$z(obj, path = 'AnalyticsUserRepresentation') {
|
|
3604
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$F(obj, path);
|
|
3605
3605
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
3606
3606
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
3607
3607
|
}
|
|
@@ -3641,6 +3641,963 @@ function validate$w(obj, path = 'AnalyticsUserRepresentation') {
|
|
|
3641
3641
|
return v_error === undefined ? null : v_error;
|
|
3642
3642
|
}
|
|
3643
3643
|
|
|
3644
|
+
const TTL$g = 500;
|
|
3645
|
+
const VERSION$q = "c15a48fd883f79a937626b94739e8f58";
|
|
3646
|
+
function validate$y(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$z(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$z(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$z(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$z(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$s = 'DataAssetRequestRepresentation';
|
|
3802
|
+
function keyBuilder$X(luvio, config) {
|
|
3803
|
+
return keyPrefix + '::' + RepresentationType$s + ':' + config.dataAssetRequestId;
|
|
3804
|
+
}
|
|
3805
|
+
function keyBuilderFromType$d(luvio, object) {
|
|
3806
|
+
const keyParams = {
|
|
3807
|
+
dataAssetRequestId: object.id
|
|
3808
|
+
};
|
|
3809
|
+
return keyBuilder$X(luvio, keyParams);
|
|
3810
|
+
}
|
|
3811
|
+
function normalize$q(input, existing, path, luvio, store, timestamp) {
|
|
3812
|
+
return input;
|
|
3813
|
+
}
|
|
3814
|
+
const select$Z = function DataAssetRequestRepresentationSelect() {
|
|
3815
|
+
return {
|
|
3816
|
+
kind: 'Fragment',
|
|
3817
|
+
version: VERSION$q,
|
|
3818
|
+
private: [],
|
|
3819
|
+
opaque: true
|
|
3820
|
+
};
|
|
3821
|
+
};
|
|
3822
|
+
function equals$q(existing, incoming) {
|
|
3823
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3824
|
+
return false;
|
|
3825
|
+
}
|
|
3826
|
+
return true;
|
|
3827
|
+
}
|
|
3828
|
+
const ingest$q = function DataAssetRequestRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3829
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3830
|
+
const validateError = validate$y(input);
|
|
3831
|
+
if (validateError !== null) {
|
|
3832
|
+
throw validateError;
|
|
3833
|
+
}
|
|
3834
|
+
}
|
|
3835
|
+
const key = keyBuilderFromType$d(luvio, input);
|
|
3836
|
+
const ttlToUse = TTL$g;
|
|
3837
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$q, "UnifiedAnalytics", VERSION$q, RepresentationType$s, equals$q);
|
|
3838
|
+
return createLink(key);
|
|
3839
|
+
};
|
|
3840
|
+
function getTypeCacheKeys$q(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$s,
|
|
3846
|
+
mergeable: false
|
|
3847
|
+
});
|
|
3848
|
+
}
|
|
3849
|
+
|
|
3850
|
+
const TTL$f = 500;
|
|
3851
|
+
const VERSION$p = "b130e3ebdd5cd1a5007c21dad3bfa38a";
|
|
3852
|
+
function validate$x(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$y(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$r = 'DataAssetRequestCollectionRepresentation';
|
|
3876
|
+
function normalize$p(input, existing, path, luvio, store, timestamp) {
|
|
3877
|
+
return input;
|
|
3878
|
+
}
|
|
3879
|
+
const select$Y = function DataAssetRequestCollectionRepresentationSelect() {
|
|
3880
|
+
return {
|
|
3881
|
+
kind: 'Fragment',
|
|
3882
|
+
version: VERSION$p,
|
|
3883
|
+
private: [],
|
|
3884
|
+
opaque: true
|
|
3885
|
+
};
|
|
3886
|
+
};
|
|
3887
|
+
function equals$p(existing, incoming) {
|
|
3888
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3889
|
+
return false;
|
|
3890
|
+
}
|
|
3891
|
+
return true;
|
|
3892
|
+
}
|
|
3893
|
+
const ingest$p = function DataAssetRequestCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3894
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3895
|
+
const validateError = validate$x(input);
|
|
3896
|
+
if (validateError !== null) {
|
|
3897
|
+
throw validateError;
|
|
3898
|
+
}
|
|
3899
|
+
}
|
|
3900
|
+
const key = path.fullPath;
|
|
3901
|
+
const ttlToUse = TTL$f;
|
|
3902
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$p, "UnifiedAnalytics", VERSION$p, RepresentationType$r, equals$p);
|
|
3903
|
+
return createLink(key);
|
|
3904
|
+
};
|
|
3905
|
+
function getTypeCacheKeys$p(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$r,
|
|
3911
|
+
mergeable: false
|
|
3912
|
+
});
|
|
3913
|
+
}
|
|
3914
|
+
|
|
3915
|
+
function select$X(luvio, params) {
|
|
3916
|
+
return select$Y();
|
|
3917
|
+
}
|
|
3918
|
+
function keyBuilder$W(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$E(storeKeyMap, luvio, resourceParams, response) {
|
|
3922
|
+
getTypeCacheKeys$p(storeKeyMap, luvio, response, () => keyBuilder$W(luvio, resourceParams));
|
|
3923
|
+
}
|
|
3924
|
+
function ingestSuccess$y(luvio, resourceParams, response, snapshotRefresh) {
|
|
3925
|
+
const { body } = response;
|
|
3926
|
+
const key = keyBuilder$W(luvio, resourceParams);
|
|
3927
|
+
luvio.storeIngest(key, ingest$p, body);
|
|
3928
|
+
const snapshot = luvio.storeLookup({
|
|
3929
|
+
recordId: key,
|
|
3930
|
+
node: select$X(),
|
|
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$i(luvio, params, error, snapshotRefresh) {
|
|
3942
|
+
const key = keyBuilder$W(luvio, params);
|
|
3943
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3944
|
+
const storeMetadataParams = {
|
|
3945
|
+
ttl: TTL$f,
|
|
3946
|
+
namespace: keyPrefix,
|
|
3947
|
+
version: VERSION$p,
|
|
3948
|
+
representationName: RepresentationType$r
|
|
3949
|
+
};
|
|
3950
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
3951
|
+
return errorSnapshot;
|
|
3952
|
+
}
|
|
3953
|
+
function createResourceRequest$E(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$E = '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$E, getDataAssetRequests_ConfigPropertyMetadata);
|
|
3982
|
+
const createResourceParams$E = /*#__PURE__*/ createResourceParams$P(getDataAssetRequests_ConfigPropertyMetadata);
|
|
3983
|
+
function keyBuilder$V(luvio, config) {
|
|
3984
|
+
const resourceParams = createResourceParams$E(config);
|
|
3985
|
+
return keyBuilder$W(luvio, resourceParams);
|
|
3986
|
+
}
|
|
3987
|
+
function typeCheckConfig$E(untrustedConfig) {
|
|
3988
|
+
const config = {};
|
|
3989
|
+
typeCheckConfig$P(untrustedConfig, config, getDataAssetRequests_ConfigPropertyMetadata);
|
|
3990
|
+
return config;
|
|
3991
|
+
}
|
|
3992
|
+
function validateAdapterConfig$E(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$E(untrustedConfig);
|
|
4000
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4001
|
+
return null;
|
|
4002
|
+
}
|
|
4003
|
+
return config;
|
|
4004
|
+
}
|
|
4005
|
+
function adapterFragment$i(luvio, config) {
|
|
4006
|
+
createResourceParams$E(config);
|
|
4007
|
+
return select$X();
|
|
4008
|
+
}
|
|
4009
|
+
function onFetchResponseSuccess$i(luvio, config, resourceParams, response) {
|
|
4010
|
+
const snapshot = ingestSuccess$y(luvio, resourceParams, response, {
|
|
4011
|
+
config,
|
|
4012
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
|
|
4013
|
+
});
|
|
4014
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4015
|
+
}
|
|
4016
|
+
function onFetchResponseError$i(luvio, config, resourceParams, response) {
|
|
4017
|
+
const snapshot = ingestError$i(luvio, resourceParams, response, {
|
|
4018
|
+
config,
|
|
4019
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
|
|
4020
|
+
});
|
|
4021
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4022
|
+
}
|
|
4023
|
+
function buildNetworkSnapshot$E(luvio, config, options) {
|
|
4024
|
+
const resourceParams = createResourceParams$E(config);
|
|
4025
|
+
const request = createResourceRequest$E(resourceParams);
|
|
4026
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4027
|
+
.then((response) => {
|
|
4028
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$i(luvio, config, resourceParams, response), () => {
|
|
4029
|
+
const cache = new StoreKeyMap();
|
|
4030
|
+
getResponseCacheKeys$E(cache, luvio, resourceParams, response.body);
|
|
4031
|
+
return cache;
|
|
4032
|
+
});
|
|
4033
|
+
}, (response) => {
|
|
4034
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$i(luvio, config, resourceParams, response));
|
|
4035
|
+
});
|
|
4036
|
+
}
|
|
4037
|
+
function buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext) {
|
|
4038
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$E, undefined, false);
|
|
4039
|
+
}
|
|
4040
|
+
function buildCachedSnapshotCachePolicy$i(context, storeLookup) {
|
|
4041
|
+
const { luvio, config } = context;
|
|
4042
|
+
const selector = {
|
|
4043
|
+
recordId: keyBuilder$V(luvio, config),
|
|
4044
|
+
node: adapterFragment$i(luvio, config),
|
|
4045
|
+
variables: {},
|
|
4046
|
+
};
|
|
4047
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4048
|
+
config,
|
|
4049
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
|
|
4050
|
+
});
|
|
4051
|
+
return cacheSnapshot;
|
|
4052
|
+
}
|
|
4053
|
+
const getDataAssetRequestsAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAssetRequests(untrustedConfig, requestContext) {
|
|
4054
|
+
const config = validateAdapterConfig$E(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$i, buildNetworkSnapshotCachePolicy$i);
|
|
4061
|
+
};
|
|
4062
|
+
|
|
4063
|
+
function select$W(luvio, params) {
|
|
4064
|
+
return select$Z();
|
|
4065
|
+
}
|
|
4066
|
+
function getResponseCacheKeys$D(storeKeyMap, luvio, resourceParams, response) {
|
|
4067
|
+
getTypeCacheKeys$q(storeKeyMap, luvio, response);
|
|
4068
|
+
}
|
|
4069
|
+
function ingestSuccess$x(luvio, resourceParams, response) {
|
|
4070
|
+
const { body } = response;
|
|
4071
|
+
const key = keyBuilderFromType$d(luvio, body);
|
|
4072
|
+
luvio.storeIngest(key, ingest$q, body);
|
|
4073
|
+
const snapshot = luvio.storeLookup({
|
|
4074
|
+
recordId: key,
|
|
4075
|
+
node: select$W(),
|
|
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$D(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$D = '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$D, createDataAssetRequest_ConfigPropertyMetadata);
|
|
4114
|
+
const createResourceParams$D = /*#__PURE__*/ createResourceParams$P(createDataAssetRequest_ConfigPropertyMetadata);
|
|
4115
|
+
function typeCheckConfig$D(untrustedConfig) {
|
|
4116
|
+
const config = {};
|
|
4117
|
+
typeCheckConfig$P(untrustedConfig, config, createDataAssetRequest_ConfigPropertyMetadata);
|
|
4118
|
+
return config;
|
|
4119
|
+
}
|
|
4120
|
+
function validateAdapterConfig$D(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$D(untrustedConfig);
|
|
4128
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4129
|
+
return null;
|
|
4130
|
+
}
|
|
4131
|
+
return config;
|
|
4132
|
+
}
|
|
4133
|
+
function buildNetworkSnapshot$D(luvio, config, options) {
|
|
4134
|
+
const resourceParams = createResourceParams$D(config);
|
|
4135
|
+
const request = createResourceRequest$D(resourceParams);
|
|
4136
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4137
|
+
.then((response) => {
|
|
4138
|
+
return luvio.handleSuccessResponse(() => {
|
|
4139
|
+
const snapshot = ingestSuccess$x(luvio, resourceParams, response);
|
|
4140
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4141
|
+
}, () => {
|
|
4142
|
+
const cache = new StoreKeyMap();
|
|
4143
|
+
getResponseCacheKeys$D(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$D(untrustedConfig, createDataAssetRequest_ConfigPropertyNames);
|
|
4154
|
+
// Invalid or incomplete config
|
|
4155
|
+
if (config === null) {
|
|
4156
|
+
throw new Error('Invalid config for "createDataAssetRequest"');
|
|
4157
|
+
}
|
|
4158
|
+
return buildNetworkSnapshot$D(luvio, config);
|
|
4159
|
+
};
|
|
4160
|
+
};
|
|
4161
|
+
|
|
4162
|
+
const TTL$e = 500;
|
|
4163
|
+
const VERSION$o = "e424b55efdacaf049d687461eddd10cc";
|
|
4164
|
+
function validate$w(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$q = 'DataAssetRequestCountRepresentation';
|
|
4178
|
+
function normalize$o(input, existing, path, luvio, store, timestamp) {
|
|
4179
|
+
return input;
|
|
4180
|
+
}
|
|
4181
|
+
const select$V = function DataAssetRequestCountRepresentationSelect() {
|
|
4182
|
+
return {
|
|
4183
|
+
kind: 'Fragment',
|
|
4184
|
+
version: VERSION$o,
|
|
4185
|
+
private: [],
|
|
4186
|
+
opaque: true
|
|
4187
|
+
};
|
|
4188
|
+
};
|
|
4189
|
+
function equals$o(existing, incoming) {
|
|
4190
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4191
|
+
return false;
|
|
4192
|
+
}
|
|
4193
|
+
return true;
|
|
4194
|
+
}
|
|
4195
|
+
const ingest$o = function DataAssetRequestCountRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4196
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4197
|
+
const validateError = validate$w(input);
|
|
4198
|
+
if (validateError !== null) {
|
|
4199
|
+
throw validateError;
|
|
4200
|
+
}
|
|
4201
|
+
}
|
|
4202
|
+
const key = path.fullPath;
|
|
4203
|
+
const ttlToUse = TTL$e;
|
|
4204
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$o, "UnifiedAnalytics", VERSION$o, RepresentationType$q, equals$o);
|
|
4205
|
+
return createLink(key);
|
|
4206
|
+
};
|
|
4207
|
+
function getTypeCacheKeys$o(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$q,
|
|
4213
|
+
mergeable: false
|
|
4214
|
+
});
|
|
4215
|
+
}
|
|
4216
|
+
|
|
4217
|
+
function select$U(luvio, params) {
|
|
4218
|
+
return select$V();
|
|
4219
|
+
}
|
|
4220
|
+
function keyBuilder$U(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$C(storeKeyMap, luvio, resourceParams, response) {
|
|
4224
|
+
getTypeCacheKeys$o(storeKeyMap, luvio, response, () => keyBuilder$U(luvio, resourceParams));
|
|
4225
|
+
}
|
|
4226
|
+
function ingestSuccess$w(luvio, resourceParams, response, snapshotRefresh) {
|
|
4227
|
+
const { body } = response;
|
|
4228
|
+
const key = keyBuilder$U(luvio, resourceParams);
|
|
4229
|
+
luvio.storeIngest(key, ingest$o, body);
|
|
4230
|
+
const snapshot = luvio.storeLookup({
|
|
4231
|
+
recordId: key,
|
|
4232
|
+
node: select$U(),
|
|
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$h(luvio, params, error, snapshotRefresh) {
|
|
4244
|
+
const key = keyBuilder$U(luvio, params);
|
|
4245
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4246
|
+
const storeMetadataParams = {
|
|
4247
|
+
ttl: TTL$e,
|
|
4248
|
+
namespace: keyPrefix,
|
|
4249
|
+
version: VERSION$o,
|
|
4250
|
+
representationName: RepresentationType$q
|
|
4251
|
+
};
|
|
4252
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4253
|
+
return errorSnapshot;
|
|
4254
|
+
}
|
|
4255
|
+
function createResourceRequest$C(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$C = '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$C, getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
4280
|
+
const createResourceParams$C = /*#__PURE__*/ createResourceParams$P(getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
4281
|
+
function keyBuilder$T(luvio, config) {
|
|
4282
|
+
const resourceParams = createResourceParams$C(config);
|
|
4283
|
+
return keyBuilder$U(luvio, resourceParams);
|
|
4284
|
+
}
|
|
4285
|
+
function typeCheckConfig$C(untrustedConfig) {
|
|
4286
|
+
const config = {};
|
|
4287
|
+
typeCheckConfig$P(untrustedConfig, config, getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
4288
|
+
return config;
|
|
4289
|
+
}
|
|
4290
|
+
function validateAdapterConfig$C(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$C(untrustedConfig);
|
|
4298
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4299
|
+
return null;
|
|
4300
|
+
}
|
|
4301
|
+
return config;
|
|
4302
|
+
}
|
|
4303
|
+
function adapterFragment$h(luvio, config) {
|
|
4304
|
+
createResourceParams$C(config);
|
|
4305
|
+
return select$U();
|
|
4306
|
+
}
|
|
4307
|
+
function onFetchResponseSuccess$h(luvio, config, resourceParams, response) {
|
|
4308
|
+
const snapshot = ingestSuccess$w(luvio, resourceParams, response, {
|
|
4309
|
+
config,
|
|
4310
|
+
resolve: () => buildNetworkSnapshot$C(luvio, config, snapshotRefreshOptions)
|
|
4311
|
+
});
|
|
4312
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4313
|
+
}
|
|
4314
|
+
function onFetchResponseError$h(luvio, config, resourceParams, response) {
|
|
4315
|
+
const snapshot = ingestError$h(luvio, resourceParams, response, {
|
|
4316
|
+
config,
|
|
4317
|
+
resolve: () => buildNetworkSnapshot$C(luvio, config, snapshotRefreshOptions)
|
|
4318
|
+
});
|
|
4319
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4320
|
+
}
|
|
4321
|
+
function buildNetworkSnapshot$C(luvio, config, options) {
|
|
4322
|
+
const resourceParams = createResourceParams$C(config);
|
|
4323
|
+
const request = createResourceRequest$C(resourceParams);
|
|
4324
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4325
|
+
.then((response) => {
|
|
4326
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$h(luvio, config, resourceParams, response), () => {
|
|
4327
|
+
const cache = new StoreKeyMap();
|
|
4328
|
+
getResponseCacheKeys$C(cache, luvio, resourceParams, response.body);
|
|
4329
|
+
return cache;
|
|
4330
|
+
});
|
|
4331
|
+
}, (response) => {
|
|
4332
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$h(luvio, config, resourceParams, response));
|
|
4333
|
+
});
|
|
4334
|
+
}
|
|
4335
|
+
function buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext) {
|
|
4336
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$C, undefined, false);
|
|
4337
|
+
}
|
|
4338
|
+
function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
|
|
4339
|
+
const { luvio, config } = context;
|
|
4340
|
+
const selector = {
|
|
4341
|
+
recordId: keyBuilder$T(luvio, config),
|
|
4342
|
+
node: adapterFragment$h(luvio, config),
|
|
4343
|
+
variables: {},
|
|
4344
|
+
};
|
|
4345
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4346
|
+
config,
|
|
4347
|
+
resolve: () => buildNetworkSnapshot$C(luvio, config, snapshotRefreshOptions)
|
|
4348
|
+
});
|
|
4349
|
+
return cacheSnapshot;
|
|
4350
|
+
}
|
|
4351
|
+
const getDataAssetRequestsCountAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAssetRequestsCount(untrustedConfig, requestContext) {
|
|
4352
|
+
const config = validateAdapterConfig$C(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$h, buildNetworkSnapshotCachePolicy$h);
|
|
4359
|
+
};
|
|
4360
|
+
|
|
4361
|
+
function select$T(luvio, params) {
|
|
4362
|
+
return select$Z();
|
|
4363
|
+
}
|
|
4364
|
+
function keyBuilder$S(luvio, params) {
|
|
4365
|
+
return keyBuilder$X(luvio, {
|
|
4366
|
+
dataAssetRequestId: params.urlParams.requestIdOrApiName
|
|
4367
|
+
});
|
|
4368
|
+
}
|
|
4369
|
+
function getResponseCacheKeys$B(storeKeyMap, luvio, resourceParams, response) {
|
|
4370
|
+
getTypeCacheKeys$q(storeKeyMap, luvio, response);
|
|
4371
|
+
}
|
|
4372
|
+
function ingestSuccess$v(luvio, resourceParams, response, snapshotRefresh) {
|
|
4373
|
+
const { body } = response;
|
|
4374
|
+
const key = keyBuilder$S(luvio, resourceParams);
|
|
4375
|
+
luvio.storeIngest(key, ingest$q, body);
|
|
4376
|
+
const snapshot = luvio.storeLookup({
|
|
4377
|
+
recordId: key,
|
|
4378
|
+
node: select$T(),
|
|
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$g(luvio, params, error, snapshotRefresh) {
|
|
4390
|
+
const key = keyBuilder$S(luvio, params);
|
|
4391
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4392
|
+
const storeMetadataParams = {
|
|
4393
|
+
ttl: TTL$g,
|
|
4394
|
+
namespace: keyPrefix,
|
|
4395
|
+
version: VERSION$q,
|
|
4396
|
+
representationName: RepresentationType$s
|
|
4397
|
+
};
|
|
4398
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4399
|
+
return errorSnapshot;
|
|
4400
|
+
}
|
|
4401
|
+
function createResourceRequest$B(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$B = 'getDataAssetRequestByIdOrApiName';
|
|
4416
|
+
const getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata = [
|
|
4417
|
+
generateParamConfigMetadata('requestIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4418
|
+
];
|
|
4419
|
+
const getDataAssetRequestByIdOrApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$B, getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
4420
|
+
const createResourceParams$B = /*#__PURE__*/ createResourceParams$P(getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
4421
|
+
function keyBuilder$R(luvio, config) {
|
|
4422
|
+
const resourceParams = createResourceParams$B(config);
|
|
4423
|
+
return keyBuilder$S(luvio, resourceParams);
|
|
4424
|
+
}
|
|
4425
|
+
function typeCheckConfig$B(untrustedConfig) {
|
|
4426
|
+
const config = {};
|
|
4427
|
+
typeCheckConfig$P(untrustedConfig, config, getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
4428
|
+
return config;
|
|
4429
|
+
}
|
|
4430
|
+
function validateAdapterConfig$B(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$B(untrustedConfig);
|
|
4438
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4439
|
+
return null;
|
|
4440
|
+
}
|
|
4441
|
+
return config;
|
|
4442
|
+
}
|
|
4443
|
+
function adapterFragment$g(luvio, config) {
|
|
4444
|
+
createResourceParams$B(config);
|
|
4445
|
+
return select$T();
|
|
4446
|
+
}
|
|
4447
|
+
function onFetchResponseSuccess$g(luvio, config, resourceParams, response) {
|
|
4448
|
+
const snapshot = ingestSuccess$v(luvio, resourceParams, response, {
|
|
4449
|
+
config,
|
|
4450
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
4451
|
+
});
|
|
4452
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4453
|
+
}
|
|
4454
|
+
function onFetchResponseError$g(luvio, config, resourceParams, response) {
|
|
4455
|
+
const snapshot = ingestError$g(luvio, resourceParams, response, {
|
|
4456
|
+
config,
|
|
4457
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
4458
|
+
});
|
|
4459
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4460
|
+
}
|
|
4461
|
+
function buildNetworkSnapshot$B(luvio, config, options) {
|
|
4462
|
+
const resourceParams = createResourceParams$B(config);
|
|
4463
|
+
const request = createResourceRequest$B(resourceParams);
|
|
4464
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4465
|
+
.then((response) => {
|
|
4466
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$g(luvio, config, resourceParams, response), () => {
|
|
4467
|
+
const cache = new StoreKeyMap();
|
|
4468
|
+
getResponseCacheKeys$B(cache, luvio, resourceParams, response.body);
|
|
4469
|
+
return cache;
|
|
4470
|
+
});
|
|
4471
|
+
}, (response) => {
|
|
4472
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$g(luvio, config, resourceParams, response));
|
|
4473
|
+
});
|
|
4474
|
+
}
|
|
4475
|
+
function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
|
|
4476
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$B, undefined, false);
|
|
4477
|
+
}
|
|
4478
|
+
function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
4479
|
+
const { luvio, config } = context;
|
|
4480
|
+
const selector = {
|
|
4481
|
+
recordId: keyBuilder$R(luvio, config),
|
|
4482
|
+
node: adapterFragment$g(luvio, config),
|
|
4483
|
+
variables: {},
|
|
4484
|
+
};
|
|
4485
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4486
|
+
config,
|
|
4487
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
4488
|
+
});
|
|
4489
|
+
return cacheSnapshot;
|
|
4490
|
+
}
|
|
4491
|
+
const getDataAssetRequestByIdOrApiNameAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAssetRequestByIdOrApiName(untrustedConfig, requestContext) {
|
|
4492
|
+
const config = validateAdapterConfig$B(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$g, buildNetworkSnapshotCachePolicy$g);
|
|
4499
|
+
};
|
|
4500
|
+
|
|
4501
|
+
function select$S(luvio, params) {
|
|
4502
|
+
return select$Z();
|
|
4503
|
+
}
|
|
4504
|
+
function getResponseCacheKeys$A(storeKeyMap, luvio, resourceParams, response) {
|
|
4505
|
+
getTypeCacheKeys$q(storeKeyMap, luvio, response);
|
|
4506
|
+
}
|
|
4507
|
+
function ingestSuccess$u(luvio, resourceParams, response) {
|
|
4508
|
+
const { body } = response;
|
|
4509
|
+
const key = keyBuilderFromType$d(luvio, body);
|
|
4510
|
+
luvio.storeIngest(key, ingest$q, body);
|
|
4511
|
+
const snapshot = luvio.storeLookup({
|
|
4512
|
+
recordId: key,
|
|
4513
|
+
node: select$S(),
|
|
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$A(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$A = '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$A, updateDataAssetRequest_ConfigPropertyMetadata);
|
|
4553
|
+
const createResourceParams$A = /*#__PURE__*/ createResourceParams$P(updateDataAssetRequest_ConfigPropertyMetadata);
|
|
4554
|
+
function typeCheckConfig$A(untrustedConfig) {
|
|
4555
|
+
const config = {};
|
|
4556
|
+
typeCheckConfig$P(untrustedConfig, config, updateDataAssetRequest_ConfigPropertyMetadata);
|
|
4557
|
+
return config;
|
|
4558
|
+
}
|
|
4559
|
+
function validateAdapterConfig$A(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$A(untrustedConfig);
|
|
4567
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4568
|
+
return null;
|
|
4569
|
+
}
|
|
4570
|
+
return config;
|
|
4571
|
+
}
|
|
4572
|
+
function buildNetworkSnapshot$A(luvio, config, options) {
|
|
4573
|
+
const resourceParams = createResourceParams$A(config);
|
|
4574
|
+
const request = createResourceRequest$A(resourceParams);
|
|
4575
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4576
|
+
.then((response) => {
|
|
4577
|
+
return luvio.handleSuccessResponse(() => {
|
|
4578
|
+
const snapshot = ingestSuccess$u(luvio, resourceParams, response);
|
|
4579
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4580
|
+
}, () => {
|
|
4581
|
+
const cache = new StoreKeyMap();
|
|
4582
|
+
getResponseCacheKeys$A(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$A(untrustedConfig, updateDataAssetRequest_ConfigPropertyNames);
|
|
4593
|
+
// Invalid or incomplete config
|
|
4594
|
+
if (config === null) {
|
|
4595
|
+
throw new Error('Invalid config for "updateDataAssetRequest"');
|
|
4596
|
+
}
|
|
4597
|
+
return buildNetworkSnapshot$A(luvio, config);
|
|
4598
|
+
};
|
|
4599
|
+
};
|
|
4600
|
+
|
|
3644
4601
|
const TTL$d = 500;
|
|
3645
4602
|
const VERSION$n = "9a4f1166e92aab266ef84b910ef0c322";
|
|
3646
4603
|
function validate$v(obj, path = 'FollowerAssetRepresentation') {
|
|
@@ -3650,7 +4607,7 @@ function validate$v(obj, path = 'FollowerAssetRepresentation') {
|
|
|
3650
4607
|
}
|
|
3651
4608
|
const obj_createdBy = obj.createdBy;
|
|
3652
4609
|
const path_createdBy = path + '.createdBy';
|
|
3653
|
-
const referencepath_createdByValidationError = validate$
|
|
4610
|
+
const referencepath_createdByValidationError = validate$z(obj_createdBy, path_createdBy);
|
|
3654
4611
|
if (referencepath_createdByValidationError !== null) {
|
|
3655
4612
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
3656
4613
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3778,10 +4735,10 @@ const follow_ConfigPropertyMetadata = [
|
|
|
3778
4735
|
generateParamConfigMetadata('followerType', true, 2 /* Body */, 0 /* String */),
|
|
3779
4736
|
];
|
|
3780
4737
|
const follow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$z, follow_ConfigPropertyMetadata);
|
|
3781
|
-
const createResourceParams$z = /*#__PURE__*/ createResourceParams$
|
|
4738
|
+
const createResourceParams$z = /*#__PURE__*/ createResourceParams$P(follow_ConfigPropertyMetadata);
|
|
3782
4739
|
function typeCheckConfig$z(untrustedConfig) {
|
|
3783
4740
|
const config = {};
|
|
3784
|
-
typeCheckConfig$
|
|
4741
|
+
typeCheckConfig$P(untrustedConfig, config, follow_ConfigPropertyMetadata);
|
|
3785
4742
|
return config;
|
|
3786
4743
|
}
|
|
3787
4744
|
function validateAdapterConfig$z(untrustedConfig, configPropertyNames) {
|
|
@@ -3927,10 +4884,10 @@ const unfollow_ConfigPropertyMetadata = [
|
|
|
3927
4884
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3928
4885
|
];
|
|
3929
4886
|
const unfollow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$y, unfollow_ConfigPropertyMetadata);
|
|
3930
|
-
const createResourceParams$y = /*#__PURE__*/ createResourceParams$
|
|
4887
|
+
const createResourceParams$y = /*#__PURE__*/ createResourceParams$P(unfollow_ConfigPropertyMetadata);
|
|
3931
4888
|
function typeCheckConfig$y(untrustedConfig) {
|
|
3932
4889
|
const config = {};
|
|
3933
|
-
typeCheckConfig$
|
|
4890
|
+
typeCheckConfig$P(untrustedConfig, config, unfollow_ConfigPropertyMetadata);
|
|
3934
4891
|
return config;
|
|
3935
4892
|
}
|
|
3936
4893
|
function validateAdapterConfig$y(untrustedConfig, configPropertyNames) {
|
|
@@ -3990,7 +4947,7 @@ function validate$t(obj, path = 'FollowerCollectionRepresentation') {
|
|
|
3990
4947
|
for (let i = 0; i < obj_followers.length; i++) {
|
|
3991
4948
|
const obj_followers_item = obj_followers[i];
|
|
3992
4949
|
const path_followers_item = path_followers + '[' + i + ']';
|
|
3993
|
-
const referencepath_followers_itemValidationError = validate$
|
|
4950
|
+
const referencepath_followers_itemValidationError = validate$z(obj_followers_item, path_followers_item);
|
|
3994
4951
|
if (referencepath_followers_itemValidationError !== null) {
|
|
3995
4952
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_followers_item + '")\n';
|
|
3996
4953
|
message += referencepath_followers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4101,14 +5058,14 @@ const getFollowers_ConfigPropertyMetadata = [
|
|
|
4101
5058
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4102
5059
|
];
|
|
4103
5060
|
const getFollowers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$x, getFollowers_ConfigPropertyMetadata);
|
|
4104
|
-
const createResourceParams$x = /*#__PURE__*/ createResourceParams$
|
|
5061
|
+
const createResourceParams$x = /*#__PURE__*/ createResourceParams$P(getFollowers_ConfigPropertyMetadata);
|
|
4105
5062
|
function keyBuilder$M(luvio, config) {
|
|
4106
5063
|
const resourceParams = createResourceParams$x(config);
|
|
4107
5064
|
return keyBuilder$N(luvio, resourceParams);
|
|
4108
5065
|
}
|
|
4109
5066
|
function typeCheckConfig$x(untrustedConfig) {
|
|
4110
5067
|
const config = {};
|
|
4111
|
-
typeCheckConfig$
|
|
5068
|
+
typeCheckConfig$P(untrustedConfig, config, getFollowers_ConfigPropertyMetadata);
|
|
4112
5069
|
return config;
|
|
4113
5070
|
}
|
|
4114
5071
|
function validateAdapterConfig$x(untrustedConfig, configPropertyNames) {
|
|
@@ -4157,7 +5114,7 @@ function buildNetworkSnapshot$x(luvio, config, options) {
|
|
|
4157
5114
|
});
|
|
4158
5115
|
}
|
|
4159
5116
|
function buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext) {
|
|
4160
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5117
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$x, undefined, false);
|
|
4161
5118
|
}
|
|
4162
5119
|
function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
|
|
4163
5120
|
const { luvio, config } = context;
|
|
@@ -4307,14 +5264,14 @@ const getFollowedAssets_ConfigPropertyMetadata = [
|
|
|
4307
5264
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4308
5265
|
];
|
|
4309
5266
|
const getFollowedAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$w, getFollowedAssets_ConfigPropertyMetadata);
|
|
4310
|
-
const createResourceParams$w = /*#__PURE__*/ createResourceParams$
|
|
5267
|
+
const createResourceParams$w = /*#__PURE__*/ createResourceParams$P(getFollowedAssets_ConfigPropertyMetadata);
|
|
4311
5268
|
function keyBuilder$K(luvio, config) {
|
|
4312
5269
|
const resourceParams = createResourceParams$w(config);
|
|
4313
5270
|
return keyBuilder$L(luvio, resourceParams);
|
|
4314
5271
|
}
|
|
4315
5272
|
function typeCheckConfig$w(untrustedConfig) {
|
|
4316
5273
|
const config = {};
|
|
4317
|
-
typeCheckConfig$
|
|
5274
|
+
typeCheckConfig$P(untrustedConfig, config, getFollowedAssets_ConfigPropertyMetadata);
|
|
4318
5275
|
return config;
|
|
4319
5276
|
}
|
|
4320
5277
|
function validateAdapterConfig$w(untrustedConfig, configPropertyNames) {
|
|
@@ -4363,7 +5320,7 @@ function buildNetworkSnapshot$w(luvio, config, options) {
|
|
|
4363
5320
|
});
|
|
4364
5321
|
}
|
|
4365
5322
|
function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
|
|
4366
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5323
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$w, undefined, false);
|
|
4367
5324
|
}
|
|
4368
5325
|
function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
|
|
4369
5326
|
const { luvio, config } = context;
|
|
@@ -4501,14 +5458,14 @@ const getUniqueFollowerCount_ConfigPropertyMetadata = [
|
|
|
4501
5458
|
generateParamConfigMetadata('followedAssetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4502
5459
|
];
|
|
4503
5460
|
const getUniqueFollowerCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$v, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
4504
|
-
const createResourceParams$v = /*#__PURE__*/ createResourceParams$
|
|
5461
|
+
const createResourceParams$v = /*#__PURE__*/ createResourceParams$P(getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
4505
5462
|
function keyBuilder$I(luvio, config) {
|
|
4506
5463
|
const resourceParams = createResourceParams$v(config);
|
|
4507
5464
|
return keyBuilder$J(luvio, resourceParams);
|
|
4508
5465
|
}
|
|
4509
5466
|
function typeCheckConfig$v(untrustedConfig) {
|
|
4510
5467
|
const config = {};
|
|
4511
|
-
typeCheckConfig$
|
|
5468
|
+
typeCheckConfig$P(untrustedConfig, config, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
4512
5469
|
return config;
|
|
4513
5470
|
}
|
|
4514
5471
|
function validateAdapterConfig$v(untrustedConfig, configPropertyNames) {
|
|
@@ -4557,7 +5514,7 @@ function buildNetworkSnapshot$v(luvio, config, options) {
|
|
|
4557
5514
|
});
|
|
4558
5515
|
}
|
|
4559
5516
|
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
4560
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5517
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$v, undefined, false);
|
|
4561
5518
|
}
|
|
4562
5519
|
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
4563
5520
|
const { luvio, config } = context;
|
|
@@ -4698,7 +5655,7 @@ const createLoglines_ConfigPropertyMetadata = [
|
|
|
4698
5655
|
generateParamConfigMetadata('loglines', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4699
5656
|
];
|
|
4700
5657
|
const createLoglines_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$u, createLoglines_ConfigPropertyMetadata);
|
|
4701
|
-
const createResourceParams$u = /*#__PURE__*/ createResourceParams$
|
|
5658
|
+
const createResourceParams$u = /*#__PURE__*/ createResourceParams$P(createLoglines_ConfigPropertyMetadata);
|
|
4702
5659
|
function typeCheckConfig$u(untrustedConfig) {
|
|
4703
5660
|
const config = {};
|
|
4704
5661
|
const untrustedConfig_loglines = untrustedConfig.loglines;
|
|
@@ -4913,14 +5870,14 @@ const getOrg_ConfigPropertyMetadata = [
|
|
|
4913
5870
|
generateParamConfigMetadata('userName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4914
5871
|
];
|
|
4915
5872
|
const getOrg_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, getOrg_ConfigPropertyMetadata);
|
|
4916
|
-
const createResourceParams$t = /*#__PURE__*/ createResourceParams$
|
|
5873
|
+
const createResourceParams$t = /*#__PURE__*/ createResourceParams$P(getOrg_ConfigPropertyMetadata);
|
|
4917
5874
|
function keyBuilder$F(luvio, config) {
|
|
4918
5875
|
const resourceParams = createResourceParams$t(config);
|
|
4919
5876
|
return keyBuilder$G(luvio, resourceParams);
|
|
4920
5877
|
}
|
|
4921
5878
|
function typeCheckConfig$t(untrustedConfig) {
|
|
4922
5879
|
const config = {};
|
|
4923
|
-
typeCheckConfig$
|
|
5880
|
+
typeCheckConfig$P(untrustedConfig, config, getOrg_ConfigPropertyMetadata);
|
|
4924
5881
|
return config;
|
|
4925
5882
|
}
|
|
4926
5883
|
function validateAdapterConfig$t(untrustedConfig, configPropertyNames) {
|
|
@@ -4969,7 +5926,7 @@ function buildNetworkSnapshot$t(luvio, config, options) {
|
|
|
4969
5926
|
});
|
|
4970
5927
|
}
|
|
4971
5928
|
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
4972
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5929
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$t, undefined, false);
|
|
4973
5930
|
}
|
|
4974
5931
|
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
4975
5932
|
const { luvio, config } = context;
|
|
@@ -5137,10 +6094,10 @@ const deleteAllShares_ConfigPropertyMetadata = [
|
|
|
5137
6094
|
generateParamConfigMetadata('recordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5138
6095
|
];
|
|
5139
6096
|
const deleteAllShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$s, deleteAllShares_ConfigPropertyMetadata);
|
|
5140
|
-
const createResourceParams$s = /*#__PURE__*/ createResourceParams$
|
|
6097
|
+
const createResourceParams$s = /*#__PURE__*/ createResourceParams$P(deleteAllShares_ConfigPropertyMetadata);
|
|
5141
6098
|
function typeCheckConfig$s(untrustedConfig) {
|
|
5142
6099
|
const config = {};
|
|
5143
|
-
typeCheckConfig$
|
|
6100
|
+
typeCheckConfig$P(untrustedConfig, config, deleteAllShares_ConfigPropertyMetadata);
|
|
5144
6101
|
return config;
|
|
5145
6102
|
}
|
|
5146
6103
|
function validateAdapterConfig$s(untrustedConfig, configPropertyNames) {
|
|
@@ -5247,14 +6204,14 @@ const getShares_ConfigPropertyMetadata = [
|
|
|
5247
6204
|
generateParamConfigMetadata('userOrGroupId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5248
6205
|
];
|
|
5249
6206
|
const getShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$r, getShares_ConfigPropertyMetadata);
|
|
5250
|
-
const createResourceParams$r = /*#__PURE__*/ createResourceParams$
|
|
6207
|
+
const createResourceParams$r = /*#__PURE__*/ createResourceParams$P(getShares_ConfigPropertyMetadata);
|
|
5251
6208
|
function keyBuilder$A(luvio, config) {
|
|
5252
6209
|
const resourceParams = createResourceParams$r(config);
|
|
5253
6210
|
return keyBuilder$B(luvio, resourceParams);
|
|
5254
6211
|
}
|
|
5255
6212
|
function typeCheckConfig$r(untrustedConfig) {
|
|
5256
6213
|
const config = {};
|
|
5257
|
-
typeCheckConfig$
|
|
6214
|
+
typeCheckConfig$P(untrustedConfig, config, getShares_ConfigPropertyMetadata);
|
|
5258
6215
|
return config;
|
|
5259
6216
|
}
|
|
5260
6217
|
function validateAdapterConfig$r(untrustedConfig, configPropertyNames) {
|
|
@@ -5303,7 +6260,7 @@ function buildNetworkSnapshot$r(luvio, config, options) {
|
|
|
5303
6260
|
});
|
|
5304
6261
|
}
|
|
5305
6262
|
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
5306
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6263
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$r, undefined, false);
|
|
5307
6264
|
}
|
|
5308
6265
|
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
5309
6266
|
const { luvio, config } = context;
|
|
@@ -5369,7 +6326,7 @@ function validate$k(obj, path = 'SetupRecordShareRepresentation') {
|
|
|
5369
6326
|
}
|
|
5370
6327
|
const obj_createdBy = obj.createdBy;
|
|
5371
6328
|
const path_createdBy = path + '.createdBy';
|
|
5372
|
-
const referencepath_createdByValidationError = validate$
|
|
6329
|
+
const referencepath_createdByValidationError = validate$z(obj_createdBy, path_createdBy);
|
|
5373
6330
|
if (referencepath_createdByValidationError !== null) {
|
|
5374
6331
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
5375
6332
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5382,7 +6339,7 @@ function validate$k(obj, path = 'SetupRecordShareRepresentation') {
|
|
|
5382
6339
|
}
|
|
5383
6340
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
5384
6341
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
5385
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
6342
|
+
const referencepath_lastModifiedByValidationError = validate$z(obj_lastModifiedBy, path_lastModifiedBy);
|
|
5386
6343
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
5387
6344
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
5388
6345
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5544,10 +6501,10 @@ const updateRecordShares_ConfigPropertyMetadata = [
|
|
|
5544
6501
|
generateParamConfigMetadata('updateSetupRecordAccessItems', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5545
6502
|
];
|
|
5546
6503
|
const updateRecordShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$q, updateRecordShares_ConfigPropertyMetadata);
|
|
5547
|
-
const createResourceParams$q = /*#__PURE__*/ createResourceParams$
|
|
6504
|
+
const createResourceParams$q = /*#__PURE__*/ createResourceParams$P(updateRecordShares_ConfigPropertyMetadata);
|
|
5548
6505
|
function typeCheckConfig$q(untrustedConfig) {
|
|
5549
6506
|
const config = {};
|
|
5550
|
-
typeCheckConfig$
|
|
6507
|
+
typeCheckConfig$P(untrustedConfig, config, updateRecordShares_ConfigPropertyMetadata);
|
|
5551
6508
|
const untrustedConfig_updateSetupRecordAccessItems = untrustedConfig.updateSetupRecordAccessItems;
|
|
5552
6509
|
if (ArrayIsArray$1(untrustedConfig_updateSetupRecordAccessItems)) {
|
|
5553
6510
|
const untrustedConfig_updateSetupRecordAccessItems_array = [];
|
|
@@ -5644,10 +6601,10 @@ const createRecordShares_ConfigPropertyMetadata = [
|
|
|
5644
6601
|
generateParamConfigMetadata('accessRequestItems', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5645
6602
|
];
|
|
5646
6603
|
const createRecordShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$p, createRecordShares_ConfigPropertyMetadata);
|
|
5647
|
-
const createResourceParams$p = /*#__PURE__*/ createResourceParams$
|
|
6604
|
+
const createResourceParams$p = /*#__PURE__*/ createResourceParams$P(createRecordShares_ConfigPropertyMetadata);
|
|
5648
6605
|
function typeCheckConfig$p(untrustedConfig) {
|
|
5649
6606
|
const config = {};
|
|
5650
|
-
typeCheckConfig$
|
|
6607
|
+
typeCheckConfig$P(untrustedConfig, config, createRecordShares_ConfigPropertyMetadata);
|
|
5651
6608
|
const untrustedConfig_accessRequestItems = untrustedConfig.accessRequestItems;
|
|
5652
6609
|
if (ArrayIsArray$1(untrustedConfig_accessRequestItems)) {
|
|
5653
6610
|
const untrustedConfig_accessRequestItems_array = [];
|
|
@@ -5739,10 +6696,10 @@ const deleteRecordShare_ConfigPropertyMetadata = [
|
|
|
5739
6696
|
generateParamConfigMetadata('userOrGroupId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5740
6697
|
];
|
|
5741
6698
|
const deleteRecordShare_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, deleteRecordShare_ConfigPropertyMetadata);
|
|
5742
|
-
const createResourceParams$o = /*#__PURE__*/ createResourceParams$
|
|
6699
|
+
const createResourceParams$o = /*#__PURE__*/ createResourceParams$P(deleteRecordShare_ConfigPropertyMetadata);
|
|
5743
6700
|
function typeCheckConfig$o(untrustedConfig) {
|
|
5744
6701
|
const config = {};
|
|
5745
|
-
typeCheckConfig$
|
|
6702
|
+
typeCheckConfig$P(untrustedConfig, config, deleteRecordShare_ConfigPropertyMetadata);
|
|
5746
6703
|
return config;
|
|
5747
6704
|
}
|
|
5748
6705
|
function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
|
|
@@ -6067,14 +7024,14 @@ const getAssetSlackChannels_ConfigPropertyMetadata = [
|
|
|
6067
7024
|
generateParamConfigMetadata('assetId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
6068
7025
|
];
|
|
6069
7026
|
const getAssetSlackChannels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
6070
|
-
const createResourceParams$n = /*#__PURE__*/ createResourceParams$
|
|
7027
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$P(getAssetSlackChannels_ConfigPropertyMetadata);
|
|
6071
7028
|
function keyBuilder$v(luvio, config) {
|
|
6072
7029
|
const resourceParams = createResourceParams$n(config);
|
|
6073
7030
|
return keyBuilder$w(luvio, resourceParams);
|
|
6074
7031
|
}
|
|
6075
7032
|
function typeCheckConfig$n(untrustedConfig) {
|
|
6076
7033
|
const config = {};
|
|
6077
|
-
typeCheckConfig$
|
|
7034
|
+
typeCheckConfig$P(untrustedConfig, config, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
6078
7035
|
return config;
|
|
6079
7036
|
}
|
|
6080
7037
|
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
@@ -6123,7 +7080,7 @@ function buildNetworkSnapshot$n(luvio, config, options) {
|
|
|
6123
7080
|
});
|
|
6124
7081
|
}
|
|
6125
7082
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
6126
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7083
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$n, undefined, false);
|
|
6127
7084
|
}
|
|
6128
7085
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
6129
7086
|
const { luvio, config } = context;
|
|
@@ -6192,10 +7149,10 @@ const createAssetSlackChannel_ConfigPropertyMetadata = [
|
|
|
6192
7149
|
generateParamConfigMetadata('teamId', true, 2 /* Body */, 0 /* String */),
|
|
6193
7150
|
];
|
|
6194
7151
|
const createAssetSlackChannel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
6195
|
-
const createResourceParams$m = /*#__PURE__*/ createResourceParams$
|
|
7152
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$P(createAssetSlackChannel_ConfigPropertyMetadata);
|
|
6196
7153
|
function typeCheckConfig$m(untrustedConfig) {
|
|
6197
7154
|
const config = {};
|
|
6198
|
-
typeCheckConfig$
|
|
7155
|
+
typeCheckConfig$P(untrustedConfig, config, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
6199
7156
|
return config;
|
|
6200
7157
|
}
|
|
6201
7158
|
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
@@ -6255,7 +7212,7 @@ function validate$g(obj, path = 'AnalyticsUsersQueryResultsRepresentation') {
|
|
|
6255
7212
|
for (let i = 0; i < obj_items.length; i++) {
|
|
6256
7213
|
const obj_items_item = obj_items[i];
|
|
6257
7214
|
const path_items_item = path_items + '[' + i + ']';
|
|
6258
|
-
const referencepath_items_itemValidationError = validate$
|
|
7215
|
+
const referencepath_items_itemValidationError = validate$z(obj_items_item, path_items_item);
|
|
6259
7216
|
if (referencepath_items_itemValidationError !== null) {
|
|
6260
7217
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_items_item + '")\n';
|
|
6261
7218
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6372,10 +7329,10 @@ const queryUsers_ConfigPropertyMetadata = [
|
|
|
6372
7329
|
generateParamConfigMetadata('useAutoSuggest', true, 2 /* Body */, 1 /* Boolean */),
|
|
6373
7330
|
];
|
|
6374
7331
|
const queryUsers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, queryUsers_ConfigPropertyMetadata);
|
|
6375
|
-
const createResourceParams$l = /*#__PURE__*/ createResourceParams$
|
|
7332
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$P(queryUsers_ConfigPropertyMetadata);
|
|
6376
7333
|
function typeCheckConfig$l(untrustedConfig) {
|
|
6377
7334
|
const config = {};
|
|
6378
|
-
typeCheckConfig$
|
|
7335
|
+
typeCheckConfig$P(untrustedConfig, config, queryUsers_ConfigPropertyMetadata);
|
|
6379
7336
|
return config;
|
|
6380
7337
|
}
|
|
6381
7338
|
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
@@ -6428,7 +7385,7 @@ function validate$f(obj, path = 'VisualizationRepresentation') {
|
|
|
6428
7385
|
}
|
|
6429
7386
|
const obj_createdBy = obj.createdBy;
|
|
6430
7387
|
const path_createdBy = path + '.createdBy';
|
|
6431
|
-
const referencepath_createdByValidationError = validate$
|
|
7388
|
+
const referencepath_createdByValidationError = validate$z(obj_createdBy, path_createdBy);
|
|
6432
7389
|
if (referencepath_createdByValidationError !== null) {
|
|
6433
7390
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
6434
7391
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6503,7 +7460,7 @@ function validate$f(obj, path = 'VisualizationRepresentation') {
|
|
|
6503
7460
|
if (obj.lastModifiedBy !== undefined) {
|
|
6504
7461
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
6505
7462
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
6506
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
7463
|
+
const referencepath_lastModifiedByValidationError = validate$z(obj_lastModifiedBy, path_lastModifiedBy);
|
|
6507
7464
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
6508
7465
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
6509
7466
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6765,14 +7722,14 @@ const getVisualizations_ConfigPropertyMetadata = [
|
|
|
6765
7722
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
6766
7723
|
];
|
|
6767
7724
|
const getVisualizations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getVisualizations_ConfigPropertyMetadata);
|
|
6768
|
-
const createResourceParams$k = /*#__PURE__*/ createResourceParams$
|
|
7725
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$P(getVisualizations_ConfigPropertyMetadata);
|
|
6769
7726
|
function keyBuilder$r(luvio, config) {
|
|
6770
7727
|
const resourceParams = createResourceParams$k(config);
|
|
6771
7728
|
return keyBuilder$s(luvio, resourceParams);
|
|
6772
7729
|
}
|
|
6773
7730
|
function typeCheckConfig$k(untrustedConfig) {
|
|
6774
7731
|
const config = {};
|
|
6775
|
-
typeCheckConfig$
|
|
7732
|
+
typeCheckConfig$P(untrustedConfig, config, getVisualizations_ConfigPropertyMetadata);
|
|
6776
7733
|
return config;
|
|
6777
7734
|
}
|
|
6778
7735
|
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
@@ -6821,7 +7778,7 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
6821
7778
|
});
|
|
6822
7779
|
}
|
|
6823
7780
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
6824
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7781
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
6825
7782
|
}
|
|
6826
7783
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
6827
7784
|
const { luvio, config } = context;
|
|
@@ -6897,10 +7854,10 @@ const createVisualization_ConfigPropertyMetadata = [
|
|
|
6897
7854
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
6898
7855
|
];
|
|
6899
7856
|
const createVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, createVisualization_ConfigPropertyMetadata);
|
|
6900
|
-
const createResourceParams$j = /*#__PURE__*/ createResourceParams$
|
|
7857
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$P(createVisualization_ConfigPropertyMetadata);
|
|
6901
7858
|
function typeCheckConfig$j(untrustedConfig) {
|
|
6902
7859
|
const config = {};
|
|
6903
|
-
typeCheckConfig$
|
|
7860
|
+
typeCheckConfig$P(untrustedConfig, config, createVisualization_ConfigPropertyMetadata);
|
|
6904
7861
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
6905
7862
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
6906
7863
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -7065,10 +8022,10 @@ const deleteVisualization_ConfigPropertyMetadata = [
|
|
|
7065
8022
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7066
8023
|
];
|
|
7067
8024
|
const deleteVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, deleteVisualization_ConfigPropertyMetadata);
|
|
7068
|
-
const createResourceParams$i = /*#__PURE__*/ createResourceParams$
|
|
8025
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$P(deleteVisualization_ConfigPropertyMetadata);
|
|
7069
8026
|
function typeCheckConfig$i(untrustedConfig) {
|
|
7070
8027
|
const config = {};
|
|
7071
|
-
typeCheckConfig$
|
|
8028
|
+
typeCheckConfig$P(untrustedConfig, config, deleteVisualization_ConfigPropertyMetadata);
|
|
7072
8029
|
return config;
|
|
7073
8030
|
}
|
|
7074
8031
|
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
@@ -7166,14 +8123,14 @@ const getVisualization_ConfigPropertyMetadata = [
|
|
|
7166
8123
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7167
8124
|
];
|
|
7168
8125
|
const getVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getVisualization_ConfigPropertyMetadata);
|
|
7169
|
-
const createResourceParams$h = /*#__PURE__*/ createResourceParams$
|
|
8126
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$P(getVisualization_ConfigPropertyMetadata);
|
|
7170
8127
|
function keyBuilder$o(luvio, config) {
|
|
7171
8128
|
const resourceParams = createResourceParams$h(config);
|
|
7172
8129
|
return keyBuilder$p(luvio, resourceParams);
|
|
7173
8130
|
}
|
|
7174
8131
|
function typeCheckConfig$h(untrustedConfig) {
|
|
7175
8132
|
const config = {};
|
|
7176
|
-
typeCheckConfig$
|
|
8133
|
+
typeCheckConfig$P(untrustedConfig, config, getVisualization_ConfigPropertyMetadata);
|
|
7177
8134
|
return config;
|
|
7178
8135
|
}
|
|
7179
8136
|
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
@@ -7222,7 +8179,7 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
7222
8179
|
});
|
|
7223
8180
|
}
|
|
7224
8181
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
7225
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8182
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
7226
8183
|
}
|
|
7227
8184
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
7228
8185
|
const { luvio, config } = context;
|
|
@@ -7299,10 +8256,10 @@ const updateVisualization_ConfigPropertyMetadata = [
|
|
|
7299
8256
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
7300
8257
|
];
|
|
7301
8258
|
const updateVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, updateVisualization_ConfigPropertyMetadata);
|
|
7302
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
8259
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$P(updateVisualization_ConfigPropertyMetadata);
|
|
7303
8260
|
function typeCheckConfig$g(untrustedConfig) {
|
|
7304
8261
|
const config = {};
|
|
7305
|
-
typeCheckConfig$
|
|
8262
|
+
typeCheckConfig$P(untrustedConfig, config, updateVisualization_ConfigPropertyMetadata);
|
|
7306
8263
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
7307
8264
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
7308
8265
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -7566,14 +8523,14 @@ const getVisualizationBundle_ConfigPropertyMetadata = [
|
|
|
7566
8523
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7567
8524
|
];
|
|
7568
8525
|
const getVisualizationBundle_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getVisualizationBundle_ConfigPropertyMetadata);
|
|
7569
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
8526
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$P(getVisualizationBundle_ConfigPropertyMetadata);
|
|
7570
8527
|
function keyBuilder$l(luvio, config) {
|
|
7571
8528
|
const resourceParams = createResourceParams$f(config);
|
|
7572
8529
|
return keyBuilder$m(luvio, resourceParams);
|
|
7573
8530
|
}
|
|
7574
8531
|
function typeCheckConfig$f(untrustedConfig) {
|
|
7575
8532
|
const config = {};
|
|
7576
|
-
typeCheckConfig$
|
|
8533
|
+
typeCheckConfig$P(untrustedConfig, config, getVisualizationBundle_ConfigPropertyMetadata);
|
|
7577
8534
|
return config;
|
|
7578
8535
|
}
|
|
7579
8536
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -7622,7 +8579,7 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
7622
8579
|
});
|
|
7623
8580
|
}
|
|
7624
8581
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
7625
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8582
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
7626
8583
|
}
|
|
7627
8584
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
7628
8585
|
const { luvio, config } = context;
|
|
@@ -7660,7 +8617,7 @@ function validate$c(obj, path = 'WorkspaceRepresentation') {
|
|
|
7660
8617
|
}
|
|
7661
8618
|
const obj_createdBy = obj.createdBy;
|
|
7662
8619
|
const path_createdBy = path + '.createdBy';
|
|
7663
|
-
const referencepath_createdByValidationError = validate$
|
|
8620
|
+
const referencepath_createdByValidationError = validate$z(obj_createdBy, path_createdBy);
|
|
7664
8621
|
if (referencepath_createdByValidationError !== null) {
|
|
7665
8622
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
7666
8623
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7911,14 +8868,14 @@ const getWorkspaces_ConfigPropertyMetadata = [
|
|
|
7911
8868
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
7912
8869
|
];
|
|
7913
8870
|
const getWorkspaces_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getWorkspaces_ConfigPropertyMetadata);
|
|
7914
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
8871
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$P(getWorkspaces_ConfigPropertyMetadata);
|
|
7915
8872
|
function keyBuilder$i(luvio, config) {
|
|
7916
8873
|
const resourceParams = createResourceParams$e(config);
|
|
7917
8874
|
return keyBuilder$j(luvio, resourceParams);
|
|
7918
8875
|
}
|
|
7919
8876
|
function typeCheckConfig$e(untrustedConfig) {
|
|
7920
8877
|
const config = {};
|
|
7921
|
-
typeCheckConfig$
|
|
8878
|
+
typeCheckConfig$P(untrustedConfig, config, getWorkspaces_ConfigPropertyMetadata);
|
|
7922
8879
|
return config;
|
|
7923
8880
|
}
|
|
7924
8881
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -7967,7 +8924,7 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
7967
8924
|
});
|
|
7968
8925
|
}
|
|
7969
8926
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
7970
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8927
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
7971
8928
|
}
|
|
7972
8929
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
7973
8930
|
const { luvio, config } = context;
|
|
@@ -8037,10 +8994,10 @@ const createWorkspace_ConfigPropertyMetadata = [
|
|
|
8037
8994
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
8038
8995
|
];
|
|
8039
8996
|
const createWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, createWorkspace_ConfigPropertyMetadata);
|
|
8040
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
8997
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$P(createWorkspace_ConfigPropertyMetadata);
|
|
8041
8998
|
function typeCheckConfig$d(untrustedConfig) {
|
|
8042
8999
|
const config = {};
|
|
8043
|
-
typeCheckConfig$
|
|
9000
|
+
typeCheckConfig$P(untrustedConfig, config, createWorkspace_ConfigPropertyMetadata);
|
|
8044
9001
|
return config;
|
|
8045
9002
|
}
|
|
8046
9003
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -8121,10 +9078,10 @@ const deleteWorkspace_ConfigPropertyMetadata = [
|
|
|
8121
9078
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8122
9079
|
];
|
|
8123
9080
|
const deleteWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, deleteWorkspace_ConfigPropertyMetadata);
|
|
8124
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
9081
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$P(deleteWorkspace_ConfigPropertyMetadata);
|
|
8125
9082
|
function typeCheckConfig$c(untrustedConfig) {
|
|
8126
9083
|
const config = {};
|
|
8127
|
-
typeCheckConfig$
|
|
9084
|
+
typeCheckConfig$P(untrustedConfig, config, deleteWorkspace_ConfigPropertyMetadata);
|
|
8128
9085
|
return config;
|
|
8129
9086
|
}
|
|
8130
9087
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -8222,14 +9179,14 @@ const getWorkspaceByIdOrName_ConfigPropertyMetadata = [
|
|
|
8222
9179
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8223
9180
|
];
|
|
8224
9181
|
const getWorkspaceByIdOrName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
8225
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
9182
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$P(getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
8226
9183
|
function keyBuilder$f(luvio, config) {
|
|
8227
9184
|
const resourceParams = createResourceParams$b(config);
|
|
8228
9185
|
return keyBuilder$g(luvio, resourceParams);
|
|
8229
9186
|
}
|
|
8230
9187
|
function typeCheckConfig$b(untrustedConfig) {
|
|
8231
9188
|
const config = {};
|
|
8232
|
-
typeCheckConfig$
|
|
9189
|
+
typeCheckConfig$P(untrustedConfig, config, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
8233
9190
|
return config;
|
|
8234
9191
|
}
|
|
8235
9192
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -8278,7 +9235,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
8278
9235
|
});
|
|
8279
9236
|
}
|
|
8280
9237
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
8281
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9238
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
8282
9239
|
}
|
|
8283
9240
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
8284
9241
|
const { luvio, config } = context;
|
|
@@ -8349,10 +9306,10 @@ const updateWorkspace_ConfigPropertyMetadata = [
|
|
|
8349
9306
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
8350
9307
|
];
|
|
8351
9308
|
const updateWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, updateWorkspace_ConfigPropertyMetadata);
|
|
8352
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
9309
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$P(updateWorkspace_ConfigPropertyMetadata);
|
|
8353
9310
|
function typeCheckConfig$a(untrustedConfig) {
|
|
8354
9311
|
const config = {};
|
|
8355
|
-
typeCheckConfig$
|
|
9312
|
+
typeCheckConfig$P(untrustedConfig, config, updateWorkspace_ConfigPropertyMetadata);
|
|
8356
9313
|
return config;
|
|
8357
9314
|
}
|
|
8358
9315
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -8420,7 +9377,7 @@ function validate$a(obj, path = 'WorkspaceAssetRepresentation') {
|
|
|
8420
9377
|
}
|
|
8421
9378
|
const obj_createdBy = obj.createdBy;
|
|
8422
9379
|
const path_createdBy = path + '.createdBy';
|
|
8423
|
-
const referencepath_createdByValidationError = validate$
|
|
9380
|
+
const referencepath_createdByValidationError = validate$z(obj_createdBy, path_createdBy);
|
|
8424
9381
|
if (referencepath_createdByValidationError !== null) {
|
|
8425
9382
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
8426
9383
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8533,10 +9490,10 @@ const createWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
8533
9490
|
generateParamConfigMetadata('assetUsageType', true, 2 /* Body */, 0 /* String */),
|
|
8534
9491
|
];
|
|
8535
9492
|
const createWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
8536
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
9493
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$P(createWorkspaceAsset_ConfigPropertyMetadata);
|
|
8537
9494
|
function typeCheckConfig$9(untrustedConfig) {
|
|
8538
9495
|
const config = {};
|
|
8539
|
-
typeCheckConfig$
|
|
9496
|
+
typeCheckConfig$P(untrustedConfig, config, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
8540
9497
|
return config;
|
|
8541
9498
|
}
|
|
8542
9499
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -8618,10 +9575,10 @@ const deleteWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
8618
9575
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8619
9576
|
];
|
|
8620
9577
|
const deleteWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
8621
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
9578
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$P(deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
8622
9579
|
function typeCheckConfig$8(untrustedConfig) {
|
|
8623
9580
|
const config = {};
|
|
8624
|
-
typeCheckConfig$
|
|
9581
|
+
typeCheckConfig$P(untrustedConfig, config, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
8625
9582
|
return config;
|
|
8626
9583
|
}
|
|
8627
9584
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -9005,14 +9962,14 @@ const getFlows_ConfigPropertyMetadata = [
|
|
|
9005
9962
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
9006
9963
|
];
|
|
9007
9964
|
const getFlows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getFlows_ConfigPropertyMetadata);
|
|
9008
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
9965
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$P(getFlows_ConfigPropertyMetadata);
|
|
9009
9966
|
function keyBuilder$b(luvio, config) {
|
|
9010
9967
|
const resourceParams = createResourceParams$7(config);
|
|
9011
9968
|
return keyBuilder$c(luvio, resourceParams);
|
|
9012
9969
|
}
|
|
9013
9970
|
function typeCheckConfig$7(untrustedConfig) {
|
|
9014
9971
|
const config = {};
|
|
9015
|
-
typeCheckConfig$
|
|
9972
|
+
typeCheckConfig$P(untrustedConfig, config, getFlows_ConfigPropertyMetadata);
|
|
9016
9973
|
return config;
|
|
9017
9974
|
}
|
|
9018
9975
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -9061,7 +10018,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
9061
10018
|
});
|
|
9062
10019
|
}
|
|
9063
10020
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
9064
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10021
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
9065
10022
|
}
|
|
9066
10023
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
9067
10024
|
const { luvio, config } = context;
|
|
@@ -9137,14 +10094,14 @@ const getFlowByName_ConfigPropertyMetadata = [
|
|
|
9137
10094
|
generateParamConfigMetadata('flowApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9138
10095
|
];
|
|
9139
10096
|
const getFlowByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getFlowByName_ConfigPropertyMetadata);
|
|
9140
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
10097
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$P(getFlowByName_ConfigPropertyMetadata);
|
|
9141
10098
|
function keyBuilder$9(luvio, config) {
|
|
9142
10099
|
const resourceParams = createResourceParams$6(config);
|
|
9143
10100
|
return keyBuilder$a(luvio, resourceParams);
|
|
9144
10101
|
}
|
|
9145
10102
|
function typeCheckConfig$6(untrustedConfig) {
|
|
9146
10103
|
const config = {};
|
|
9147
|
-
typeCheckConfig$
|
|
10104
|
+
typeCheckConfig$P(untrustedConfig, config, getFlowByName_ConfigPropertyMetadata);
|
|
9148
10105
|
return config;
|
|
9149
10106
|
}
|
|
9150
10107
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -9193,7 +10150,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
9193
10150
|
});
|
|
9194
10151
|
}
|
|
9195
10152
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
9196
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10153
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
9197
10154
|
}
|
|
9198
10155
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
9199
10156
|
const { luvio, config } = context;
|
|
@@ -9351,14 +10308,14 @@ const getSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
9351
10308
|
generateParamConfigMetadata('digestConfigOwner', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9352
10309
|
];
|
|
9353
10310
|
const getSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
9354
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
10311
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$P(getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
9355
10312
|
function keyBuilder$6(luvio, config) {
|
|
9356
10313
|
const resourceParams = createResourceParams$5(config);
|
|
9357
10314
|
return keyBuilder$7(luvio, resourceParams);
|
|
9358
10315
|
}
|
|
9359
10316
|
function typeCheckConfig$5(untrustedConfig) {
|
|
9360
10317
|
const config = {};
|
|
9361
|
-
typeCheckConfig$
|
|
10318
|
+
typeCheckConfig$P(untrustedConfig, config, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
9362
10319
|
return config;
|
|
9363
10320
|
}
|
|
9364
10321
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -9407,7 +10364,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
9407
10364
|
});
|
|
9408
10365
|
}
|
|
9409
10366
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
9410
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10367
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
9411
10368
|
}
|
|
9412
10369
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
9413
10370
|
const { luvio, config } = context;
|
|
@@ -9476,10 +10433,10 @@ const updateSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
9476
10433
|
generateParamConfigMetadata('scheduleType', true, 2 /* Body */, 0 /* String */),
|
|
9477
10434
|
];
|
|
9478
10435
|
const updateSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
9479
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
10436
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$P(updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
9480
10437
|
function typeCheckConfig$4(untrustedConfig) {
|
|
9481
10438
|
const config = {};
|
|
9482
|
-
typeCheckConfig$
|
|
10439
|
+
typeCheckConfig$P(untrustedConfig, config, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
9483
10440
|
return config;
|
|
9484
10441
|
}
|
|
9485
10442
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -9711,10 +10668,10 @@ const getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata = [
|
|
|
9711
10668
|
generateParamConfigMetadata('sortDirection', false, 2 /* Body */, 0 /* String */),
|
|
9712
10669
|
];
|
|
9713
10670
|
const getUnifiedAnalyticsLibraryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
9714
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
10671
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$P(getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
9715
10672
|
function typeCheckConfig$3(untrustedConfig) {
|
|
9716
10673
|
const config = {};
|
|
9717
|
-
typeCheckConfig$
|
|
10674
|
+
typeCheckConfig$P(untrustedConfig, config, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
9718
10675
|
const untrustedConfig_assetTypes = untrustedConfig.assetTypes;
|
|
9719
10676
|
if (ArrayIsArray$1(untrustedConfig_assetTypes)) {
|
|
9720
10677
|
const untrustedConfig_assetTypes_array = [];
|
|
@@ -9946,10 +10903,10 @@ const generateSFDriveCredentials_ConfigPropertyMetadata = [
|
|
|
9946
10903
|
generateParamConfigMetadata('path', true, 2 /* Body */, 0 /* String */),
|
|
9947
10904
|
];
|
|
9948
10905
|
const generateSFDriveCredentials_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
9949
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
10906
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$P(generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
9950
10907
|
function typeCheckConfig$2(untrustedConfig) {
|
|
9951
10908
|
const config = {};
|
|
9952
|
-
typeCheckConfig$
|
|
10909
|
+
typeCheckConfig$P(untrustedConfig, config, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
9953
10910
|
return config;
|
|
9954
10911
|
}
|
|
9955
10912
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -10120,14 +11077,14 @@ const initiateMarketplaceListingInstallation_ConfigPropertyMetadata = [
|
|
|
10120
11077
|
generateParamConfigMetadata('listingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10121
11078
|
];
|
|
10122
11079
|
const initiateMarketplaceListingInstallation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
10123
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
11080
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$P(initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
10124
11081
|
function keyBuilder$2(luvio, config) {
|
|
10125
11082
|
const resourceParams = createResourceParams$1(config);
|
|
10126
11083
|
return keyBuilder$3(luvio, resourceParams);
|
|
10127
11084
|
}
|
|
10128
11085
|
function typeCheckConfig$1(untrustedConfig) {
|
|
10129
11086
|
const config = {};
|
|
10130
|
-
typeCheckConfig$
|
|
11087
|
+
typeCheckConfig$P(untrustedConfig, config, initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
10131
11088
|
return config;
|
|
10132
11089
|
}
|
|
10133
11090
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -10176,7 +11133,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
10176
11133
|
});
|
|
10177
11134
|
}
|
|
10178
11135
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
10179
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11136
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
10180
11137
|
}
|
|
10181
11138
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
10182
11139
|
const { luvio, config } = context;
|
|
@@ -10354,14 +11311,14 @@ const getMarketplaceListingInstallationProgress_ConfigPropertyMetadata = [
|
|
|
10354
11311
|
generateParamConfigMetadata('installationId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10355
11312
|
];
|
|
10356
11313
|
const getMarketplaceListingInstallationProgress_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
10357
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
11314
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$P(getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
10358
11315
|
function keyBuilder(luvio, config) {
|
|
10359
11316
|
const resourceParams = createResourceParams(config);
|
|
10360
11317
|
return keyBuilder$1(luvio, resourceParams);
|
|
10361
11318
|
}
|
|
10362
11319
|
function typeCheckConfig(untrustedConfig) {
|
|
10363
11320
|
const config = {};
|
|
10364
|
-
typeCheckConfig$
|
|
11321
|
+
typeCheckConfig$P(untrustedConfig, config, getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
10365
11322
|
return config;
|
|
10366
11323
|
}
|
|
10367
11324
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -10410,7 +11367,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
10410
11367
|
});
|
|
10411
11368
|
}
|
|
10412
11369
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
10413
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11370
|
+
return buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
10414
11371
|
}
|
|
10415
11372
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
10416
11373
|
const { luvio, config } = context;
|
|
@@ -10435,4 +11392,4 @@ const getMarketplaceListingInstallationProgressAdapterFactory = (luvio) => funct
|
|
|
10435
11392
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
10436
11393
|
};
|
|
10437
11394
|
|
|
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 };
|
|
11395
|
+
export { createAnnotationAdapterFactory, createAssetSlackChannelAdapterFactory, createDashboardAdapterFactory, createDataAssetRequestAdapterFactory, createLoglinesAdapterFactory, createRecordSharesAdapterFactory, createVisualizationAdapterFactory, createWorkspaceAdapterFactory, createWorkspaceAssetAdapterFactory, deleteAllSharesAdapterFactory, deleteDashboardAdapterFactory, deleteRecordShareAdapterFactory, deleteVisualizationAdapterFactory, deleteWorkspaceAdapterFactory, deleteWorkspaceAssetAdapterFactory, followAdapterFactory, generateSFDriveCredentialsAdapterFactory, getAnnotationsAdapterFactory, getAssetSlackChannelsAdapterFactory, getDashboardByNameAdapterFactory, getDashboardsAdapterFactory, 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 };
|