@salesforce/lds-adapters-analytics-unifiedanalytics 1.308.0-dev5 → 1.308.0-dev7
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 +1332 -819
- package/dist/es/es2018/types/src/generated/adapters/createAnnotation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/createAssetSlackChannel.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/createDashboard.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/createLoglines.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/createVisualization.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/createWorkspace.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/createWorkspaceAsset.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/deleteDashboard.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/deleteVisualization.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/deleteWorkspace.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/deleteWorkspaceAsset.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/follow.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/getAnnotations.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/getAssetSlackChannels.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/getDashboardByName.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/getDashboards.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/getFlowByName.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/getFlows.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/getFollowedAssets.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/getFollowers.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/getOrg.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackAppInfo.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/getSubscriptionDigestConfig.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/getUnifiedAnalyticsLibraryAssets.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/getUniqueFollowerCount.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getVisualization.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/getVisualizationBundle.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/getVisualizations.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/getWorkspaceByIdOrName.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/getWorkspaces.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/publish.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/queryAssets.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/queryUsers.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/unfollow.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/updateDashboard.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/updateSubscriptionDigestConfig.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/updateVisualization.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/updateWorkspace.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/resources/getTableauFollowAssetsFollowerCountByFollowedAssetId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/getTableauOrgsByUserName.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/OrgCollectionRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/OrgInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/OrgRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/SlackMessageOutputRepresentation.d.ts +9 -9
- package/dist/es/es2018/types/src/generated/types/UniqueFollowerCountRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/WorkspaceRepresentation.d.ts +3 -6
- package/package.json +3 -3
- package/sfdc/index.js +1790 -1257
- package/src/raml/api.raml +82 -9
- package/src/raml/luvio.raml +41 -25
- /package/dist/es/es2018/types/src/generated/resources/{deleteUnifiedAnalyticsDashboardsByDashboardIdOrApiName.d.ts → deleteTableauDashboardsByDashboardIdOrApiName.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{deleteUnifiedAnalyticsFollowFollowersFollowsByFollowedAssetIdAndFollowerId.d.ts → deleteTableauFollowFollowersFollowsByFollowedAssetIdAndFollowerId.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{deleteUnifiedAnalyticsVisualizationsByVisualizationIdOrApiName.d.ts → deleteTableauVisualizationsByVisualizationIdOrApiName.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{deleteUnifiedAnalyticsWorkspacesAssetsByAssetIdAndWorkspaceIdOrApiName.d.ts → deleteTableauWorkspacesAssetsByAssetIdAndWorkspaceIdOrApiName.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{deleteUnifiedAnalyticsWorkspacesByWorkspaceIdOrApiName.d.ts → deleteTableauWorkspacesByWorkspaceIdOrApiName.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{getUnifiedAnalyticsAnnotations.d.ts → getTableauAnnotations.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{getUnifiedAnalyticsAnnotationsSlackAppInfo.d.ts → getTableauAnnotationsSlackAppInfo.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{getUnifiedAnalyticsDashboards.d.ts → getTableauDashboards.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{getUnifiedAnalyticsDashboardsByDashboardIdOrApiName.d.ts → getTableauDashboardsByDashboardIdOrApiName.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{getUnifiedAnalyticsFlows.d.ts → getTableauFlows.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{getUnifiedAnalyticsFlowsByFlowApiName.d.ts → getTableauFlowsByFlowApiName.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{getUnifiedAnalyticsFollowAssetsFollowersByFollowedAssetId.d.ts → getTableauFollowAssetsFollowersByFollowedAssetId.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{getUnifiedAnalyticsFollowFollowersFollowedAssetsByFollowerId.d.ts → getTableauFollowFollowersFollowedAssetsByFollowerId.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{getUnifiedAnalyticsFollowFollowersFollowsByFollowedAssetIdAndFollowerId.d.ts → getTableauFollowFollowersFollowsByFollowedAssetIdAndFollowerId.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{getUnifiedAnalyticsSlackChannels.d.ts → getTableauSlackChannels.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{getUnifiedAnalyticsSubscriptionsDigestByDigestConfigOwner.d.ts → getTableauSubscriptionsDigestByDigestConfigOwner.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{getUnifiedAnalyticsVisualizations.d.ts → getTableauVisualizations.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{getUnifiedAnalyticsVisualizationsBundleByVisualizationIdOrApiName.d.ts → getTableauVisualizationsBundleByVisualizationIdOrApiName.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{getUnifiedAnalyticsVisualizationsByVisualizationIdOrApiName.d.ts → getTableauVisualizationsByVisualizationIdOrApiName.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{getUnifiedAnalyticsWorkspaces.d.ts → getTableauWorkspaces.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{getUnifiedAnalyticsWorkspacesAssetsByAssetIdAndWorkspaceIdOrApiName.d.ts → getTableauWorkspacesAssetsByAssetIdAndWorkspaceIdOrApiName.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{getUnifiedAnalyticsWorkspacesAssetsByWorkspaceIdOrApiName.d.ts → getTableauWorkspacesAssetsByWorkspaceIdOrApiName.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{getUnifiedAnalyticsWorkspacesByWorkspaceIdOrApiName.d.ts → getTableauWorkspacesByWorkspaceIdOrApiName.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{patchUnifiedAnalyticsDashboardsByDashboardIdOrApiName.d.ts → patchTableauDashboardsByDashboardIdOrApiName.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{patchUnifiedAnalyticsSubscriptionsDigestByDigestConfigOwner.d.ts → patchTableauSubscriptionsDigestByDigestConfigOwner.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{patchUnifiedAnalyticsVisualizationsByVisualizationIdOrApiName.d.ts → patchTableauVisualizationsByVisualizationIdOrApiName.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{patchUnifiedAnalyticsWorkspacesByWorkspaceIdOrApiName.d.ts → patchTableauWorkspacesByWorkspaceIdOrApiName.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{postUnifiedAnalyticsAdminMonitoringEvents.d.ts → postTableauAdminMonitoringEvents.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{postUnifiedAnalyticsAnnotations.d.ts → postTableauAnnotations.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{postUnifiedAnalyticsAssetsQuery.d.ts → postTableauAssetsQuery.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{postUnifiedAnalyticsDashboards.d.ts → postTableauDashboards.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{postUnifiedAnalyticsFollowFollowersFollowsByFollowerId.d.ts → postTableauFollowFollowersFollowsByFollowerId.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{postUnifiedAnalyticsLibraryAssetsQuery.d.ts → postTableauLibraryAssetsQuery.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{postUnifiedAnalyticsLoglines.d.ts → postTableauLoglines.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{postUnifiedAnalyticsSlackChannels.d.ts → postTableauSlackChannels.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{postUnifiedAnalyticsUsersQuery.d.ts → postTableauUsersQuery.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{postUnifiedAnalyticsVisualizations.d.ts → postTableauVisualizations.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{postUnifiedAnalyticsWorkspaces.d.ts → postTableauWorkspaces.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{postUnifiedAnalyticsWorkspacesAssetsByWorkspaceIdOrApiName.d.ts → postTableauWorkspacesAssetsByWorkspaceIdOrApiName.d.ts} +0 -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$D, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$h, typeCheckConfig as typeCheckConfig$D } 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$g = 1000;
|
|
97
|
+
const VERSION$q = "c1d57e95aac548d53c761d2e1deeb661";
|
|
98
|
+
function validate$K(obj, path = 'UnifiedAnalyticsMonitoringEventItemRepresentation') {
|
|
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$H(obj, path = 'UnifiedAnalyticsMonitoringEventItemRepresentati
|
|
|
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$r = 'UnifiedAnalyticsMonitoringEventItemRepresentation';
|
|
122
|
+
function keyBuilder$S(luvio, config) {
|
|
123
|
+
return keyPrefix + '::' + RepresentationType$r + ':' + config.id;
|
|
124
124
|
}
|
|
125
125
|
function keyBuilderFromType$e(luvio, object) {
|
|
126
126
|
const keyParams = {
|
|
127
127
|
id: object.id
|
|
128
128
|
};
|
|
129
|
-
return keyBuilder$
|
|
129
|
+
return keyBuilder$S(luvio, keyParams);
|
|
130
130
|
}
|
|
131
|
-
function normalize$
|
|
131
|
+
function normalize$q(input, existing, path, luvio, store, timestamp) {
|
|
132
132
|
return input;
|
|
133
133
|
}
|
|
134
|
-
const select$
|
|
134
|
+
const select$Y = function UnifiedAnalyticsMonitoringEventItemRepresentationSelect() {
|
|
135
135
|
return {
|
|
136
136
|
kind: 'Fragment',
|
|
137
|
-
version: VERSION$
|
|
137
|
+
version: VERSION$q,
|
|
138
138
|
private: [],
|
|
139
139
|
opaque: true
|
|
140
140
|
};
|
|
141
141
|
};
|
|
142
|
-
function equals$
|
|
142
|
+
function equals$q(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$q = function UnifiedAnalyticsMonitoringEventItemRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
149
149
|
if (process.env.NODE_ENV !== 'production') {
|
|
150
|
-
const validateError = validate$
|
|
150
|
+
const validateError = validate$K(input);
|
|
151
151
|
if (validateError !== null) {
|
|
152
152
|
throw validateError;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
const key = keyBuilderFromType$e(luvio, input);
|
|
156
|
-
const ttlToUse = TTL$
|
|
157
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
156
|
+
const ttlToUse = TTL$g;
|
|
157
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$q, "UnifiedAnalytics", VERSION$q, RepresentationType$r, equals$q);
|
|
158
158
|
return createLink(key);
|
|
159
159
|
};
|
|
160
|
-
function getTypeCacheKeys$
|
|
160
|
+
function getTypeCacheKeys$q(rootKeySet, luvio, input, fullPathFactory) {
|
|
161
161
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
162
162
|
const rootKey = keyBuilderFromType$e(luvio, input);
|
|
163
163
|
rootKeySet.set(rootKey, {
|
|
164
164
|
namespace: keyPrefix,
|
|
165
|
-
representationName: RepresentationType$
|
|
165
|
+
representationName: RepresentationType$r,
|
|
166
166
|
mergeable: false
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
function select$
|
|
171
|
-
return select$
|
|
170
|
+
function select$X(luvio, params) {
|
|
171
|
+
return select$Y();
|
|
172
172
|
}
|
|
173
|
-
function getResponseCacheKeys$
|
|
174
|
-
getTypeCacheKeys$
|
|
173
|
+
function getResponseCacheKeys$C(storeKeyMap, luvio, resourceParams, response) {
|
|
174
|
+
getTypeCacheKeys$q(storeKeyMap, luvio, response);
|
|
175
175
|
}
|
|
176
|
-
function ingestSuccess$
|
|
176
|
+
function ingestSuccess$x(luvio, resourceParams, response) {
|
|
177
177
|
const { body } = response;
|
|
178
178
|
const key = keyBuilderFromType$e(luvio, body);
|
|
179
|
-
luvio.storeIngest(key, ingest$
|
|
179
|
+
luvio.storeIngest(key, ingest$q, body);
|
|
180
180
|
const snapshot = luvio.storeLookup({
|
|
181
181
|
recordId: key,
|
|
182
|
-
node: select$
|
|
182
|
+
node: select$X(),
|
|
183
183
|
variables: {},
|
|
184
184
|
});
|
|
185
185
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -190,11 +190,11 @@ function ingestSuccess$v(luvio, resourceParams, response) {
|
|
|
190
190
|
deepFreeze(snapshot.data);
|
|
191
191
|
return snapshot;
|
|
192
192
|
}
|
|
193
|
-
function createResourceRequest$
|
|
193
|
+
function createResourceRequest$C(config) {
|
|
194
194
|
const headers = {};
|
|
195
195
|
return {
|
|
196
196
|
baseUri: '/services/data/v62.0',
|
|
197
|
-
basePath: '/
|
|
197
|
+
basePath: '/tableau/admin/monitoring/events',
|
|
198
198
|
method: 'post',
|
|
199
199
|
body: config.body,
|
|
200
200
|
urlParams: {},
|
|
@@ -204,13 +204,13 @@ function createResourceRequest$A(config) {
|
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
const adapterName$
|
|
207
|
+
const adapterName$C = '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$C, publish_ConfigPropertyMetadata);
|
|
212
|
+
const createResourceParams$C = /*#__PURE__*/ createResourceParams$D(publish_ConfigPropertyMetadata);
|
|
213
|
+
function typeCheckConfig$C(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$A(untrustedConfig) {
|
|
|
223
223
|
}
|
|
224
224
|
return config;
|
|
225
225
|
}
|
|
226
|
-
function validateAdapterConfig$
|
|
226
|
+
function validateAdapterConfig$C(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$C(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$C(luvio, config, options) {
|
|
240
|
+
const resourceParams = createResourceParams$C(config);
|
|
241
|
+
const request = createResourceRequest$C(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$x(luvio, resourceParams, response);
|
|
246
246
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
247
247
|
}, () => {
|
|
248
248
|
const cache = new StoreKeyMap();
|
|
249
|
-
getResponseCacheKeys$
|
|
249
|
+
getResponseCacheKeys$C(cache, luvio, resourceParams, response.body);
|
|
250
250
|
return cache;
|
|
251
251
|
});
|
|
252
252
|
}, (response) => {
|
|
@@ -256,16 +256,16 @@ function buildNetworkSnapshot$A(luvio, config, options) {
|
|
|
256
256
|
}
|
|
257
257
|
const publishAdapterFactory = (luvio) => {
|
|
258
258
|
return function publish(untrustedConfig) {
|
|
259
|
-
const config = validateAdapterConfig$
|
|
259
|
+
const config = validateAdapterConfig$C(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$C(luvio, config);
|
|
265
265
|
};
|
|
266
266
|
};
|
|
267
267
|
|
|
268
|
-
function validate$
|
|
268
|
+
function validate$J(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$G(obj, path = 'DashboardAnnotationAnchorRepresentation') {
|
|
|
279
279
|
return v_error === undefined ? null : v_error;
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
function validate$
|
|
282
|
+
function validate$I(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$F(obj, path = 'AnnotationAssetRepresentation') {
|
|
|
298
298
|
return v_error === undefined ? null : v_error;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
function validate$
|
|
301
|
+
function validate$H(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$E(obj, path = 'FileTypeOutputRepresentation') {
|
|
|
317
317
|
return v_error === undefined ? null : v_error;
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
function validate$
|
|
320
|
+
function validate$G(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$D(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$H(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$D(obj, path = 'ContentVersionOutputRepresentation') {
|
|
|
401
401
|
return v_error === undefined ? null : v_error;
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
-
function validate$
|
|
404
|
+
function validate$F(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$H(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$C(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$G(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$C(obj, path = 'ContentDocumentOutputRepresentation') {
|
|
|
441
441
|
return v_error === undefined ? null : v_error;
|
|
442
442
|
}
|
|
443
443
|
|
|
444
|
-
function validate$
|
|
444
|
+
function validate$E(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$B(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$F(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$B(obj, path = 'SlackFileOutputRepresentation') {
|
|
|
550
550
|
return v_error === undefined ? null : v_error;
|
|
551
551
|
}
|
|
552
552
|
|
|
553
|
-
function validate$
|
|
553
|
+
function validate$D(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$A(obj, path = 'SlackEmojiOutputRepresentation') {
|
|
|
674
674
|
return v_error === undefined ? null : v_error;
|
|
675
675
|
}
|
|
676
676
|
|
|
677
|
-
function validate$
|
|
677
|
+
function validate$C(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$z(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$D(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$z(obj, path = 'SlackUserInfoOutputRepresentation') {
|
|
|
1064
1064
|
return v_error === undefined ? null : v_error;
|
|
1065
1065
|
}
|
|
1066
1066
|
|
|
1067
|
-
function validate$
|
|
1067
|
+
function validate$B(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$y(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$C(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$y(obj, path = 'SlackReactionOutputRepresentation') {
|
|
|
1233
1233
|
return v_error === undefined ? null : v_error;
|
|
1234
1234
|
}
|
|
1235
1235
|
|
|
1236
|
-
function validate$
|
|
1236
|
+
function validate$A(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$x(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$E(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');
|
|
@@ -1317,8 +1317,29 @@ function validate$x(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1317
1317
|
}
|
|
1318
1318
|
const obj_isBroadcast = obj.isBroadcast;
|
|
1319
1319
|
const path_isBroadcast = path + '.isBroadcast';
|
|
1320
|
-
|
|
1321
|
-
|
|
1320
|
+
let obj_isBroadcast_union0 = null;
|
|
1321
|
+
const obj_isBroadcast_union0_error = (() => {
|
|
1322
|
+
if (typeof obj_isBroadcast !== 'boolean') {
|
|
1323
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isBroadcast + '" (at "' + path_isBroadcast + '")');
|
|
1324
|
+
}
|
|
1325
|
+
})();
|
|
1326
|
+
if (obj_isBroadcast_union0_error != null) {
|
|
1327
|
+
obj_isBroadcast_union0 = obj_isBroadcast_union0_error.message;
|
|
1328
|
+
}
|
|
1329
|
+
let obj_isBroadcast_union1 = null;
|
|
1330
|
+
const obj_isBroadcast_union1_error = (() => {
|
|
1331
|
+
if (obj_isBroadcast !== null) {
|
|
1332
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isBroadcast + '" (at "' + path_isBroadcast + '")');
|
|
1333
|
+
}
|
|
1334
|
+
})();
|
|
1335
|
+
if (obj_isBroadcast_union1_error != null) {
|
|
1336
|
+
obj_isBroadcast_union1 = obj_isBroadcast_union1_error.message;
|
|
1337
|
+
}
|
|
1338
|
+
if (obj_isBroadcast_union0 && obj_isBroadcast_union1) {
|
|
1339
|
+
let message = 'Object doesn\'t match union (at "' + path_isBroadcast + '")';
|
|
1340
|
+
message += '\n' + obj_isBroadcast_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1341
|
+
message += '\n' + obj_isBroadcast_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1342
|
+
return new TypeError(message);
|
|
1322
1343
|
}
|
|
1323
1344
|
const obj_isEditable = obj.isEditable;
|
|
1324
1345
|
const path_isEditable = path + '.isEditable';
|
|
@@ -1327,13 +1348,55 @@ function validate$x(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1327
1348
|
}
|
|
1328
1349
|
const obj_isEdited = obj.isEdited;
|
|
1329
1350
|
const path_isEdited = path + '.isEdited';
|
|
1330
|
-
|
|
1331
|
-
|
|
1351
|
+
let obj_isEdited_union0 = null;
|
|
1352
|
+
const obj_isEdited_union0_error = (() => {
|
|
1353
|
+
if (typeof obj_isEdited !== 'boolean') {
|
|
1354
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isEdited + '" (at "' + path_isEdited + '")');
|
|
1355
|
+
}
|
|
1356
|
+
})();
|
|
1357
|
+
if (obj_isEdited_union0_error != null) {
|
|
1358
|
+
obj_isEdited_union0 = obj_isEdited_union0_error.message;
|
|
1359
|
+
}
|
|
1360
|
+
let obj_isEdited_union1 = null;
|
|
1361
|
+
const obj_isEdited_union1_error = (() => {
|
|
1362
|
+
if (obj_isEdited !== null) {
|
|
1363
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isEdited + '" (at "' + path_isEdited + '")');
|
|
1364
|
+
}
|
|
1365
|
+
})();
|
|
1366
|
+
if (obj_isEdited_union1_error != null) {
|
|
1367
|
+
obj_isEdited_union1 = obj_isEdited_union1_error.message;
|
|
1368
|
+
}
|
|
1369
|
+
if (obj_isEdited_union0 && obj_isEdited_union1) {
|
|
1370
|
+
let message = 'Object doesn\'t match union (at "' + path_isEdited + '")';
|
|
1371
|
+
message += '\n' + obj_isEdited_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1372
|
+
message += '\n' + obj_isEdited_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1373
|
+
return new TypeError(message);
|
|
1332
1374
|
}
|
|
1333
1375
|
const obj_isFileReadAllowed = obj.isFileReadAllowed;
|
|
1334
1376
|
const path_isFileReadAllowed = path + '.isFileReadAllowed';
|
|
1335
|
-
|
|
1336
|
-
|
|
1377
|
+
let obj_isFileReadAllowed_union0 = null;
|
|
1378
|
+
const obj_isFileReadAllowed_union0_error = (() => {
|
|
1379
|
+
if (typeof obj_isFileReadAllowed !== 'boolean') {
|
|
1380
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isFileReadAllowed + '" (at "' + path_isFileReadAllowed + '")');
|
|
1381
|
+
}
|
|
1382
|
+
})();
|
|
1383
|
+
if (obj_isFileReadAllowed_union0_error != null) {
|
|
1384
|
+
obj_isFileReadAllowed_union0 = obj_isFileReadAllowed_union0_error.message;
|
|
1385
|
+
}
|
|
1386
|
+
let obj_isFileReadAllowed_union1 = null;
|
|
1387
|
+
const obj_isFileReadAllowed_union1_error = (() => {
|
|
1388
|
+
if (obj_isFileReadAllowed !== null) {
|
|
1389
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isFileReadAllowed + '" (at "' + path_isFileReadAllowed + '")');
|
|
1390
|
+
}
|
|
1391
|
+
})();
|
|
1392
|
+
if (obj_isFileReadAllowed_union1_error != null) {
|
|
1393
|
+
obj_isFileReadAllowed_union1 = obj_isFileReadAllowed_union1_error.message;
|
|
1394
|
+
}
|
|
1395
|
+
if (obj_isFileReadAllowed_union0 && obj_isFileReadAllowed_union1) {
|
|
1396
|
+
let message = 'Object doesn\'t match union (at "' + path_isFileReadAllowed + '")';
|
|
1397
|
+
message += '\n' + obj_isFileReadAllowed_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1398
|
+
message += '\n' + obj_isFileReadAllowed_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1399
|
+
return new TypeError(message);
|
|
1337
1400
|
}
|
|
1338
1401
|
const obj_latestReplyTimestamp = obj.latestReplyTimestamp;
|
|
1339
1402
|
const path_latestReplyTimestamp = path + '.latestReplyTimestamp';
|
|
@@ -1380,7 +1443,7 @@ function validate$x(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1380
1443
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
1381
1444
|
const obj_reactions_item = obj_reactions[i];
|
|
1382
1445
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
1383
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
1446
|
+
const referencepath_reactions_itemValidationError = validate$B(obj_reactions_item, path_reactions_item);
|
|
1384
1447
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
1385
1448
|
let message = 'Object doesn\'t match SlackReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
1386
1449
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1421,7 +1484,7 @@ function validate$x(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1421
1484
|
for (let i = 0; i < obj_replyUsers.length; i++) {
|
|
1422
1485
|
const obj_replyUsers_item = obj_replyUsers[i];
|
|
1423
1486
|
const path_replyUsers_item = path_replyUsers + '[' + i + ']';
|
|
1424
|
-
const referencepath_replyUsers_itemValidationError = validate$
|
|
1487
|
+
const referencepath_replyUsers_itemValidationError = validate$C(obj_replyUsers_item, path_replyUsers_item);
|
|
1425
1488
|
if (referencepath_replyUsers_itemValidationError !== null) {
|
|
1426
1489
|
let message = 'Object doesn\'t match SlackUserInfoOutputRepresentation (at "' + path_replyUsers_item + '")\n';
|
|
1427
1490
|
message += referencepath_replyUsers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1518,8 +1581,29 @@ function validate$x(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1518
1581
|
}
|
|
1519
1582
|
const obj_type = obj.type;
|
|
1520
1583
|
const path_type = path + '.type';
|
|
1521
|
-
|
|
1522
|
-
|
|
1584
|
+
let obj_type_union0 = null;
|
|
1585
|
+
const obj_type_union0_error = (() => {
|
|
1586
|
+
if (typeof obj_type !== 'string') {
|
|
1587
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1588
|
+
}
|
|
1589
|
+
})();
|
|
1590
|
+
if (obj_type_union0_error != null) {
|
|
1591
|
+
obj_type_union0 = obj_type_union0_error.message;
|
|
1592
|
+
}
|
|
1593
|
+
let obj_type_union1 = null;
|
|
1594
|
+
const obj_type_union1_error = (() => {
|
|
1595
|
+
if (obj_type !== null) {
|
|
1596
|
+
return new TypeError('Expected "null" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1597
|
+
}
|
|
1598
|
+
})();
|
|
1599
|
+
if (obj_type_union1_error != null) {
|
|
1600
|
+
obj_type_union1 = obj_type_union1_error.message;
|
|
1601
|
+
}
|
|
1602
|
+
if (obj_type_union0 && obj_type_union1) {
|
|
1603
|
+
let message = 'Object doesn\'t match union (at "' + path_type + '")';
|
|
1604
|
+
message += '\n' + obj_type_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1605
|
+
message += '\n' + obj_type_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1606
|
+
return new TypeError(message);
|
|
1523
1607
|
}
|
|
1524
1608
|
const obj_uniqueKey = obj.uniqueKey;
|
|
1525
1609
|
const path_uniqueKey = path + '.uniqueKey';
|
|
@@ -1533,7 +1617,7 @@ function validate$x(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1533
1617
|
}
|
|
1534
1618
|
const obj_userInfo = obj.userInfo;
|
|
1535
1619
|
const path_userInfo = path + '.userInfo';
|
|
1536
|
-
const referencepath_userInfoValidationError = validate$
|
|
1620
|
+
const referencepath_userInfoValidationError = validate$C(obj_userInfo, path_userInfo);
|
|
1537
1621
|
if (referencepath_userInfoValidationError !== null) {
|
|
1538
1622
|
let message = 'Object doesn\'t match SlackUserInfoOutputRepresentation (at "' + path_userInfo + '")\n';
|
|
1539
1623
|
message += referencepath_userInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1543,7 +1627,7 @@ function validate$x(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1543
1627
|
return v_error === undefined ? null : v_error;
|
|
1544
1628
|
}
|
|
1545
1629
|
|
|
1546
|
-
function validate$
|
|
1630
|
+
function validate$z(obj, path = 'AnnotationConversationRepresentation') {
|
|
1547
1631
|
const v_error = (() => {
|
|
1548
1632
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1549
1633
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1568,7 +1652,7 @@ function validate$w(obj, path = 'AnnotationConversationRepresentation') {
|
|
|
1568
1652
|
const path_message = path + '.message';
|
|
1569
1653
|
let obj_message_union0 = null;
|
|
1570
1654
|
const obj_message_union0_error = (() => {
|
|
1571
|
-
const referencepath_messageValidationError = validate$
|
|
1655
|
+
const referencepath_messageValidationError = validate$A(obj_message, path_message);
|
|
1572
1656
|
if (referencepath_messageValidationError !== null) {
|
|
1573
1657
|
let message = 'Object doesn\'t match SlackMessageOutputRepresentation (at "' + path_message + '")\n';
|
|
1574
1658
|
message += referencepath_messageValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1603,9 +1687,9 @@ function validate$w(obj, path = 'AnnotationConversationRepresentation') {
|
|
|
1603
1687
|
return v_error === undefined ? null : v_error;
|
|
1604
1688
|
}
|
|
1605
1689
|
|
|
1606
|
-
const TTL$
|
|
1607
|
-
const VERSION$
|
|
1608
|
-
function validate$
|
|
1690
|
+
const TTL$f = 1000;
|
|
1691
|
+
const VERSION$p = "bacc25da56cffff8126d9bdafc471a37";
|
|
1692
|
+
function validate$y(obj, path = 'AnnotationRepresentation') {
|
|
1609
1693
|
const v_error = (() => {
|
|
1610
1694
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1611
1695
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1613,7 +1697,7 @@ function validate$v(obj, path = 'AnnotationRepresentation') {
|
|
|
1613
1697
|
if (obj.anchor !== undefined) {
|
|
1614
1698
|
const obj_anchor = obj.anchor;
|
|
1615
1699
|
const path_anchor = path + '.anchor';
|
|
1616
|
-
const referencepath_anchorValidationError = validate$
|
|
1700
|
+
const referencepath_anchorValidationError = validate$J(obj_anchor, path_anchor);
|
|
1617
1701
|
if (referencepath_anchorValidationError !== null) {
|
|
1618
1702
|
let message = 'Object doesn\'t match DashboardAnnotationAnchorRepresentation (at "' + path_anchor + '")\n';
|
|
1619
1703
|
message += referencepath_anchorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1627,7 +1711,7 @@ function validate$v(obj, path = 'AnnotationRepresentation') {
|
|
|
1627
1711
|
}
|
|
1628
1712
|
const obj_asset = obj.asset;
|
|
1629
1713
|
const path_asset = path + '.asset';
|
|
1630
|
-
const referencepath_assetValidationError = validate$
|
|
1714
|
+
const referencepath_assetValidationError = validate$I(obj_asset, path_asset);
|
|
1631
1715
|
if (referencepath_assetValidationError !== null) {
|
|
1632
1716
|
let message = 'Object doesn\'t match AnnotationAssetRepresentation (at "' + path_asset + '")\n';
|
|
1633
1717
|
message += referencepath_assetValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1635,7 +1719,7 @@ function validate$v(obj, path = 'AnnotationRepresentation') {
|
|
|
1635
1719
|
}
|
|
1636
1720
|
const obj_collaborationObject = obj.collaborationObject;
|
|
1637
1721
|
const path_collaborationObject = path + '.collaborationObject';
|
|
1638
|
-
const referencepath_collaborationObjectValidationError = validate$
|
|
1722
|
+
const referencepath_collaborationObjectValidationError = validate$z(obj_collaborationObject, path_collaborationObject);
|
|
1639
1723
|
if (referencepath_collaborationObjectValidationError !== null) {
|
|
1640
1724
|
let message = 'Object doesn\'t match AnnotationConversationRepresentation (at "' + path_collaborationObject + '")\n';
|
|
1641
1725
|
message += referencepath_collaborationObjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1654,58 +1738,58 @@ function validate$v(obj, path = 'AnnotationRepresentation') {
|
|
|
1654
1738
|
})();
|
|
1655
1739
|
return v_error === undefined ? null : v_error;
|
|
1656
1740
|
}
|
|
1657
|
-
const RepresentationType$
|
|
1658
|
-
function keyBuilder$
|
|
1659
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1741
|
+
const RepresentationType$q = 'AnnotationRepresentation';
|
|
1742
|
+
function keyBuilder$R(luvio, config) {
|
|
1743
|
+
return keyPrefix + '::' + RepresentationType$q + ':' + config.id;
|
|
1660
1744
|
}
|
|
1661
1745
|
function keyBuilderFromType$d(luvio, object) {
|
|
1662
1746
|
const keyParams = {
|
|
1663
1747
|
id: object.id
|
|
1664
1748
|
};
|
|
1665
|
-
return keyBuilder$
|
|
1749
|
+
return keyBuilder$R(luvio, keyParams);
|
|
1666
1750
|
}
|
|
1667
|
-
function normalize$
|
|
1751
|
+
function normalize$p(input, existing, path, luvio, store, timestamp) {
|
|
1668
1752
|
return input;
|
|
1669
1753
|
}
|
|
1670
|
-
const select$
|
|
1754
|
+
const select$W = function AnnotationRepresentationSelect() {
|
|
1671
1755
|
return {
|
|
1672
1756
|
kind: 'Fragment',
|
|
1673
|
-
version: VERSION$
|
|
1757
|
+
version: VERSION$p,
|
|
1674
1758
|
private: [],
|
|
1675
1759
|
opaque: true
|
|
1676
1760
|
};
|
|
1677
1761
|
};
|
|
1678
|
-
function equals$
|
|
1762
|
+
function equals$p(existing, incoming) {
|
|
1679
1763
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1680
1764
|
return false;
|
|
1681
1765
|
}
|
|
1682
1766
|
return true;
|
|
1683
1767
|
}
|
|
1684
|
-
const ingest$
|
|
1768
|
+
const ingest$p = function AnnotationRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1685
1769
|
if (process.env.NODE_ENV !== 'production') {
|
|
1686
|
-
const validateError = validate$
|
|
1770
|
+
const validateError = validate$y(input);
|
|
1687
1771
|
if (validateError !== null) {
|
|
1688
1772
|
throw validateError;
|
|
1689
1773
|
}
|
|
1690
1774
|
}
|
|
1691
1775
|
const key = keyBuilderFromType$d(luvio, input);
|
|
1692
|
-
const ttlToUse = TTL$
|
|
1693
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1776
|
+
const ttlToUse = TTL$f;
|
|
1777
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$p, "UnifiedAnalytics", VERSION$p, RepresentationType$q, equals$p);
|
|
1694
1778
|
return createLink(key);
|
|
1695
1779
|
};
|
|
1696
|
-
function getTypeCacheKeys$
|
|
1780
|
+
function getTypeCacheKeys$p(rootKeySet, luvio, input, fullPathFactory) {
|
|
1697
1781
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1698
1782
|
const rootKey = keyBuilderFromType$d(luvio, input);
|
|
1699
1783
|
rootKeySet.set(rootKey, {
|
|
1700
1784
|
namespace: keyPrefix,
|
|
1701
|
-
representationName: RepresentationType$
|
|
1785
|
+
representationName: RepresentationType$q,
|
|
1702
1786
|
mergeable: false
|
|
1703
1787
|
});
|
|
1704
1788
|
}
|
|
1705
1789
|
|
|
1706
|
-
const TTL$
|
|
1707
|
-
const VERSION$
|
|
1708
|
-
function validate$
|
|
1790
|
+
const TTL$e = 1000;
|
|
1791
|
+
const VERSION$o = "a80c8e970184cc7789e13f69392d6203";
|
|
1792
|
+
function validate$x(obj, path = 'AnnotationCollectionRepresentation') {
|
|
1709
1793
|
const v_error = (() => {
|
|
1710
1794
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1711
1795
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1730,14 +1814,14 @@ function validate$u(obj, path = 'AnnotationCollectionRepresentation') {
|
|
|
1730
1814
|
})();
|
|
1731
1815
|
return v_error === undefined ? null : v_error;
|
|
1732
1816
|
}
|
|
1733
|
-
const RepresentationType$
|
|
1734
|
-
function normalize$
|
|
1817
|
+
const RepresentationType$p = 'AnnotationCollectionRepresentation';
|
|
1818
|
+
function normalize$o(input, existing, path, luvio, store, timestamp) {
|
|
1735
1819
|
const input_annotations = input.annotations;
|
|
1736
1820
|
const input_annotations_id = path.fullPath + '__annotations';
|
|
1737
1821
|
for (let i = 0; i < input_annotations.length; i++) {
|
|
1738
1822
|
const input_annotations_item = input_annotations[i];
|
|
1739
1823
|
let input_annotations_item_id = input_annotations_id + '__' + i;
|
|
1740
|
-
input_annotations[i] = ingest$
|
|
1824
|
+
input_annotations[i] = ingest$p(input_annotations_item, {
|
|
1741
1825
|
fullPath: input_annotations_item_id,
|
|
1742
1826
|
propertyName: i,
|
|
1743
1827
|
parent: {
|
|
@@ -1750,17 +1834,17 @@ function normalize$m(input, existing, path, luvio, store, timestamp) {
|
|
|
1750
1834
|
}
|
|
1751
1835
|
return input;
|
|
1752
1836
|
}
|
|
1753
|
-
const select$
|
|
1837
|
+
const select$V = function AnnotationCollectionRepresentationSelect() {
|
|
1754
1838
|
return {
|
|
1755
1839
|
kind: 'Fragment',
|
|
1756
|
-
version: VERSION$
|
|
1840
|
+
version: VERSION$o,
|
|
1757
1841
|
private: [],
|
|
1758
1842
|
selections: [
|
|
1759
1843
|
{
|
|
1760
1844
|
name: 'annotations',
|
|
1761
1845
|
kind: 'Link',
|
|
1762
1846
|
plural: true,
|
|
1763
|
-
fragment: select$
|
|
1847
|
+
fragment: select$W()
|
|
1764
1848
|
},
|
|
1765
1849
|
{
|
|
1766
1850
|
name: 'total',
|
|
@@ -1769,7 +1853,7 @@ const select$R = function AnnotationCollectionRepresentationSelect() {
|
|
|
1769
1853
|
]
|
|
1770
1854
|
};
|
|
1771
1855
|
};
|
|
1772
|
-
function equals$
|
|
1856
|
+
function equals$o(existing, incoming) {
|
|
1773
1857
|
const existing_total = existing.total;
|
|
1774
1858
|
const incoming_total = incoming.total;
|
|
1775
1859
|
if (!(existing_total === incoming_total)) {
|
|
@@ -1787,48 +1871,48 @@ function equals$m(existing, incoming) {
|
|
|
1787
1871
|
}
|
|
1788
1872
|
return true;
|
|
1789
1873
|
}
|
|
1790
|
-
const ingest$
|
|
1874
|
+
const ingest$o = function AnnotationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1791
1875
|
if (process.env.NODE_ENV !== 'production') {
|
|
1792
|
-
const validateError = validate$
|
|
1876
|
+
const validateError = validate$x(input);
|
|
1793
1877
|
if (validateError !== null) {
|
|
1794
1878
|
throw validateError;
|
|
1795
1879
|
}
|
|
1796
1880
|
}
|
|
1797
1881
|
const key = path.fullPath;
|
|
1798
|
-
const ttlToUse = TTL$
|
|
1799
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1882
|
+
const ttlToUse = TTL$e;
|
|
1883
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$o, "UnifiedAnalytics", VERSION$o, RepresentationType$p, equals$o);
|
|
1800
1884
|
return createLink(key);
|
|
1801
1885
|
};
|
|
1802
|
-
function getTypeCacheKeys$
|
|
1886
|
+
function getTypeCacheKeys$o(rootKeySet, luvio, input, fullPathFactory) {
|
|
1803
1887
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1804
1888
|
const rootKey = fullPathFactory();
|
|
1805
1889
|
rootKeySet.set(rootKey, {
|
|
1806
1890
|
namespace: keyPrefix,
|
|
1807
|
-
representationName: RepresentationType$
|
|
1891
|
+
representationName: RepresentationType$p,
|
|
1808
1892
|
mergeable: false
|
|
1809
1893
|
});
|
|
1810
1894
|
const input_annotations_length = input.annotations.length;
|
|
1811
1895
|
for (let i = 0; i < input_annotations_length; i++) {
|
|
1812
|
-
getTypeCacheKeys$
|
|
1896
|
+
getTypeCacheKeys$p(rootKeySet, luvio, input.annotations[i]);
|
|
1813
1897
|
}
|
|
1814
1898
|
}
|
|
1815
1899
|
|
|
1816
|
-
function select$
|
|
1817
|
-
return select$
|
|
1900
|
+
function select$U(luvio, params) {
|
|
1901
|
+
return select$V();
|
|
1818
1902
|
}
|
|
1819
|
-
function keyBuilder$
|
|
1903
|
+
function keyBuilder$Q(luvio, params) {
|
|
1820
1904
|
return keyPrefix + '::AnnotationCollectionRepresentation:(' + 'assetIds:' + params.queryParams.assetIds + ',' + 'includeTopMessage:' + params.queryParams.includeTopMessage + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'slackAppId:' + params.queryParams.slackAppId + ')';
|
|
1821
1905
|
}
|
|
1822
|
-
function getResponseCacheKeys$
|
|
1823
|
-
getTypeCacheKeys$
|
|
1906
|
+
function getResponseCacheKeys$B(storeKeyMap, luvio, resourceParams, response) {
|
|
1907
|
+
getTypeCacheKeys$o(storeKeyMap, luvio, response, () => keyBuilder$Q(luvio, resourceParams));
|
|
1824
1908
|
}
|
|
1825
|
-
function ingestSuccess$
|
|
1909
|
+
function ingestSuccess$w(luvio, resourceParams, response, snapshotRefresh) {
|
|
1826
1910
|
const { body } = response;
|
|
1827
|
-
const key = keyBuilder$
|
|
1828
|
-
luvio.storeIngest(key, ingest$
|
|
1911
|
+
const key = keyBuilder$Q(luvio, resourceParams);
|
|
1912
|
+
luvio.storeIngest(key, ingest$o, body);
|
|
1829
1913
|
const snapshot = luvio.storeLookup({
|
|
1830
1914
|
recordId: key,
|
|
1831
|
-
node: select$
|
|
1915
|
+
node: select$U(),
|
|
1832
1916
|
variables: {},
|
|
1833
1917
|
}, snapshotRefresh);
|
|
1834
1918
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1839,23 +1923,23 @@ function ingestSuccess$u(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1839
1923
|
deepFreeze(snapshot.data);
|
|
1840
1924
|
return snapshot;
|
|
1841
1925
|
}
|
|
1842
|
-
function ingestError$
|
|
1843
|
-
const key = keyBuilder$
|
|
1926
|
+
function ingestError$g(luvio, params, error, snapshotRefresh) {
|
|
1927
|
+
const key = keyBuilder$Q(luvio, params);
|
|
1844
1928
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1845
1929
|
const storeMetadataParams = {
|
|
1846
|
-
ttl: TTL$
|
|
1930
|
+
ttl: TTL$e,
|
|
1847
1931
|
namespace: keyPrefix,
|
|
1848
|
-
version: VERSION$
|
|
1849
|
-
representationName: RepresentationType$
|
|
1932
|
+
version: VERSION$o,
|
|
1933
|
+
representationName: RepresentationType$p
|
|
1850
1934
|
};
|
|
1851
1935
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1852
1936
|
return errorSnapshot;
|
|
1853
1937
|
}
|
|
1854
|
-
function createResourceRequest$
|
|
1938
|
+
function createResourceRequest$B(config) {
|
|
1855
1939
|
const headers = {};
|
|
1856
1940
|
return {
|
|
1857
1941
|
baseUri: '/services/data/v62.0',
|
|
1858
|
-
basePath: '/
|
|
1942
|
+
basePath: '/tableau/annotations',
|
|
1859
1943
|
method: 'get',
|
|
1860
1944
|
body: null,
|
|
1861
1945
|
urlParams: {},
|
|
@@ -1865,7 +1949,7 @@ function createResourceRequest$z(config) {
|
|
|
1865
1949
|
};
|
|
1866
1950
|
}
|
|
1867
1951
|
|
|
1868
|
-
const adapterName$
|
|
1952
|
+
const adapterName$B = 'getAnnotations';
|
|
1869
1953
|
const getAnnotations_ConfigPropertyMetadata = [
|
|
1870
1954
|
generateParamConfigMetadata('assetIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
1871
1955
|
generateParamConfigMetadata('includeTopMessage', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -1873,101 +1957,101 @@ const getAnnotations_ConfigPropertyMetadata = [
|
|
|
1873
1957
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1874
1958
|
generateParamConfigMetadata('slackAppId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1875
1959
|
];
|
|
1876
|
-
const getAnnotations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1877
|
-
const createResourceParams$
|
|
1878
|
-
function keyBuilder$
|
|
1879
|
-
const resourceParams = createResourceParams$
|
|
1880
|
-
return keyBuilder$
|
|
1960
|
+
const getAnnotations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$B, getAnnotations_ConfigPropertyMetadata);
|
|
1961
|
+
const createResourceParams$B = /*#__PURE__*/ createResourceParams$D(getAnnotations_ConfigPropertyMetadata);
|
|
1962
|
+
function keyBuilder$P(luvio, config) {
|
|
1963
|
+
const resourceParams = createResourceParams$B(config);
|
|
1964
|
+
return keyBuilder$Q(luvio, resourceParams);
|
|
1881
1965
|
}
|
|
1882
|
-
function typeCheckConfig$
|
|
1966
|
+
function typeCheckConfig$B(untrustedConfig) {
|
|
1883
1967
|
const config = {};
|
|
1884
|
-
typeCheckConfig$
|
|
1968
|
+
typeCheckConfig$D(untrustedConfig, config, getAnnotations_ConfigPropertyMetadata);
|
|
1885
1969
|
return config;
|
|
1886
1970
|
}
|
|
1887
|
-
function validateAdapterConfig$
|
|
1971
|
+
function validateAdapterConfig$B(untrustedConfig, configPropertyNames) {
|
|
1888
1972
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1889
1973
|
return null;
|
|
1890
1974
|
}
|
|
1891
1975
|
if (process.env.NODE_ENV !== 'production') {
|
|
1892
1976
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1893
1977
|
}
|
|
1894
|
-
const config = typeCheckConfig$
|
|
1978
|
+
const config = typeCheckConfig$B(untrustedConfig);
|
|
1895
1979
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1896
1980
|
return null;
|
|
1897
1981
|
}
|
|
1898
1982
|
return config;
|
|
1899
1983
|
}
|
|
1900
|
-
function adapterFragment$
|
|
1901
|
-
createResourceParams$
|
|
1902
|
-
return select$
|
|
1984
|
+
function adapterFragment$g(luvio, config) {
|
|
1985
|
+
createResourceParams$B(config);
|
|
1986
|
+
return select$U();
|
|
1903
1987
|
}
|
|
1904
|
-
function onFetchResponseSuccess$
|
|
1905
|
-
const snapshot = ingestSuccess$
|
|
1988
|
+
function onFetchResponseSuccess$g(luvio, config, resourceParams, response) {
|
|
1989
|
+
const snapshot = ingestSuccess$w(luvio, resourceParams, response, {
|
|
1906
1990
|
config,
|
|
1907
|
-
resolve: () => buildNetworkSnapshot$
|
|
1991
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
1908
1992
|
});
|
|
1909
1993
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1910
1994
|
}
|
|
1911
|
-
function onFetchResponseError$
|
|
1912
|
-
const snapshot = ingestError$
|
|
1995
|
+
function onFetchResponseError$g(luvio, config, resourceParams, response) {
|
|
1996
|
+
const snapshot = ingestError$g(luvio, resourceParams, response, {
|
|
1913
1997
|
config,
|
|
1914
|
-
resolve: () => buildNetworkSnapshot$
|
|
1998
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
1915
1999
|
});
|
|
1916
2000
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1917
2001
|
}
|
|
1918
|
-
function buildNetworkSnapshot$
|
|
1919
|
-
const resourceParams = createResourceParams$
|
|
1920
|
-
const request = createResourceRequest$
|
|
2002
|
+
function buildNetworkSnapshot$B(luvio, config, options) {
|
|
2003
|
+
const resourceParams = createResourceParams$B(config);
|
|
2004
|
+
const request = createResourceRequest$B(resourceParams);
|
|
1921
2005
|
return luvio.dispatchResourceRequest(request, options)
|
|
1922
2006
|
.then((response) => {
|
|
1923
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2007
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$g(luvio, config, resourceParams, response), () => {
|
|
1924
2008
|
const cache = new StoreKeyMap();
|
|
1925
|
-
getResponseCacheKeys$
|
|
2009
|
+
getResponseCacheKeys$B(cache, luvio, resourceParams, response.body);
|
|
1926
2010
|
return cache;
|
|
1927
2011
|
});
|
|
1928
2012
|
}, (response) => {
|
|
1929
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2013
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$g(luvio, config, resourceParams, response));
|
|
1930
2014
|
});
|
|
1931
2015
|
}
|
|
1932
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1933
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2016
|
+
function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
|
|
2017
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$B, undefined, false);
|
|
1934
2018
|
}
|
|
1935
|
-
function buildCachedSnapshotCachePolicy$
|
|
2019
|
+
function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
1936
2020
|
const { luvio, config } = context;
|
|
1937
2021
|
const selector = {
|
|
1938
|
-
recordId: keyBuilder$
|
|
1939
|
-
node: adapterFragment$
|
|
2022
|
+
recordId: keyBuilder$P(luvio, config),
|
|
2023
|
+
node: adapterFragment$g(luvio, config),
|
|
1940
2024
|
variables: {},
|
|
1941
2025
|
};
|
|
1942
2026
|
const cacheSnapshot = storeLookup(selector, {
|
|
1943
2027
|
config,
|
|
1944
|
-
resolve: () => buildNetworkSnapshot$
|
|
2028
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
1945
2029
|
});
|
|
1946
2030
|
return cacheSnapshot;
|
|
1947
2031
|
}
|
|
1948
2032
|
const getAnnotationsAdapterFactory = (luvio) => function UnifiedAnalytics__getAnnotations(untrustedConfig, requestContext) {
|
|
1949
|
-
const config = validateAdapterConfig$
|
|
2033
|
+
const config = validateAdapterConfig$B(untrustedConfig, getAnnotations_ConfigPropertyNames);
|
|
1950
2034
|
// Invalid or incomplete config
|
|
1951
2035
|
if (config === null) {
|
|
1952
2036
|
return null;
|
|
1953
2037
|
}
|
|
1954
2038
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1955
|
-
buildCachedSnapshotCachePolicy$
|
|
2039
|
+
buildCachedSnapshotCachePolicy$g, buildNetworkSnapshotCachePolicy$g);
|
|
1956
2040
|
};
|
|
1957
2041
|
|
|
1958
|
-
function select$
|
|
1959
|
-
return select$
|
|
2042
|
+
function select$T(luvio, params) {
|
|
2043
|
+
return select$W();
|
|
1960
2044
|
}
|
|
1961
|
-
function getResponseCacheKeys$
|
|
1962
|
-
getTypeCacheKeys$
|
|
2045
|
+
function getResponseCacheKeys$A(storeKeyMap, luvio, resourceParams, response) {
|
|
2046
|
+
getTypeCacheKeys$p(storeKeyMap, luvio, response);
|
|
1963
2047
|
}
|
|
1964
|
-
function ingestSuccess$
|
|
2048
|
+
function ingestSuccess$v(luvio, resourceParams, response) {
|
|
1965
2049
|
const { body } = response;
|
|
1966
2050
|
const key = keyBuilderFromType$d(luvio, body);
|
|
1967
|
-
luvio.storeIngest(key, ingest$
|
|
2051
|
+
luvio.storeIngest(key, ingest$p, body);
|
|
1968
2052
|
const snapshot = luvio.storeLookup({
|
|
1969
2053
|
recordId: key,
|
|
1970
|
-
node: select$
|
|
2054
|
+
node: select$T(),
|
|
1971
2055
|
variables: {},
|
|
1972
2056
|
});
|
|
1973
2057
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1978,11 +2062,11 @@ function ingestSuccess$t(luvio, resourceParams, response) {
|
|
|
1978
2062
|
deepFreeze(snapshot.data);
|
|
1979
2063
|
return snapshot;
|
|
1980
2064
|
}
|
|
1981
|
-
function createResourceRequest$
|
|
2065
|
+
function createResourceRequest$A(config) {
|
|
1982
2066
|
const headers = {};
|
|
1983
2067
|
return {
|
|
1984
2068
|
baseUri: '/services/data/v62.0',
|
|
1985
|
-
basePath: '/
|
|
2069
|
+
basePath: '/tableau/annotations',
|
|
1986
2070
|
method: 'post',
|
|
1987
2071
|
body: config.body,
|
|
1988
2072
|
urlParams: {},
|
|
@@ -1992,7 +2076,7 @@ function createResourceRequest$y(config) {
|
|
|
1992
2076
|
};
|
|
1993
2077
|
}
|
|
1994
2078
|
|
|
1995
|
-
const adapterName$
|
|
2079
|
+
const adapterName$A = 'createAnnotation';
|
|
1996
2080
|
const createAnnotation_ConfigPropertyMetadata = [
|
|
1997
2081
|
generateParamConfigMetadata('anchor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1998
2082
|
generateParamConfigMetadata('annotationTool', true, 2 /* Body */, 0 /* String */),
|
|
@@ -2001,41 +2085,41 @@ const createAnnotation_ConfigPropertyMetadata = [
|
|
|
2001
2085
|
generateParamConfigMetadata('collaborationObject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2002
2086
|
generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
|
|
2003
2087
|
];
|
|
2004
|
-
const createAnnotation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2005
|
-
const createResourceParams$
|
|
2006
|
-
function typeCheckConfig$
|
|
2088
|
+
const createAnnotation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$A, createAnnotation_ConfigPropertyMetadata);
|
|
2089
|
+
const createResourceParams$A = /*#__PURE__*/ createResourceParams$D(createAnnotation_ConfigPropertyMetadata);
|
|
2090
|
+
function typeCheckConfig$A(untrustedConfig) {
|
|
2007
2091
|
const config = {};
|
|
2008
|
-
typeCheckConfig$
|
|
2092
|
+
typeCheckConfig$D(untrustedConfig, config, createAnnotation_ConfigPropertyMetadata);
|
|
2009
2093
|
const untrustedConfig_anchor = untrustedConfig.anchor;
|
|
2010
2094
|
config.anchor = untrustedConfig_anchor;
|
|
2011
2095
|
const untrustedConfig_collaborationObject = untrustedConfig.collaborationObject;
|
|
2012
2096
|
config.collaborationObject = untrustedConfig_collaborationObject;
|
|
2013
2097
|
return config;
|
|
2014
2098
|
}
|
|
2015
|
-
function validateAdapterConfig$
|
|
2099
|
+
function validateAdapterConfig$A(untrustedConfig, configPropertyNames) {
|
|
2016
2100
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2017
2101
|
return null;
|
|
2018
2102
|
}
|
|
2019
2103
|
if (process.env.NODE_ENV !== 'production') {
|
|
2020
2104
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2021
2105
|
}
|
|
2022
|
-
const config = typeCheckConfig$
|
|
2106
|
+
const config = typeCheckConfig$A(untrustedConfig);
|
|
2023
2107
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2024
2108
|
return null;
|
|
2025
2109
|
}
|
|
2026
2110
|
return config;
|
|
2027
2111
|
}
|
|
2028
|
-
function buildNetworkSnapshot$
|
|
2029
|
-
const resourceParams = createResourceParams$
|
|
2030
|
-
const request = createResourceRequest$
|
|
2112
|
+
function buildNetworkSnapshot$A(luvio, config, options) {
|
|
2113
|
+
const resourceParams = createResourceParams$A(config);
|
|
2114
|
+
const request = createResourceRequest$A(resourceParams);
|
|
2031
2115
|
return luvio.dispatchResourceRequest(request, options)
|
|
2032
2116
|
.then((response) => {
|
|
2033
2117
|
return luvio.handleSuccessResponse(() => {
|
|
2034
|
-
const snapshot = ingestSuccess$
|
|
2118
|
+
const snapshot = ingestSuccess$v(luvio, resourceParams, response);
|
|
2035
2119
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2036
2120
|
}, () => {
|
|
2037
2121
|
const cache = new StoreKeyMap();
|
|
2038
|
-
getResponseCacheKeys$
|
|
2122
|
+
getResponseCacheKeys$A(cache, luvio, resourceParams, response.body);
|
|
2039
2123
|
return cache;
|
|
2040
2124
|
});
|
|
2041
2125
|
}, (response) => {
|
|
@@ -2045,18 +2129,18 @@ function buildNetworkSnapshot$y(luvio, config, options) {
|
|
|
2045
2129
|
}
|
|
2046
2130
|
const createAnnotationAdapterFactory = (luvio) => {
|
|
2047
2131
|
return function createAnnotation(untrustedConfig) {
|
|
2048
|
-
const config = validateAdapterConfig$
|
|
2132
|
+
const config = validateAdapterConfig$A(untrustedConfig, createAnnotation_ConfigPropertyNames);
|
|
2049
2133
|
// Invalid or incomplete config
|
|
2050
2134
|
if (config === null) {
|
|
2051
2135
|
throw new Error('Invalid config for "createAnnotation"');
|
|
2052
2136
|
}
|
|
2053
|
-
return buildNetworkSnapshot$
|
|
2137
|
+
return buildNetworkSnapshot$A(luvio, config);
|
|
2054
2138
|
};
|
|
2055
2139
|
};
|
|
2056
2140
|
|
|
2057
|
-
const TTL$
|
|
2058
|
-
const VERSION$
|
|
2059
|
-
function validate$
|
|
2141
|
+
const TTL$d = 5000;
|
|
2142
|
+
const VERSION$n = "505a83d97fefa7ce68ec6512264b0543";
|
|
2143
|
+
function validate$w(obj, path = 'SlackAppInfoRepresentation') {
|
|
2060
2144
|
const v_error = (() => {
|
|
2061
2145
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2062
2146
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2096,14 +2180,14 @@ function validate$t(obj, path = 'SlackAppInfoRepresentation') {
|
|
|
2096
2180
|
})();
|
|
2097
2181
|
return v_error === undefined ? null : v_error;
|
|
2098
2182
|
}
|
|
2099
|
-
const RepresentationType$
|
|
2100
|
-
function normalize$
|
|
2183
|
+
const RepresentationType$o = 'SlackAppInfoRepresentation';
|
|
2184
|
+
function normalize$n(input, existing, path, luvio, store, timestamp) {
|
|
2101
2185
|
return input;
|
|
2102
2186
|
}
|
|
2103
|
-
const select$
|
|
2187
|
+
const select$S = function SlackAppInfoRepresentationSelect() {
|
|
2104
2188
|
return {
|
|
2105
2189
|
kind: 'Fragment',
|
|
2106
|
-
version: VERSION$
|
|
2190
|
+
version: VERSION$n,
|
|
2107
2191
|
private: [],
|
|
2108
2192
|
selections: [
|
|
2109
2193
|
{
|
|
@@ -2130,7 +2214,7 @@ const select$O = function SlackAppInfoRepresentationSelect() {
|
|
|
2130
2214
|
]
|
|
2131
2215
|
};
|
|
2132
2216
|
};
|
|
2133
|
-
function equals$
|
|
2217
|
+
function equals$n(existing, incoming) {
|
|
2134
2218
|
const existing_isSlackAppAuthorized = existing.isSlackAppAuthorized;
|
|
2135
2219
|
const incoming_isSlackAppAuthorized = incoming.isSlackAppAuthorized;
|
|
2136
2220
|
if (!(existing_isSlackAppAuthorized === incoming_isSlackAppAuthorized)) {
|
|
@@ -2163,44 +2247,44 @@ function equals$l(existing, incoming) {
|
|
|
2163
2247
|
}
|
|
2164
2248
|
return true;
|
|
2165
2249
|
}
|
|
2166
|
-
const ingest$
|
|
2250
|
+
const ingest$n = function SlackAppInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2167
2251
|
if (process.env.NODE_ENV !== 'production') {
|
|
2168
|
-
const validateError = validate$
|
|
2252
|
+
const validateError = validate$w(input);
|
|
2169
2253
|
if (validateError !== null) {
|
|
2170
2254
|
throw validateError;
|
|
2171
2255
|
}
|
|
2172
2256
|
}
|
|
2173
2257
|
const key = path.fullPath;
|
|
2174
|
-
const ttlToUse = TTL$
|
|
2175
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2258
|
+
const ttlToUse = TTL$d;
|
|
2259
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$n, "UnifiedAnalytics", VERSION$n, RepresentationType$o, equals$n);
|
|
2176
2260
|
return createLink(key);
|
|
2177
2261
|
};
|
|
2178
|
-
function getTypeCacheKeys$
|
|
2262
|
+
function getTypeCacheKeys$n(rootKeySet, luvio, input, fullPathFactory) {
|
|
2179
2263
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2180
2264
|
const rootKey = fullPathFactory();
|
|
2181
2265
|
rootKeySet.set(rootKey, {
|
|
2182
2266
|
namespace: keyPrefix,
|
|
2183
|
-
representationName: RepresentationType$
|
|
2267
|
+
representationName: RepresentationType$o,
|
|
2184
2268
|
mergeable: false
|
|
2185
2269
|
});
|
|
2186
2270
|
}
|
|
2187
2271
|
|
|
2188
|
-
function select$
|
|
2189
|
-
return select$
|
|
2272
|
+
function select$R(luvio, params) {
|
|
2273
|
+
return select$S();
|
|
2190
2274
|
}
|
|
2191
|
-
function keyBuilder$
|
|
2275
|
+
function keyBuilder$O(luvio, params) {
|
|
2192
2276
|
return keyPrefix + '::SlackAppInfoRepresentation:(' + ')';
|
|
2193
2277
|
}
|
|
2194
|
-
function getResponseCacheKeys$
|
|
2195
|
-
getTypeCacheKeys$
|
|
2278
|
+
function getResponseCacheKeys$z(storeKeyMap, luvio, resourceParams, response) {
|
|
2279
|
+
getTypeCacheKeys$n(storeKeyMap, luvio, response, () => keyBuilder$O());
|
|
2196
2280
|
}
|
|
2197
|
-
function ingestSuccess$
|
|
2281
|
+
function ingestSuccess$u(luvio, resourceParams, response, snapshotRefresh) {
|
|
2198
2282
|
const { body } = response;
|
|
2199
|
-
const key = keyBuilder$
|
|
2200
|
-
luvio.storeIngest(key, ingest$
|
|
2283
|
+
const key = keyBuilder$O();
|
|
2284
|
+
luvio.storeIngest(key, ingest$n, body);
|
|
2201
2285
|
const snapshot = luvio.storeLookup({
|
|
2202
2286
|
recordId: key,
|
|
2203
|
-
node: select$
|
|
2287
|
+
node: select$R(),
|
|
2204
2288
|
variables: {},
|
|
2205
2289
|
}, snapshotRefresh);
|
|
2206
2290
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2211,23 +2295,23 @@ function ingestSuccess$s(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2211
2295
|
deepFreeze(snapshot.data);
|
|
2212
2296
|
return snapshot;
|
|
2213
2297
|
}
|
|
2214
|
-
function ingestError$
|
|
2215
|
-
const key = keyBuilder$
|
|
2298
|
+
function ingestError$f(luvio, params, error, snapshotRefresh) {
|
|
2299
|
+
const key = keyBuilder$O();
|
|
2216
2300
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2217
2301
|
const storeMetadataParams = {
|
|
2218
|
-
ttl: TTL$
|
|
2302
|
+
ttl: TTL$d,
|
|
2219
2303
|
namespace: keyPrefix,
|
|
2220
|
-
version: VERSION$
|
|
2221
|
-
representationName: RepresentationType$
|
|
2304
|
+
version: VERSION$n,
|
|
2305
|
+
representationName: RepresentationType$o
|
|
2222
2306
|
};
|
|
2223
2307
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2224
2308
|
return errorSnapshot;
|
|
2225
2309
|
}
|
|
2226
|
-
function createResourceRequest$
|
|
2310
|
+
function createResourceRequest$z(config) {
|
|
2227
2311
|
const headers = {};
|
|
2228
2312
|
return {
|
|
2229
2313
|
baseUri: '/services/data/v62.0',
|
|
2230
|
-
basePath: '/
|
|
2314
|
+
basePath: '/tableau/annotations/slack-app-info',
|
|
2231
2315
|
method: 'get',
|
|
2232
2316
|
body: null,
|
|
2233
2317
|
urlParams: {},
|
|
@@ -2237,90 +2321,90 @@ function createResourceRequest$x(config) {
|
|
|
2237
2321
|
};
|
|
2238
2322
|
}
|
|
2239
2323
|
|
|
2240
|
-
const adapterName$
|
|
2324
|
+
const adapterName$z = 'getSlackAppInfo';
|
|
2241
2325
|
const getSlackAppInfo_ConfigPropertyMetadata = [];
|
|
2242
|
-
const getSlackAppInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2243
|
-
const createResourceParams$
|
|
2244
|
-
function keyBuilder$
|
|
2245
|
-
createResourceParams$
|
|
2246
|
-
return keyBuilder$
|
|
2326
|
+
const getSlackAppInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$z, getSlackAppInfo_ConfigPropertyMetadata);
|
|
2327
|
+
const createResourceParams$z = /*#__PURE__*/ createResourceParams$D(getSlackAppInfo_ConfigPropertyMetadata);
|
|
2328
|
+
function keyBuilder$N(luvio, config) {
|
|
2329
|
+
createResourceParams$z(config);
|
|
2330
|
+
return keyBuilder$O();
|
|
2247
2331
|
}
|
|
2248
|
-
function typeCheckConfig$
|
|
2332
|
+
function typeCheckConfig$z(untrustedConfig) {
|
|
2249
2333
|
const config = {};
|
|
2250
2334
|
return config;
|
|
2251
2335
|
}
|
|
2252
|
-
function validateAdapterConfig$
|
|
2336
|
+
function validateAdapterConfig$z(untrustedConfig, configPropertyNames) {
|
|
2253
2337
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2254
2338
|
return null;
|
|
2255
2339
|
}
|
|
2256
2340
|
if (process.env.NODE_ENV !== 'production') {
|
|
2257
2341
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2258
2342
|
}
|
|
2259
|
-
const config = typeCheckConfig$
|
|
2343
|
+
const config = typeCheckConfig$z();
|
|
2260
2344
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2261
2345
|
return null;
|
|
2262
2346
|
}
|
|
2263
2347
|
return config;
|
|
2264
2348
|
}
|
|
2265
|
-
function adapterFragment$
|
|
2266
|
-
createResourceParams$
|
|
2267
|
-
return select$
|
|
2349
|
+
function adapterFragment$f(luvio, config) {
|
|
2350
|
+
createResourceParams$z(config);
|
|
2351
|
+
return select$R();
|
|
2268
2352
|
}
|
|
2269
|
-
function onFetchResponseSuccess$
|
|
2270
|
-
const snapshot = ingestSuccess$
|
|
2353
|
+
function onFetchResponseSuccess$f(luvio, config, resourceParams, response) {
|
|
2354
|
+
const snapshot = ingestSuccess$u(luvio, resourceParams, response, {
|
|
2271
2355
|
config,
|
|
2272
|
-
resolve: () => buildNetworkSnapshot$
|
|
2356
|
+
resolve: () => buildNetworkSnapshot$z(luvio, config, snapshotRefreshOptions)
|
|
2273
2357
|
});
|
|
2274
2358
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2275
2359
|
}
|
|
2276
|
-
function onFetchResponseError$
|
|
2277
|
-
const snapshot = ingestError$
|
|
2360
|
+
function onFetchResponseError$f(luvio, config, resourceParams, response) {
|
|
2361
|
+
const snapshot = ingestError$f(luvio, resourceParams, response, {
|
|
2278
2362
|
config,
|
|
2279
|
-
resolve: () => buildNetworkSnapshot$
|
|
2363
|
+
resolve: () => buildNetworkSnapshot$z(luvio, config, snapshotRefreshOptions)
|
|
2280
2364
|
});
|
|
2281
2365
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2282
2366
|
}
|
|
2283
|
-
function buildNetworkSnapshot$
|
|
2284
|
-
const resourceParams = createResourceParams$
|
|
2285
|
-
const request = createResourceRequest$
|
|
2367
|
+
function buildNetworkSnapshot$z(luvio, config, options) {
|
|
2368
|
+
const resourceParams = createResourceParams$z(config);
|
|
2369
|
+
const request = createResourceRequest$z();
|
|
2286
2370
|
return luvio.dispatchResourceRequest(request, options)
|
|
2287
2371
|
.then((response) => {
|
|
2288
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2372
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$f(luvio, config, resourceParams, response), () => {
|
|
2289
2373
|
const cache = new StoreKeyMap();
|
|
2290
|
-
getResponseCacheKeys$
|
|
2374
|
+
getResponseCacheKeys$z(cache, luvio, resourceParams, response.body);
|
|
2291
2375
|
return cache;
|
|
2292
2376
|
});
|
|
2293
2377
|
}, (response) => {
|
|
2294
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2378
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$f(luvio, config, resourceParams, response));
|
|
2295
2379
|
});
|
|
2296
2380
|
}
|
|
2297
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2298
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2381
|
+
function buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext) {
|
|
2382
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$z, undefined, false);
|
|
2299
2383
|
}
|
|
2300
|
-
function buildCachedSnapshotCachePolicy$
|
|
2384
|
+
function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
|
|
2301
2385
|
const { luvio, config } = context;
|
|
2302
2386
|
const selector = {
|
|
2303
|
-
recordId: keyBuilder$
|
|
2304
|
-
node: adapterFragment$
|
|
2387
|
+
recordId: keyBuilder$N(luvio, config),
|
|
2388
|
+
node: adapterFragment$f(luvio, config),
|
|
2305
2389
|
variables: {},
|
|
2306
2390
|
};
|
|
2307
2391
|
const cacheSnapshot = storeLookup(selector, {
|
|
2308
2392
|
config,
|
|
2309
|
-
resolve: () => buildNetworkSnapshot$
|
|
2393
|
+
resolve: () => buildNetworkSnapshot$z(luvio, config, snapshotRefreshOptions)
|
|
2310
2394
|
});
|
|
2311
2395
|
return cacheSnapshot;
|
|
2312
2396
|
}
|
|
2313
2397
|
const getSlackAppInfoAdapterFactory = (luvio) => function UnifiedAnalytics__getSlackAppInfo(untrustedConfig, requestContext) {
|
|
2314
|
-
const config = validateAdapterConfig$
|
|
2398
|
+
const config = validateAdapterConfig$z(untrustedConfig, getSlackAppInfo_ConfigPropertyNames);
|
|
2315
2399
|
// Invalid or incomplete config
|
|
2316
2400
|
if (config === null) {
|
|
2317
2401
|
return null;
|
|
2318
2402
|
}
|
|
2319
2403
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2320
|
-
buildCachedSnapshotCachePolicy$
|
|
2404
|
+
buildCachedSnapshotCachePolicy$f, buildNetworkSnapshotCachePolicy$f);
|
|
2321
2405
|
};
|
|
2322
2406
|
|
|
2323
|
-
function validate$
|
|
2407
|
+
function validate$v(obj, path = 'BaseAnalyticsRepresentation') {
|
|
2324
2408
|
const v_error = (() => {
|
|
2325
2409
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2326
2410
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2355,8 +2439,8 @@ function validate$s(obj, path = 'BaseAnalyticsRepresentation') {
|
|
|
2355
2439
|
return v_error === undefined ? null : v_error;
|
|
2356
2440
|
}
|
|
2357
2441
|
|
|
2358
|
-
function validate$
|
|
2359
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
2442
|
+
function validate$u(obj, path = 'AnalyticsAssetsQueryResultsWorkspaceRepresentation') {
|
|
2443
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$v(obj, path);
|
|
2360
2444
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
2361
2445
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
2362
2446
|
}
|
|
@@ -2368,8 +2452,8 @@ function validate$r(obj, path = 'AnalyticsAssetsQueryResultsWorkspaceRepresentat
|
|
|
2368
2452
|
return v_error === undefined ? null : v_error;
|
|
2369
2453
|
}
|
|
2370
2454
|
|
|
2371
|
-
function validate$
|
|
2372
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
2455
|
+
function validate$t(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation') {
|
|
2456
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$v(obj, path);
|
|
2373
2457
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
2374
2458
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
2375
2459
|
}
|
|
@@ -2410,7 +2494,7 @@ function validate$q(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation')
|
|
|
2410
2494
|
const path_workspace = path + '.workspace';
|
|
2411
2495
|
let obj_workspace_union0 = null;
|
|
2412
2496
|
const obj_workspace_union0_error = (() => {
|
|
2413
|
-
const referencepath_workspaceValidationError = validate$
|
|
2497
|
+
const referencepath_workspaceValidationError = validate$u(obj_workspace, path_workspace);
|
|
2414
2498
|
if (referencepath_workspaceValidationError !== null) {
|
|
2415
2499
|
let message = 'Object doesn\'t match AnalyticsAssetsQueryResultsWorkspaceRepresentation (at "' + path_workspace + '")\n';
|
|
2416
2500
|
message += referencepath_workspaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2440,9 +2524,9 @@ function validate$q(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation')
|
|
|
2440
2524
|
return v_error === undefined ? null : v_error;
|
|
2441
2525
|
}
|
|
2442
2526
|
|
|
2443
|
-
const TTL$
|
|
2444
|
-
const VERSION$
|
|
2445
|
-
function validate$
|
|
2527
|
+
const TTL$c = 500;
|
|
2528
|
+
const VERSION$m = "ed60d9cca169a3e5ed897c67d11a23db";
|
|
2529
|
+
function validate$s(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
|
|
2446
2530
|
const v_error = (() => {
|
|
2447
2531
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2448
2532
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2455,7 +2539,7 @@ function validate$p(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
|
|
|
2455
2539
|
for (let i = 0; i < obj_items.length; i++) {
|
|
2456
2540
|
const obj_items_item = obj_items[i];
|
|
2457
2541
|
const path_items_item = path_items + '[' + i + ']';
|
|
2458
|
-
const referencepath_items_itemValidationError = validate$
|
|
2542
|
+
const referencepath_items_itemValidationError = validate$t(obj_items_item, path_items_item);
|
|
2459
2543
|
if (referencepath_items_itemValidationError !== null) {
|
|
2460
2544
|
let message = 'Object doesn\'t match AnalyticsAssetsQueryResultsItemRepresentation (at "' + path_items_item + '")\n';
|
|
2461
2545
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2480,68 +2564,68 @@ function validate$p(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
|
|
|
2480
2564
|
})();
|
|
2481
2565
|
return v_error === undefined ? null : v_error;
|
|
2482
2566
|
}
|
|
2483
|
-
const RepresentationType$
|
|
2484
|
-
function keyBuilder$
|
|
2485
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2567
|
+
const RepresentationType$n = 'AnalyticsAssetsQueryResultsRepresentation';
|
|
2568
|
+
function keyBuilder$M(luvio, config) {
|
|
2569
|
+
return keyPrefix + '::' + RepresentationType$n + ':' + config.searchId;
|
|
2486
2570
|
}
|
|
2487
2571
|
function keyBuilderFromType$c(luvio, object) {
|
|
2488
2572
|
const keyParams = {
|
|
2489
2573
|
searchId: object.queryKey
|
|
2490
2574
|
};
|
|
2491
|
-
return keyBuilder$
|
|
2575
|
+
return keyBuilder$M(luvio, keyParams);
|
|
2492
2576
|
}
|
|
2493
|
-
function normalize$
|
|
2577
|
+
function normalize$m(input, existing, path, luvio, store, timestamp) {
|
|
2494
2578
|
return input;
|
|
2495
2579
|
}
|
|
2496
|
-
const select$
|
|
2580
|
+
const select$Q = function AnalyticsAssetsQueryResultsRepresentationSelect() {
|
|
2497
2581
|
return {
|
|
2498
2582
|
kind: 'Fragment',
|
|
2499
|
-
version: VERSION$
|
|
2583
|
+
version: VERSION$m,
|
|
2500
2584
|
private: [],
|
|
2501
2585
|
opaque: true
|
|
2502
2586
|
};
|
|
2503
2587
|
};
|
|
2504
|
-
function equals$
|
|
2588
|
+
function equals$m(existing, incoming) {
|
|
2505
2589
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2506
2590
|
return false;
|
|
2507
2591
|
}
|
|
2508
2592
|
return true;
|
|
2509
2593
|
}
|
|
2510
|
-
const ingest$
|
|
2594
|
+
const ingest$m = function AnalyticsAssetsQueryResultsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2511
2595
|
if (process.env.NODE_ENV !== 'production') {
|
|
2512
|
-
const validateError = validate$
|
|
2596
|
+
const validateError = validate$s(input);
|
|
2513
2597
|
if (validateError !== null) {
|
|
2514
2598
|
throw validateError;
|
|
2515
2599
|
}
|
|
2516
2600
|
}
|
|
2517
2601
|
const key = keyBuilderFromType$c(luvio, input);
|
|
2518
|
-
const ttlToUse = TTL$
|
|
2519
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2602
|
+
const ttlToUse = TTL$c;
|
|
2603
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$m, "UnifiedAnalytics", VERSION$m, RepresentationType$n, equals$m);
|
|
2520
2604
|
return createLink(key);
|
|
2521
2605
|
};
|
|
2522
|
-
function getTypeCacheKeys$
|
|
2606
|
+
function getTypeCacheKeys$m(rootKeySet, luvio, input, fullPathFactory) {
|
|
2523
2607
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2524
2608
|
const rootKey = keyBuilderFromType$c(luvio, input);
|
|
2525
2609
|
rootKeySet.set(rootKey, {
|
|
2526
2610
|
namespace: keyPrefix,
|
|
2527
|
-
representationName: RepresentationType$
|
|
2611
|
+
representationName: RepresentationType$n,
|
|
2528
2612
|
mergeable: false
|
|
2529
2613
|
});
|
|
2530
2614
|
}
|
|
2531
2615
|
|
|
2532
|
-
function select$
|
|
2533
|
-
return select$
|
|
2616
|
+
function select$P(luvio, params) {
|
|
2617
|
+
return select$Q();
|
|
2534
2618
|
}
|
|
2535
|
-
function getResponseCacheKeys$
|
|
2536
|
-
getTypeCacheKeys$
|
|
2619
|
+
function getResponseCacheKeys$y(storeKeyMap, luvio, resourceParams, response) {
|
|
2620
|
+
getTypeCacheKeys$m(storeKeyMap, luvio, response);
|
|
2537
2621
|
}
|
|
2538
|
-
function ingestSuccess$
|
|
2622
|
+
function ingestSuccess$t(luvio, resourceParams, response) {
|
|
2539
2623
|
const { body } = response;
|
|
2540
2624
|
const key = keyBuilderFromType$c(luvio, body);
|
|
2541
|
-
luvio.storeIngest(key, ingest$
|
|
2625
|
+
luvio.storeIngest(key, ingest$m, body);
|
|
2542
2626
|
const snapshot = luvio.storeLookup({
|
|
2543
2627
|
recordId: key,
|
|
2544
|
-
node: select$
|
|
2628
|
+
node: select$P(),
|
|
2545
2629
|
variables: {},
|
|
2546
2630
|
});
|
|
2547
2631
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2552,11 +2636,11 @@ function ingestSuccess$r(luvio, resourceParams, response) {
|
|
|
2552
2636
|
deepFreeze(snapshot.data);
|
|
2553
2637
|
return snapshot;
|
|
2554
2638
|
}
|
|
2555
|
-
function createResourceRequest$
|
|
2639
|
+
function createResourceRequest$y(config) {
|
|
2556
2640
|
const headers = {};
|
|
2557
2641
|
return {
|
|
2558
2642
|
baseUri: '/services/data/v62.0',
|
|
2559
|
-
basePath: '/
|
|
2643
|
+
basePath: '/tableau/assets/query',
|
|
2560
2644
|
method: 'post',
|
|
2561
2645
|
body: config.body,
|
|
2562
2646
|
urlParams: {},
|
|
@@ -2566,7 +2650,7 @@ function createResourceRequest$w(config) {
|
|
|
2566
2650
|
};
|
|
2567
2651
|
}
|
|
2568
2652
|
|
|
2569
|
-
const adapterName$
|
|
2653
|
+
const adapterName$y = 'queryAssets';
|
|
2570
2654
|
const queryAssets_ConfigPropertyMetadata = [
|
|
2571
2655
|
generateParamConfigMetadata('filters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2572
2656
|
generateParamConfigMetadata('limit', false, 2 /* Body */, 3 /* Integer */),
|
|
@@ -2575,11 +2659,11 @@ const queryAssets_ConfigPropertyMetadata = [
|
|
|
2575
2659
|
generateParamConfigMetadata('searchTerm', true, 2 /* Body */, 0 /* String */),
|
|
2576
2660
|
generateParamConfigMetadata('sortDirection', false, 2 /* Body */, 0 /* String */),
|
|
2577
2661
|
];
|
|
2578
|
-
const queryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2579
|
-
const createResourceParams$
|
|
2580
|
-
function typeCheckConfig$
|
|
2662
|
+
const queryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$y, queryAssets_ConfigPropertyMetadata);
|
|
2663
|
+
const createResourceParams$y = /*#__PURE__*/ createResourceParams$D(queryAssets_ConfigPropertyMetadata);
|
|
2664
|
+
function typeCheckConfig$y(untrustedConfig) {
|
|
2581
2665
|
const config = {};
|
|
2582
|
-
typeCheckConfig$
|
|
2666
|
+
typeCheckConfig$D(untrustedConfig, config, queryAssets_ConfigPropertyMetadata);
|
|
2583
2667
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
2584
2668
|
if (untrustedIsObject(untrustedConfig_filters)) {
|
|
2585
2669
|
const untrustedConfig_filters_object = {};
|
|
@@ -2597,30 +2681,30 @@ function typeCheckConfig$w(untrustedConfig) {
|
|
|
2597
2681
|
}
|
|
2598
2682
|
return config;
|
|
2599
2683
|
}
|
|
2600
|
-
function validateAdapterConfig$
|
|
2684
|
+
function validateAdapterConfig$y(untrustedConfig, configPropertyNames) {
|
|
2601
2685
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2602
2686
|
return null;
|
|
2603
2687
|
}
|
|
2604
2688
|
if (process.env.NODE_ENV !== 'production') {
|
|
2605
2689
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2606
2690
|
}
|
|
2607
|
-
const config = typeCheckConfig$
|
|
2691
|
+
const config = typeCheckConfig$y(untrustedConfig);
|
|
2608
2692
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2609
2693
|
return null;
|
|
2610
2694
|
}
|
|
2611
2695
|
return config;
|
|
2612
2696
|
}
|
|
2613
|
-
function buildNetworkSnapshot$
|
|
2614
|
-
const resourceParams = createResourceParams$
|
|
2615
|
-
const request = createResourceRequest$
|
|
2697
|
+
function buildNetworkSnapshot$y(luvio, config, options) {
|
|
2698
|
+
const resourceParams = createResourceParams$y(config);
|
|
2699
|
+
const request = createResourceRequest$y(resourceParams);
|
|
2616
2700
|
return luvio.dispatchResourceRequest(request, options)
|
|
2617
2701
|
.then((response) => {
|
|
2618
2702
|
return luvio.handleSuccessResponse(() => {
|
|
2619
|
-
const snapshot = ingestSuccess$
|
|
2703
|
+
const snapshot = ingestSuccess$t(luvio, resourceParams, response);
|
|
2620
2704
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2621
2705
|
}, () => {
|
|
2622
2706
|
const cache = new StoreKeyMap();
|
|
2623
|
-
getResponseCacheKeys$
|
|
2707
|
+
getResponseCacheKeys$y(cache, luvio, resourceParams, response.body);
|
|
2624
2708
|
return cache;
|
|
2625
2709
|
});
|
|
2626
2710
|
}, (response) => {
|
|
@@ -2630,17 +2714,17 @@ function buildNetworkSnapshot$w(luvio, config, options) {
|
|
|
2630
2714
|
}
|
|
2631
2715
|
const queryAssetsAdapterFactory = (luvio) => {
|
|
2632
2716
|
return function queryAssets(untrustedConfig) {
|
|
2633
|
-
const config = validateAdapterConfig$
|
|
2717
|
+
const config = validateAdapterConfig$y(untrustedConfig, queryAssets_ConfigPropertyNames);
|
|
2634
2718
|
// Invalid or incomplete config
|
|
2635
2719
|
if (config === null) {
|
|
2636
2720
|
throw new Error('Invalid config for "queryAssets"');
|
|
2637
2721
|
}
|
|
2638
|
-
return buildNetworkSnapshot$
|
|
2722
|
+
return buildNetworkSnapshot$y(luvio, config);
|
|
2639
2723
|
};
|
|
2640
2724
|
};
|
|
2641
2725
|
|
|
2642
|
-
const VERSION$
|
|
2643
|
-
function validate$
|
|
2726
|
+
const VERSION$l = "d4e4a9f9b260b72ce8e09fac1746cd21";
|
|
2727
|
+
function validate$r(obj, path = 'DashboardRepresentation') {
|
|
2644
2728
|
const v_error = (() => {
|
|
2645
2729
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2646
2730
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2753,57 +2837,57 @@ function validate$o(obj, path = 'DashboardRepresentation') {
|
|
|
2753
2837
|
})();
|
|
2754
2838
|
return v_error === undefined ? null : v_error;
|
|
2755
2839
|
}
|
|
2756
|
-
const RepresentationType$
|
|
2757
|
-
function keyBuilder$
|
|
2758
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2840
|
+
const RepresentationType$m = 'DashboardRepresentation';
|
|
2841
|
+
function keyBuilder$L(luvio, config) {
|
|
2842
|
+
return keyPrefix + '::' + RepresentationType$m + ':' + config.name;
|
|
2759
2843
|
}
|
|
2760
2844
|
function keyBuilderFromType$b(luvio, object) {
|
|
2761
2845
|
const keyParams = {
|
|
2762
2846
|
name: object.cacheableKey
|
|
2763
2847
|
};
|
|
2764
|
-
return keyBuilder$
|
|
2848
|
+
return keyBuilder$L(luvio, keyParams);
|
|
2765
2849
|
}
|
|
2766
|
-
function normalize$
|
|
2850
|
+
function normalize$l(input, existing, path, luvio, store, timestamp) {
|
|
2767
2851
|
return input;
|
|
2768
2852
|
}
|
|
2769
|
-
const select$
|
|
2853
|
+
const select$O = function DashboardRepresentationSelect() {
|
|
2770
2854
|
return {
|
|
2771
2855
|
kind: 'Fragment',
|
|
2772
|
-
version: VERSION$
|
|
2856
|
+
version: VERSION$l,
|
|
2773
2857
|
private: [],
|
|
2774
2858
|
opaque: true
|
|
2775
2859
|
};
|
|
2776
2860
|
};
|
|
2777
|
-
function equals$
|
|
2861
|
+
function equals$l(existing, incoming) {
|
|
2778
2862
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2779
2863
|
return false;
|
|
2780
2864
|
}
|
|
2781
2865
|
return true;
|
|
2782
2866
|
}
|
|
2783
|
-
const ingest$
|
|
2867
|
+
const ingest$l = function DashboardRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2784
2868
|
if (process.env.NODE_ENV !== 'production') {
|
|
2785
|
-
const validateError = validate$
|
|
2869
|
+
const validateError = validate$r(input);
|
|
2786
2870
|
if (validateError !== null) {
|
|
2787
2871
|
throw validateError;
|
|
2788
2872
|
}
|
|
2789
2873
|
}
|
|
2790
2874
|
const key = keyBuilderFromType$b(luvio, input);
|
|
2791
2875
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2792
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2876
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$l, "UnifiedAnalytics", VERSION$l, RepresentationType$m, equals$l);
|
|
2793
2877
|
return createLink(key);
|
|
2794
2878
|
};
|
|
2795
|
-
function getTypeCacheKeys$
|
|
2879
|
+
function getTypeCacheKeys$l(rootKeySet, luvio, input, fullPathFactory) {
|
|
2796
2880
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2797
2881
|
const rootKey = keyBuilderFromType$b(luvio, input);
|
|
2798
2882
|
rootKeySet.set(rootKey, {
|
|
2799
2883
|
namespace: keyPrefix,
|
|
2800
|
-
representationName: RepresentationType$
|
|
2884
|
+
representationName: RepresentationType$m,
|
|
2801
2885
|
mergeable: false
|
|
2802
2886
|
});
|
|
2803
2887
|
}
|
|
2804
2888
|
|
|
2805
|
-
const VERSION$
|
|
2806
|
-
function validate$
|
|
2889
|
+
const VERSION$k = "962823130e6a9315240ef0e0f0c5f757";
|
|
2890
|
+
function validate$q(obj, path = 'DashboardCollectionRepresentation') {
|
|
2807
2891
|
const v_error = (() => {
|
|
2808
2892
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2809
2893
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2823,14 +2907,14 @@ function validate$n(obj, path = 'DashboardCollectionRepresentation') {
|
|
|
2823
2907
|
})();
|
|
2824
2908
|
return v_error === undefined ? null : v_error;
|
|
2825
2909
|
}
|
|
2826
|
-
const RepresentationType$
|
|
2827
|
-
function normalize$
|
|
2910
|
+
const RepresentationType$l = 'DashboardCollectionRepresentation';
|
|
2911
|
+
function normalize$k(input, existing, path, luvio, store, timestamp) {
|
|
2828
2912
|
const input_dashboards = input.dashboards;
|
|
2829
2913
|
const input_dashboards_id = path.fullPath + '__dashboards';
|
|
2830
2914
|
for (let i = 0; i < input_dashboards.length; i++) {
|
|
2831
2915
|
const input_dashboards_item = input_dashboards[i];
|
|
2832
2916
|
let input_dashboards_item_id = input_dashboards_id + '__' + i;
|
|
2833
|
-
input_dashboards[i] = ingest$
|
|
2917
|
+
input_dashboards[i] = ingest$l(input_dashboards_item, {
|
|
2834
2918
|
fullPath: input_dashboards_item_id,
|
|
2835
2919
|
propertyName: i,
|
|
2836
2920
|
parent: {
|
|
@@ -2843,22 +2927,22 @@ function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
|
2843
2927
|
}
|
|
2844
2928
|
return input;
|
|
2845
2929
|
}
|
|
2846
|
-
const select$
|
|
2930
|
+
const select$N = function DashboardCollectionRepresentationSelect() {
|
|
2847
2931
|
return {
|
|
2848
2932
|
kind: 'Fragment',
|
|
2849
|
-
version: VERSION$
|
|
2933
|
+
version: VERSION$k,
|
|
2850
2934
|
private: [],
|
|
2851
2935
|
selections: [
|
|
2852
2936
|
{
|
|
2853
2937
|
name: 'dashboards',
|
|
2854
2938
|
kind: 'Link',
|
|
2855
2939
|
plural: true,
|
|
2856
|
-
fragment: select$
|
|
2940
|
+
fragment: select$O()
|
|
2857
2941
|
}
|
|
2858
2942
|
]
|
|
2859
2943
|
};
|
|
2860
2944
|
};
|
|
2861
|
-
function equals$
|
|
2945
|
+
function equals$k(existing, incoming) {
|
|
2862
2946
|
const existing_dashboards = existing.dashboards;
|
|
2863
2947
|
const incoming_dashboards = incoming.dashboards;
|
|
2864
2948
|
const equals_dashboards_items = equalsArray(existing_dashboards, incoming_dashboards, (existing_dashboards_item, incoming_dashboards_item) => {
|
|
@@ -2871,48 +2955,48 @@ function equals$i(existing, incoming) {
|
|
|
2871
2955
|
}
|
|
2872
2956
|
return true;
|
|
2873
2957
|
}
|
|
2874
|
-
const ingest$
|
|
2958
|
+
const ingest$k = function DashboardCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2875
2959
|
if (process.env.NODE_ENV !== 'production') {
|
|
2876
|
-
const validateError = validate$
|
|
2960
|
+
const validateError = validate$q(input);
|
|
2877
2961
|
if (validateError !== null) {
|
|
2878
2962
|
throw validateError;
|
|
2879
2963
|
}
|
|
2880
2964
|
}
|
|
2881
2965
|
const key = path.fullPath;
|
|
2882
2966
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2883
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2967
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$k, "UnifiedAnalytics", VERSION$k, RepresentationType$l, equals$k);
|
|
2884
2968
|
return createLink(key);
|
|
2885
2969
|
};
|
|
2886
|
-
function getTypeCacheKeys$
|
|
2970
|
+
function getTypeCacheKeys$k(rootKeySet, luvio, input, fullPathFactory) {
|
|
2887
2971
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2888
2972
|
const rootKey = fullPathFactory();
|
|
2889
2973
|
rootKeySet.set(rootKey, {
|
|
2890
2974
|
namespace: keyPrefix,
|
|
2891
|
-
representationName: RepresentationType$
|
|
2975
|
+
representationName: RepresentationType$l,
|
|
2892
2976
|
mergeable: false
|
|
2893
2977
|
});
|
|
2894
2978
|
const input_dashboards_length = input.dashboards.length;
|
|
2895
2979
|
for (let i = 0; i < input_dashboards_length; i++) {
|
|
2896
|
-
getTypeCacheKeys$
|
|
2980
|
+
getTypeCacheKeys$l(rootKeySet, luvio, input.dashboards[i]);
|
|
2897
2981
|
}
|
|
2898
2982
|
}
|
|
2899
2983
|
|
|
2900
|
-
function select$
|
|
2901
|
-
return select$
|
|
2984
|
+
function select$M(luvio, params) {
|
|
2985
|
+
return select$N();
|
|
2902
2986
|
}
|
|
2903
|
-
function keyBuilder$
|
|
2987
|
+
function keyBuilder$K(luvio, params) {
|
|
2904
2988
|
return keyPrefix + '::DashboardCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
2905
2989
|
}
|
|
2906
|
-
function getResponseCacheKeys$
|
|
2907
|
-
getTypeCacheKeys$
|
|
2990
|
+
function getResponseCacheKeys$x(storeKeyMap, luvio, resourceParams, response) {
|
|
2991
|
+
getTypeCacheKeys$k(storeKeyMap, luvio, response, () => keyBuilder$K(luvio, resourceParams));
|
|
2908
2992
|
}
|
|
2909
|
-
function ingestSuccess$
|
|
2993
|
+
function ingestSuccess$s(luvio, resourceParams, response, snapshotRefresh) {
|
|
2910
2994
|
const { body } = response;
|
|
2911
|
-
const key = keyBuilder$
|
|
2912
|
-
luvio.storeIngest(key, ingest$
|
|
2995
|
+
const key = keyBuilder$K(luvio, resourceParams);
|
|
2996
|
+
luvio.storeIngest(key, ingest$k, body);
|
|
2913
2997
|
const snapshot = luvio.storeLookup({
|
|
2914
2998
|
recordId: key,
|
|
2915
|
-
node: select$
|
|
2999
|
+
node: select$M(),
|
|
2916
3000
|
variables: {},
|
|
2917
3001
|
}, snapshotRefresh);
|
|
2918
3002
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2923,17 +3007,17 @@ function ingestSuccess$q(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2923
3007
|
deepFreeze(snapshot.data);
|
|
2924
3008
|
return snapshot;
|
|
2925
3009
|
}
|
|
2926
|
-
function ingestError$
|
|
2927
|
-
const key = keyBuilder$
|
|
3010
|
+
function ingestError$e(luvio, params, error, snapshotRefresh) {
|
|
3011
|
+
const key = keyBuilder$K(luvio, params);
|
|
2928
3012
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2929
3013
|
luvio.storeIngestError(key, errorSnapshot);
|
|
2930
3014
|
return errorSnapshot;
|
|
2931
3015
|
}
|
|
2932
|
-
function createResourceRequest$
|
|
3016
|
+
function createResourceRequest$x(config) {
|
|
2933
3017
|
const headers = {};
|
|
2934
3018
|
return {
|
|
2935
3019
|
baseUri: '/services/data/v62.0',
|
|
2936
|
-
basePath: '/
|
|
3020
|
+
basePath: '/tableau/dashboards',
|
|
2937
3021
|
method: 'get',
|
|
2938
3022
|
body: null,
|
|
2939
3023
|
urlParams: {},
|
|
@@ -2943,106 +3027,106 @@ function createResourceRequest$v(config) {
|
|
|
2943
3027
|
};
|
|
2944
3028
|
}
|
|
2945
3029
|
|
|
2946
|
-
const adapterName$
|
|
3030
|
+
const adapterName$x = 'getDashboards';
|
|
2947
3031
|
const getDashboards_ConfigPropertyMetadata = [
|
|
2948
3032
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2949
3033
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2950
3034
|
];
|
|
2951
|
-
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2952
|
-
const createResourceParams$
|
|
2953
|
-
function keyBuilder$
|
|
2954
|
-
const resourceParams = createResourceParams$
|
|
2955
|
-
return keyBuilder$
|
|
3035
|
+
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$x, getDashboards_ConfigPropertyMetadata);
|
|
3036
|
+
const createResourceParams$x = /*#__PURE__*/ createResourceParams$D(getDashboards_ConfigPropertyMetadata);
|
|
3037
|
+
function keyBuilder$J(luvio, config) {
|
|
3038
|
+
const resourceParams = createResourceParams$x(config);
|
|
3039
|
+
return keyBuilder$K(luvio, resourceParams);
|
|
2956
3040
|
}
|
|
2957
|
-
function typeCheckConfig$
|
|
3041
|
+
function typeCheckConfig$x(untrustedConfig) {
|
|
2958
3042
|
const config = {};
|
|
2959
|
-
typeCheckConfig$
|
|
3043
|
+
typeCheckConfig$D(untrustedConfig, config, getDashboards_ConfigPropertyMetadata);
|
|
2960
3044
|
return config;
|
|
2961
3045
|
}
|
|
2962
|
-
function validateAdapterConfig$
|
|
3046
|
+
function validateAdapterConfig$x(untrustedConfig, configPropertyNames) {
|
|
2963
3047
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2964
3048
|
return null;
|
|
2965
3049
|
}
|
|
2966
3050
|
if (process.env.NODE_ENV !== 'production') {
|
|
2967
3051
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2968
3052
|
}
|
|
2969
|
-
const config = typeCheckConfig$
|
|
3053
|
+
const config = typeCheckConfig$x(untrustedConfig);
|
|
2970
3054
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2971
3055
|
return null;
|
|
2972
3056
|
}
|
|
2973
3057
|
return config;
|
|
2974
3058
|
}
|
|
2975
|
-
function adapterFragment$
|
|
2976
|
-
createResourceParams$
|
|
2977
|
-
return select$
|
|
3059
|
+
function adapterFragment$e(luvio, config) {
|
|
3060
|
+
createResourceParams$x(config);
|
|
3061
|
+
return select$M();
|
|
2978
3062
|
}
|
|
2979
|
-
function onFetchResponseSuccess$
|
|
2980
|
-
const snapshot = ingestSuccess$
|
|
3063
|
+
function onFetchResponseSuccess$e(luvio, config, resourceParams, response) {
|
|
3064
|
+
const snapshot = ingestSuccess$s(luvio, resourceParams, response, {
|
|
2981
3065
|
config,
|
|
2982
|
-
resolve: () => buildNetworkSnapshot$
|
|
3066
|
+
resolve: () => buildNetworkSnapshot$x(luvio, config, snapshotRefreshOptions)
|
|
2983
3067
|
});
|
|
2984
3068
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2985
3069
|
}
|
|
2986
|
-
function onFetchResponseError$
|
|
2987
|
-
const snapshot = ingestError$
|
|
3070
|
+
function onFetchResponseError$e(luvio, config, resourceParams, response) {
|
|
3071
|
+
const snapshot = ingestError$e(luvio, resourceParams, response, {
|
|
2988
3072
|
config,
|
|
2989
|
-
resolve: () => buildNetworkSnapshot$
|
|
3073
|
+
resolve: () => buildNetworkSnapshot$x(luvio, config, snapshotRefreshOptions)
|
|
2990
3074
|
});
|
|
2991
3075
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2992
3076
|
}
|
|
2993
|
-
function buildNetworkSnapshot$
|
|
2994
|
-
const resourceParams = createResourceParams$
|
|
2995
|
-
const request = createResourceRequest$
|
|
3077
|
+
function buildNetworkSnapshot$x(luvio, config, options) {
|
|
3078
|
+
const resourceParams = createResourceParams$x(config);
|
|
3079
|
+
const request = createResourceRequest$x(resourceParams);
|
|
2996
3080
|
return luvio.dispatchResourceRequest(request, options)
|
|
2997
3081
|
.then((response) => {
|
|
2998
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3082
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$e(luvio, config, resourceParams, response), () => {
|
|
2999
3083
|
const cache = new StoreKeyMap();
|
|
3000
|
-
getResponseCacheKeys$
|
|
3084
|
+
getResponseCacheKeys$x(cache, luvio, resourceParams, response.body);
|
|
3001
3085
|
return cache;
|
|
3002
3086
|
});
|
|
3003
3087
|
}, (response) => {
|
|
3004
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3088
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$e(luvio, config, resourceParams, response));
|
|
3005
3089
|
});
|
|
3006
3090
|
}
|
|
3007
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3008
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3091
|
+
function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
|
|
3092
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$x, undefined, false);
|
|
3009
3093
|
}
|
|
3010
|
-
function buildCachedSnapshotCachePolicy$
|
|
3094
|
+
function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
|
|
3011
3095
|
const { luvio, config } = context;
|
|
3012
3096
|
const selector = {
|
|
3013
|
-
recordId: keyBuilder$
|
|
3014
|
-
node: adapterFragment$
|
|
3097
|
+
recordId: keyBuilder$J(luvio, config),
|
|
3098
|
+
node: adapterFragment$e(luvio, config),
|
|
3015
3099
|
variables: {},
|
|
3016
3100
|
};
|
|
3017
3101
|
const cacheSnapshot = storeLookup(selector, {
|
|
3018
3102
|
config,
|
|
3019
|
-
resolve: () => buildNetworkSnapshot$
|
|
3103
|
+
resolve: () => buildNetworkSnapshot$x(luvio, config, snapshotRefreshOptions)
|
|
3020
3104
|
});
|
|
3021
3105
|
return cacheSnapshot;
|
|
3022
3106
|
}
|
|
3023
3107
|
const getDashboardsAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboards(untrustedConfig, requestContext) {
|
|
3024
|
-
const config = validateAdapterConfig$
|
|
3108
|
+
const config = validateAdapterConfig$x(untrustedConfig, getDashboards_ConfigPropertyNames);
|
|
3025
3109
|
// Invalid or incomplete config
|
|
3026
3110
|
if (config === null) {
|
|
3027
3111
|
return null;
|
|
3028
3112
|
}
|
|
3029
3113
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3030
|
-
buildCachedSnapshotCachePolicy$
|
|
3114
|
+
buildCachedSnapshotCachePolicy$e, buildNetworkSnapshotCachePolicy$e);
|
|
3031
3115
|
};
|
|
3032
3116
|
|
|
3033
|
-
function select$
|
|
3034
|
-
return select$
|
|
3117
|
+
function select$L(luvio, params) {
|
|
3118
|
+
return select$O();
|
|
3035
3119
|
}
|
|
3036
|
-
function getResponseCacheKeys$
|
|
3037
|
-
getTypeCacheKeys$
|
|
3120
|
+
function getResponseCacheKeys$w(storeKeyMap, luvio, resourceParams, response) {
|
|
3121
|
+
getTypeCacheKeys$l(storeKeyMap, luvio, response);
|
|
3038
3122
|
}
|
|
3039
|
-
function ingestSuccess$
|
|
3123
|
+
function ingestSuccess$r(luvio, resourceParams, response) {
|
|
3040
3124
|
const { body } = response;
|
|
3041
3125
|
const key = keyBuilderFromType$b(luvio, body);
|
|
3042
|
-
luvio.storeIngest(key, ingest$
|
|
3126
|
+
luvio.storeIngest(key, ingest$l, body);
|
|
3043
3127
|
const snapshot = luvio.storeLookup({
|
|
3044
3128
|
recordId: key,
|
|
3045
|
-
node: select$
|
|
3129
|
+
node: select$L(),
|
|
3046
3130
|
variables: {},
|
|
3047
3131
|
});
|
|
3048
3132
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3053,11 +3137,11 @@ function ingestSuccess$p(luvio, resourceParams, response) {
|
|
|
3053
3137
|
deepFreeze(snapshot.data);
|
|
3054
3138
|
return snapshot;
|
|
3055
3139
|
}
|
|
3056
|
-
function createResourceRequest$
|
|
3140
|
+
function createResourceRequest$w(config) {
|
|
3057
3141
|
const headers = {};
|
|
3058
3142
|
return {
|
|
3059
3143
|
baseUri: '/services/data/v62.0',
|
|
3060
|
-
basePath: '/
|
|
3144
|
+
basePath: '/tableau/dashboards',
|
|
3061
3145
|
method: 'post',
|
|
3062
3146
|
body: config.body,
|
|
3063
3147
|
urlParams: {},
|
|
@@ -3067,7 +3151,7 @@ function createResourceRequest$u(config) {
|
|
|
3067
3151
|
};
|
|
3068
3152
|
}
|
|
3069
3153
|
|
|
3070
|
-
const adapterName$
|
|
3154
|
+
const adapterName$w = 'createDashboard';
|
|
3071
3155
|
const createDashboard_ConfigPropertyMetadata = [
|
|
3072
3156
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
3073
3157
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
@@ -3078,11 +3162,11 @@ const createDashboard_ConfigPropertyMetadata = [
|
|
|
3078
3162
|
generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3079
3163
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3080
3164
|
];
|
|
3081
|
-
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3082
|
-
const createResourceParams$
|
|
3083
|
-
function typeCheckConfig$
|
|
3165
|
+
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$w, createDashboard_ConfigPropertyMetadata);
|
|
3166
|
+
const createResourceParams$w = /*#__PURE__*/ createResourceParams$D(createDashboard_ConfigPropertyMetadata);
|
|
3167
|
+
function typeCheckConfig$w(untrustedConfig) {
|
|
3084
3168
|
const config = {};
|
|
3085
|
-
typeCheckConfig$
|
|
3169
|
+
typeCheckConfig$D(untrustedConfig, config, createDashboard_ConfigPropertyMetadata);
|
|
3086
3170
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
3087
3171
|
if (ArrayIsArray$1(untrustedConfig_layouts)) {
|
|
3088
3172
|
const untrustedConfig_layouts_array = [];
|
|
@@ -3124,30 +3208,30 @@ function typeCheckConfig$u(untrustedConfig) {
|
|
|
3124
3208
|
}
|
|
3125
3209
|
return config;
|
|
3126
3210
|
}
|
|
3127
|
-
function validateAdapterConfig$
|
|
3211
|
+
function validateAdapterConfig$w(untrustedConfig, configPropertyNames) {
|
|
3128
3212
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3129
3213
|
return null;
|
|
3130
3214
|
}
|
|
3131
3215
|
if (process.env.NODE_ENV !== 'production') {
|
|
3132
3216
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3133
3217
|
}
|
|
3134
|
-
const config = typeCheckConfig$
|
|
3218
|
+
const config = typeCheckConfig$w(untrustedConfig);
|
|
3135
3219
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3136
3220
|
return null;
|
|
3137
3221
|
}
|
|
3138
3222
|
return config;
|
|
3139
3223
|
}
|
|
3140
|
-
function buildNetworkSnapshot$
|
|
3141
|
-
const resourceParams = createResourceParams$
|
|
3142
|
-
const request = createResourceRequest$
|
|
3224
|
+
function buildNetworkSnapshot$w(luvio, config, options) {
|
|
3225
|
+
const resourceParams = createResourceParams$w(config);
|
|
3226
|
+
const request = createResourceRequest$w(resourceParams);
|
|
3143
3227
|
return luvio.dispatchResourceRequest(request, options)
|
|
3144
3228
|
.then((response) => {
|
|
3145
3229
|
return luvio.handleSuccessResponse(() => {
|
|
3146
|
-
const snapshot = ingestSuccess$
|
|
3230
|
+
const snapshot = ingestSuccess$r(luvio, resourceParams, response);
|
|
3147
3231
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3148
3232
|
}, () => {
|
|
3149
3233
|
const cache = new StoreKeyMap();
|
|
3150
|
-
getResponseCacheKeys$
|
|
3234
|
+
getResponseCacheKeys$w(cache, luvio, resourceParams, response.body);
|
|
3151
3235
|
return cache;
|
|
3152
3236
|
});
|
|
3153
3237
|
}, (response) => {
|
|
@@ -3157,37 +3241,37 @@ function buildNetworkSnapshot$u(luvio, config, options) {
|
|
|
3157
3241
|
}
|
|
3158
3242
|
const createDashboardAdapterFactory = (luvio) => {
|
|
3159
3243
|
return function createDashboard(untrustedConfig) {
|
|
3160
|
-
const config = validateAdapterConfig$
|
|
3244
|
+
const config = validateAdapterConfig$w(untrustedConfig, createDashboard_ConfigPropertyNames);
|
|
3161
3245
|
// Invalid or incomplete config
|
|
3162
3246
|
if (config === null) {
|
|
3163
3247
|
throw new Error('Invalid config for "createDashboard"');
|
|
3164
3248
|
}
|
|
3165
|
-
return buildNetworkSnapshot$
|
|
3249
|
+
return buildNetworkSnapshot$w(luvio, config);
|
|
3166
3250
|
};
|
|
3167
3251
|
};
|
|
3168
3252
|
|
|
3169
|
-
function keyBuilder$
|
|
3170
|
-
return keyBuilder$
|
|
3253
|
+
function keyBuilder$I(luvio, params) {
|
|
3254
|
+
return keyBuilder$L(luvio, {
|
|
3171
3255
|
name: params.urlParams.dashboardIdOrApiName
|
|
3172
3256
|
});
|
|
3173
3257
|
}
|
|
3174
|
-
function getResponseCacheKeys$
|
|
3175
|
-
const key = keyBuilder$
|
|
3258
|
+
function getResponseCacheKeys$v(cacheKeyMap, luvio, resourceParams) {
|
|
3259
|
+
const key = keyBuilder$I(luvio, resourceParams);
|
|
3176
3260
|
cacheKeyMap.set(key, {
|
|
3177
3261
|
namespace: keyPrefix,
|
|
3178
|
-
representationName: RepresentationType$
|
|
3262
|
+
representationName: RepresentationType$m,
|
|
3179
3263
|
mergeable: false
|
|
3180
3264
|
});
|
|
3181
3265
|
}
|
|
3182
3266
|
function evictSuccess$4(luvio, resourceParams) {
|
|
3183
|
-
const key = keyBuilder$
|
|
3267
|
+
const key = keyBuilder$I(luvio, resourceParams);
|
|
3184
3268
|
luvio.storeEvict(key);
|
|
3185
3269
|
}
|
|
3186
|
-
function createResourceRequest$
|
|
3270
|
+
function createResourceRequest$v(config) {
|
|
3187
3271
|
const headers = {};
|
|
3188
3272
|
return {
|
|
3189
3273
|
baseUri: '/services/data/v62.0',
|
|
3190
|
-
basePath: '/
|
|
3274
|
+
basePath: '/tableau/dashboards/' + config.urlParams.dashboardIdOrApiName + '',
|
|
3191
3275
|
method: 'delete',
|
|
3192
3276
|
body: null,
|
|
3193
3277
|
urlParams: config.urlParams,
|
|
@@ -3197,33 +3281,33 @@ function createResourceRequest$t(config) {
|
|
|
3197
3281
|
};
|
|
3198
3282
|
}
|
|
3199
3283
|
|
|
3200
|
-
const adapterName$
|
|
3284
|
+
const adapterName$v = 'deleteDashboard';
|
|
3201
3285
|
const deleteDashboard_ConfigPropertyMetadata = [
|
|
3202
3286
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3203
3287
|
];
|
|
3204
|
-
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3205
|
-
const createResourceParams$
|
|
3206
|
-
function typeCheckConfig$
|
|
3288
|
+
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$v, deleteDashboard_ConfigPropertyMetadata);
|
|
3289
|
+
const createResourceParams$v = /*#__PURE__*/ createResourceParams$D(deleteDashboard_ConfigPropertyMetadata);
|
|
3290
|
+
function typeCheckConfig$v(untrustedConfig) {
|
|
3207
3291
|
const config = {};
|
|
3208
|
-
typeCheckConfig$
|
|
3292
|
+
typeCheckConfig$D(untrustedConfig, config, deleteDashboard_ConfigPropertyMetadata);
|
|
3209
3293
|
return config;
|
|
3210
3294
|
}
|
|
3211
|
-
function validateAdapterConfig$
|
|
3295
|
+
function validateAdapterConfig$v(untrustedConfig, configPropertyNames) {
|
|
3212
3296
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3213
3297
|
return null;
|
|
3214
3298
|
}
|
|
3215
3299
|
if (process.env.NODE_ENV !== 'production') {
|
|
3216
3300
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3217
3301
|
}
|
|
3218
|
-
const config = typeCheckConfig$
|
|
3302
|
+
const config = typeCheckConfig$v(untrustedConfig);
|
|
3219
3303
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3220
3304
|
return null;
|
|
3221
3305
|
}
|
|
3222
3306
|
return config;
|
|
3223
3307
|
}
|
|
3224
|
-
function buildNetworkSnapshot$
|
|
3225
|
-
const resourceParams = createResourceParams$
|
|
3226
|
-
const request = createResourceRequest$
|
|
3308
|
+
function buildNetworkSnapshot$v(luvio, config, options) {
|
|
3309
|
+
const resourceParams = createResourceParams$v(config);
|
|
3310
|
+
const request = createResourceRequest$v(resourceParams);
|
|
3227
3311
|
return luvio.dispatchResourceRequest(request, options)
|
|
3228
3312
|
.then(() => {
|
|
3229
3313
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -3231,7 +3315,7 @@ function buildNetworkSnapshot$t(luvio, config, options) {
|
|
|
3231
3315
|
return luvio.storeBroadcast();
|
|
3232
3316
|
}, () => {
|
|
3233
3317
|
const cache = new StoreKeyMap();
|
|
3234
|
-
getResponseCacheKeys$
|
|
3318
|
+
getResponseCacheKeys$v(cache, luvio, resourceParams);
|
|
3235
3319
|
return cache;
|
|
3236
3320
|
});
|
|
3237
3321
|
}, (response) => {
|
|
@@ -3241,33 +3325,33 @@ function buildNetworkSnapshot$t(luvio, config, options) {
|
|
|
3241
3325
|
}
|
|
3242
3326
|
const deleteDashboardAdapterFactory = (luvio) => {
|
|
3243
3327
|
return function UnifiedAnalyticsdeleteDashboard(untrustedConfig) {
|
|
3244
|
-
const config = validateAdapterConfig$
|
|
3328
|
+
const config = validateAdapterConfig$v(untrustedConfig, deleteDashboard_ConfigPropertyNames);
|
|
3245
3329
|
// Invalid or incomplete config
|
|
3246
3330
|
if (config === null) {
|
|
3247
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
3331
|
+
throw new Error(`Invalid config for "${adapterName$v}"`);
|
|
3248
3332
|
}
|
|
3249
|
-
return buildNetworkSnapshot$
|
|
3333
|
+
return buildNetworkSnapshot$v(luvio, config);
|
|
3250
3334
|
};
|
|
3251
3335
|
};
|
|
3252
3336
|
|
|
3253
|
-
function select$
|
|
3254
|
-
return select$
|
|
3337
|
+
function select$K(luvio, params) {
|
|
3338
|
+
return select$O();
|
|
3255
3339
|
}
|
|
3256
|
-
function keyBuilder$
|
|
3257
|
-
return keyBuilder$
|
|
3340
|
+
function keyBuilder$H(luvio, params) {
|
|
3341
|
+
return keyBuilder$L(luvio, {
|
|
3258
3342
|
name: params.urlParams.dashboardIdOrApiName
|
|
3259
3343
|
});
|
|
3260
3344
|
}
|
|
3261
|
-
function getResponseCacheKeys$
|
|
3262
|
-
getTypeCacheKeys$
|
|
3345
|
+
function getResponseCacheKeys$u(storeKeyMap, luvio, resourceParams, response) {
|
|
3346
|
+
getTypeCacheKeys$l(storeKeyMap, luvio, response);
|
|
3263
3347
|
}
|
|
3264
|
-
function ingestSuccess$
|
|
3348
|
+
function ingestSuccess$q(luvio, resourceParams, response, snapshotRefresh) {
|
|
3265
3349
|
const { body } = response;
|
|
3266
|
-
const key = keyBuilder$
|
|
3267
|
-
luvio.storeIngest(key, ingest$
|
|
3350
|
+
const key = keyBuilder$H(luvio, resourceParams);
|
|
3351
|
+
luvio.storeIngest(key, ingest$l, body);
|
|
3268
3352
|
const snapshot = luvio.storeLookup({
|
|
3269
3353
|
recordId: key,
|
|
3270
|
-
node: select$
|
|
3354
|
+
node: select$K(),
|
|
3271
3355
|
variables: {},
|
|
3272
3356
|
}, snapshotRefresh);
|
|
3273
3357
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3278,17 +3362,17 @@ function ingestSuccess$o(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3278
3362
|
deepFreeze(snapshot.data);
|
|
3279
3363
|
return snapshot;
|
|
3280
3364
|
}
|
|
3281
|
-
function ingestError$
|
|
3282
|
-
const key = keyBuilder$
|
|
3365
|
+
function ingestError$d(luvio, params, error, snapshotRefresh) {
|
|
3366
|
+
const key = keyBuilder$H(luvio, params);
|
|
3283
3367
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3284
3368
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3285
3369
|
return errorSnapshot;
|
|
3286
3370
|
}
|
|
3287
|
-
function createResourceRequest$
|
|
3371
|
+
function createResourceRequest$u(config) {
|
|
3288
3372
|
const headers = {};
|
|
3289
3373
|
return {
|
|
3290
3374
|
baseUri: '/services/data/v62.0',
|
|
3291
|
-
basePath: '/
|
|
3375
|
+
basePath: '/tableau/dashboards/' + config.urlParams.dashboardIdOrApiName + '',
|
|
3292
3376
|
method: 'get',
|
|
3293
3377
|
body: null,
|
|
3294
3378
|
urlParams: config.urlParams,
|
|
@@ -3298,105 +3382,105 @@ function createResourceRequest$s(config) {
|
|
|
3298
3382
|
};
|
|
3299
3383
|
}
|
|
3300
3384
|
|
|
3301
|
-
const adapterName$
|
|
3385
|
+
const adapterName$u = 'getDashboardByName';
|
|
3302
3386
|
const getDashboardByName_ConfigPropertyMetadata = [
|
|
3303
3387
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3304
3388
|
];
|
|
3305
|
-
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3306
|
-
const createResourceParams$
|
|
3307
|
-
function keyBuilder$
|
|
3308
|
-
const resourceParams = createResourceParams$
|
|
3309
|
-
return keyBuilder$
|
|
3389
|
+
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$u, getDashboardByName_ConfigPropertyMetadata);
|
|
3390
|
+
const createResourceParams$u = /*#__PURE__*/ createResourceParams$D(getDashboardByName_ConfigPropertyMetadata);
|
|
3391
|
+
function keyBuilder$G(luvio, config) {
|
|
3392
|
+
const resourceParams = createResourceParams$u(config);
|
|
3393
|
+
return keyBuilder$H(luvio, resourceParams);
|
|
3310
3394
|
}
|
|
3311
|
-
function typeCheckConfig$
|
|
3395
|
+
function typeCheckConfig$u(untrustedConfig) {
|
|
3312
3396
|
const config = {};
|
|
3313
|
-
typeCheckConfig$
|
|
3397
|
+
typeCheckConfig$D(untrustedConfig, config, getDashboardByName_ConfigPropertyMetadata);
|
|
3314
3398
|
return config;
|
|
3315
3399
|
}
|
|
3316
|
-
function validateAdapterConfig$
|
|
3400
|
+
function validateAdapterConfig$u(untrustedConfig, configPropertyNames) {
|
|
3317
3401
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3318
3402
|
return null;
|
|
3319
3403
|
}
|
|
3320
3404
|
if (process.env.NODE_ENV !== 'production') {
|
|
3321
3405
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3322
3406
|
}
|
|
3323
|
-
const config = typeCheckConfig$
|
|
3407
|
+
const config = typeCheckConfig$u(untrustedConfig);
|
|
3324
3408
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3325
3409
|
return null;
|
|
3326
3410
|
}
|
|
3327
3411
|
return config;
|
|
3328
3412
|
}
|
|
3329
|
-
function adapterFragment$
|
|
3330
|
-
createResourceParams$
|
|
3331
|
-
return select$
|
|
3413
|
+
function adapterFragment$d(luvio, config) {
|
|
3414
|
+
createResourceParams$u(config);
|
|
3415
|
+
return select$K();
|
|
3332
3416
|
}
|
|
3333
|
-
function onFetchResponseSuccess$
|
|
3334
|
-
const snapshot = ingestSuccess$
|
|
3417
|
+
function onFetchResponseSuccess$d(luvio, config, resourceParams, response) {
|
|
3418
|
+
const snapshot = ingestSuccess$q(luvio, resourceParams, response, {
|
|
3335
3419
|
config,
|
|
3336
|
-
resolve: () => buildNetworkSnapshot$
|
|
3420
|
+
resolve: () => buildNetworkSnapshot$u(luvio, config, snapshotRefreshOptions)
|
|
3337
3421
|
});
|
|
3338
3422
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3339
3423
|
}
|
|
3340
|
-
function onFetchResponseError$
|
|
3341
|
-
const snapshot = ingestError$
|
|
3424
|
+
function onFetchResponseError$d(luvio, config, resourceParams, response) {
|
|
3425
|
+
const snapshot = ingestError$d(luvio, resourceParams, response, {
|
|
3342
3426
|
config,
|
|
3343
|
-
resolve: () => buildNetworkSnapshot$
|
|
3427
|
+
resolve: () => buildNetworkSnapshot$u(luvio, config, snapshotRefreshOptions)
|
|
3344
3428
|
});
|
|
3345
3429
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3346
3430
|
}
|
|
3347
|
-
function buildNetworkSnapshot$
|
|
3348
|
-
const resourceParams = createResourceParams$
|
|
3349
|
-
const request = createResourceRequest$
|
|
3431
|
+
function buildNetworkSnapshot$u(luvio, config, options) {
|
|
3432
|
+
const resourceParams = createResourceParams$u(config);
|
|
3433
|
+
const request = createResourceRequest$u(resourceParams);
|
|
3350
3434
|
return luvio.dispatchResourceRequest(request, options)
|
|
3351
3435
|
.then((response) => {
|
|
3352
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3436
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$d(luvio, config, resourceParams, response), () => {
|
|
3353
3437
|
const cache = new StoreKeyMap();
|
|
3354
|
-
getResponseCacheKeys$
|
|
3438
|
+
getResponseCacheKeys$u(cache, luvio, resourceParams, response.body);
|
|
3355
3439
|
return cache;
|
|
3356
3440
|
});
|
|
3357
3441
|
}, (response) => {
|
|
3358
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3442
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$d(luvio, config, resourceParams, response));
|
|
3359
3443
|
});
|
|
3360
3444
|
}
|
|
3361
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3362
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3445
|
+
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
3446
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$u, undefined, false);
|
|
3363
3447
|
}
|
|
3364
|
-
function buildCachedSnapshotCachePolicy$
|
|
3448
|
+
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
3365
3449
|
const { luvio, config } = context;
|
|
3366
3450
|
const selector = {
|
|
3367
|
-
recordId: keyBuilder$
|
|
3368
|
-
node: adapterFragment$
|
|
3451
|
+
recordId: keyBuilder$G(luvio, config),
|
|
3452
|
+
node: adapterFragment$d(luvio, config),
|
|
3369
3453
|
variables: {},
|
|
3370
3454
|
};
|
|
3371
3455
|
const cacheSnapshot = storeLookup(selector, {
|
|
3372
3456
|
config,
|
|
3373
|
-
resolve: () => buildNetworkSnapshot$
|
|
3457
|
+
resolve: () => buildNetworkSnapshot$u(luvio, config, snapshotRefreshOptions)
|
|
3374
3458
|
});
|
|
3375
3459
|
return cacheSnapshot;
|
|
3376
3460
|
}
|
|
3377
3461
|
const getDashboardByNameAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboardByName(untrustedConfig, requestContext) {
|
|
3378
|
-
const config = validateAdapterConfig$
|
|
3462
|
+
const config = validateAdapterConfig$u(untrustedConfig, getDashboardByName_ConfigPropertyNames);
|
|
3379
3463
|
// Invalid or incomplete config
|
|
3380
3464
|
if (config === null) {
|
|
3381
3465
|
return null;
|
|
3382
3466
|
}
|
|
3383
3467
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3384
|
-
buildCachedSnapshotCachePolicy$
|
|
3468
|
+
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
|
|
3385
3469
|
};
|
|
3386
3470
|
|
|
3387
|
-
function select$
|
|
3388
|
-
return select$
|
|
3471
|
+
function select$J(luvio, params) {
|
|
3472
|
+
return select$O();
|
|
3389
3473
|
}
|
|
3390
|
-
function getResponseCacheKeys$
|
|
3391
|
-
getTypeCacheKeys$
|
|
3474
|
+
function getResponseCacheKeys$t(storeKeyMap, luvio, resourceParams, response) {
|
|
3475
|
+
getTypeCacheKeys$l(storeKeyMap, luvio, response);
|
|
3392
3476
|
}
|
|
3393
|
-
function ingestSuccess$
|
|
3477
|
+
function ingestSuccess$p(luvio, resourceParams, response) {
|
|
3394
3478
|
const { body } = response;
|
|
3395
3479
|
const key = keyBuilderFromType$b(luvio, body);
|
|
3396
|
-
luvio.storeIngest(key, ingest$
|
|
3480
|
+
luvio.storeIngest(key, ingest$l, body);
|
|
3397
3481
|
const snapshot = luvio.storeLookup({
|
|
3398
3482
|
recordId: key,
|
|
3399
|
-
node: select$
|
|
3483
|
+
node: select$J(),
|
|
3400
3484
|
variables: {},
|
|
3401
3485
|
});
|
|
3402
3486
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3407,11 +3491,11 @@ function ingestSuccess$n(luvio, resourceParams, response) {
|
|
|
3407
3491
|
deepFreeze(snapshot.data);
|
|
3408
3492
|
return snapshot;
|
|
3409
3493
|
}
|
|
3410
|
-
function createResourceRequest$
|
|
3494
|
+
function createResourceRequest$t(config) {
|
|
3411
3495
|
const headers = {};
|
|
3412
3496
|
return {
|
|
3413
3497
|
baseUri: '/services/data/v62.0',
|
|
3414
|
-
basePath: '/
|
|
3498
|
+
basePath: '/tableau/dashboards/' + config.urlParams.dashboardIdOrApiName + '',
|
|
3415
3499
|
method: 'patch',
|
|
3416
3500
|
body: config.body,
|
|
3417
3501
|
urlParams: config.urlParams,
|
|
@@ -3421,7 +3505,7 @@ function createResourceRequest$r(config) {
|
|
|
3421
3505
|
};
|
|
3422
3506
|
}
|
|
3423
3507
|
|
|
3424
|
-
const adapterName$
|
|
3508
|
+
const adapterName$t = 'updateDashboard';
|
|
3425
3509
|
const updateDashboard_ConfigPropertyMetadata = [
|
|
3426
3510
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3427
3511
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -3433,11 +3517,11 @@ const updateDashboard_ConfigPropertyMetadata = [
|
|
|
3433
3517
|
generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3434
3518
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3435
3519
|
];
|
|
3436
|
-
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3437
|
-
const createResourceParams$
|
|
3438
|
-
function typeCheckConfig$
|
|
3520
|
+
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, updateDashboard_ConfigPropertyMetadata);
|
|
3521
|
+
const createResourceParams$t = /*#__PURE__*/ createResourceParams$D(updateDashboard_ConfigPropertyMetadata);
|
|
3522
|
+
function typeCheckConfig$t(untrustedConfig) {
|
|
3439
3523
|
const config = {};
|
|
3440
|
-
typeCheckConfig$
|
|
3524
|
+
typeCheckConfig$D(untrustedConfig, config, updateDashboard_ConfigPropertyMetadata);
|
|
3441
3525
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
3442
3526
|
if (ArrayIsArray$1(untrustedConfig_layouts)) {
|
|
3443
3527
|
const untrustedConfig_layouts_array = [];
|
|
@@ -3479,30 +3563,30 @@ function typeCheckConfig$r(untrustedConfig) {
|
|
|
3479
3563
|
}
|
|
3480
3564
|
return config;
|
|
3481
3565
|
}
|
|
3482
|
-
function validateAdapterConfig$
|
|
3566
|
+
function validateAdapterConfig$t(untrustedConfig, configPropertyNames) {
|
|
3483
3567
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3484
3568
|
return null;
|
|
3485
3569
|
}
|
|
3486
3570
|
if (process.env.NODE_ENV !== 'production') {
|
|
3487
3571
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3488
3572
|
}
|
|
3489
|
-
const config = typeCheckConfig$
|
|
3573
|
+
const config = typeCheckConfig$t(untrustedConfig);
|
|
3490
3574
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3491
3575
|
return null;
|
|
3492
3576
|
}
|
|
3493
3577
|
return config;
|
|
3494
3578
|
}
|
|
3495
|
-
function buildNetworkSnapshot$
|
|
3496
|
-
const resourceParams = createResourceParams$
|
|
3497
|
-
const request = createResourceRequest$
|
|
3579
|
+
function buildNetworkSnapshot$t(luvio, config, options) {
|
|
3580
|
+
const resourceParams = createResourceParams$t(config);
|
|
3581
|
+
const request = createResourceRequest$t(resourceParams);
|
|
3498
3582
|
return luvio.dispatchResourceRequest(request, options)
|
|
3499
3583
|
.then((response) => {
|
|
3500
3584
|
return luvio.handleSuccessResponse(() => {
|
|
3501
|
-
const snapshot = ingestSuccess$
|
|
3585
|
+
const snapshot = ingestSuccess$p(luvio, resourceParams, response);
|
|
3502
3586
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3503
3587
|
}, () => {
|
|
3504
3588
|
const cache = new StoreKeyMap();
|
|
3505
|
-
getResponseCacheKeys$
|
|
3589
|
+
getResponseCacheKeys$t(cache, luvio, resourceParams, response.body);
|
|
3506
3590
|
return cache;
|
|
3507
3591
|
});
|
|
3508
3592
|
}, (response) => {
|
|
@@ -3512,17 +3596,17 @@ function buildNetworkSnapshot$r(luvio, config, options) {
|
|
|
3512
3596
|
}
|
|
3513
3597
|
const updateDashboardAdapterFactory = (luvio) => {
|
|
3514
3598
|
return function updateDashboard(untrustedConfig) {
|
|
3515
|
-
const config = validateAdapterConfig$
|
|
3599
|
+
const config = validateAdapterConfig$t(untrustedConfig, updateDashboard_ConfigPropertyNames);
|
|
3516
3600
|
// Invalid or incomplete config
|
|
3517
3601
|
if (config === null) {
|
|
3518
3602
|
throw new Error('Invalid config for "updateDashboard"');
|
|
3519
3603
|
}
|
|
3520
|
-
return buildNetworkSnapshot$
|
|
3604
|
+
return buildNetworkSnapshot$t(luvio, config);
|
|
3521
3605
|
};
|
|
3522
3606
|
};
|
|
3523
3607
|
|
|
3524
|
-
function validate$
|
|
3525
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
3608
|
+
function validate$p(obj, path = 'AnalyticsUserRepresentation') {
|
|
3609
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$v(obj, path);
|
|
3526
3610
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
3527
3611
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
3528
3612
|
}
|
|
@@ -3562,16 +3646,16 @@ function validate$m(obj, path = 'AnalyticsUserRepresentation') {
|
|
|
3562
3646
|
return v_error === undefined ? null : v_error;
|
|
3563
3647
|
}
|
|
3564
3648
|
|
|
3565
|
-
const TTL$
|
|
3566
|
-
const VERSION$
|
|
3567
|
-
function validate$
|
|
3649
|
+
const TTL$b = 500;
|
|
3650
|
+
const VERSION$j = "9a4f1166e92aab266ef84b910ef0c322";
|
|
3651
|
+
function validate$o(obj, path = 'FollowerAssetRepresentation') {
|
|
3568
3652
|
const v_error = (() => {
|
|
3569
3653
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3570
3654
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3571
3655
|
}
|
|
3572
3656
|
const obj_createdBy = obj.createdBy;
|
|
3573
3657
|
const path_createdBy = path + '.createdBy';
|
|
3574
|
-
const referencepath_createdByValidationError = validate$
|
|
3658
|
+
const referencepath_createdByValidationError = validate$p(obj_createdBy, path_createdBy);
|
|
3575
3659
|
if (referencepath_createdByValidationError !== null) {
|
|
3576
3660
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
3577
3661
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3605,68 +3689,68 @@ function validate$l(obj, path = 'FollowerAssetRepresentation') {
|
|
|
3605
3689
|
})();
|
|
3606
3690
|
return v_error === undefined ? null : v_error;
|
|
3607
3691
|
}
|
|
3608
|
-
const RepresentationType$
|
|
3609
|
-
function keyBuilder$
|
|
3610
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3692
|
+
const RepresentationType$k = 'FollowerAssetRepresentation';
|
|
3693
|
+
function keyBuilder$F(luvio, config) {
|
|
3694
|
+
return keyPrefix + '::' + RepresentationType$k + ':' + config.followerId;
|
|
3611
3695
|
}
|
|
3612
3696
|
function keyBuilderFromType$a(luvio, object) {
|
|
3613
3697
|
const keyParams = {
|
|
3614
3698
|
followerId: object.followerId
|
|
3615
3699
|
};
|
|
3616
|
-
return keyBuilder$
|
|
3700
|
+
return keyBuilder$F(luvio, keyParams);
|
|
3617
3701
|
}
|
|
3618
|
-
function normalize$
|
|
3702
|
+
function normalize$j(input, existing, path, luvio, store, timestamp) {
|
|
3619
3703
|
return input;
|
|
3620
3704
|
}
|
|
3621
|
-
const select$
|
|
3705
|
+
const select$I = function FollowerAssetRepresentationSelect() {
|
|
3622
3706
|
return {
|
|
3623
3707
|
kind: 'Fragment',
|
|
3624
|
-
version: VERSION$
|
|
3708
|
+
version: VERSION$j,
|
|
3625
3709
|
private: [],
|
|
3626
3710
|
opaque: true
|
|
3627
3711
|
};
|
|
3628
3712
|
};
|
|
3629
|
-
function equals$
|
|
3713
|
+
function equals$j(existing, incoming) {
|
|
3630
3714
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3631
3715
|
return false;
|
|
3632
3716
|
}
|
|
3633
3717
|
return true;
|
|
3634
3718
|
}
|
|
3635
|
-
const ingest$
|
|
3719
|
+
const ingest$j = function FollowerAssetRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3636
3720
|
if (process.env.NODE_ENV !== 'production') {
|
|
3637
|
-
const validateError = validate$
|
|
3721
|
+
const validateError = validate$o(input);
|
|
3638
3722
|
if (validateError !== null) {
|
|
3639
3723
|
throw validateError;
|
|
3640
3724
|
}
|
|
3641
3725
|
}
|
|
3642
3726
|
const key = keyBuilderFromType$a(luvio, input);
|
|
3643
|
-
const ttlToUse = TTL$
|
|
3644
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3727
|
+
const ttlToUse = TTL$b;
|
|
3728
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$j, "UnifiedAnalytics", VERSION$j, RepresentationType$k, equals$j);
|
|
3645
3729
|
return createLink(key);
|
|
3646
3730
|
};
|
|
3647
|
-
function getTypeCacheKeys$
|
|
3731
|
+
function getTypeCacheKeys$j(rootKeySet, luvio, input, fullPathFactory) {
|
|
3648
3732
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3649
3733
|
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
3650
3734
|
rootKeySet.set(rootKey, {
|
|
3651
3735
|
namespace: keyPrefix,
|
|
3652
|
-
representationName: RepresentationType$
|
|
3736
|
+
representationName: RepresentationType$k,
|
|
3653
3737
|
mergeable: false
|
|
3654
3738
|
});
|
|
3655
3739
|
}
|
|
3656
3740
|
|
|
3657
|
-
function select$
|
|
3658
|
-
return select$
|
|
3741
|
+
function select$H(luvio, params) {
|
|
3742
|
+
return select$I();
|
|
3659
3743
|
}
|
|
3660
|
-
function getResponseCacheKeys$
|
|
3661
|
-
getTypeCacheKeys$
|
|
3744
|
+
function getResponseCacheKeys$s(storeKeyMap, luvio, resourceParams, response) {
|
|
3745
|
+
getTypeCacheKeys$j(storeKeyMap, luvio, response);
|
|
3662
3746
|
}
|
|
3663
|
-
function ingestSuccess$
|
|
3747
|
+
function ingestSuccess$o(luvio, resourceParams, response) {
|
|
3664
3748
|
const { body } = response;
|
|
3665
3749
|
const key = keyBuilderFromType$a(luvio, body);
|
|
3666
|
-
luvio.storeIngest(key, ingest$
|
|
3750
|
+
luvio.storeIngest(key, ingest$j, body);
|
|
3667
3751
|
const snapshot = luvio.storeLookup({
|
|
3668
3752
|
recordId: key,
|
|
3669
|
-
node: select$
|
|
3753
|
+
node: select$H(),
|
|
3670
3754
|
variables: {},
|
|
3671
3755
|
});
|
|
3672
3756
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3677,11 +3761,11 @@ function ingestSuccess$m(luvio, resourceParams, response) {
|
|
|
3677
3761
|
deepFreeze(snapshot.data);
|
|
3678
3762
|
return snapshot;
|
|
3679
3763
|
}
|
|
3680
|
-
function createResourceRequest$
|
|
3764
|
+
function createResourceRequest$s(config) {
|
|
3681
3765
|
const headers = {};
|
|
3682
3766
|
return {
|
|
3683
3767
|
baseUri: '/services/data/v62.0',
|
|
3684
|
-
basePath: '/
|
|
3768
|
+
basePath: '/tableau/follow/followers/' + config.urlParams.followerId + '/follows',
|
|
3685
3769
|
method: 'post',
|
|
3686
3770
|
body: config.body,
|
|
3687
3771
|
urlParams: config.urlParams,
|
|
@@ -3691,44 +3775,44 @@ function createResourceRequest$q(config) {
|
|
|
3691
3775
|
};
|
|
3692
3776
|
}
|
|
3693
3777
|
|
|
3694
|
-
const adapterName$
|
|
3778
|
+
const adapterName$s = 'follow';
|
|
3695
3779
|
const follow_ConfigPropertyMetadata = [
|
|
3696
3780
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3697
3781
|
generateParamConfigMetadata('assetId', true, 2 /* Body */, 0 /* String */),
|
|
3698
3782
|
generateParamConfigMetadata('assetType', true, 2 /* Body */, 0 /* String */),
|
|
3699
3783
|
generateParamConfigMetadata('followerType', true, 2 /* Body */, 0 /* String */),
|
|
3700
3784
|
];
|
|
3701
|
-
const follow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3702
|
-
const createResourceParams$
|
|
3703
|
-
function typeCheckConfig$
|
|
3785
|
+
const follow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$s, follow_ConfigPropertyMetadata);
|
|
3786
|
+
const createResourceParams$s = /*#__PURE__*/ createResourceParams$D(follow_ConfigPropertyMetadata);
|
|
3787
|
+
function typeCheckConfig$s(untrustedConfig) {
|
|
3704
3788
|
const config = {};
|
|
3705
|
-
typeCheckConfig$
|
|
3789
|
+
typeCheckConfig$D(untrustedConfig, config, follow_ConfigPropertyMetadata);
|
|
3706
3790
|
return config;
|
|
3707
3791
|
}
|
|
3708
|
-
function validateAdapterConfig$
|
|
3792
|
+
function validateAdapterConfig$s(untrustedConfig, configPropertyNames) {
|
|
3709
3793
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3710
3794
|
return null;
|
|
3711
3795
|
}
|
|
3712
3796
|
if (process.env.NODE_ENV !== 'production') {
|
|
3713
3797
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3714
3798
|
}
|
|
3715
|
-
const config = typeCheckConfig$
|
|
3799
|
+
const config = typeCheckConfig$s(untrustedConfig);
|
|
3716
3800
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3717
3801
|
return null;
|
|
3718
3802
|
}
|
|
3719
3803
|
return config;
|
|
3720
3804
|
}
|
|
3721
|
-
function buildNetworkSnapshot$
|
|
3722
|
-
const resourceParams = createResourceParams$
|
|
3723
|
-
const request = createResourceRequest$
|
|
3805
|
+
function buildNetworkSnapshot$s(luvio, config, options) {
|
|
3806
|
+
const resourceParams = createResourceParams$s(config);
|
|
3807
|
+
const request = createResourceRequest$s(resourceParams);
|
|
3724
3808
|
return luvio.dispatchResourceRequest(request, options)
|
|
3725
3809
|
.then((response) => {
|
|
3726
3810
|
return luvio.handleSuccessResponse(() => {
|
|
3727
|
-
const snapshot = ingestSuccess$
|
|
3811
|
+
const snapshot = ingestSuccess$o(luvio, resourceParams, response);
|
|
3728
3812
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3729
3813
|
}, () => {
|
|
3730
3814
|
const cache = new StoreKeyMap();
|
|
3731
|
-
getResponseCacheKeys$
|
|
3815
|
+
getResponseCacheKeys$s(cache, luvio, resourceParams, response.body);
|
|
3732
3816
|
return cache;
|
|
3733
3817
|
});
|
|
3734
3818
|
}, (response) => {
|
|
@@ -3738,16 +3822,16 @@ function buildNetworkSnapshot$q(luvio, config, options) {
|
|
|
3738
3822
|
}
|
|
3739
3823
|
const followAdapterFactory = (luvio) => {
|
|
3740
3824
|
return function follow(untrustedConfig) {
|
|
3741
|
-
const config = validateAdapterConfig$
|
|
3825
|
+
const config = validateAdapterConfig$s(untrustedConfig, follow_ConfigPropertyNames);
|
|
3742
3826
|
// Invalid or incomplete config
|
|
3743
3827
|
if (config === null) {
|
|
3744
3828
|
throw new Error('Invalid config for "follow"');
|
|
3745
3829
|
}
|
|
3746
|
-
return buildNetworkSnapshot$
|
|
3830
|
+
return buildNetworkSnapshot$s(luvio, config);
|
|
3747
3831
|
};
|
|
3748
3832
|
};
|
|
3749
3833
|
|
|
3750
|
-
function validate$
|
|
3834
|
+
function validate$n(obj, path = 'FollowedAssetRepresentation') {
|
|
3751
3835
|
const v_error = (() => {
|
|
3752
3836
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3753
3837
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3806,33 +3890,33 @@ function validate$k(obj, path = 'FollowedAssetRepresentation') {
|
|
|
3806
3890
|
})();
|
|
3807
3891
|
return v_error === undefined ? null : v_error;
|
|
3808
3892
|
}
|
|
3809
|
-
const RepresentationType$
|
|
3810
|
-
function keyBuilder$
|
|
3811
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3893
|
+
const RepresentationType$j = 'FollowedAssetRepresentation';
|
|
3894
|
+
function keyBuilder$E(luvio, config) {
|
|
3895
|
+
return keyPrefix + '::' + RepresentationType$j + ':' + config.followedAssetId;
|
|
3812
3896
|
}
|
|
3813
3897
|
|
|
3814
|
-
function keyBuilder$
|
|
3815
|
-
return keyBuilder$
|
|
3898
|
+
function keyBuilder$D(luvio, params) {
|
|
3899
|
+
return keyBuilder$E(luvio, {
|
|
3816
3900
|
followedAssetId: params.urlParams.followedAssetId
|
|
3817
3901
|
});
|
|
3818
3902
|
}
|
|
3819
|
-
function getResponseCacheKeys$
|
|
3820
|
-
const key = keyBuilder$
|
|
3903
|
+
function getResponseCacheKeys$r(cacheKeyMap, luvio, resourceParams) {
|
|
3904
|
+
const key = keyBuilder$D(luvio, resourceParams);
|
|
3821
3905
|
cacheKeyMap.set(key, {
|
|
3822
3906
|
namespace: keyPrefix,
|
|
3823
|
-
representationName: RepresentationType$
|
|
3907
|
+
representationName: RepresentationType$j,
|
|
3824
3908
|
mergeable: false
|
|
3825
3909
|
});
|
|
3826
3910
|
}
|
|
3827
3911
|
function evictSuccess$3(luvio, resourceParams) {
|
|
3828
|
-
const key = keyBuilder$
|
|
3912
|
+
const key = keyBuilder$D(luvio, resourceParams);
|
|
3829
3913
|
luvio.storeEvict(key);
|
|
3830
3914
|
}
|
|
3831
|
-
function createResourceRequest$
|
|
3915
|
+
function createResourceRequest$r(config) {
|
|
3832
3916
|
const headers = {};
|
|
3833
3917
|
return {
|
|
3834
3918
|
baseUri: '/services/data/v62.0',
|
|
3835
|
-
basePath: '/
|
|
3919
|
+
basePath: '/tableau/follow/followers/' + config.urlParams.followerId + '/follows/' + config.urlParams.followedAssetId + '',
|
|
3836
3920
|
method: 'delete',
|
|
3837
3921
|
body: null,
|
|
3838
3922
|
urlParams: config.urlParams,
|
|
@@ -3842,34 +3926,34 @@ function createResourceRequest$p(config) {
|
|
|
3842
3926
|
};
|
|
3843
3927
|
}
|
|
3844
3928
|
|
|
3845
|
-
const adapterName$
|
|
3929
|
+
const adapterName$r = 'unfollow';
|
|
3846
3930
|
const unfollow_ConfigPropertyMetadata = [
|
|
3847
3931
|
generateParamConfigMetadata('followedAssetId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3848
3932
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3849
3933
|
];
|
|
3850
|
-
const unfollow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3851
|
-
const createResourceParams$
|
|
3852
|
-
function typeCheckConfig$
|
|
3934
|
+
const unfollow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$r, unfollow_ConfigPropertyMetadata);
|
|
3935
|
+
const createResourceParams$r = /*#__PURE__*/ createResourceParams$D(unfollow_ConfigPropertyMetadata);
|
|
3936
|
+
function typeCheckConfig$r(untrustedConfig) {
|
|
3853
3937
|
const config = {};
|
|
3854
|
-
typeCheckConfig$
|
|
3938
|
+
typeCheckConfig$D(untrustedConfig, config, unfollow_ConfigPropertyMetadata);
|
|
3855
3939
|
return config;
|
|
3856
3940
|
}
|
|
3857
|
-
function validateAdapterConfig$
|
|
3941
|
+
function validateAdapterConfig$r(untrustedConfig, configPropertyNames) {
|
|
3858
3942
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3859
3943
|
return null;
|
|
3860
3944
|
}
|
|
3861
3945
|
if (process.env.NODE_ENV !== 'production') {
|
|
3862
3946
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3863
3947
|
}
|
|
3864
|
-
const config = typeCheckConfig$
|
|
3948
|
+
const config = typeCheckConfig$r(untrustedConfig);
|
|
3865
3949
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3866
3950
|
return null;
|
|
3867
3951
|
}
|
|
3868
3952
|
return config;
|
|
3869
3953
|
}
|
|
3870
|
-
function buildNetworkSnapshot$
|
|
3871
|
-
const resourceParams = createResourceParams$
|
|
3872
|
-
const request = createResourceRequest$
|
|
3954
|
+
function buildNetworkSnapshot$r(luvio, config, options) {
|
|
3955
|
+
const resourceParams = createResourceParams$r(config);
|
|
3956
|
+
const request = createResourceRequest$r(resourceParams);
|
|
3873
3957
|
return luvio.dispatchResourceRequest(request, options)
|
|
3874
3958
|
.then(() => {
|
|
3875
3959
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -3877,7 +3961,7 @@ function buildNetworkSnapshot$p(luvio, config, options) {
|
|
|
3877
3961
|
return luvio.storeBroadcast();
|
|
3878
3962
|
}, () => {
|
|
3879
3963
|
const cache = new StoreKeyMap();
|
|
3880
|
-
getResponseCacheKeys$
|
|
3964
|
+
getResponseCacheKeys$r(cache, luvio, resourceParams);
|
|
3881
3965
|
return cache;
|
|
3882
3966
|
});
|
|
3883
3967
|
}, (response) => {
|
|
@@ -3887,18 +3971,18 @@ function buildNetworkSnapshot$p(luvio, config, options) {
|
|
|
3887
3971
|
}
|
|
3888
3972
|
const unfollowAdapterFactory = (luvio) => {
|
|
3889
3973
|
return function UnifiedAnalyticsunfollow(untrustedConfig) {
|
|
3890
|
-
const config = validateAdapterConfig$
|
|
3974
|
+
const config = validateAdapterConfig$r(untrustedConfig, unfollow_ConfigPropertyNames);
|
|
3891
3975
|
// Invalid or incomplete config
|
|
3892
3976
|
if (config === null) {
|
|
3893
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
3977
|
+
throw new Error(`Invalid config for "${adapterName$r}"`);
|
|
3894
3978
|
}
|
|
3895
|
-
return buildNetworkSnapshot$
|
|
3979
|
+
return buildNetworkSnapshot$r(luvio, config);
|
|
3896
3980
|
};
|
|
3897
3981
|
};
|
|
3898
3982
|
|
|
3899
|
-
const TTL$
|
|
3900
|
-
const VERSION$
|
|
3901
|
-
function validate$
|
|
3983
|
+
const TTL$a = 500;
|
|
3984
|
+
const VERSION$i = "1fd0770995d332e49822d6bbabe35e87";
|
|
3985
|
+
function validate$m(obj, path = 'FollowerCollectionRepresentation') {
|
|
3902
3986
|
const v_error = (() => {
|
|
3903
3987
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3904
3988
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3911,7 +3995,7 @@ function validate$j(obj, path = 'FollowerCollectionRepresentation') {
|
|
|
3911
3995
|
for (let i = 0; i < obj_followers.length; i++) {
|
|
3912
3996
|
const obj_followers_item = obj_followers[i];
|
|
3913
3997
|
const path_followers_item = path_followers + '[' + i + ']';
|
|
3914
|
-
const referencepath_followers_itemValidationError = validate$
|
|
3998
|
+
const referencepath_followers_itemValidationError = validate$p(obj_followers_item, path_followers_item);
|
|
3915
3999
|
if (referencepath_followers_itemValidationError !== null) {
|
|
3916
4000
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_followers_item + '")\n';
|
|
3917
4001
|
message += referencepath_followers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3921,11 +4005,414 @@ function validate$j(obj, path = 'FollowerCollectionRepresentation') {
|
|
|
3921
4005
|
})();
|
|
3922
4006
|
return v_error === undefined ? null : v_error;
|
|
3923
4007
|
}
|
|
3924
|
-
const RepresentationType$
|
|
4008
|
+
const RepresentationType$i = 'FollowerCollectionRepresentation';
|
|
4009
|
+
function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
4010
|
+
return input;
|
|
4011
|
+
}
|
|
4012
|
+
const select$G = function FollowerCollectionRepresentationSelect() {
|
|
4013
|
+
return {
|
|
4014
|
+
kind: 'Fragment',
|
|
4015
|
+
version: VERSION$i,
|
|
4016
|
+
private: [],
|
|
4017
|
+
opaque: true
|
|
4018
|
+
};
|
|
4019
|
+
};
|
|
4020
|
+
function equals$i(existing, incoming) {
|
|
4021
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4022
|
+
return false;
|
|
4023
|
+
}
|
|
4024
|
+
return true;
|
|
4025
|
+
}
|
|
4026
|
+
const ingest$i = function FollowerCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4027
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4028
|
+
const validateError = validate$m(input);
|
|
4029
|
+
if (validateError !== null) {
|
|
4030
|
+
throw validateError;
|
|
4031
|
+
}
|
|
4032
|
+
}
|
|
4033
|
+
const key = path.fullPath;
|
|
4034
|
+
const ttlToUse = TTL$a;
|
|
4035
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "UnifiedAnalytics", VERSION$i, RepresentationType$i, equals$i);
|
|
4036
|
+
return createLink(key);
|
|
4037
|
+
};
|
|
4038
|
+
function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
4039
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4040
|
+
const rootKey = fullPathFactory();
|
|
4041
|
+
rootKeySet.set(rootKey, {
|
|
4042
|
+
namespace: keyPrefix,
|
|
4043
|
+
representationName: RepresentationType$i,
|
|
4044
|
+
mergeable: false
|
|
4045
|
+
});
|
|
4046
|
+
}
|
|
4047
|
+
|
|
4048
|
+
function select$F(luvio, params) {
|
|
4049
|
+
return select$G();
|
|
4050
|
+
}
|
|
4051
|
+
function keyBuilder$C(luvio, params) {
|
|
4052
|
+
return keyPrefix + '::FollowerCollectionRepresentation:(' + 'followerId:' + params.queryParams.followerId + ',' + 'followerType:' + params.queryParams.followerType + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'followedAssetId:' + params.urlParams.followedAssetId + ')';
|
|
4053
|
+
}
|
|
4054
|
+
function getResponseCacheKeys$q(storeKeyMap, luvio, resourceParams, response) {
|
|
4055
|
+
getTypeCacheKeys$i(storeKeyMap, luvio, response, () => keyBuilder$C(luvio, resourceParams));
|
|
4056
|
+
}
|
|
4057
|
+
function ingestSuccess$n(luvio, resourceParams, response, snapshotRefresh) {
|
|
4058
|
+
const { body } = response;
|
|
4059
|
+
const key = keyBuilder$C(luvio, resourceParams);
|
|
4060
|
+
luvio.storeIngest(key, ingest$i, body);
|
|
4061
|
+
const snapshot = luvio.storeLookup({
|
|
4062
|
+
recordId: key,
|
|
4063
|
+
node: select$F(),
|
|
4064
|
+
variables: {},
|
|
4065
|
+
}, snapshotRefresh);
|
|
4066
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4067
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4068
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4069
|
+
}
|
|
4070
|
+
}
|
|
4071
|
+
deepFreeze(snapshot.data);
|
|
4072
|
+
return snapshot;
|
|
4073
|
+
}
|
|
4074
|
+
function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
4075
|
+
const key = keyBuilder$C(luvio, params);
|
|
4076
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4077
|
+
const storeMetadataParams = {
|
|
4078
|
+
ttl: TTL$a,
|
|
4079
|
+
namespace: keyPrefix,
|
|
4080
|
+
version: VERSION$i,
|
|
4081
|
+
representationName: RepresentationType$i
|
|
4082
|
+
};
|
|
4083
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4084
|
+
return errorSnapshot;
|
|
4085
|
+
}
|
|
4086
|
+
function createResourceRequest$q(config) {
|
|
4087
|
+
const headers = {};
|
|
4088
|
+
return {
|
|
4089
|
+
baseUri: '/services/data/v62.0',
|
|
4090
|
+
basePath: '/tableau/follow/assets/' + config.urlParams.followedAssetId + '/followers',
|
|
4091
|
+
method: 'get',
|
|
4092
|
+
body: null,
|
|
4093
|
+
urlParams: config.urlParams,
|
|
4094
|
+
queryParams: config.queryParams,
|
|
4095
|
+
headers,
|
|
4096
|
+
priority: 'normal',
|
|
4097
|
+
};
|
|
4098
|
+
}
|
|
4099
|
+
|
|
4100
|
+
const adapterName$q = 'getFollowers';
|
|
4101
|
+
const getFollowers_ConfigPropertyMetadata = [
|
|
4102
|
+
generateParamConfigMetadata('followedAssetId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4103
|
+
generateParamConfigMetadata('followerId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4104
|
+
generateParamConfigMetadata('followerType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4105
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4106
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4107
|
+
];
|
|
4108
|
+
const getFollowers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$q, getFollowers_ConfigPropertyMetadata);
|
|
4109
|
+
const createResourceParams$q = /*#__PURE__*/ createResourceParams$D(getFollowers_ConfigPropertyMetadata);
|
|
4110
|
+
function keyBuilder$B(luvio, config) {
|
|
4111
|
+
const resourceParams = createResourceParams$q(config);
|
|
4112
|
+
return keyBuilder$C(luvio, resourceParams);
|
|
4113
|
+
}
|
|
4114
|
+
function typeCheckConfig$q(untrustedConfig) {
|
|
4115
|
+
const config = {};
|
|
4116
|
+
typeCheckConfig$D(untrustedConfig, config, getFollowers_ConfigPropertyMetadata);
|
|
4117
|
+
return config;
|
|
4118
|
+
}
|
|
4119
|
+
function validateAdapterConfig$q(untrustedConfig, configPropertyNames) {
|
|
4120
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4121
|
+
return null;
|
|
4122
|
+
}
|
|
4123
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4124
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4125
|
+
}
|
|
4126
|
+
const config = typeCheckConfig$q(untrustedConfig);
|
|
4127
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4128
|
+
return null;
|
|
4129
|
+
}
|
|
4130
|
+
return config;
|
|
4131
|
+
}
|
|
4132
|
+
function adapterFragment$c(luvio, config) {
|
|
4133
|
+
createResourceParams$q(config);
|
|
4134
|
+
return select$F();
|
|
4135
|
+
}
|
|
4136
|
+
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
4137
|
+
const snapshot = ingestSuccess$n(luvio, resourceParams, response, {
|
|
4138
|
+
config,
|
|
4139
|
+
resolve: () => buildNetworkSnapshot$q(luvio, config, snapshotRefreshOptions)
|
|
4140
|
+
});
|
|
4141
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4142
|
+
}
|
|
4143
|
+
function onFetchResponseError$c(luvio, config, resourceParams, response) {
|
|
4144
|
+
const snapshot = ingestError$c(luvio, resourceParams, response, {
|
|
4145
|
+
config,
|
|
4146
|
+
resolve: () => buildNetworkSnapshot$q(luvio, config, snapshotRefreshOptions)
|
|
4147
|
+
});
|
|
4148
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4149
|
+
}
|
|
4150
|
+
function buildNetworkSnapshot$q(luvio, config, options) {
|
|
4151
|
+
const resourceParams = createResourceParams$q(config);
|
|
4152
|
+
const request = createResourceRequest$q(resourceParams);
|
|
4153
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4154
|
+
.then((response) => {
|
|
4155
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => {
|
|
4156
|
+
const cache = new StoreKeyMap();
|
|
4157
|
+
getResponseCacheKeys$q(cache, luvio, resourceParams, response.body);
|
|
4158
|
+
return cache;
|
|
4159
|
+
});
|
|
4160
|
+
}, (response) => {
|
|
4161
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$c(luvio, config, resourceParams, response));
|
|
4162
|
+
});
|
|
4163
|
+
}
|
|
4164
|
+
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
4165
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$q, undefined, false);
|
|
4166
|
+
}
|
|
4167
|
+
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
4168
|
+
const { luvio, config } = context;
|
|
4169
|
+
const selector = {
|
|
4170
|
+
recordId: keyBuilder$B(luvio, config),
|
|
4171
|
+
node: adapterFragment$c(luvio, config),
|
|
4172
|
+
variables: {},
|
|
4173
|
+
};
|
|
4174
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4175
|
+
config,
|
|
4176
|
+
resolve: () => buildNetworkSnapshot$q(luvio, config, snapshotRefreshOptions)
|
|
4177
|
+
});
|
|
4178
|
+
return cacheSnapshot;
|
|
4179
|
+
}
|
|
4180
|
+
const getFollowersAdapterFactory = (luvio) => function UnifiedAnalytics__getFollowers(untrustedConfig, requestContext) {
|
|
4181
|
+
const config = validateAdapterConfig$q(untrustedConfig, getFollowers_ConfigPropertyNames);
|
|
4182
|
+
// Invalid or incomplete config
|
|
4183
|
+
if (config === null) {
|
|
4184
|
+
return null;
|
|
4185
|
+
}
|
|
4186
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4187
|
+
buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
|
|
4188
|
+
};
|
|
4189
|
+
|
|
4190
|
+
const TTL$9 = 500;
|
|
4191
|
+
const VERSION$h = "1f44696f5314fa2f963688e14067a00c";
|
|
4192
|
+
function validate$l(obj, path = 'FollowedAssetCollectionRepresentation') {
|
|
4193
|
+
const v_error = (() => {
|
|
4194
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4195
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4196
|
+
}
|
|
4197
|
+
const obj_followedAssets = obj.followedAssets;
|
|
4198
|
+
const path_followedAssets = path + '.followedAssets';
|
|
4199
|
+
if (!ArrayIsArray(obj_followedAssets)) {
|
|
4200
|
+
return new TypeError('Expected "array" but received "' + typeof obj_followedAssets + '" (at "' + path_followedAssets + '")');
|
|
4201
|
+
}
|
|
4202
|
+
for (let i = 0; i < obj_followedAssets.length; i++) {
|
|
4203
|
+
const obj_followedAssets_item = obj_followedAssets[i];
|
|
4204
|
+
const path_followedAssets_item = path_followedAssets + '[' + i + ']';
|
|
4205
|
+
const referencepath_followedAssets_itemValidationError = validate$n(obj_followedAssets_item, path_followedAssets_item);
|
|
4206
|
+
if (referencepath_followedAssets_itemValidationError !== null) {
|
|
4207
|
+
let message = 'Object doesn\'t match FollowedAssetRepresentation (at "' + path_followedAssets_item + '")\n';
|
|
4208
|
+
message += referencepath_followedAssets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4209
|
+
return new TypeError(message);
|
|
4210
|
+
}
|
|
4211
|
+
}
|
|
4212
|
+
})();
|
|
4213
|
+
return v_error === undefined ? null : v_error;
|
|
4214
|
+
}
|
|
4215
|
+
const RepresentationType$h = 'FollowedAssetCollectionRepresentation';
|
|
4216
|
+
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
4217
|
+
return input;
|
|
4218
|
+
}
|
|
4219
|
+
const select$E = function FollowedAssetCollectionRepresentationSelect() {
|
|
4220
|
+
return {
|
|
4221
|
+
kind: 'Fragment',
|
|
4222
|
+
version: VERSION$h,
|
|
4223
|
+
private: [],
|
|
4224
|
+
opaque: true
|
|
4225
|
+
};
|
|
4226
|
+
};
|
|
4227
|
+
function equals$h(existing, incoming) {
|
|
4228
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4229
|
+
return false;
|
|
4230
|
+
}
|
|
4231
|
+
return true;
|
|
4232
|
+
}
|
|
4233
|
+
const ingest$h = function FollowedAssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4234
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4235
|
+
const validateError = validate$l(input);
|
|
4236
|
+
if (validateError !== null) {
|
|
4237
|
+
throw validateError;
|
|
4238
|
+
}
|
|
4239
|
+
}
|
|
4240
|
+
const key = path.fullPath;
|
|
4241
|
+
const ttlToUse = TTL$9;
|
|
4242
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "UnifiedAnalytics", VERSION$h, RepresentationType$h, equals$h);
|
|
4243
|
+
return createLink(key);
|
|
4244
|
+
};
|
|
4245
|
+
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
4246
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4247
|
+
const rootKey = fullPathFactory();
|
|
4248
|
+
rootKeySet.set(rootKey, {
|
|
4249
|
+
namespace: keyPrefix,
|
|
4250
|
+
representationName: RepresentationType$h,
|
|
4251
|
+
mergeable: false
|
|
4252
|
+
});
|
|
4253
|
+
}
|
|
4254
|
+
|
|
4255
|
+
function select$D(luvio, params) {
|
|
4256
|
+
return select$E();
|
|
4257
|
+
}
|
|
4258
|
+
function keyBuilder$A(luvio, params) {
|
|
4259
|
+
return keyPrefix + '::FollowedAssetCollectionRepresentation:(' + 'followedAssetType:' + params.queryParams.followedAssetType + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'followerId:' + params.urlParams.followerId + ')';
|
|
4260
|
+
}
|
|
4261
|
+
function getResponseCacheKeys$p(storeKeyMap, luvio, resourceParams, response) {
|
|
4262
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response, () => keyBuilder$A(luvio, resourceParams));
|
|
4263
|
+
}
|
|
4264
|
+
function ingestSuccess$m(luvio, resourceParams, response, snapshotRefresh) {
|
|
4265
|
+
const { body } = response;
|
|
4266
|
+
const key = keyBuilder$A(luvio, resourceParams);
|
|
4267
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
4268
|
+
const snapshot = luvio.storeLookup({
|
|
4269
|
+
recordId: key,
|
|
4270
|
+
node: select$D(),
|
|
4271
|
+
variables: {},
|
|
4272
|
+
}, snapshotRefresh);
|
|
4273
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4274
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4275
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4276
|
+
}
|
|
4277
|
+
}
|
|
4278
|
+
deepFreeze(snapshot.data);
|
|
4279
|
+
return snapshot;
|
|
4280
|
+
}
|
|
4281
|
+
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
4282
|
+
const key = keyBuilder$A(luvio, params);
|
|
4283
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4284
|
+
const storeMetadataParams = {
|
|
4285
|
+
ttl: TTL$9,
|
|
4286
|
+
namespace: keyPrefix,
|
|
4287
|
+
version: VERSION$h,
|
|
4288
|
+
representationName: RepresentationType$h
|
|
4289
|
+
};
|
|
4290
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4291
|
+
return errorSnapshot;
|
|
4292
|
+
}
|
|
4293
|
+
function createResourceRequest$p(config) {
|
|
4294
|
+
const headers = {};
|
|
4295
|
+
return {
|
|
4296
|
+
baseUri: '/services/data/v62.0',
|
|
4297
|
+
basePath: '/tableau/follow/followers/' + config.urlParams.followerId + '/followed-assets',
|
|
4298
|
+
method: 'get',
|
|
4299
|
+
body: null,
|
|
4300
|
+
urlParams: config.urlParams,
|
|
4301
|
+
queryParams: config.queryParams,
|
|
4302
|
+
headers,
|
|
4303
|
+
priority: 'normal',
|
|
4304
|
+
};
|
|
4305
|
+
}
|
|
4306
|
+
|
|
4307
|
+
const adapterName$p = 'getFollowedAssets';
|
|
4308
|
+
const getFollowedAssets_ConfigPropertyMetadata = [
|
|
4309
|
+
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4310
|
+
generateParamConfigMetadata('followedAssetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4311
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4312
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4313
|
+
];
|
|
4314
|
+
const getFollowedAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$p, getFollowedAssets_ConfigPropertyMetadata);
|
|
4315
|
+
const createResourceParams$p = /*#__PURE__*/ createResourceParams$D(getFollowedAssets_ConfigPropertyMetadata);
|
|
4316
|
+
function keyBuilder$z(luvio, config) {
|
|
4317
|
+
const resourceParams = createResourceParams$p(config);
|
|
4318
|
+
return keyBuilder$A(luvio, resourceParams);
|
|
4319
|
+
}
|
|
4320
|
+
function typeCheckConfig$p(untrustedConfig) {
|
|
4321
|
+
const config = {};
|
|
4322
|
+
typeCheckConfig$D(untrustedConfig, config, getFollowedAssets_ConfigPropertyMetadata);
|
|
4323
|
+
return config;
|
|
4324
|
+
}
|
|
4325
|
+
function validateAdapterConfig$p(untrustedConfig, configPropertyNames) {
|
|
4326
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4327
|
+
return null;
|
|
4328
|
+
}
|
|
4329
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4330
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4331
|
+
}
|
|
4332
|
+
const config = typeCheckConfig$p(untrustedConfig);
|
|
4333
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4334
|
+
return null;
|
|
4335
|
+
}
|
|
4336
|
+
return config;
|
|
4337
|
+
}
|
|
4338
|
+
function adapterFragment$b(luvio, config) {
|
|
4339
|
+
createResourceParams$p(config);
|
|
4340
|
+
return select$D();
|
|
4341
|
+
}
|
|
4342
|
+
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
4343
|
+
const snapshot = ingestSuccess$m(luvio, resourceParams, response, {
|
|
4344
|
+
config,
|
|
4345
|
+
resolve: () => buildNetworkSnapshot$p(luvio, config, snapshotRefreshOptions)
|
|
4346
|
+
});
|
|
4347
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4348
|
+
}
|
|
4349
|
+
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
4350
|
+
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
4351
|
+
config,
|
|
4352
|
+
resolve: () => buildNetworkSnapshot$p(luvio, config, snapshotRefreshOptions)
|
|
4353
|
+
});
|
|
4354
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4355
|
+
}
|
|
4356
|
+
function buildNetworkSnapshot$p(luvio, config, options) {
|
|
4357
|
+
const resourceParams = createResourceParams$p(config);
|
|
4358
|
+
const request = createResourceRequest$p(resourceParams);
|
|
4359
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4360
|
+
.then((response) => {
|
|
4361
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
|
|
4362
|
+
const cache = new StoreKeyMap();
|
|
4363
|
+
getResponseCacheKeys$p(cache, luvio, resourceParams, response.body);
|
|
4364
|
+
return cache;
|
|
4365
|
+
});
|
|
4366
|
+
}, (response) => {
|
|
4367
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$b(luvio, config, resourceParams, response));
|
|
4368
|
+
});
|
|
4369
|
+
}
|
|
4370
|
+
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
4371
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$p, undefined, false);
|
|
4372
|
+
}
|
|
4373
|
+
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
4374
|
+
const { luvio, config } = context;
|
|
4375
|
+
const selector = {
|
|
4376
|
+
recordId: keyBuilder$z(luvio, config),
|
|
4377
|
+
node: adapterFragment$b(luvio, config),
|
|
4378
|
+
variables: {},
|
|
4379
|
+
};
|
|
4380
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4381
|
+
config,
|
|
4382
|
+
resolve: () => buildNetworkSnapshot$p(luvio, config, snapshotRefreshOptions)
|
|
4383
|
+
});
|
|
4384
|
+
return cacheSnapshot;
|
|
4385
|
+
}
|
|
4386
|
+
const getFollowedAssetsAdapterFactory = (luvio) => function UnifiedAnalytics__getFollowedAssets(untrustedConfig, requestContext) {
|
|
4387
|
+
const config = validateAdapterConfig$p(untrustedConfig, getFollowedAssets_ConfigPropertyNames);
|
|
4388
|
+
// Invalid or incomplete config
|
|
4389
|
+
if (config === null) {
|
|
4390
|
+
return null;
|
|
4391
|
+
}
|
|
4392
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4393
|
+
buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
|
|
4394
|
+
};
|
|
4395
|
+
|
|
4396
|
+
const TTL$8 = 500;
|
|
4397
|
+
const VERSION$g = "a4167cdb0a6477d9d7ddbe70da03f1b4";
|
|
4398
|
+
function validate$k(obj, path = 'UniqueFollowerCountRepresentation') {
|
|
4399
|
+
const v_error = (() => {
|
|
4400
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4401
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4402
|
+
}
|
|
4403
|
+
const obj_uniqueFollowerCount = obj.uniqueFollowerCount;
|
|
4404
|
+
const path_uniqueFollowerCount = path + '.uniqueFollowerCount';
|
|
4405
|
+
if (typeof obj_uniqueFollowerCount !== 'number' || (typeof obj_uniqueFollowerCount === 'number' && Math.floor(obj_uniqueFollowerCount) !== obj_uniqueFollowerCount)) {
|
|
4406
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_uniqueFollowerCount + '" (at "' + path_uniqueFollowerCount + '")');
|
|
4407
|
+
}
|
|
4408
|
+
})();
|
|
4409
|
+
return v_error === undefined ? null : v_error;
|
|
4410
|
+
}
|
|
4411
|
+
const RepresentationType$g = 'UniqueFollowerCountRepresentation';
|
|
3925
4412
|
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
3926
4413
|
return input;
|
|
3927
4414
|
}
|
|
3928
|
-
const select$C = function
|
|
4415
|
+
const select$C = function UniqueFollowerCountRepresentationSelect() {
|
|
3929
4416
|
return {
|
|
3930
4417
|
kind: 'Fragment',
|
|
3931
4418
|
version: VERSION$g,
|
|
@@ -3939,9 +4426,9 @@ function equals$g(existing, incoming) {
|
|
|
3939
4426
|
}
|
|
3940
4427
|
return true;
|
|
3941
4428
|
}
|
|
3942
|
-
const ingest$g = function
|
|
4429
|
+
const ingest$g = function UniqueFollowerCountRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3943
4430
|
if (process.env.NODE_ENV !== 'production') {
|
|
3944
|
-
const validateError = validate$
|
|
4431
|
+
const validateError = validate$k(input);
|
|
3945
4432
|
if (validateError !== null) {
|
|
3946
4433
|
throw validateError;
|
|
3947
4434
|
}
|
|
@@ -3965,7 +4452,7 @@ function select$B(luvio, params) {
|
|
|
3965
4452
|
return select$C();
|
|
3966
4453
|
}
|
|
3967
4454
|
function keyBuilder$y(luvio, params) {
|
|
3968
|
-
return keyPrefix + '::
|
|
4455
|
+
return keyPrefix + '::UniqueFollowerCountRepresentation:(' + 'followedAssetType:' + params.queryParams.followedAssetType + ',' + 'followedAssetId:' + params.urlParams.followedAssetId + ')';
|
|
3969
4456
|
}
|
|
3970
4457
|
function getResponseCacheKeys$o(storeKeyMap, luvio, resourceParams, response) {
|
|
3971
4458
|
getTypeCacheKeys$g(storeKeyMap, luvio, response, () => keyBuilder$y(luvio, resourceParams));
|
|
@@ -4003,7 +4490,7 @@ function createResourceRequest$o(config) {
|
|
|
4003
4490
|
const headers = {};
|
|
4004
4491
|
return {
|
|
4005
4492
|
baseUri: '/services/data/v62.0',
|
|
4006
|
-
basePath: '/
|
|
4493
|
+
basePath: '/tableau/follow/assets/' + config.urlParams.followedAssetId + '/follower-count',
|
|
4007
4494
|
method: 'get',
|
|
4008
4495
|
body: null,
|
|
4009
4496
|
urlParams: config.urlParams,
|
|
@@ -4013,23 +4500,20 @@ function createResourceRequest$o(config) {
|
|
|
4013
4500
|
};
|
|
4014
4501
|
}
|
|
4015
4502
|
|
|
4016
|
-
const adapterName$o = '
|
|
4017
|
-
const
|
|
4503
|
+
const adapterName$o = 'getUniqueFollowerCount';
|
|
4504
|
+
const getUniqueFollowerCount_ConfigPropertyMetadata = [
|
|
4018
4505
|
generateParamConfigMetadata('followedAssetId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4019
|
-
generateParamConfigMetadata('
|
|
4020
|
-
generateParamConfigMetadata('followerType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4021
|
-
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4022
|
-
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4506
|
+
generateParamConfigMetadata('followedAssetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4023
4507
|
];
|
|
4024
|
-
const
|
|
4025
|
-
const createResourceParams$o = /*#__PURE__*/ createResourceParams$
|
|
4508
|
+
const getUniqueFollowerCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
4509
|
+
const createResourceParams$o = /*#__PURE__*/ createResourceParams$D(getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
4026
4510
|
function keyBuilder$x(luvio, config) {
|
|
4027
4511
|
const resourceParams = createResourceParams$o(config);
|
|
4028
4512
|
return keyBuilder$y(luvio, resourceParams);
|
|
4029
4513
|
}
|
|
4030
4514
|
function typeCheckConfig$o(untrustedConfig) {
|
|
4031
4515
|
const config = {};
|
|
4032
|
-
typeCheckConfig$
|
|
4516
|
+
typeCheckConfig$D(untrustedConfig, config, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
4033
4517
|
return config;
|
|
4034
4518
|
}
|
|
4035
4519
|
function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
|
|
@@ -4078,7 +4562,7 @@ function buildNetworkSnapshot$o(luvio, config, options) {
|
|
|
4078
4562
|
});
|
|
4079
4563
|
}
|
|
4080
4564
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
4081
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4565
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$o, undefined, false);
|
|
4082
4566
|
}
|
|
4083
4567
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
4084
4568
|
const { luvio, config } = context;
|
|
@@ -4093,8 +4577,8 @@ function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
|
4093
4577
|
});
|
|
4094
4578
|
return cacheSnapshot;
|
|
4095
4579
|
}
|
|
4096
|
-
const
|
|
4097
|
-
const config = validateAdapterConfig$o(untrustedConfig,
|
|
4580
|
+
const getUniqueFollowerCountAdapterFactory = (luvio) => function UnifiedAnalytics__getUniqueFollowerCount(untrustedConfig, requestContext) {
|
|
4581
|
+
const config = validateAdapterConfig$o(untrustedConfig, getUniqueFollowerCount_ConfigPropertyNames);
|
|
4098
4582
|
// Invalid or incomplete config
|
|
4099
4583
|
if (config === null) {
|
|
4100
4584
|
return null;
|
|
@@ -4103,36 +4587,45 @@ const getFollowersAdapterFactory = (luvio) => function UnifiedAnalytics__getFoll
|
|
|
4103
4587
|
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
4104
4588
|
};
|
|
4105
4589
|
|
|
4106
|
-
const TTL$7 =
|
|
4107
|
-
const VERSION$f = "
|
|
4108
|
-
function validate$
|
|
4590
|
+
const TTL$7 = 1000;
|
|
4591
|
+
const VERSION$f = "f2e0254a8e6b03f2289f318634389df3";
|
|
4592
|
+
function validate$j(obj, path = 'UnifiedAnalyticsLogLinesRepresentation') {
|
|
4109
4593
|
const v_error = (() => {
|
|
4110
4594
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4111
4595
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4112
4596
|
}
|
|
4113
|
-
const
|
|
4114
|
-
const
|
|
4115
|
-
if (
|
|
4116
|
-
return new TypeError('Expected "
|
|
4597
|
+
const obj_failureCount = obj.failureCount;
|
|
4598
|
+
const path_failureCount = path + '.failureCount';
|
|
4599
|
+
if (typeof obj_failureCount !== 'number' || (typeof obj_failureCount === 'number' && Math.floor(obj_failureCount) !== obj_failureCount)) {
|
|
4600
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_failureCount + '" (at "' + path_failureCount + '")');
|
|
4117
4601
|
}
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4602
|
+
const obj_id = obj.id;
|
|
4603
|
+
const path_id = path + '.id';
|
|
4604
|
+
if (typeof obj_id !== 'string') {
|
|
4605
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
4606
|
+
}
|
|
4607
|
+
const obj_successCount = obj.successCount;
|
|
4608
|
+
const path_successCount = path + '.successCount';
|
|
4609
|
+
if (typeof obj_successCount !== 'number' || (typeof obj_successCount === 'number' && Math.floor(obj_successCount) !== obj_successCount)) {
|
|
4610
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_successCount + '" (at "' + path_successCount + '")');
|
|
4127
4611
|
}
|
|
4128
4612
|
})();
|
|
4129
4613
|
return v_error === undefined ? null : v_error;
|
|
4130
4614
|
}
|
|
4131
|
-
const RepresentationType$f = '
|
|
4615
|
+
const RepresentationType$f = 'UnifiedAnalyticsLogLinesRepresentation';
|
|
4616
|
+
function keyBuilder$w(luvio, config) {
|
|
4617
|
+
return keyPrefix + '::' + RepresentationType$f + ':' + config.id;
|
|
4618
|
+
}
|
|
4619
|
+
function keyBuilderFromType$9(luvio, object) {
|
|
4620
|
+
const keyParams = {
|
|
4621
|
+
id: object.id
|
|
4622
|
+
};
|
|
4623
|
+
return keyBuilder$w(luvio, keyParams);
|
|
4624
|
+
}
|
|
4132
4625
|
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
4133
4626
|
return input;
|
|
4134
4627
|
}
|
|
4135
|
-
const select$A = function
|
|
4628
|
+
const select$A = function UnifiedAnalyticsLogLinesRepresentationSelect() {
|
|
4136
4629
|
return {
|
|
4137
4630
|
kind: 'Fragment',
|
|
4138
4631
|
version: VERSION$f,
|
|
@@ -4146,21 +4639,21 @@ function equals$f(existing, incoming) {
|
|
|
4146
4639
|
}
|
|
4147
4640
|
return true;
|
|
4148
4641
|
}
|
|
4149
|
-
const ingest$f = function
|
|
4642
|
+
const ingest$f = function UnifiedAnalyticsLogLinesRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4150
4643
|
if (process.env.NODE_ENV !== 'production') {
|
|
4151
|
-
const validateError = validate$
|
|
4644
|
+
const validateError = validate$j(input);
|
|
4152
4645
|
if (validateError !== null) {
|
|
4153
4646
|
throw validateError;
|
|
4154
4647
|
}
|
|
4155
4648
|
}
|
|
4156
|
-
const key =
|
|
4649
|
+
const key = keyBuilderFromType$9(luvio, input);
|
|
4157
4650
|
const ttlToUse = TTL$7;
|
|
4158
4651
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "UnifiedAnalytics", VERSION$f, RepresentationType$f, equals$f);
|
|
4159
4652
|
return createLink(key);
|
|
4160
4653
|
};
|
|
4161
4654
|
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
4162
4655
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4163
|
-
const rootKey =
|
|
4656
|
+
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
4164
4657
|
rootKeySet.set(rootKey, {
|
|
4165
4658
|
namespace: keyPrefix,
|
|
4166
4659
|
representationName: RepresentationType$f,
|
|
@@ -4171,21 +4664,18 @@ function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4171
4664
|
function select$z(luvio, params) {
|
|
4172
4665
|
return select$A();
|
|
4173
4666
|
}
|
|
4174
|
-
function keyBuilder$w(luvio, params) {
|
|
4175
|
-
return keyPrefix + '::FollowedAssetCollectionRepresentation:(' + 'followedAssetType:' + params.queryParams.followedAssetType + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'followerId:' + params.urlParams.followerId + ')';
|
|
4176
|
-
}
|
|
4177
4667
|
function getResponseCacheKeys$n(storeKeyMap, luvio, resourceParams, response) {
|
|
4178
|
-
getTypeCacheKeys$f(storeKeyMap, luvio, response
|
|
4668
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
4179
4669
|
}
|
|
4180
|
-
function ingestSuccess$k(luvio, resourceParams, response
|
|
4670
|
+
function ingestSuccess$k(luvio, resourceParams, response) {
|
|
4181
4671
|
const { body } = response;
|
|
4182
|
-
const key =
|
|
4672
|
+
const key = keyBuilderFromType$9(luvio, body);
|
|
4183
4673
|
luvio.storeIngest(key, ingest$f, body);
|
|
4184
4674
|
const snapshot = luvio.storeLookup({
|
|
4185
4675
|
recordId: key,
|
|
4186
4676
|
node: select$z(),
|
|
4187
4677
|
variables: {},
|
|
4188
|
-
}
|
|
4678
|
+
});
|
|
4189
4679
|
if (process.env.NODE_ENV !== 'production') {
|
|
4190
4680
|
if (snapshot.state !== 'Fulfilled') {
|
|
4191
4681
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
@@ -4194,48 +4684,37 @@ function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4194
4684
|
deepFreeze(snapshot.data);
|
|
4195
4685
|
return snapshot;
|
|
4196
4686
|
}
|
|
4197
|
-
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
4198
|
-
const key = keyBuilder$w(luvio, params);
|
|
4199
|
-
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4200
|
-
const storeMetadataParams = {
|
|
4201
|
-
ttl: TTL$7,
|
|
4202
|
-
namespace: keyPrefix,
|
|
4203
|
-
version: VERSION$f,
|
|
4204
|
-
representationName: RepresentationType$f
|
|
4205
|
-
};
|
|
4206
|
-
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4207
|
-
return errorSnapshot;
|
|
4208
|
-
}
|
|
4209
4687
|
function createResourceRequest$n(config) {
|
|
4210
4688
|
const headers = {};
|
|
4211
4689
|
return {
|
|
4212
4690
|
baseUri: '/services/data/v62.0',
|
|
4213
|
-
basePath: '/
|
|
4214
|
-
method: '
|
|
4215
|
-
body:
|
|
4216
|
-
urlParams:
|
|
4217
|
-
queryParams:
|
|
4691
|
+
basePath: '/tableau/loglines',
|
|
4692
|
+
method: 'post',
|
|
4693
|
+
body: config.body,
|
|
4694
|
+
urlParams: {},
|
|
4695
|
+
queryParams: {},
|
|
4218
4696
|
headers,
|
|
4219
4697
|
priority: 'normal',
|
|
4220
4698
|
};
|
|
4221
4699
|
}
|
|
4222
4700
|
|
|
4223
|
-
const adapterName$n = '
|
|
4224
|
-
const
|
|
4225
|
-
generateParamConfigMetadata('
|
|
4226
|
-
generateParamConfigMetadata('followedAssetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4227
|
-
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4228
|
-
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4701
|
+
const adapterName$n = 'createLoglines';
|
|
4702
|
+
const createLoglines_ConfigPropertyMetadata = [
|
|
4703
|
+
generateParamConfigMetadata('loglines', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4229
4704
|
];
|
|
4230
|
-
const
|
|
4231
|
-
const createResourceParams$n = /*#__PURE__*/ createResourceParams$
|
|
4232
|
-
function keyBuilder$v(luvio, config) {
|
|
4233
|
-
const resourceParams = createResourceParams$n(config);
|
|
4234
|
-
return keyBuilder$w(luvio, resourceParams);
|
|
4235
|
-
}
|
|
4705
|
+
const createLoglines_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, createLoglines_ConfigPropertyMetadata);
|
|
4706
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$D(createLoglines_ConfigPropertyMetadata);
|
|
4236
4707
|
function typeCheckConfig$n(untrustedConfig) {
|
|
4237
4708
|
const config = {};
|
|
4238
|
-
|
|
4709
|
+
const untrustedConfig_loglines = untrustedConfig.loglines;
|
|
4710
|
+
if (ArrayIsArray$1(untrustedConfig_loglines)) {
|
|
4711
|
+
const untrustedConfig_loglines_array = [];
|
|
4712
|
+
for (let i = 0, arrayLength = untrustedConfig_loglines.length; i < arrayLength; i++) {
|
|
4713
|
+
const untrustedConfig_loglines_item = untrustedConfig_loglines[i];
|
|
4714
|
+
untrustedConfig_loglines_array.push(untrustedConfig_loglines_item);
|
|
4715
|
+
}
|
|
4716
|
+
config.loglines = untrustedConfig_loglines_array;
|
|
4717
|
+
}
|
|
4239
4718
|
return config;
|
|
4240
4719
|
}
|
|
4241
4720
|
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
@@ -4251,103 +4730,102 @@ function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
|
4251
4730
|
}
|
|
4252
4731
|
return config;
|
|
4253
4732
|
}
|
|
4254
|
-
function adapterFragment$9(luvio, config) {
|
|
4255
|
-
createResourceParams$n(config);
|
|
4256
|
-
return select$z();
|
|
4257
|
-
}
|
|
4258
|
-
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
4259
|
-
const snapshot = ingestSuccess$k(luvio, resourceParams, response, {
|
|
4260
|
-
config,
|
|
4261
|
-
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
|
|
4262
|
-
});
|
|
4263
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
4264
|
-
}
|
|
4265
|
-
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
4266
|
-
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
4267
|
-
config,
|
|
4268
|
-
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
|
|
4269
|
-
});
|
|
4270
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
4271
|
-
}
|
|
4272
4733
|
function buildNetworkSnapshot$n(luvio, config, options) {
|
|
4273
4734
|
const resourceParams = createResourceParams$n(config);
|
|
4274
4735
|
const request = createResourceRequest$n(resourceParams);
|
|
4275
4736
|
return luvio.dispatchResourceRequest(request, options)
|
|
4276
4737
|
.then((response) => {
|
|
4277
|
-
return luvio.handleSuccessResponse(() =>
|
|
4738
|
+
return luvio.handleSuccessResponse(() => {
|
|
4739
|
+
const snapshot = ingestSuccess$k(luvio, resourceParams, response);
|
|
4740
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4741
|
+
}, () => {
|
|
4278
4742
|
const cache = new StoreKeyMap();
|
|
4279
4743
|
getResponseCacheKeys$n(cache, luvio, resourceParams, response.body);
|
|
4280
4744
|
return cache;
|
|
4281
4745
|
});
|
|
4282
4746
|
}, (response) => {
|
|
4283
|
-
|
|
4747
|
+
deepFreeze(response);
|
|
4748
|
+
throw response;
|
|
4284
4749
|
});
|
|
4285
4750
|
}
|
|
4286
|
-
|
|
4287
|
-
return
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
variables: {},
|
|
4751
|
+
const createLoglinesAdapterFactory = (luvio) => {
|
|
4752
|
+
return function createLoglines(untrustedConfig) {
|
|
4753
|
+
const config = validateAdapterConfig$n(untrustedConfig, createLoglines_ConfigPropertyNames);
|
|
4754
|
+
// Invalid or incomplete config
|
|
4755
|
+
if (config === null) {
|
|
4756
|
+
throw new Error('Invalid config for "createLoglines"');
|
|
4757
|
+
}
|
|
4758
|
+
return buildNetworkSnapshot$n(luvio, config);
|
|
4295
4759
|
};
|
|
4296
|
-
const cacheSnapshot = storeLookup(selector, {
|
|
4297
|
-
config,
|
|
4298
|
-
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
|
|
4299
|
-
});
|
|
4300
|
-
return cacheSnapshot;
|
|
4301
|
-
}
|
|
4302
|
-
const getFollowedAssetsAdapterFactory = (luvio) => function UnifiedAnalytics__getFollowedAssets(untrustedConfig, requestContext) {
|
|
4303
|
-
const config = validateAdapterConfig$n(untrustedConfig, getFollowedAssets_ConfigPropertyNames);
|
|
4304
|
-
// Invalid or incomplete config
|
|
4305
|
-
if (config === null) {
|
|
4306
|
-
return null;
|
|
4307
|
-
}
|
|
4308
|
-
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4309
|
-
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
4310
4760
|
};
|
|
4311
4761
|
|
|
4312
|
-
|
|
4313
|
-
const VERSION$e = "f2e0254a8e6b03f2289f318634389df3";
|
|
4314
|
-
function validate$h(obj, path = 'UnifiedAnalyticsLogLinesRepresentation') {
|
|
4762
|
+
function validate$i(obj, path = 'OrgRepresentation') {
|
|
4315
4763
|
const v_error = (() => {
|
|
4316
4764
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4317
4765
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4318
4766
|
}
|
|
4319
|
-
const obj_failureCount = obj.failureCount;
|
|
4320
|
-
const path_failureCount = path + '.failureCount';
|
|
4321
|
-
if (typeof obj_failureCount !== 'number' || (typeof obj_failureCount === 'number' && Math.floor(obj_failureCount) !== obj_failureCount)) {
|
|
4322
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_failureCount + '" (at "' + path_failureCount + '")');
|
|
4323
|
-
}
|
|
4324
4767
|
const obj_id = obj.id;
|
|
4325
4768
|
const path_id = path + '.id';
|
|
4326
4769
|
if (typeof obj_id !== 'string') {
|
|
4327
4770
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
4328
4771
|
}
|
|
4329
|
-
const
|
|
4330
|
-
const
|
|
4331
|
-
if (typeof
|
|
4332
|
-
return new TypeError('Expected "
|
|
4772
|
+
const obj_label = obj.label;
|
|
4773
|
+
const path_label = path + '.label';
|
|
4774
|
+
if (typeof obj_label !== 'string') {
|
|
4775
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
4776
|
+
}
|
|
4777
|
+
const obj_orgUrl = obj.orgUrl;
|
|
4778
|
+
const path_orgUrl = path + '.orgUrl';
|
|
4779
|
+
if (typeof obj_orgUrl !== 'string') {
|
|
4780
|
+
return new TypeError('Expected "string" but received "' + typeof obj_orgUrl + '" (at "' + path_orgUrl + '")');
|
|
4781
|
+
}
|
|
4782
|
+
const obj_targetUrl = obj.targetUrl;
|
|
4783
|
+
const path_targetUrl = path + '.targetUrl';
|
|
4784
|
+
if (typeof obj_targetUrl !== 'string') {
|
|
4785
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetUrl + '" (at "' + path_targetUrl + '")');
|
|
4333
4786
|
}
|
|
4334
4787
|
})();
|
|
4335
4788
|
return v_error === undefined ? null : v_error;
|
|
4336
4789
|
}
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4790
|
+
|
|
4791
|
+
const TTL$6 = 500;
|
|
4792
|
+
const VERSION$e = "ebd45d9f8ecdc711027eec047d0803ac";
|
|
4793
|
+
function validate$h(obj, path = 'OrgCollectionRepresentation') {
|
|
4794
|
+
const v_error = (() => {
|
|
4795
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4796
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4797
|
+
}
|
|
4798
|
+
const obj_currentOrg = obj.currentOrg;
|
|
4799
|
+
const path_currentOrg = path + '.currentOrg';
|
|
4800
|
+
const referencepath_currentOrgValidationError = validate$i(obj_currentOrg, path_currentOrg);
|
|
4801
|
+
if (referencepath_currentOrgValidationError !== null) {
|
|
4802
|
+
let message = 'Object doesn\'t match OrgRepresentation (at "' + path_currentOrg + '")\n';
|
|
4803
|
+
message += referencepath_currentOrgValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4804
|
+
return new TypeError(message);
|
|
4805
|
+
}
|
|
4806
|
+
const obj_orgs = obj.orgs;
|
|
4807
|
+
const path_orgs = path + '.orgs';
|
|
4808
|
+
if (!ArrayIsArray(obj_orgs)) {
|
|
4809
|
+
return new TypeError('Expected "array" but received "' + typeof obj_orgs + '" (at "' + path_orgs + '")');
|
|
4810
|
+
}
|
|
4811
|
+
for (let i = 0; i < obj_orgs.length; i++) {
|
|
4812
|
+
const obj_orgs_item = obj_orgs[i];
|
|
4813
|
+
const path_orgs_item = path_orgs + '[' + i + ']';
|
|
4814
|
+
const referencepath_orgs_itemValidationError = validate$i(obj_orgs_item, path_orgs_item);
|
|
4815
|
+
if (referencepath_orgs_itemValidationError !== null) {
|
|
4816
|
+
let message = 'Object doesn\'t match OrgRepresentation (at "' + path_orgs_item + '")\n';
|
|
4817
|
+
message += referencepath_orgs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4818
|
+
return new TypeError(message);
|
|
4819
|
+
}
|
|
4820
|
+
}
|
|
4821
|
+
})();
|
|
4822
|
+
return v_error === undefined ? null : v_error;
|
|
4346
4823
|
}
|
|
4824
|
+
const RepresentationType$e = 'OrgCollectionRepresentation';
|
|
4347
4825
|
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
4348
4826
|
return input;
|
|
4349
4827
|
}
|
|
4350
|
-
const select$y = function
|
|
4828
|
+
const select$y = function OrgCollectionRepresentationSelect() {
|
|
4351
4829
|
return {
|
|
4352
4830
|
kind: 'Fragment',
|
|
4353
4831
|
version: VERSION$e,
|
|
@@ -4361,21 +4839,21 @@ function equals$e(existing, incoming) {
|
|
|
4361
4839
|
}
|
|
4362
4840
|
return true;
|
|
4363
4841
|
}
|
|
4364
|
-
const ingest$e = function
|
|
4842
|
+
const ingest$e = function OrgCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4365
4843
|
if (process.env.NODE_ENV !== 'production') {
|
|
4366
4844
|
const validateError = validate$h(input);
|
|
4367
4845
|
if (validateError !== null) {
|
|
4368
4846
|
throw validateError;
|
|
4369
4847
|
}
|
|
4370
4848
|
}
|
|
4371
|
-
const key =
|
|
4849
|
+
const key = path.fullPath;
|
|
4372
4850
|
const ttlToUse = TTL$6;
|
|
4373
4851
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "UnifiedAnalytics", VERSION$e, RepresentationType$e, equals$e);
|
|
4374
4852
|
return createLink(key);
|
|
4375
4853
|
};
|
|
4376
4854
|
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
4377
4855
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4378
|
-
const rootKey =
|
|
4856
|
+
const rootKey = fullPathFactory();
|
|
4379
4857
|
rootKeySet.set(rootKey, {
|
|
4380
4858
|
namespace: keyPrefix,
|
|
4381
4859
|
representationName: RepresentationType$e,
|
|
@@ -4386,18 +4864,21 @@ function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4386
4864
|
function select$x(luvio, params) {
|
|
4387
4865
|
return select$y();
|
|
4388
4866
|
}
|
|
4867
|
+
function keyBuilder$v(luvio, params) {
|
|
4868
|
+
return keyPrefix + '::OrgCollectionRepresentation:(' + 'userName:' + params.urlParams.userName + ')';
|
|
4869
|
+
}
|
|
4389
4870
|
function getResponseCacheKeys$m(storeKeyMap, luvio, resourceParams, response) {
|
|
4390
|
-
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
4871
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response, () => keyBuilder$v(luvio, resourceParams));
|
|
4391
4872
|
}
|
|
4392
|
-
function ingestSuccess$j(luvio, resourceParams, response) {
|
|
4873
|
+
function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
4393
4874
|
const { body } = response;
|
|
4394
|
-
const key =
|
|
4875
|
+
const key = keyBuilder$v(luvio, resourceParams);
|
|
4395
4876
|
luvio.storeIngest(key, ingest$e, body);
|
|
4396
4877
|
const snapshot = luvio.storeLookup({
|
|
4397
4878
|
recordId: key,
|
|
4398
4879
|
node: select$x(),
|
|
4399
4880
|
variables: {},
|
|
4400
|
-
});
|
|
4881
|
+
}, snapshotRefresh);
|
|
4401
4882
|
if (process.env.NODE_ENV !== 'production') {
|
|
4402
4883
|
if (snapshot.state !== 'Fulfilled') {
|
|
4403
4884
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
@@ -4406,37 +4887,45 @@ function ingestSuccess$j(luvio, resourceParams, response) {
|
|
|
4406
4887
|
deepFreeze(snapshot.data);
|
|
4407
4888
|
return snapshot;
|
|
4408
4889
|
}
|
|
4890
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
4891
|
+
const key = keyBuilder$v(luvio, params);
|
|
4892
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4893
|
+
const storeMetadataParams = {
|
|
4894
|
+
ttl: TTL$6,
|
|
4895
|
+
namespace: keyPrefix,
|
|
4896
|
+
version: VERSION$e,
|
|
4897
|
+
representationName: RepresentationType$e
|
|
4898
|
+
};
|
|
4899
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4900
|
+
return errorSnapshot;
|
|
4901
|
+
}
|
|
4409
4902
|
function createResourceRequest$m(config) {
|
|
4410
4903
|
const headers = {};
|
|
4411
4904
|
return {
|
|
4412
4905
|
baseUri: '/services/data/v62.0',
|
|
4413
|
-
basePath: '/
|
|
4414
|
-
method: '
|
|
4415
|
-
body:
|
|
4416
|
-
urlParams:
|
|
4906
|
+
basePath: '/tableau/orgs/' + config.urlParams.userName + '',
|
|
4907
|
+
method: 'get',
|
|
4908
|
+
body: null,
|
|
4909
|
+
urlParams: config.urlParams,
|
|
4417
4910
|
queryParams: {},
|
|
4418
4911
|
headers,
|
|
4419
4912
|
priority: 'normal',
|
|
4420
4913
|
};
|
|
4421
4914
|
}
|
|
4422
4915
|
|
|
4423
|
-
const adapterName$m = '
|
|
4424
|
-
const
|
|
4425
|
-
generateParamConfigMetadata('
|
|
4916
|
+
const adapterName$m = 'getOrg';
|
|
4917
|
+
const getOrg_ConfigPropertyMetadata = [
|
|
4918
|
+
generateParamConfigMetadata('userName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4426
4919
|
];
|
|
4427
|
-
const
|
|
4428
|
-
const createResourceParams$m = /*#__PURE__*/ createResourceParams$
|
|
4920
|
+
const getOrg_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, getOrg_ConfigPropertyMetadata);
|
|
4921
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$D(getOrg_ConfigPropertyMetadata);
|
|
4922
|
+
function keyBuilder$u(luvio, config) {
|
|
4923
|
+
const resourceParams = createResourceParams$m(config);
|
|
4924
|
+
return keyBuilder$v(luvio, resourceParams);
|
|
4925
|
+
}
|
|
4429
4926
|
function typeCheckConfig$m(untrustedConfig) {
|
|
4430
4927
|
const config = {};
|
|
4431
|
-
|
|
4432
|
-
if (ArrayIsArray$1(untrustedConfig_loglines)) {
|
|
4433
|
-
const untrustedConfig_loglines_array = [];
|
|
4434
|
-
for (let i = 0, arrayLength = untrustedConfig_loglines.length; i < arrayLength; i++) {
|
|
4435
|
-
const untrustedConfig_loglines_item = untrustedConfig_loglines[i];
|
|
4436
|
-
untrustedConfig_loglines_array.push(untrustedConfig_loglines_item);
|
|
4437
|
-
}
|
|
4438
|
-
config.loglines = untrustedConfig_loglines_array;
|
|
4439
|
-
}
|
|
4928
|
+
typeCheckConfig$D(untrustedConfig, config, getOrg_ConfigPropertyMetadata);
|
|
4440
4929
|
return config;
|
|
4441
4930
|
}
|
|
4442
4931
|
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
@@ -4452,33 +4941,62 @@ function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
|
4452
4941
|
}
|
|
4453
4942
|
return config;
|
|
4454
4943
|
}
|
|
4944
|
+
function adapterFragment$9(luvio, config) {
|
|
4945
|
+
createResourceParams$m(config);
|
|
4946
|
+
return select$x();
|
|
4947
|
+
}
|
|
4948
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
4949
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
|
|
4950
|
+
config,
|
|
4951
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
4952
|
+
});
|
|
4953
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4954
|
+
}
|
|
4955
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
4956
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
4957
|
+
config,
|
|
4958
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
4959
|
+
});
|
|
4960
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4961
|
+
}
|
|
4455
4962
|
function buildNetworkSnapshot$m(luvio, config, options) {
|
|
4456
4963
|
const resourceParams = createResourceParams$m(config);
|
|
4457
4964
|
const request = createResourceRequest$m(resourceParams);
|
|
4458
4965
|
return luvio.dispatchResourceRequest(request, options)
|
|
4459
4966
|
.then((response) => {
|
|
4460
|
-
return luvio.handleSuccessResponse(() => {
|
|
4461
|
-
const snapshot = ingestSuccess$j(luvio, resourceParams, response);
|
|
4462
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
4463
|
-
}, () => {
|
|
4967
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
4464
4968
|
const cache = new StoreKeyMap();
|
|
4465
4969
|
getResponseCacheKeys$m(cache, luvio, resourceParams, response.body);
|
|
4466
4970
|
return cache;
|
|
4467
4971
|
});
|
|
4468
4972
|
}, (response) => {
|
|
4469
|
-
|
|
4470
|
-
throw response;
|
|
4973
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
4471
4974
|
});
|
|
4472
4975
|
}
|
|
4473
|
-
|
|
4474
|
-
return
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4976
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
4977
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$m, undefined, false);
|
|
4978
|
+
}
|
|
4979
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
4980
|
+
const { luvio, config } = context;
|
|
4981
|
+
const selector = {
|
|
4982
|
+
recordId: keyBuilder$u(luvio, config),
|
|
4983
|
+
node: adapterFragment$9(luvio, config),
|
|
4984
|
+
variables: {},
|
|
4481
4985
|
};
|
|
4986
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4987
|
+
config,
|
|
4988
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
4989
|
+
});
|
|
4990
|
+
return cacheSnapshot;
|
|
4991
|
+
}
|
|
4992
|
+
const getOrgAdapterFactory = (luvio) => function UnifiedAnalytics__getOrg(untrustedConfig, requestContext) {
|
|
4993
|
+
const config = validateAdapterConfig$m(untrustedConfig, getOrg_ConfigPropertyNames);
|
|
4994
|
+
// Invalid or incomplete config
|
|
4995
|
+
if (config === null) {
|
|
4996
|
+
return null;
|
|
4997
|
+
}
|
|
4998
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4999
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
4482
5000
|
};
|
|
4483
5001
|
|
|
4484
5002
|
const TTL$5 = 1000;
|
|
@@ -4746,7 +5264,7 @@ function createResourceRequest$l(config) {
|
|
|
4746
5264
|
const headers = {};
|
|
4747
5265
|
return {
|
|
4748
5266
|
baseUri: '/services/data/v62.0',
|
|
4749
|
-
basePath: '/
|
|
5267
|
+
basePath: '/tableau/slack/channels',
|
|
4750
5268
|
method: 'get',
|
|
4751
5269
|
body: null,
|
|
4752
5270
|
urlParams: {},
|
|
@@ -4761,14 +5279,14 @@ const getAssetSlackChannels_ConfigPropertyMetadata = [
|
|
|
4761
5279
|
generateParamConfigMetadata('assetId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
4762
5280
|
];
|
|
4763
5281
|
const getAssetSlackChannels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
4764
|
-
const createResourceParams$l = /*#__PURE__*/ createResourceParams$
|
|
5282
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$D(getAssetSlackChannels_ConfigPropertyMetadata);
|
|
4765
5283
|
function keyBuilder$r(luvio, config) {
|
|
4766
5284
|
const resourceParams = createResourceParams$l(config);
|
|
4767
5285
|
return keyBuilder$s(luvio, resourceParams);
|
|
4768
5286
|
}
|
|
4769
5287
|
function typeCheckConfig$l(untrustedConfig) {
|
|
4770
5288
|
const config = {};
|
|
4771
|
-
typeCheckConfig$
|
|
5289
|
+
typeCheckConfig$D(untrustedConfig, config, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
4772
5290
|
return config;
|
|
4773
5291
|
}
|
|
4774
5292
|
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
@@ -4817,7 +5335,7 @@ function buildNetworkSnapshot$l(luvio, config, options) {
|
|
|
4817
5335
|
});
|
|
4818
5336
|
}
|
|
4819
5337
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
4820
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5338
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$l, undefined, false);
|
|
4821
5339
|
}
|
|
4822
5340
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
4823
5341
|
const { luvio, config } = context;
|
|
@@ -4869,7 +5387,7 @@ function createResourceRequest$k(config) {
|
|
|
4869
5387
|
const headers = {};
|
|
4870
5388
|
return {
|
|
4871
5389
|
baseUri: '/services/data/v62.0',
|
|
4872
|
-
basePath: '/
|
|
5390
|
+
basePath: '/tableau/slack/channels',
|
|
4873
5391
|
method: 'post',
|
|
4874
5392
|
body: config.body,
|
|
4875
5393
|
urlParams: {},
|
|
@@ -4886,10 +5404,10 @@ const createAssetSlackChannel_ConfigPropertyMetadata = [
|
|
|
4886
5404
|
generateParamConfigMetadata('teamId', true, 2 /* Body */, 0 /* String */),
|
|
4887
5405
|
];
|
|
4888
5406
|
const createAssetSlackChannel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
4889
|
-
const createResourceParams$k = /*#__PURE__*/ createResourceParams$
|
|
5407
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$D(createAssetSlackChannel_ConfigPropertyMetadata);
|
|
4890
5408
|
function typeCheckConfig$k(untrustedConfig) {
|
|
4891
5409
|
const config = {};
|
|
4892
|
-
typeCheckConfig$
|
|
5410
|
+
typeCheckConfig$D(untrustedConfig, config, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
4893
5411
|
return config;
|
|
4894
5412
|
}
|
|
4895
5413
|
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
@@ -4949,7 +5467,7 @@ function validate$e(obj, path = 'AnalyticsUsersQueryResultsRepresentation') {
|
|
|
4949
5467
|
for (let i = 0; i < obj_items.length; i++) {
|
|
4950
5468
|
const obj_items_item = obj_items[i];
|
|
4951
5469
|
const path_items_item = path_items + '[' + i + ']';
|
|
4952
|
-
const referencepath_items_itemValidationError = validate$
|
|
5470
|
+
const referencepath_items_itemValidationError = validate$p(obj_items_item, path_items_item);
|
|
4953
5471
|
if (referencepath_items_itemValidationError !== null) {
|
|
4954
5472
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_items_item + '")\n';
|
|
4955
5473
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5050,7 +5568,7 @@ function createResourceRequest$j(config) {
|
|
|
5050
5568
|
const headers = {};
|
|
5051
5569
|
return {
|
|
5052
5570
|
baseUri: '/services/data/v62.0',
|
|
5053
|
-
basePath: '/
|
|
5571
|
+
basePath: '/tableau/users/query',
|
|
5054
5572
|
method: 'post',
|
|
5055
5573
|
body: config.body,
|
|
5056
5574
|
urlParams: {},
|
|
@@ -5066,10 +5584,10 @@ const queryUsers_ConfigPropertyMetadata = [
|
|
|
5066
5584
|
generateParamConfigMetadata('useAutoSuggest', true, 2 /* Body */, 1 /* Boolean */),
|
|
5067
5585
|
];
|
|
5068
5586
|
const queryUsers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, queryUsers_ConfigPropertyMetadata);
|
|
5069
|
-
const createResourceParams$j = /*#__PURE__*/ createResourceParams$
|
|
5587
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$D(queryUsers_ConfigPropertyMetadata);
|
|
5070
5588
|
function typeCheckConfig$j(untrustedConfig) {
|
|
5071
5589
|
const config = {};
|
|
5072
|
-
typeCheckConfig$
|
|
5590
|
+
typeCheckConfig$D(untrustedConfig, config, queryUsers_ConfigPropertyMetadata);
|
|
5073
5591
|
return config;
|
|
5074
5592
|
}
|
|
5075
5593
|
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
@@ -5122,7 +5640,7 @@ function validate$d(obj, path = 'VisualizationRepresentation') {
|
|
|
5122
5640
|
}
|
|
5123
5641
|
const obj_createdBy = obj.createdBy;
|
|
5124
5642
|
const path_createdBy = path + '.createdBy';
|
|
5125
|
-
const referencepath_createdByValidationError = validate$
|
|
5643
|
+
const referencepath_createdByValidationError = validate$p(obj_createdBy, path_createdBy);
|
|
5126
5644
|
if (referencepath_createdByValidationError !== null) {
|
|
5127
5645
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
5128
5646
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5197,7 +5715,7 @@ function validate$d(obj, path = 'VisualizationRepresentation') {
|
|
|
5197
5715
|
if (obj.lastModifiedBy !== undefined) {
|
|
5198
5716
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
5199
5717
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
5200
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
5718
|
+
const referencepath_lastModifiedByValidationError = validate$p(obj_lastModifiedBy, path_lastModifiedBy);
|
|
5201
5719
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
5202
5720
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
5203
5721
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5443,7 +5961,7 @@ function createResourceRequest$i(config) {
|
|
|
5443
5961
|
const headers = {};
|
|
5444
5962
|
return {
|
|
5445
5963
|
baseUri: '/services/data/v62.0',
|
|
5446
|
-
basePath: '/
|
|
5964
|
+
basePath: '/tableau/visualizations',
|
|
5447
5965
|
method: 'get',
|
|
5448
5966
|
body: null,
|
|
5449
5967
|
urlParams: {},
|
|
@@ -5459,14 +5977,14 @@ const getVisualizations_ConfigPropertyMetadata = [
|
|
|
5459
5977
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5460
5978
|
];
|
|
5461
5979
|
const getVisualizations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getVisualizations_ConfigPropertyMetadata);
|
|
5462
|
-
const createResourceParams$i = /*#__PURE__*/ createResourceParams$
|
|
5980
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$D(getVisualizations_ConfigPropertyMetadata);
|
|
5463
5981
|
function keyBuilder$n(luvio, config) {
|
|
5464
5982
|
const resourceParams = createResourceParams$i(config);
|
|
5465
5983
|
return keyBuilder$o(luvio, resourceParams);
|
|
5466
5984
|
}
|
|
5467
5985
|
function typeCheckConfig$i(untrustedConfig) {
|
|
5468
5986
|
const config = {};
|
|
5469
|
-
typeCheckConfig$
|
|
5987
|
+
typeCheckConfig$D(untrustedConfig, config, getVisualizations_ConfigPropertyMetadata);
|
|
5470
5988
|
return config;
|
|
5471
5989
|
}
|
|
5472
5990
|
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
@@ -5515,7 +6033,7 @@ function buildNetworkSnapshot$i(luvio, config, options) {
|
|
|
5515
6033
|
});
|
|
5516
6034
|
}
|
|
5517
6035
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
5518
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6036
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
5519
6037
|
}
|
|
5520
6038
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
5521
6039
|
const { luvio, config } = context;
|
|
@@ -5567,7 +6085,7 @@ function createResourceRequest$h(config) {
|
|
|
5567
6085
|
const headers = {};
|
|
5568
6086
|
return {
|
|
5569
6087
|
baseUri: '/services/data/v62.0',
|
|
5570
|
-
basePath: '/
|
|
6088
|
+
basePath: '/tableau/visualizations',
|
|
5571
6089
|
method: 'post',
|
|
5572
6090
|
body: config.body,
|
|
5573
6091
|
urlParams: {},
|
|
@@ -5591,10 +6109,10 @@ const createVisualization_ConfigPropertyMetadata = [
|
|
|
5591
6109
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5592
6110
|
];
|
|
5593
6111
|
const createVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, createVisualization_ConfigPropertyMetadata);
|
|
5594
|
-
const createResourceParams$h = /*#__PURE__*/ createResourceParams$
|
|
6112
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$D(createVisualization_ConfigPropertyMetadata);
|
|
5595
6113
|
function typeCheckConfig$h(untrustedConfig) {
|
|
5596
6114
|
const config = {};
|
|
5597
|
-
typeCheckConfig$
|
|
6115
|
+
typeCheckConfig$D(untrustedConfig, config, createVisualization_ConfigPropertyMetadata);
|
|
5598
6116
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
5599
6117
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
5600
6118
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -5744,7 +6262,7 @@ function createResourceRequest$g(config) {
|
|
|
5744
6262
|
const headers = {};
|
|
5745
6263
|
return {
|
|
5746
6264
|
baseUri: '/services/data/v62.0',
|
|
5747
|
-
basePath: '/
|
|
6265
|
+
basePath: '/tableau/visualizations/' + config.urlParams.visualizationIdOrApiName + '',
|
|
5748
6266
|
method: 'delete',
|
|
5749
6267
|
body: null,
|
|
5750
6268
|
urlParams: config.urlParams,
|
|
@@ -5759,10 +6277,10 @@ const deleteVisualization_ConfigPropertyMetadata = [
|
|
|
5759
6277
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5760
6278
|
];
|
|
5761
6279
|
const deleteVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, deleteVisualization_ConfigPropertyMetadata);
|
|
5762
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
6280
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$D(deleteVisualization_ConfigPropertyMetadata);
|
|
5763
6281
|
function typeCheckConfig$g(untrustedConfig) {
|
|
5764
6282
|
const config = {};
|
|
5765
|
-
typeCheckConfig$
|
|
6283
|
+
typeCheckConfig$D(untrustedConfig, config, deleteVisualization_ConfigPropertyMetadata);
|
|
5766
6284
|
return config;
|
|
5767
6285
|
}
|
|
5768
6286
|
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
@@ -5845,7 +6363,7 @@ function createResourceRequest$f(config) {
|
|
|
5845
6363
|
const headers = {};
|
|
5846
6364
|
return {
|
|
5847
6365
|
baseUri: '/services/data/v62.0',
|
|
5848
|
-
basePath: '/
|
|
6366
|
+
basePath: '/tableau/visualizations/' + config.urlParams.visualizationIdOrApiName + '',
|
|
5849
6367
|
method: 'get',
|
|
5850
6368
|
body: null,
|
|
5851
6369
|
urlParams: config.urlParams,
|
|
@@ -5860,14 +6378,14 @@ const getVisualization_ConfigPropertyMetadata = [
|
|
|
5860
6378
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5861
6379
|
];
|
|
5862
6380
|
const getVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getVisualization_ConfigPropertyMetadata);
|
|
5863
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
6381
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$D(getVisualization_ConfigPropertyMetadata);
|
|
5864
6382
|
function keyBuilder$k(luvio, config) {
|
|
5865
6383
|
const resourceParams = createResourceParams$f(config);
|
|
5866
6384
|
return keyBuilder$l(luvio, resourceParams);
|
|
5867
6385
|
}
|
|
5868
6386
|
function typeCheckConfig$f(untrustedConfig) {
|
|
5869
6387
|
const config = {};
|
|
5870
|
-
typeCheckConfig$
|
|
6388
|
+
typeCheckConfig$D(untrustedConfig, config, getVisualization_ConfigPropertyMetadata);
|
|
5871
6389
|
return config;
|
|
5872
6390
|
}
|
|
5873
6391
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -5916,7 +6434,7 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
5916
6434
|
});
|
|
5917
6435
|
}
|
|
5918
6436
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
5919
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6437
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
5920
6438
|
}
|
|
5921
6439
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
5922
6440
|
const { luvio, config } = context;
|
|
@@ -5968,7 +6486,7 @@ function createResourceRequest$e(config) {
|
|
|
5968
6486
|
const headers = {};
|
|
5969
6487
|
return {
|
|
5970
6488
|
baseUri: '/services/data/v62.0',
|
|
5971
|
-
basePath: '/
|
|
6489
|
+
basePath: '/tableau/visualizations/' + config.urlParams.visualizationIdOrApiName + '',
|
|
5972
6490
|
method: 'patch',
|
|
5973
6491
|
body: config.body,
|
|
5974
6492
|
urlParams: config.urlParams,
|
|
@@ -5993,10 +6511,10 @@ const updateVisualization_ConfigPropertyMetadata = [
|
|
|
5993
6511
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5994
6512
|
];
|
|
5995
6513
|
const updateVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, updateVisualization_ConfigPropertyMetadata);
|
|
5996
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
6514
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$D(updateVisualization_ConfigPropertyMetadata);
|
|
5997
6515
|
function typeCheckConfig$e(untrustedConfig) {
|
|
5998
6516
|
const config = {};
|
|
5999
|
-
typeCheckConfig$
|
|
6517
|
+
typeCheckConfig$D(untrustedConfig, config, updateVisualization_ConfigPropertyMetadata);
|
|
6000
6518
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
6001
6519
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
6002
6520
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -6245,7 +6763,7 @@ function createResourceRequest$d(config) {
|
|
|
6245
6763
|
const headers = {};
|
|
6246
6764
|
return {
|
|
6247
6765
|
baseUri: '/services/data/v62.0',
|
|
6248
|
-
basePath: '/
|
|
6766
|
+
basePath: '/tableau/visualizations/' + config.urlParams.visualizationIdOrApiName + '/bundle',
|
|
6249
6767
|
method: 'get',
|
|
6250
6768
|
body: null,
|
|
6251
6769
|
urlParams: config.urlParams,
|
|
@@ -6260,14 +6778,14 @@ const getVisualizationBundle_ConfigPropertyMetadata = [
|
|
|
6260
6778
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6261
6779
|
];
|
|
6262
6780
|
const getVisualizationBundle_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getVisualizationBundle_ConfigPropertyMetadata);
|
|
6263
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
6781
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$D(getVisualizationBundle_ConfigPropertyMetadata);
|
|
6264
6782
|
function keyBuilder$h(luvio, config) {
|
|
6265
6783
|
const resourceParams = createResourceParams$d(config);
|
|
6266
6784
|
return keyBuilder$i(luvio, resourceParams);
|
|
6267
6785
|
}
|
|
6268
6786
|
function typeCheckConfig$d(untrustedConfig) {
|
|
6269
6787
|
const config = {};
|
|
6270
|
-
typeCheckConfig$
|
|
6788
|
+
typeCheckConfig$D(untrustedConfig, config, getVisualizationBundle_ConfigPropertyMetadata);
|
|
6271
6789
|
return config;
|
|
6272
6790
|
}
|
|
6273
6791
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -6316,7 +6834,7 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
6316
6834
|
});
|
|
6317
6835
|
}
|
|
6318
6836
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
6319
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6837
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
6320
6838
|
}
|
|
6321
6839
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
6322
6840
|
const { luvio, config } = context;
|
|
@@ -6341,20 +6859,15 @@ const getVisualizationBundleAdapterFactory = (luvio) => function UnifiedAnalytic
|
|
|
6341
6859
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
6342
6860
|
};
|
|
6343
6861
|
|
|
6344
|
-
const VERSION$7 = "
|
|
6862
|
+
const VERSION$7 = "1d72d9ce1a25023f80eef5daa23f140e";
|
|
6345
6863
|
function validate$a(obj, path = 'WorkspaceRepresentation') {
|
|
6346
6864
|
const v_error = (() => {
|
|
6347
6865
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6348
6866
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6349
6867
|
}
|
|
6350
|
-
const obj_cacheableKey = obj.cacheableKey;
|
|
6351
|
-
const path_cacheableKey = path + '.cacheableKey';
|
|
6352
|
-
if (typeof obj_cacheableKey !== 'string') {
|
|
6353
|
-
return new TypeError('Expected "string" but received "' + typeof obj_cacheableKey + '" (at "' + path_cacheableKey + '")');
|
|
6354
|
-
}
|
|
6355
6868
|
const obj_createdBy = obj.createdBy;
|
|
6356
6869
|
const path_createdBy = path + '.createdBy';
|
|
6357
|
-
const referencepath_createdByValidationError = validate$
|
|
6870
|
+
const referencepath_createdByValidationError = validate$p(obj_createdBy, path_createdBy);
|
|
6358
6871
|
if (referencepath_createdByValidationError !== null) {
|
|
6359
6872
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
6360
6873
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6415,7 +6928,7 @@ function keyBuilder$g(luvio, config) {
|
|
|
6415
6928
|
}
|
|
6416
6929
|
function keyBuilderFromType$4(luvio, object) {
|
|
6417
6930
|
const keyParams = {
|
|
6418
|
-
name: object.
|
|
6931
|
+
name: object.name
|
|
6419
6932
|
};
|
|
6420
6933
|
return keyBuilder$g(luvio, keyParams);
|
|
6421
6934
|
}
|
|
@@ -6589,7 +7102,7 @@ function createResourceRequest$c(config) {
|
|
|
6589
7102
|
const headers = {};
|
|
6590
7103
|
return {
|
|
6591
7104
|
baseUri: '/services/data/v62.0',
|
|
6592
|
-
basePath: '/
|
|
7105
|
+
basePath: '/tableau/workspaces',
|
|
6593
7106
|
method: 'get',
|
|
6594
7107
|
body: null,
|
|
6595
7108
|
urlParams: {},
|
|
@@ -6605,14 +7118,14 @@ const getWorkspaces_ConfigPropertyMetadata = [
|
|
|
6605
7118
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
6606
7119
|
];
|
|
6607
7120
|
const getWorkspaces_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getWorkspaces_ConfigPropertyMetadata);
|
|
6608
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
7121
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$D(getWorkspaces_ConfigPropertyMetadata);
|
|
6609
7122
|
function keyBuilder$e(luvio, config) {
|
|
6610
7123
|
const resourceParams = createResourceParams$c(config);
|
|
6611
7124
|
return keyBuilder$f(luvio, resourceParams);
|
|
6612
7125
|
}
|
|
6613
7126
|
function typeCheckConfig$c(untrustedConfig) {
|
|
6614
7127
|
const config = {};
|
|
6615
|
-
typeCheckConfig$
|
|
7128
|
+
typeCheckConfig$D(untrustedConfig, config, getWorkspaces_ConfigPropertyMetadata);
|
|
6616
7129
|
return config;
|
|
6617
7130
|
}
|
|
6618
7131
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -6661,7 +7174,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
6661
7174
|
});
|
|
6662
7175
|
}
|
|
6663
7176
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
6664
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7177
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
6665
7178
|
}
|
|
6666
7179
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
6667
7180
|
const { luvio, config } = context;
|
|
@@ -6713,7 +7226,7 @@ function createResourceRequest$b(config) {
|
|
|
6713
7226
|
const headers = {};
|
|
6714
7227
|
return {
|
|
6715
7228
|
baseUri: '/services/data/v62.0',
|
|
6716
|
-
basePath: '/
|
|
7229
|
+
basePath: '/tableau/workspaces',
|
|
6717
7230
|
method: 'post',
|
|
6718
7231
|
body: config.body,
|
|
6719
7232
|
urlParams: {},
|
|
@@ -6731,10 +7244,10 @@ const createWorkspace_ConfigPropertyMetadata = [
|
|
|
6731
7244
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
6732
7245
|
];
|
|
6733
7246
|
const createWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, createWorkspace_ConfigPropertyMetadata);
|
|
6734
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
7247
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$D(createWorkspace_ConfigPropertyMetadata);
|
|
6735
7248
|
function typeCheckConfig$b(untrustedConfig) {
|
|
6736
7249
|
const config = {};
|
|
6737
|
-
typeCheckConfig$
|
|
7250
|
+
typeCheckConfig$D(untrustedConfig, config, createWorkspace_ConfigPropertyMetadata);
|
|
6738
7251
|
return config;
|
|
6739
7252
|
}
|
|
6740
7253
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -6800,7 +7313,7 @@ function createResourceRequest$a(config) {
|
|
|
6800
7313
|
const headers = {};
|
|
6801
7314
|
return {
|
|
6802
7315
|
baseUri: '/services/data/v62.0',
|
|
6803
|
-
basePath: '/
|
|
7316
|
+
basePath: '/tableau/workspaces/' + config.urlParams.workspaceIdOrApiName + '',
|
|
6804
7317
|
method: 'delete',
|
|
6805
7318
|
body: null,
|
|
6806
7319
|
urlParams: config.urlParams,
|
|
@@ -6815,10 +7328,10 @@ const deleteWorkspace_ConfigPropertyMetadata = [
|
|
|
6815
7328
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6816
7329
|
];
|
|
6817
7330
|
const deleteWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, deleteWorkspace_ConfigPropertyMetadata);
|
|
6818
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
7331
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$D(deleteWorkspace_ConfigPropertyMetadata);
|
|
6819
7332
|
function typeCheckConfig$a(untrustedConfig) {
|
|
6820
7333
|
const config = {};
|
|
6821
|
-
typeCheckConfig$
|
|
7334
|
+
typeCheckConfig$D(untrustedConfig, config, deleteWorkspace_ConfigPropertyMetadata);
|
|
6822
7335
|
return config;
|
|
6823
7336
|
}
|
|
6824
7337
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -6901,7 +7414,7 @@ function createResourceRequest$9(config) {
|
|
|
6901
7414
|
const headers = {};
|
|
6902
7415
|
return {
|
|
6903
7416
|
baseUri: '/services/data/v62.0',
|
|
6904
|
-
basePath: '/
|
|
7417
|
+
basePath: '/tableau/workspaces/' + config.urlParams.workspaceIdOrApiName + '',
|
|
6905
7418
|
method: 'get',
|
|
6906
7419
|
body: null,
|
|
6907
7420
|
urlParams: config.urlParams,
|
|
@@ -6916,14 +7429,14 @@ const getWorkspaceByIdOrName_ConfigPropertyMetadata = [
|
|
|
6916
7429
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6917
7430
|
];
|
|
6918
7431
|
const getWorkspaceByIdOrName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
6919
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
7432
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$D(getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
6920
7433
|
function keyBuilder$b(luvio, config) {
|
|
6921
7434
|
const resourceParams = createResourceParams$9(config);
|
|
6922
7435
|
return keyBuilder$c(luvio, resourceParams);
|
|
6923
7436
|
}
|
|
6924
7437
|
function typeCheckConfig$9(untrustedConfig) {
|
|
6925
7438
|
const config = {};
|
|
6926
|
-
typeCheckConfig$
|
|
7439
|
+
typeCheckConfig$D(untrustedConfig, config, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
6927
7440
|
return config;
|
|
6928
7441
|
}
|
|
6929
7442
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -6972,7 +7485,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
6972
7485
|
});
|
|
6973
7486
|
}
|
|
6974
7487
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
6975
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7488
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
6976
7489
|
}
|
|
6977
7490
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
6978
7491
|
const { luvio, config } = context;
|
|
@@ -7024,7 +7537,7 @@ function createResourceRequest$8(config) {
|
|
|
7024
7537
|
const headers = {};
|
|
7025
7538
|
return {
|
|
7026
7539
|
baseUri: '/services/data/v62.0',
|
|
7027
|
-
basePath: '/
|
|
7540
|
+
basePath: '/tableau/workspaces/' + config.urlParams.workspaceIdOrApiName + '',
|
|
7028
7541
|
method: 'patch',
|
|
7029
7542
|
body: config.body,
|
|
7030
7543
|
urlParams: config.urlParams,
|
|
@@ -7043,10 +7556,10 @@ const updateWorkspace_ConfigPropertyMetadata = [
|
|
|
7043
7556
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
7044
7557
|
];
|
|
7045
7558
|
const updateWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, updateWorkspace_ConfigPropertyMetadata);
|
|
7046
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
7559
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$D(updateWorkspace_ConfigPropertyMetadata);
|
|
7047
7560
|
function typeCheckConfig$8(untrustedConfig) {
|
|
7048
7561
|
const config = {};
|
|
7049
|
-
typeCheckConfig$
|
|
7562
|
+
typeCheckConfig$D(untrustedConfig, config, updateWorkspace_ConfigPropertyMetadata);
|
|
7050
7563
|
return config;
|
|
7051
7564
|
}
|
|
7052
7565
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -7114,7 +7627,7 @@ function validate$8(obj, path = 'WorkspaceAssetRepresentation') {
|
|
|
7114
7627
|
}
|
|
7115
7628
|
const obj_createdBy = obj.createdBy;
|
|
7116
7629
|
const path_createdBy = path + '.createdBy';
|
|
7117
|
-
const referencepath_createdByValidationError = validate$
|
|
7630
|
+
const referencepath_createdByValidationError = validate$p(obj_createdBy, path_createdBy);
|
|
7118
7631
|
if (referencepath_createdByValidationError !== null) {
|
|
7119
7632
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
7120
7633
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7209,7 +7722,7 @@ function createResourceRequest$7(config) {
|
|
|
7209
7722
|
const headers = {};
|
|
7210
7723
|
return {
|
|
7211
7724
|
baseUri: '/services/data/v62.0',
|
|
7212
|
-
basePath: '/
|
|
7725
|
+
basePath: '/tableau/workspaces/' + config.urlParams.workspaceIdOrApiName + '/assets',
|
|
7213
7726
|
method: 'post',
|
|
7214
7727
|
body: config.body,
|
|
7215
7728
|
urlParams: config.urlParams,
|
|
@@ -7227,10 +7740,10 @@ const createWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
7227
7740
|
generateParamConfigMetadata('assetUsageType', true, 2 /* Body */, 0 /* String */),
|
|
7228
7741
|
];
|
|
7229
7742
|
const createWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
7230
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
7743
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$D(createWorkspaceAsset_ConfigPropertyMetadata);
|
|
7231
7744
|
function typeCheckConfig$7(untrustedConfig) {
|
|
7232
7745
|
const config = {};
|
|
7233
|
-
typeCheckConfig$
|
|
7746
|
+
typeCheckConfig$D(untrustedConfig, config, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
7234
7747
|
return config;
|
|
7235
7748
|
}
|
|
7236
7749
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -7296,7 +7809,7 @@ function createResourceRequest$6(config) {
|
|
|
7296
7809
|
const headers = {};
|
|
7297
7810
|
return {
|
|
7298
7811
|
baseUri: '/services/data/v62.0',
|
|
7299
|
-
basePath: '/
|
|
7812
|
+
basePath: '/tableau/workspaces/' + config.urlParams.workspaceIdOrApiName + '/assets/' + config.urlParams.assetId + '',
|
|
7300
7813
|
method: 'delete',
|
|
7301
7814
|
body: null,
|
|
7302
7815
|
urlParams: config.urlParams,
|
|
@@ -7312,10 +7825,10 @@ const deleteWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
7312
7825
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7313
7826
|
];
|
|
7314
7827
|
const deleteWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
7315
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
7828
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$D(deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
7316
7829
|
function typeCheckConfig$6(untrustedConfig) {
|
|
7317
7830
|
const config = {};
|
|
7318
|
-
typeCheckConfig$
|
|
7831
|
+
typeCheckConfig$D(untrustedConfig, config, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
7319
7832
|
return config;
|
|
7320
7833
|
}
|
|
7321
7834
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -7683,7 +8196,7 @@ function createResourceRequest$5(config) {
|
|
|
7683
8196
|
const headers = {};
|
|
7684
8197
|
return {
|
|
7685
8198
|
baseUri: '/services/data/v62.0',
|
|
7686
|
-
basePath: '/
|
|
8199
|
+
basePath: '/tableau/flows',
|
|
7687
8200
|
method: 'get',
|
|
7688
8201
|
body: null,
|
|
7689
8202
|
urlParams: {},
|
|
@@ -7699,14 +8212,14 @@ const getFlows_ConfigPropertyMetadata = [
|
|
|
7699
8212
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
7700
8213
|
];
|
|
7701
8214
|
const getFlows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getFlows_ConfigPropertyMetadata);
|
|
7702
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
8215
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$D(getFlows_ConfigPropertyMetadata);
|
|
7703
8216
|
function keyBuilder$7(luvio, config) {
|
|
7704
8217
|
const resourceParams = createResourceParams$5(config);
|
|
7705
8218
|
return keyBuilder$8(luvio, resourceParams);
|
|
7706
8219
|
}
|
|
7707
8220
|
function typeCheckConfig$5(untrustedConfig) {
|
|
7708
8221
|
const config = {};
|
|
7709
|
-
typeCheckConfig$
|
|
8222
|
+
typeCheckConfig$D(untrustedConfig, config, getFlows_ConfigPropertyMetadata);
|
|
7710
8223
|
return config;
|
|
7711
8224
|
}
|
|
7712
8225
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -7755,7 +8268,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
7755
8268
|
});
|
|
7756
8269
|
}
|
|
7757
8270
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
7758
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8271
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
7759
8272
|
}
|
|
7760
8273
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
7761
8274
|
const { luvio, config } = context;
|
|
@@ -7816,7 +8329,7 @@ function createResourceRequest$4(config) {
|
|
|
7816
8329
|
const headers = {};
|
|
7817
8330
|
return {
|
|
7818
8331
|
baseUri: '/services/data/v62.0',
|
|
7819
|
-
basePath: '/
|
|
8332
|
+
basePath: '/tableau/flows/' + config.urlParams.flowApiName + '',
|
|
7820
8333
|
method: 'get',
|
|
7821
8334
|
body: null,
|
|
7822
8335
|
urlParams: config.urlParams,
|
|
@@ -7831,14 +8344,14 @@ const getFlowByName_ConfigPropertyMetadata = [
|
|
|
7831
8344
|
generateParamConfigMetadata('flowApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7832
8345
|
];
|
|
7833
8346
|
const getFlowByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getFlowByName_ConfigPropertyMetadata);
|
|
7834
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
8347
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$D(getFlowByName_ConfigPropertyMetadata);
|
|
7835
8348
|
function keyBuilder$5(luvio, config) {
|
|
7836
8349
|
const resourceParams = createResourceParams$4(config);
|
|
7837
8350
|
return keyBuilder$6(luvio, resourceParams);
|
|
7838
8351
|
}
|
|
7839
8352
|
function typeCheckConfig$4(untrustedConfig) {
|
|
7840
8353
|
const config = {};
|
|
7841
|
-
typeCheckConfig$
|
|
8354
|
+
typeCheckConfig$D(untrustedConfig, config, getFlowByName_ConfigPropertyMetadata);
|
|
7842
8355
|
return config;
|
|
7843
8356
|
}
|
|
7844
8357
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -7887,7 +8400,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
7887
8400
|
});
|
|
7888
8401
|
}
|
|
7889
8402
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
7890
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8403
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
7891
8404
|
}
|
|
7892
8405
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
7893
8406
|
const { luvio, config } = context;
|
|
@@ -8030,7 +8543,7 @@ function createResourceRequest$3(config) {
|
|
|
8030
8543
|
const headers = {};
|
|
8031
8544
|
return {
|
|
8032
8545
|
baseUri: '/services/data/v62.0',
|
|
8033
|
-
basePath: '/
|
|
8546
|
+
basePath: '/tableau/subscriptions/digest/' + config.urlParams.digestConfigOwner + '',
|
|
8034
8547
|
method: 'get',
|
|
8035
8548
|
body: null,
|
|
8036
8549
|
urlParams: config.urlParams,
|
|
@@ -8045,14 +8558,14 @@ const getSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
8045
8558
|
generateParamConfigMetadata('digestConfigOwner', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8046
8559
|
];
|
|
8047
8560
|
const getSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
8048
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
8561
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$D(getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
8049
8562
|
function keyBuilder$2(luvio, config) {
|
|
8050
8563
|
const resourceParams = createResourceParams$3(config);
|
|
8051
8564
|
return keyBuilder$3(luvio, resourceParams);
|
|
8052
8565
|
}
|
|
8053
8566
|
function typeCheckConfig$3(untrustedConfig) {
|
|
8054
8567
|
const config = {};
|
|
8055
|
-
typeCheckConfig$
|
|
8568
|
+
typeCheckConfig$D(untrustedConfig, config, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
8056
8569
|
return config;
|
|
8057
8570
|
}
|
|
8058
8571
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -8101,7 +8614,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
8101
8614
|
});
|
|
8102
8615
|
}
|
|
8103
8616
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
8104
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8617
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
8105
8618
|
}
|
|
8106
8619
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
8107
8620
|
const { luvio, config } = context;
|
|
@@ -8153,7 +8666,7 @@ function createResourceRequest$2(config) {
|
|
|
8153
8666
|
const headers = {};
|
|
8154
8667
|
return {
|
|
8155
8668
|
baseUri: '/services/data/v62.0',
|
|
8156
|
-
basePath: '/
|
|
8669
|
+
basePath: '/tableau/subscriptions/digest/' + config.urlParams.digestConfigOwner + '',
|
|
8157
8670
|
method: 'patch',
|
|
8158
8671
|
body: config.body,
|
|
8159
8672
|
urlParams: config.urlParams,
|
|
@@ -8170,10 +8683,10 @@ const updateSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
8170
8683
|
generateParamConfigMetadata('scheduleType', true, 2 /* Body */, 0 /* String */),
|
|
8171
8684
|
];
|
|
8172
8685
|
const updateSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
8173
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
8686
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$D(updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
8174
8687
|
function typeCheckConfig$2(untrustedConfig) {
|
|
8175
8688
|
const config = {};
|
|
8176
|
-
typeCheckConfig$
|
|
8689
|
+
typeCheckConfig$D(untrustedConfig, config, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
8177
8690
|
return config;
|
|
8178
8691
|
}
|
|
8179
8692
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -8384,7 +8897,7 @@ function createResourceRequest$1(config) {
|
|
|
8384
8897
|
const headers = {};
|
|
8385
8898
|
return {
|
|
8386
8899
|
baseUri: '/services/data/v62.0',
|
|
8387
|
-
basePath: '/
|
|
8900
|
+
basePath: '/tableau/library/assets/query',
|
|
8388
8901
|
method: 'post',
|
|
8389
8902
|
body: config.body,
|
|
8390
8903
|
urlParams: {},
|
|
@@ -8403,7 +8916,7 @@ const getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata = [
|
|
|
8403
8916
|
generateParamConfigMetadata('searchToken', false, 2 /* Body */, 4 /* Unsupported */),
|
|
8404
8917
|
];
|
|
8405
8918
|
const getUnifiedAnalyticsLibraryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
8406
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
8919
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$D(getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
8407
8920
|
function typeCheckConfig$1(untrustedConfig) {
|
|
8408
8921
|
const config = {};
|
|
8409
8922
|
const untrustedConfig_assetTypes = untrustedConfig.assetTypes;
|
|
@@ -8637,10 +9150,10 @@ const generateSFDriveCredentials_ConfigPropertyMetadata = [
|
|
|
8637
9150
|
generateParamConfigMetadata('path', true, 2 /* Body */, 0 /* String */),
|
|
8638
9151
|
];
|
|
8639
9152
|
const generateSFDriveCredentials_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
8640
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
9153
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$D(generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
8641
9154
|
function typeCheckConfig(untrustedConfig) {
|
|
8642
9155
|
const config = {};
|
|
8643
|
-
typeCheckConfig$
|
|
9156
|
+
typeCheckConfig$D(untrustedConfig, config, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
8644
9157
|
return config;
|
|
8645
9158
|
}
|
|
8646
9159
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -8685,4 +9198,4 @@ const generateSFDriveCredentialsAdapterFactory = (luvio) => {
|
|
|
8685
9198
|
};
|
|
8686
9199
|
};
|
|
8687
9200
|
|
|
8688
|
-
export { createAnnotationAdapterFactory, createAssetSlackChannelAdapterFactory, createDashboardAdapterFactory, createLoglinesAdapterFactory, createVisualizationAdapterFactory, createWorkspaceAdapterFactory, createWorkspaceAssetAdapterFactory, deleteDashboardAdapterFactory, deleteVisualizationAdapterFactory, deleteWorkspaceAdapterFactory, deleteWorkspaceAssetAdapterFactory, followAdapterFactory, generateSFDriveCredentialsAdapterFactory, getAnnotationsAdapterFactory, getAssetSlackChannelsAdapterFactory, getDashboardByNameAdapterFactory, getDashboardsAdapterFactory, getFlowByNameAdapterFactory, getFlowsAdapterFactory, getFollowedAssetsAdapterFactory, getFollowersAdapterFactory, getSlackAppInfoAdapterFactory, getSubscriptionDigestConfigAdapterFactory, getUnifiedAnalyticsLibraryAssetsAdapterFactory, getVisualizationAdapterFactory, getVisualizationBundleAdapterFactory, getVisualizationsAdapterFactory, getWorkspaceByIdOrNameAdapterFactory, getWorkspacesAdapterFactory, publishAdapterFactory, queryAssetsAdapterFactory, queryUsersAdapterFactory, unfollowAdapterFactory, updateDashboardAdapterFactory, updateSubscriptionDigestConfigAdapterFactory, updateVisualizationAdapterFactory, updateWorkspaceAdapterFactory };
|
|
9201
|
+
export { createAnnotationAdapterFactory, createAssetSlackChannelAdapterFactory, createDashboardAdapterFactory, createLoglinesAdapterFactory, createVisualizationAdapterFactory, createWorkspaceAdapterFactory, createWorkspaceAssetAdapterFactory, deleteDashboardAdapterFactory, deleteVisualizationAdapterFactory, deleteWorkspaceAdapterFactory, deleteWorkspaceAssetAdapterFactory, followAdapterFactory, generateSFDriveCredentialsAdapterFactory, getAnnotationsAdapterFactory, getAssetSlackChannelsAdapterFactory, getDashboardByNameAdapterFactory, getDashboardsAdapterFactory, getFlowByNameAdapterFactory, getFlowsAdapterFactory, getFollowedAssetsAdapterFactory, getFollowersAdapterFactory, getOrgAdapterFactory, getSlackAppInfoAdapterFactory, getSubscriptionDigestConfigAdapterFactory, getUnifiedAnalyticsLibraryAssetsAdapterFactory, getUniqueFollowerCountAdapterFactory, getVisualizationAdapterFactory, getVisualizationBundleAdapterFactory, getVisualizationsAdapterFactory, getWorkspaceByIdOrNameAdapterFactory, getWorkspacesAdapterFactory, publishAdapterFactory, queryAssetsAdapterFactory, queryUsersAdapterFactory, unfollowAdapterFactory, updateDashboardAdapterFactory, updateSubscriptionDigestConfigAdapterFactory, updateVisualizationAdapterFactory, updateWorkspaceAdapterFactory };
|