@salesforce/lds-adapters-analytics-unifiedanalytics 1.308.0-dev5 → 1.308.0-dev6
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 +1240 -811
- 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/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 +1698 -1249
- package/src/raml/api.raml +78 -5
- 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');
|
|
@@ -1380,7 +1380,7 @@ function validate$x(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1380
1380
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
1381
1381
|
const obj_reactions_item = obj_reactions[i];
|
|
1382
1382
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
1383
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
1383
|
+
const referencepath_reactions_itemValidationError = validate$B(obj_reactions_item, path_reactions_item);
|
|
1384
1384
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
1385
1385
|
let message = 'Object doesn\'t match SlackReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
1386
1386
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1421,7 +1421,7 @@ function validate$x(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1421
1421
|
for (let i = 0; i < obj_replyUsers.length; i++) {
|
|
1422
1422
|
const obj_replyUsers_item = obj_replyUsers[i];
|
|
1423
1423
|
const path_replyUsers_item = path_replyUsers + '[' + i + ']';
|
|
1424
|
-
const referencepath_replyUsers_itemValidationError = validate$
|
|
1424
|
+
const referencepath_replyUsers_itemValidationError = validate$C(obj_replyUsers_item, path_replyUsers_item);
|
|
1425
1425
|
if (referencepath_replyUsers_itemValidationError !== null) {
|
|
1426
1426
|
let message = 'Object doesn\'t match SlackUserInfoOutputRepresentation (at "' + path_replyUsers_item + '")\n';
|
|
1427
1427
|
message += referencepath_replyUsers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1533,7 +1533,7 @@ function validate$x(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1533
1533
|
}
|
|
1534
1534
|
const obj_userInfo = obj.userInfo;
|
|
1535
1535
|
const path_userInfo = path + '.userInfo';
|
|
1536
|
-
const referencepath_userInfoValidationError = validate$
|
|
1536
|
+
const referencepath_userInfoValidationError = validate$C(obj_userInfo, path_userInfo);
|
|
1537
1537
|
if (referencepath_userInfoValidationError !== null) {
|
|
1538
1538
|
let message = 'Object doesn\'t match SlackUserInfoOutputRepresentation (at "' + path_userInfo + '")\n';
|
|
1539
1539
|
message += referencepath_userInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1543,7 +1543,7 @@ function validate$x(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1543
1543
|
return v_error === undefined ? null : v_error;
|
|
1544
1544
|
}
|
|
1545
1545
|
|
|
1546
|
-
function validate$
|
|
1546
|
+
function validate$z(obj, path = 'AnnotationConversationRepresentation') {
|
|
1547
1547
|
const v_error = (() => {
|
|
1548
1548
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1549
1549
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1568,7 +1568,7 @@ function validate$w(obj, path = 'AnnotationConversationRepresentation') {
|
|
|
1568
1568
|
const path_message = path + '.message';
|
|
1569
1569
|
let obj_message_union0 = null;
|
|
1570
1570
|
const obj_message_union0_error = (() => {
|
|
1571
|
-
const referencepath_messageValidationError = validate$
|
|
1571
|
+
const referencepath_messageValidationError = validate$A(obj_message, path_message);
|
|
1572
1572
|
if (referencepath_messageValidationError !== null) {
|
|
1573
1573
|
let message = 'Object doesn\'t match SlackMessageOutputRepresentation (at "' + path_message + '")\n';
|
|
1574
1574
|
message += referencepath_messageValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1603,9 +1603,9 @@ function validate$w(obj, path = 'AnnotationConversationRepresentation') {
|
|
|
1603
1603
|
return v_error === undefined ? null : v_error;
|
|
1604
1604
|
}
|
|
1605
1605
|
|
|
1606
|
-
const TTL$
|
|
1607
|
-
const VERSION$
|
|
1608
|
-
function validate$
|
|
1606
|
+
const TTL$f = 1000;
|
|
1607
|
+
const VERSION$p = "bacc25da56cffff8126d9bdafc471a37";
|
|
1608
|
+
function validate$y(obj, path = 'AnnotationRepresentation') {
|
|
1609
1609
|
const v_error = (() => {
|
|
1610
1610
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1611
1611
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1613,7 +1613,7 @@ function validate$v(obj, path = 'AnnotationRepresentation') {
|
|
|
1613
1613
|
if (obj.anchor !== undefined) {
|
|
1614
1614
|
const obj_anchor = obj.anchor;
|
|
1615
1615
|
const path_anchor = path + '.anchor';
|
|
1616
|
-
const referencepath_anchorValidationError = validate$
|
|
1616
|
+
const referencepath_anchorValidationError = validate$J(obj_anchor, path_anchor);
|
|
1617
1617
|
if (referencepath_anchorValidationError !== null) {
|
|
1618
1618
|
let message = 'Object doesn\'t match DashboardAnnotationAnchorRepresentation (at "' + path_anchor + '")\n';
|
|
1619
1619
|
message += referencepath_anchorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1627,7 +1627,7 @@ function validate$v(obj, path = 'AnnotationRepresentation') {
|
|
|
1627
1627
|
}
|
|
1628
1628
|
const obj_asset = obj.asset;
|
|
1629
1629
|
const path_asset = path + '.asset';
|
|
1630
|
-
const referencepath_assetValidationError = validate$
|
|
1630
|
+
const referencepath_assetValidationError = validate$I(obj_asset, path_asset);
|
|
1631
1631
|
if (referencepath_assetValidationError !== null) {
|
|
1632
1632
|
let message = 'Object doesn\'t match AnnotationAssetRepresentation (at "' + path_asset + '")\n';
|
|
1633
1633
|
message += referencepath_assetValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1635,7 +1635,7 @@ function validate$v(obj, path = 'AnnotationRepresentation') {
|
|
|
1635
1635
|
}
|
|
1636
1636
|
const obj_collaborationObject = obj.collaborationObject;
|
|
1637
1637
|
const path_collaborationObject = path + '.collaborationObject';
|
|
1638
|
-
const referencepath_collaborationObjectValidationError = validate$
|
|
1638
|
+
const referencepath_collaborationObjectValidationError = validate$z(obj_collaborationObject, path_collaborationObject);
|
|
1639
1639
|
if (referencepath_collaborationObjectValidationError !== null) {
|
|
1640
1640
|
let message = 'Object doesn\'t match AnnotationConversationRepresentation (at "' + path_collaborationObject + '")\n';
|
|
1641
1641
|
message += referencepath_collaborationObjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1654,58 +1654,58 @@ function validate$v(obj, path = 'AnnotationRepresentation') {
|
|
|
1654
1654
|
})();
|
|
1655
1655
|
return v_error === undefined ? null : v_error;
|
|
1656
1656
|
}
|
|
1657
|
-
const RepresentationType$
|
|
1658
|
-
function keyBuilder$
|
|
1659
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1657
|
+
const RepresentationType$q = 'AnnotationRepresentation';
|
|
1658
|
+
function keyBuilder$R(luvio, config) {
|
|
1659
|
+
return keyPrefix + '::' + RepresentationType$q + ':' + config.id;
|
|
1660
1660
|
}
|
|
1661
1661
|
function keyBuilderFromType$d(luvio, object) {
|
|
1662
1662
|
const keyParams = {
|
|
1663
1663
|
id: object.id
|
|
1664
1664
|
};
|
|
1665
|
-
return keyBuilder$
|
|
1665
|
+
return keyBuilder$R(luvio, keyParams);
|
|
1666
1666
|
}
|
|
1667
|
-
function normalize$
|
|
1667
|
+
function normalize$p(input, existing, path, luvio, store, timestamp) {
|
|
1668
1668
|
return input;
|
|
1669
1669
|
}
|
|
1670
|
-
const select$
|
|
1670
|
+
const select$W = function AnnotationRepresentationSelect() {
|
|
1671
1671
|
return {
|
|
1672
1672
|
kind: 'Fragment',
|
|
1673
|
-
version: VERSION$
|
|
1673
|
+
version: VERSION$p,
|
|
1674
1674
|
private: [],
|
|
1675
1675
|
opaque: true
|
|
1676
1676
|
};
|
|
1677
1677
|
};
|
|
1678
|
-
function equals$
|
|
1678
|
+
function equals$p(existing, incoming) {
|
|
1679
1679
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1680
1680
|
return false;
|
|
1681
1681
|
}
|
|
1682
1682
|
return true;
|
|
1683
1683
|
}
|
|
1684
|
-
const ingest$
|
|
1684
|
+
const ingest$p = function AnnotationRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1685
1685
|
if (process.env.NODE_ENV !== 'production') {
|
|
1686
|
-
const validateError = validate$
|
|
1686
|
+
const validateError = validate$y(input);
|
|
1687
1687
|
if (validateError !== null) {
|
|
1688
1688
|
throw validateError;
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
1691
|
const key = keyBuilderFromType$d(luvio, input);
|
|
1692
|
-
const ttlToUse = TTL$
|
|
1693
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1692
|
+
const ttlToUse = TTL$f;
|
|
1693
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$p, "UnifiedAnalytics", VERSION$p, RepresentationType$q, equals$p);
|
|
1694
1694
|
return createLink(key);
|
|
1695
1695
|
};
|
|
1696
|
-
function getTypeCacheKeys$
|
|
1696
|
+
function getTypeCacheKeys$p(rootKeySet, luvio, input, fullPathFactory) {
|
|
1697
1697
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1698
1698
|
const rootKey = keyBuilderFromType$d(luvio, input);
|
|
1699
1699
|
rootKeySet.set(rootKey, {
|
|
1700
1700
|
namespace: keyPrefix,
|
|
1701
|
-
representationName: RepresentationType$
|
|
1701
|
+
representationName: RepresentationType$q,
|
|
1702
1702
|
mergeable: false
|
|
1703
1703
|
});
|
|
1704
1704
|
}
|
|
1705
1705
|
|
|
1706
|
-
const TTL$
|
|
1707
|
-
const VERSION$
|
|
1708
|
-
function validate$
|
|
1706
|
+
const TTL$e = 1000;
|
|
1707
|
+
const VERSION$o = "a80c8e970184cc7789e13f69392d6203";
|
|
1708
|
+
function validate$x(obj, path = 'AnnotationCollectionRepresentation') {
|
|
1709
1709
|
const v_error = (() => {
|
|
1710
1710
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1711
1711
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1730,14 +1730,14 @@ function validate$u(obj, path = 'AnnotationCollectionRepresentation') {
|
|
|
1730
1730
|
})();
|
|
1731
1731
|
return v_error === undefined ? null : v_error;
|
|
1732
1732
|
}
|
|
1733
|
-
const RepresentationType$
|
|
1734
|
-
function normalize$
|
|
1733
|
+
const RepresentationType$p = 'AnnotationCollectionRepresentation';
|
|
1734
|
+
function normalize$o(input, existing, path, luvio, store, timestamp) {
|
|
1735
1735
|
const input_annotations = input.annotations;
|
|
1736
1736
|
const input_annotations_id = path.fullPath + '__annotations';
|
|
1737
1737
|
for (let i = 0; i < input_annotations.length; i++) {
|
|
1738
1738
|
const input_annotations_item = input_annotations[i];
|
|
1739
1739
|
let input_annotations_item_id = input_annotations_id + '__' + i;
|
|
1740
|
-
input_annotations[i] = ingest$
|
|
1740
|
+
input_annotations[i] = ingest$p(input_annotations_item, {
|
|
1741
1741
|
fullPath: input_annotations_item_id,
|
|
1742
1742
|
propertyName: i,
|
|
1743
1743
|
parent: {
|
|
@@ -1750,17 +1750,17 @@ function normalize$m(input, existing, path, luvio, store, timestamp) {
|
|
|
1750
1750
|
}
|
|
1751
1751
|
return input;
|
|
1752
1752
|
}
|
|
1753
|
-
const select$
|
|
1753
|
+
const select$V = function AnnotationCollectionRepresentationSelect() {
|
|
1754
1754
|
return {
|
|
1755
1755
|
kind: 'Fragment',
|
|
1756
|
-
version: VERSION$
|
|
1756
|
+
version: VERSION$o,
|
|
1757
1757
|
private: [],
|
|
1758
1758
|
selections: [
|
|
1759
1759
|
{
|
|
1760
1760
|
name: 'annotations',
|
|
1761
1761
|
kind: 'Link',
|
|
1762
1762
|
plural: true,
|
|
1763
|
-
fragment: select$
|
|
1763
|
+
fragment: select$W()
|
|
1764
1764
|
},
|
|
1765
1765
|
{
|
|
1766
1766
|
name: 'total',
|
|
@@ -1769,7 +1769,7 @@ const select$R = function AnnotationCollectionRepresentationSelect() {
|
|
|
1769
1769
|
]
|
|
1770
1770
|
};
|
|
1771
1771
|
};
|
|
1772
|
-
function equals$
|
|
1772
|
+
function equals$o(existing, incoming) {
|
|
1773
1773
|
const existing_total = existing.total;
|
|
1774
1774
|
const incoming_total = incoming.total;
|
|
1775
1775
|
if (!(existing_total === incoming_total)) {
|
|
@@ -1787,48 +1787,48 @@ function equals$m(existing, incoming) {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
return true;
|
|
1789
1789
|
}
|
|
1790
|
-
const ingest$
|
|
1790
|
+
const ingest$o = function AnnotationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1791
1791
|
if (process.env.NODE_ENV !== 'production') {
|
|
1792
|
-
const validateError = validate$
|
|
1792
|
+
const validateError = validate$x(input);
|
|
1793
1793
|
if (validateError !== null) {
|
|
1794
1794
|
throw validateError;
|
|
1795
1795
|
}
|
|
1796
1796
|
}
|
|
1797
1797
|
const key = path.fullPath;
|
|
1798
|
-
const ttlToUse = TTL$
|
|
1799
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1798
|
+
const ttlToUse = TTL$e;
|
|
1799
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$o, "UnifiedAnalytics", VERSION$o, RepresentationType$p, equals$o);
|
|
1800
1800
|
return createLink(key);
|
|
1801
1801
|
};
|
|
1802
|
-
function getTypeCacheKeys$
|
|
1802
|
+
function getTypeCacheKeys$o(rootKeySet, luvio, input, fullPathFactory) {
|
|
1803
1803
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1804
1804
|
const rootKey = fullPathFactory();
|
|
1805
1805
|
rootKeySet.set(rootKey, {
|
|
1806
1806
|
namespace: keyPrefix,
|
|
1807
|
-
representationName: RepresentationType$
|
|
1807
|
+
representationName: RepresentationType$p,
|
|
1808
1808
|
mergeable: false
|
|
1809
1809
|
});
|
|
1810
1810
|
const input_annotations_length = input.annotations.length;
|
|
1811
1811
|
for (let i = 0; i < input_annotations_length; i++) {
|
|
1812
|
-
getTypeCacheKeys$
|
|
1812
|
+
getTypeCacheKeys$p(rootKeySet, luvio, input.annotations[i]);
|
|
1813
1813
|
}
|
|
1814
1814
|
}
|
|
1815
1815
|
|
|
1816
|
-
function select$
|
|
1817
|
-
return select$
|
|
1816
|
+
function select$U(luvio, params) {
|
|
1817
|
+
return select$V();
|
|
1818
1818
|
}
|
|
1819
|
-
function keyBuilder$
|
|
1819
|
+
function keyBuilder$Q(luvio, params) {
|
|
1820
1820
|
return keyPrefix + '::AnnotationCollectionRepresentation:(' + 'assetIds:' + params.queryParams.assetIds + ',' + 'includeTopMessage:' + params.queryParams.includeTopMessage + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'slackAppId:' + params.queryParams.slackAppId + ')';
|
|
1821
1821
|
}
|
|
1822
|
-
function getResponseCacheKeys$
|
|
1823
|
-
getTypeCacheKeys$
|
|
1822
|
+
function getResponseCacheKeys$B(storeKeyMap, luvio, resourceParams, response) {
|
|
1823
|
+
getTypeCacheKeys$o(storeKeyMap, luvio, response, () => keyBuilder$Q(luvio, resourceParams));
|
|
1824
1824
|
}
|
|
1825
|
-
function ingestSuccess$
|
|
1825
|
+
function ingestSuccess$w(luvio, resourceParams, response, snapshotRefresh) {
|
|
1826
1826
|
const { body } = response;
|
|
1827
|
-
const key = keyBuilder$
|
|
1828
|
-
luvio.storeIngest(key, ingest$
|
|
1827
|
+
const key = keyBuilder$Q(luvio, resourceParams);
|
|
1828
|
+
luvio.storeIngest(key, ingest$o, body);
|
|
1829
1829
|
const snapshot = luvio.storeLookup({
|
|
1830
1830
|
recordId: key,
|
|
1831
|
-
node: select$
|
|
1831
|
+
node: select$U(),
|
|
1832
1832
|
variables: {},
|
|
1833
1833
|
}, snapshotRefresh);
|
|
1834
1834
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1839,23 +1839,23 @@ function ingestSuccess$u(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1839
1839
|
deepFreeze(snapshot.data);
|
|
1840
1840
|
return snapshot;
|
|
1841
1841
|
}
|
|
1842
|
-
function ingestError$
|
|
1843
|
-
const key = keyBuilder$
|
|
1842
|
+
function ingestError$g(luvio, params, error, snapshotRefresh) {
|
|
1843
|
+
const key = keyBuilder$Q(luvio, params);
|
|
1844
1844
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1845
1845
|
const storeMetadataParams = {
|
|
1846
|
-
ttl: TTL$
|
|
1846
|
+
ttl: TTL$e,
|
|
1847
1847
|
namespace: keyPrefix,
|
|
1848
|
-
version: VERSION$
|
|
1849
|
-
representationName: RepresentationType$
|
|
1848
|
+
version: VERSION$o,
|
|
1849
|
+
representationName: RepresentationType$p
|
|
1850
1850
|
};
|
|
1851
1851
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1852
1852
|
return errorSnapshot;
|
|
1853
1853
|
}
|
|
1854
|
-
function createResourceRequest$
|
|
1854
|
+
function createResourceRequest$B(config) {
|
|
1855
1855
|
const headers = {};
|
|
1856
1856
|
return {
|
|
1857
1857
|
baseUri: '/services/data/v62.0',
|
|
1858
|
-
basePath: '/
|
|
1858
|
+
basePath: '/tableau/annotations',
|
|
1859
1859
|
method: 'get',
|
|
1860
1860
|
body: null,
|
|
1861
1861
|
urlParams: {},
|
|
@@ -1865,7 +1865,7 @@ function createResourceRequest$z(config) {
|
|
|
1865
1865
|
};
|
|
1866
1866
|
}
|
|
1867
1867
|
|
|
1868
|
-
const adapterName$
|
|
1868
|
+
const adapterName$B = 'getAnnotations';
|
|
1869
1869
|
const getAnnotations_ConfigPropertyMetadata = [
|
|
1870
1870
|
generateParamConfigMetadata('assetIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
1871
1871
|
generateParamConfigMetadata('includeTopMessage', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -1873,101 +1873,101 @@ const getAnnotations_ConfigPropertyMetadata = [
|
|
|
1873
1873
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1874
1874
|
generateParamConfigMetadata('slackAppId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1875
1875
|
];
|
|
1876
|
-
const getAnnotations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1877
|
-
const createResourceParams$
|
|
1878
|
-
function keyBuilder$
|
|
1879
|
-
const resourceParams = createResourceParams$
|
|
1880
|
-
return keyBuilder$
|
|
1876
|
+
const getAnnotations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$B, getAnnotations_ConfigPropertyMetadata);
|
|
1877
|
+
const createResourceParams$B = /*#__PURE__*/ createResourceParams$D(getAnnotations_ConfigPropertyMetadata);
|
|
1878
|
+
function keyBuilder$P(luvio, config) {
|
|
1879
|
+
const resourceParams = createResourceParams$B(config);
|
|
1880
|
+
return keyBuilder$Q(luvio, resourceParams);
|
|
1881
1881
|
}
|
|
1882
|
-
function typeCheckConfig$
|
|
1882
|
+
function typeCheckConfig$B(untrustedConfig) {
|
|
1883
1883
|
const config = {};
|
|
1884
|
-
typeCheckConfig$
|
|
1884
|
+
typeCheckConfig$D(untrustedConfig, config, getAnnotations_ConfigPropertyMetadata);
|
|
1885
1885
|
return config;
|
|
1886
1886
|
}
|
|
1887
|
-
function validateAdapterConfig$
|
|
1887
|
+
function validateAdapterConfig$B(untrustedConfig, configPropertyNames) {
|
|
1888
1888
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1889
1889
|
return null;
|
|
1890
1890
|
}
|
|
1891
1891
|
if (process.env.NODE_ENV !== 'production') {
|
|
1892
1892
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1893
1893
|
}
|
|
1894
|
-
const config = typeCheckConfig$
|
|
1894
|
+
const config = typeCheckConfig$B(untrustedConfig);
|
|
1895
1895
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1896
1896
|
return null;
|
|
1897
1897
|
}
|
|
1898
1898
|
return config;
|
|
1899
1899
|
}
|
|
1900
|
-
function adapterFragment$
|
|
1901
|
-
createResourceParams$
|
|
1902
|
-
return select$
|
|
1900
|
+
function adapterFragment$g(luvio, config) {
|
|
1901
|
+
createResourceParams$B(config);
|
|
1902
|
+
return select$U();
|
|
1903
1903
|
}
|
|
1904
|
-
function onFetchResponseSuccess$
|
|
1905
|
-
const snapshot = ingestSuccess$
|
|
1904
|
+
function onFetchResponseSuccess$g(luvio, config, resourceParams, response) {
|
|
1905
|
+
const snapshot = ingestSuccess$w(luvio, resourceParams, response, {
|
|
1906
1906
|
config,
|
|
1907
|
-
resolve: () => buildNetworkSnapshot$
|
|
1907
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
1908
1908
|
});
|
|
1909
1909
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1910
1910
|
}
|
|
1911
|
-
function onFetchResponseError$
|
|
1912
|
-
const snapshot = ingestError$
|
|
1911
|
+
function onFetchResponseError$g(luvio, config, resourceParams, response) {
|
|
1912
|
+
const snapshot = ingestError$g(luvio, resourceParams, response, {
|
|
1913
1913
|
config,
|
|
1914
|
-
resolve: () => buildNetworkSnapshot$
|
|
1914
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
1915
1915
|
});
|
|
1916
1916
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1917
1917
|
}
|
|
1918
|
-
function buildNetworkSnapshot$
|
|
1919
|
-
const resourceParams = createResourceParams$
|
|
1920
|
-
const request = createResourceRequest$
|
|
1918
|
+
function buildNetworkSnapshot$B(luvio, config, options) {
|
|
1919
|
+
const resourceParams = createResourceParams$B(config);
|
|
1920
|
+
const request = createResourceRequest$B(resourceParams);
|
|
1921
1921
|
return luvio.dispatchResourceRequest(request, options)
|
|
1922
1922
|
.then((response) => {
|
|
1923
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1923
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$g(luvio, config, resourceParams, response), () => {
|
|
1924
1924
|
const cache = new StoreKeyMap();
|
|
1925
|
-
getResponseCacheKeys$
|
|
1925
|
+
getResponseCacheKeys$B(cache, luvio, resourceParams, response.body);
|
|
1926
1926
|
return cache;
|
|
1927
1927
|
});
|
|
1928
1928
|
}, (response) => {
|
|
1929
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1929
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$g(luvio, config, resourceParams, response));
|
|
1930
1930
|
});
|
|
1931
1931
|
}
|
|
1932
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1933
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1932
|
+
function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
|
|
1933
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$B, undefined, false);
|
|
1934
1934
|
}
|
|
1935
|
-
function buildCachedSnapshotCachePolicy$
|
|
1935
|
+
function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
1936
1936
|
const { luvio, config } = context;
|
|
1937
1937
|
const selector = {
|
|
1938
|
-
recordId: keyBuilder$
|
|
1939
|
-
node: adapterFragment$
|
|
1938
|
+
recordId: keyBuilder$P(luvio, config),
|
|
1939
|
+
node: adapterFragment$g(luvio, config),
|
|
1940
1940
|
variables: {},
|
|
1941
1941
|
};
|
|
1942
1942
|
const cacheSnapshot = storeLookup(selector, {
|
|
1943
1943
|
config,
|
|
1944
|
-
resolve: () => buildNetworkSnapshot$
|
|
1944
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
1945
1945
|
});
|
|
1946
1946
|
return cacheSnapshot;
|
|
1947
1947
|
}
|
|
1948
1948
|
const getAnnotationsAdapterFactory = (luvio) => function UnifiedAnalytics__getAnnotations(untrustedConfig, requestContext) {
|
|
1949
|
-
const config = validateAdapterConfig$
|
|
1949
|
+
const config = validateAdapterConfig$B(untrustedConfig, getAnnotations_ConfigPropertyNames);
|
|
1950
1950
|
// Invalid or incomplete config
|
|
1951
1951
|
if (config === null) {
|
|
1952
1952
|
return null;
|
|
1953
1953
|
}
|
|
1954
1954
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1955
|
-
buildCachedSnapshotCachePolicy$
|
|
1955
|
+
buildCachedSnapshotCachePolicy$g, buildNetworkSnapshotCachePolicy$g);
|
|
1956
1956
|
};
|
|
1957
1957
|
|
|
1958
|
-
function select$
|
|
1959
|
-
return select$
|
|
1958
|
+
function select$T(luvio, params) {
|
|
1959
|
+
return select$W();
|
|
1960
1960
|
}
|
|
1961
|
-
function getResponseCacheKeys$
|
|
1962
|
-
getTypeCacheKeys$
|
|
1961
|
+
function getResponseCacheKeys$A(storeKeyMap, luvio, resourceParams, response) {
|
|
1962
|
+
getTypeCacheKeys$p(storeKeyMap, luvio, response);
|
|
1963
1963
|
}
|
|
1964
|
-
function ingestSuccess$
|
|
1964
|
+
function ingestSuccess$v(luvio, resourceParams, response) {
|
|
1965
1965
|
const { body } = response;
|
|
1966
1966
|
const key = keyBuilderFromType$d(luvio, body);
|
|
1967
|
-
luvio.storeIngest(key, ingest$
|
|
1967
|
+
luvio.storeIngest(key, ingest$p, body);
|
|
1968
1968
|
const snapshot = luvio.storeLookup({
|
|
1969
1969
|
recordId: key,
|
|
1970
|
-
node: select$
|
|
1970
|
+
node: select$T(),
|
|
1971
1971
|
variables: {},
|
|
1972
1972
|
});
|
|
1973
1973
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1978,11 +1978,11 @@ function ingestSuccess$t(luvio, resourceParams, response) {
|
|
|
1978
1978
|
deepFreeze(snapshot.data);
|
|
1979
1979
|
return snapshot;
|
|
1980
1980
|
}
|
|
1981
|
-
function createResourceRequest$
|
|
1981
|
+
function createResourceRequest$A(config) {
|
|
1982
1982
|
const headers = {};
|
|
1983
1983
|
return {
|
|
1984
1984
|
baseUri: '/services/data/v62.0',
|
|
1985
|
-
basePath: '/
|
|
1985
|
+
basePath: '/tableau/annotations',
|
|
1986
1986
|
method: 'post',
|
|
1987
1987
|
body: config.body,
|
|
1988
1988
|
urlParams: {},
|
|
@@ -1992,7 +1992,7 @@ function createResourceRequest$y(config) {
|
|
|
1992
1992
|
};
|
|
1993
1993
|
}
|
|
1994
1994
|
|
|
1995
|
-
const adapterName$
|
|
1995
|
+
const adapterName$A = 'createAnnotation';
|
|
1996
1996
|
const createAnnotation_ConfigPropertyMetadata = [
|
|
1997
1997
|
generateParamConfigMetadata('anchor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1998
1998
|
generateParamConfigMetadata('annotationTool', true, 2 /* Body */, 0 /* String */),
|
|
@@ -2001,41 +2001,41 @@ const createAnnotation_ConfigPropertyMetadata = [
|
|
|
2001
2001
|
generateParamConfigMetadata('collaborationObject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2002
2002
|
generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
|
|
2003
2003
|
];
|
|
2004
|
-
const createAnnotation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2005
|
-
const createResourceParams$
|
|
2006
|
-
function typeCheckConfig$
|
|
2004
|
+
const createAnnotation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$A, createAnnotation_ConfigPropertyMetadata);
|
|
2005
|
+
const createResourceParams$A = /*#__PURE__*/ createResourceParams$D(createAnnotation_ConfigPropertyMetadata);
|
|
2006
|
+
function typeCheckConfig$A(untrustedConfig) {
|
|
2007
2007
|
const config = {};
|
|
2008
|
-
typeCheckConfig$
|
|
2008
|
+
typeCheckConfig$D(untrustedConfig, config, createAnnotation_ConfigPropertyMetadata);
|
|
2009
2009
|
const untrustedConfig_anchor = untrustedConfig.anchor;
|
|
2010
2010
|
config.anchor = untrustedConfig_anchor;
|
|
2011
2011
|
const untrustedConfig_collaborationObject = untrustedConfig.collaborationObject;
|
|
2012
2012
|
config.collaborationObject = untrustedConfig_collaborationObject;
|
|
2013
2013
|
return config;
|
|
2014
2014
|
}
|
|
2015
|
-
function validateAdapterConfig$
|
|
2015
|
+
function validateAdapterConfig$A(untrustedConfig, configPropertyNames) {
|
|
2016
2016
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2017
2017
|
return null;
|
|
2018
2018
|
}
|
|
2019
2019
|
if (process.env.NODE_ENV !== 'production') {
|
|
2020
2020
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2021
2021
|
}
|
|
2022
|
-
const config = typeCheckConfig$
|
|
2022
|
+
const config = typeCheckConfig$A(untrustedConfig);
|
|
2023
2023
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2024
2024
|
return null;
|
|
2025
2025
|
}
|
|
2026
2026
|
return config;
|
|
2027
2027
|
}
|
|
2028
|
-
function buildNetworkSnapshot$
|
|
2029
|
-
const resourceParams = createResourceParams$
|
|
2030
|
-
const request = createResourceRequest$
|
|
2028
|
+
function buildNetworkSnapshot$A(luvio, config, options) {
|
|
2029
|
+
const resourceParams = createResourceParams$A(config);
|
|
2030
|
+
const request = createResourceRequest$A(resourceParams);
|
|
2031
2031
|
return luvio.dispatchResourceRequest(request, options)
|
|
2032
2032
|
.then((response) => {
|
|
2033
2033
|
return luvio.handleSuccessResponse(() => {
|
|
2034
|
-
const snapshot = ingestSuccess$
|
|
2034
|
+
const snapshot = ingestSuccess$v(luvio, resourceParams, response);
|
|
2035
2035
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2036
2036
|
}, () => {
|
|
2037
2037
|
const cache = new StoreKeyMap();
|
|
2038
|
-
getResponseCacheKeys$
|
|
2038
|
+
getResponseCacheKeys$A(cache, luvio, resourceParams, response.body);
|
|
2039
2039
|
return cache;
|
|
2040
2040
|
});
|
|
2041
2041
|
}, (response) => {
|
|
@@ -2045,18 +2045,18 @@ function buildNetworkSnapshot$y(luvio, config, options) {
|
|
|
2045
2045
|
}
|
|
2046
2046
|
const createAnnotationAdapterFactory = (luvio) => {
|
|
2047
2047
|
return function createAnnotation(untrustedConfig) {
|
|
2048
|
-
const config = validateAdapterConfig$
|
|
2048
|
+
const config = validateAdapterConfig$A(untrustedConfig, createAnnotation_ConfigPropertyNames);
|
|
2049
2049
|
// Invalid or incomplete config
|
|
2050
2050
|
if (config === null) {
|
|
2051
2051
|
throw new Error('Invalid config for "createAnnotation"');
|
|
2052
2052
|
}
|
|
2053
|
-
return buildNetworkSnapshot$
|
|
2053
|
+
return buildNetworkSnapshot$A(luvio, config);
|
|
2054
2054
|
};
|
|
2055
2055
|
};
|
|
2056
2056
|
|
|
2057
|
-
const TTL$
|
|
2058
|
-
const VERSION$
|
|
2059
|
-
function validate$
|
|
2057
|
+
const TTL$d = 5000;
|
|
2058
|
+
const VERSION$n = "505a83d97fefa7ce68ec6512264b0543";
|
|
2059
|
+
function validate$w(obj, path = 'SlackAppInfoRepresentation') {
|
|
2060
2060
|
const v_error = (() => {
|
|
2061
2061
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2062
2062
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2096,14 +2096,14 @@ function validate$t(obj, path = 'SlackAppInfoRepresentation') {
|
|
|
2096
2096
|
})();
|
|
2097
2097
|
return v_error === undefined ? null : v_error;
|
|
2098
2098
|
}
|
|
2099
|
-
const RepresentationType$
|
|
2100
|
-
function normalize$
|
|
2099
|
+
const RepresentationType$o = 'SlackAppInfoRepresentation';
|
|
2100
|
+
function normalize$n(input, existing, path, luvio, store, timestamp) {
|
|
2101
2101
|
return input;
|
|
2102
2102
|
}
|
|
2103
|
-
const select$
|
|
2103
|
+
const select$S = function SlackAppInfoRepresentationSelect() {
|
|
2104
2104
|
return {
|
|
2105
2105
|
kind: 'Fragment',
|
|
2106
|
-
version: VERSION$
|
|
2106
|
+
version: VERSION$n,
|
|
2107
2107
|
private: [],
|
|
2108
2108
|
selections: [
|
|
2109
2109
|
{
|
|
@@ -2130,7 +2130,7 @@ const select$O = function SlackAppInfoRepresentationSelect() {
|
|
|
2130
2130
|
]
|
|
2131
2131
|
};
|
|
2132
2132
|
};
|
|
2133
|
-
function equals$
|
|
2133
|
+
function equals$n(existing, incoming) {
|
|
2134
2134
|
const existing_isSlackAppAuthorized = existing.isSlackAppAuthorized;
|
|
2135
2135
|
const incoming_isSlackAppAuthorized = incoming.isSlackAppAuthorized;
|
|
2136
2136
|
if (!(existing_isSlackAppAuthorized === incoming_isSlackAppAuthorized)) {
|
|
@@ -2163,44 +2163,44 @@ function equals$l(existing, incoming) {
|
|
|
2163
2163
|
}
|
|
2164
2164
|
return true;
|
|
2165
2165
|
}
|
|
2166
|
-
const ingest$
|
|
2166
|
+
const ingest$n = function SlackAppInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2167
2167
|
if (process.env.NODE_ENV !== 'production') {
|
|
2168
|
-
const validateError = validate$
|
|
2168
|
+
const validateError = validate$w(input);
|
|
2169
2169
|
if (validateError !== null) {
|
|
2170
2170
|
throw validateError;
|
|
2171
2171
|
}
|
|
2172
2172
|
}
|
|
2173
2173
|
const key = path.fullPath;
|
|
2174
|
-
const ttlToUse = TTL$
|
|
2175
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2174
|
+
const ttlToUse = TTL$d;
|
|
2175
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$n, "UnifiedAnalytics", VERSION$n, RepresentationType$o, equals$n);
|
|
2176
2176
|
return createLink(key);
|
|
2177
2177
|
};
|
|
2178
|
-
function getTypeCacheKeys$
|
|
2178
|
+
function getTypeCacheKeys$n(rootKeySet, luvio, input, fullPathFactory) {
|
|
2179
2179
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2180
2180
|
const rootKey = fullPathFactory();
|
|
2181
2181
|
rootKeySet.set(rootKey, {
|
|
2182
2182
|
namespace: keyPrefix,
|
|
2183
|
-
representationName: RepresentationType$
|
|
2183
|
+
representationName: RepresentationType$o,
|
|
2184
2184
|
mergeable: false
|
|
2185
2185
|
});
|
|
2186
2186
|
}
|
|
2187
2187
|
|
|
2188
|
-
function select$
|
|
2189
|
-
return select$
|
|
2188
|
+
function select$R(luvio, params) {
|
|
2189
|
+
return select$S();
|
|
2190
2190
|
}
|
|
2191
|
-
function keyBuilder$
|
|
2191
|
+
function keyBuilder$O(luvio, params) {
|
|
2192
2192
|
return keyPrefix + '::SlackAppInfoRepresentation:(' + ')';
|
|
2193
2193
|
}
|
|
2194
|
-
function getResponseCacheKeys$
|
|
2195
|
-
getTypeCacheKeys$
|
|
2194
|
+
function getResponseCacheKeys$z(storeKeyMap, luvio, resourceParams, response) {
|
|
2195
|
+
getTypeCacheKeys$n(storeKeyMap, luvio, response, () => keyBuilder$O());
|
|
2196
2196
|
}
|
|
2197
|
-
function ingestSuccess$
|
|
2197
|
+
function ingestSuccess$u(luvio, resourceParams, response, snapshotRefresh) {
|
|
2198
2198
|
const { body } = response;
|
|
2199
|
-
const key = keyBuilder$
|
|
2200
|
-
luvio.storeIngest(key, ingest$
|
|
2199
|
+
const key = keyBuilder$O();
|
|
2200
|
+
luvio.storeIngest(key, ingest$n, body);
|
|
2201
2201
|
const snapshot = luvio.storeLookup({
|
|
2202
2202
|
recordId: key,
|
|
2203
|
-
node: select$
|
|
2203
|
+
node: select$R(),
|
|
2204
2204
|
variables: {},
|
|
2205
2205
|
}, snapshotRefresh);
|
|
2206
2206
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2211,23 +2211,23 @@ function ingestSuccess$s(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2211
2211
|
deepFreeze(snapshot.data);
|
|
2212
2212
|
return snapshot;
|
|
2213
2213
|
}
|
|
2214
|
-
function ingestError$
|
|
2215
|
-
const key = keyBuilder$
|
|
2214
|
+
function ingestError$f(luvio, params, error, snapshotRefresh) {
|
|
2215
|
+
const key = keyBuilder$O();
|
|
2216
2216
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2217
2217
|
const storeMetadataParams = {
|
|
2218
|
-
ttl: TTL$
|
|
2218
|
+
ttl: TTL$d,
|
|
2219
2219
|
namespace: keyPrefix,
|
|
2220
|
-
version: VERSION$
|
|
2221
|
-
representationName: RepresentationType$
|
|
2220
|
+
version: VERSION$n,
|
|
2221
|
+
representationName: RepresentationType$o
|
|
2222
2222
|
};
|
|
2223
2223
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2224
2224
|
return errorSnapshot;
|
|
2225
2225
|
}
|
|
2226
|
-
function createResourceRequest$
|
|
2226
|
+
function createResourceRequest$z(config) {
|
|
2227
2227
|
const headers = {};
|
|
2228
2228
|
return {
|
|
2229
2229
|
baseUri: '/services/data/v62.0',
|
|
2230
|
-
basePath: '/
|
|
2230
|
+
basePath: '/tableau/annotations/slack-app-info',
|
|
2231
2231
|
method: 'get',
|
|
2232
2232
|
body: null,
|
|
2233
2233
|
urlParams: {},
|
|
@@ -2237,90 +2237,90 @@ function createResourceRequest$x(config) {
|
|
|
2237
2237
|
};
|
|
2238
2238
|
}
|
|
2239
2239
|
|
|
2240
|
-
const adapterName$
|
|
2240
|
+
const adapterName$z = 'getSlackAppInfo';
|
|
2241
2241
|
const getSlackAppInfo_ConfigPropertyMetadata = [];
|
|
2242
|
-
const getSlackAppInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2243
|
-
const createResourceParams$
|
|
2244
|
-
function keyBuilder$
|
|
2245
|
-
createResourceParams$
|
|
2246
|
-
return keyBuilder$
|
|
2242
|
+
const getSlackAppInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$z, getSlackAppInfo_ConfigPropertyMetadata);
|
|
2243
|
+
const createResourceParams$z = /*#__PURE__*/ createResourceParams$D(getSlackAppInfo_ConfigPropertyMetadata);
|
|
2244
|
+
function keyBuilder$N(luvio, config) {
|
|
2245
|
+
createResourceParams$z(config);
|
|
2246
|
+
return keyBuilder$O();
|
|
2247
2247
|
}
|
|
2248
|
-
function typeCheckConfig$
|
|
2248
|
+
function typeCheckConfig$z(untrustedConfig) {
|
|
2249
2249
|
const config = {};
|
|
2250
2250
|
return config;
|
|
2251
2251
|
}
|
|
2252
|
-
function validateAdapterConfig$
|
|
2252
|
+
function validateAdapterConfig$z(untrustedConfig, configPropertyNames) {
|
|
2253
2253
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2254
2254
|
return null;
|
|
2255
2255
|
}
|
|
2256
2256
|
if (process.env.NODE_ENV !== 'production') {
|
|
2257
2257
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2258
2258
|
}
|
|
2259
|
-
const config = typeCheckConfig$
|
|
2259
|
+
const config = typeCheckConfig$z();
|
|
2260
2260
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2261
2261
|
return null;
|
|
2262
2262
|
}
|
|
2263
2263
|
return config;
|
|
2264
2264
|
}
|
|
2265
|
-
function adapterFragment$
|
|
2266
|
-
createResourceParams$
|
|
2267
|
-
return select$
|
|
2265
|
+
function adapterFragment$f(luvio, config) {
|
|
2266
|
+
createResourceParams$z(config);
|
|
2267
|
+
return select$R();
|
|
2268
2268
|
}
|
|
2269
|
-
function onFetchResponseSuccess$
|
|
2270
|
-
const snapshot = ingestSuccess$
|
|
2269
|
+
function onFetchResponseSuccess$f(luvio, config, resourceParams, response) {
|
|
2270
|
+
const snapshot = ingestSuccess$u(luvio, resourceParams, response, {
|
|
2271
2271
|
config,
|
|
2272
|
-
resolve: () => buildNetworkSnapshot$
|
|
2272
|
+
resolve: () => buildNetworkSnapshot$z(luvio, config, snapshotRefreshOptions)
|
|
2273
2273
|
});
|
|
2274
2274
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2275
2275
|
}
|
|
2276
|
-
function onFetchResponseError$
|
|
2277
|
-
const snapshot = ingestError$
|
|
2276
|
+
function onFetchResponseError$f(luvio, config, resourceParams, response) {
|
|
2277
|
+
const snapshot = ingestError$f(luvio, resourceParams, response, {
|
|
2278
2278
|
config,
|
|
2279
|
-
resolve: () => buildNetworkSnapshot$
|
|
2279
|
+
resolve: () => buildNetworkSnapshot$z(luvio, config, snapshotRefreshOptions)
|
|
2280
2280
|
});
|
|
2281
2281
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2282
2282
|
}
|
|
2283
|
-
function buildNetworkSnapshot$
|
|
2284
|
-
const resourceParams = createResourceParams$
|
|
2285
|
-
const request = createResourceRequest$
|
|
2283
|
+
function buildNetworkSnapshot$z(luvio, config, options) {
|
|
2284
|
+
const resourceParams = createResourceParams$z(config);
|
|
2285
|
+
const request = createResourceRequest$z();
|
|
2286
2286
|
return luvio.dispatchResourceRequest(request, options)
|
|
2287
2287
|
.then((response) => {
|
|
2288
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2288
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$f(luvio, config, resourceParams, response), () => {
|
|
2289
2289
|
const cache = new StoreKeyMap();
|
|
2290
|
-
getResponseCacheKeys$
|
|
2290
|
+
getResponseCacheKeys$z(cache, luvio, resourceParams, response.body);
|
|
2291
2291
|
return cache;
|
|
2292
2292
|
});
|
|
2293
2293
|
}, (response) => {
|
|
2294
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2294
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$f(luvio, config, resourceParams, response));
|
|
2295
2295
|
});
|
|
2296
2296
|
}
|
|
2297
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2298
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2297
|
+
function buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext) {
|
|
2298
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$z, undefined, false);
|
|
2299
2299
|
}
|
|
2300
|
-
function buildCachedSnapshotCachePolicy$
|
|
2300
|
+
function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
|
|
2301
2301
|
const { luvio, config } = context;
|
|
2302
2302
|
const selector = {
|
|
2303
|
-
recordId: keyBuilder$
|
|
2304
|
-
node: adapterFragment$
|
|
2303
|
+
recordId: keyBuilder$N(luvio, config),
|
|
2304
|
+
node: adapterFragment$f(luvio, config),
|
|
2305
2305
|
variables: {},
|
|
2306
2306
|
};
|
|
2307
2307
|
const cacheSnapshot = storeLookup(selector, {
|
|
2308
2308
|
config,
|
|
2309
|
-
resolve: () => buildNetworkSnapshot$
|
|
2309
|
+
resolve: () => buildNetworkSnapshot$z(luvio, config, snapshotRefreshOptions)
|
|
2310
2310
|
});
|
|
2311
2311
|
return cacheSnapshot;
|
|
2312
2312
|
}
|
|
2313
2313
|
const getSlackAppInfoAdapterFactory = (luvio) => function UnifiedAnalytics__getSlackAppInfo(untrustedConfig, requestContext) {
|
|
2314
|
-
const config = validateAdapterConfig$
|
|
2314
|
+
const config = validateAdapterConfig$z(untrustedConfig, getSlackAppInfo_ConfigPropertyNames);
|
|
2315
2315
|
// Invalid or incomplete config
|
|
2316
2316
|
if (config === null) {
|
|
2317
2317
|
return null;
|
|
2318
2318
|
}
|
|
2319
2319
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2320
|
-
buildCachedSnapshotCachePolicy$
|
|
2320
|
+
buildCachedSnapshotCachePolicy$f, buildNetworkSnapshotCachePolicy$f);
|
|
2321
2321
|
};
|
|
2322
2322
|
|
|
2323
|
-
function validate$
|
|
2323
|
+
function validate$v(obj, path = 'BaseAnalyticsRepresentation') {
|
|
2324
2324
|
const v_error = (() => {
|
|
2325
2325
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2326
2326
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2355,8 +2355,8 @@ function validate$s(obj, path = 'BaseAnalyticsRepresentation') {
|
|
|
2355
2355
|
return v_error === undefined ? null : v_error;
|
|
2356
2356
|
}
|
|
2357
2357
|
|
|
2358
|
-
function validate$
|
|
2359
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
2358
|
+
function validate$u(obj, path = 'AnalyticsAssetsQueryResultsWorkspaceRepresentation') {
|
|
2359
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$v(obj, path);
|
|
2360
2360
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
2361
2361
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
2362
2362
|
}
|
|
@@ -2368,8 +2368,8 @@ function validate$r(obj, path = 'AnalyticsAssetsQueryResultsWorkspaceRepresentat
|
|
|
2368
2368
|
return v_error === undefined ? null : v_error;
|
|
2369
2369
|
}
|
|
2370
2370
|
|
|
2371
|
-
function validate$
|
|
2372
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
2371
|
+
function validate$t(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation') {
|
|
2372
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$v(obj, path);
|
|
2373
2373
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
2374
2374
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
2375
2375
|
}
|
|
@@ -2410,7 +2410,7 @@ function validate$q(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation')
|
|
|
2410
2410
|
const path_workspace = path + '.workspace';
|
|
2411
2411
|
let obj_workspace_union0 = null;
|
|
2412
2412
|
const obj_workspace_union0_error = (() => {
|
|
2413
|
-
const referencepath_workspaceValidationError = validate$
|
|
2413
|
+
const referencepath_workspaceValidationError = validate$u(obj_workspace, path_workspace);
|
|
2414
2414
|
if (referencepath_workspaceValidationError !== null) {
|
|
2415
2415
|
let message = 'Object doesn\'t match AnalyticsAssetsQueryResultsWorkspaceRepresentation (at "' + path_workspace + '")\n';
|
|
2416
2416
|
message += referencepath_workspaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2440,9 +2440,9 @@ function validate$q(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation')
|
|
|
2440
2440
|
return v_error === undefined ? null : v_error;
|
|
2441
2441
|
}
|
|
2442
2442
|
|
|
2443
|
-
const TTL$
|
|
2444
|
-
const VERSION$
|
|
2445
|
-
function validate$
|
|
2443
|
+
const TTL$c = 500;
|
|
2444
|
+
const VERSION$m = "ed60d9cca169a3e5ed897c67d11a23db";
|
|
2445
|
+
function validate$s(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
|
|
2446
2446
|
const v_error = (() => {
|
|
2447
2447
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2448
2448
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2455,7 +2455,7 @@ function validate$p(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
|
|
|
2455
2455
|
for (let i = 0; i < obj_items.length; i++) {
|
|
2456
2456
|
const obj_items_item = obj_items[i];
|
|
2457
2457
|
const path_items_item = path_items + '[' + i + ']';
|
|
2458
|
-
const referencepath_items_itemValidationError = validate$
|
|
2458
|
+
const referencepath_items_itemValidationError = validate$t(obj_items_item, path_items_item);
|
|
2459
2459
|
if (referencepath_items_itemValidationError !== null) {
|
|
2460
2460
|
let message = 'Object doesn\'t match AnalyticsAssetsQueryResultsItemRepresentation (at "' + path_items_item + '")\n';
|
|
2461
2461
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2480,68 +2480,68 @@ function validate$p(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
|
|
|
2480
2480
|
})();
|
|
2481
2481
|
return v_error === undefined ? null : v_error;
|
|
2482
2482
|
}
|
|
2483
|
-
const RepresentationType$
|
|
2484
|
-
function keyBuilder$
|
|
2485
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2483
|
+
const RepresentationType$n = 'AnalyticsAssetsQueryResultsRepresentation';
|
|
2484
|
+
function keyBuilder$M(luvio, config) {
|
|
2485
|
+
return keyPrefix + '::' + RepresentationType$n + ':' + config.searchId;
|
|
2486
2486
|
}
|
|
2487
2487
|
function keyBuilderFromType$c(luvio, object) {
|
|
2488
2488
|
const keyParams = {
|
|
2489
2489
|
searchId: object.queryKey
|
|
2490
2490
|
};
|
|
2491
|
-
return keyBuilder$
|
|
2491
|
+
return keyBuilder$M(luvio, keyParams);
|
|
2492
2492
|
}
|
|
2493
|
-
function normalize$
|
|
2493
|
+
function normalize$m(input, existing, path, luvio, store, timestamp) {
|
|
2494
2494
|
return input;
|
|
2495
2495
|
}
|
|
2496
|
-
const select$
|
|
2496
|
+
const select$Q = function AnalyticsAssetsQueryResultsRepresentationSelect() {
|
|
2497
2497
|
return {
|
|
2498
2498
|
kind: 'Fragment',
|
|
2499
|
-
version: VERSION$
|
|
2499
|
+
version: VERSION$m,
|
|
2500
2500
|
private: [],
|
|
2501
2501
|
opaque: true
|
|
2502
2502
|
};
|
|
2503
2503
|
};
|
|
2504
|
-
function equals$
|
|
2504
|
+
function equals$m(existing, incoming) {
|
|
2505
2505
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2506
2506
|
return false;
|
|
2507
2507
|
}
|
|
2508
2508
|
return true;
|
|
2509
2509
|
}
|
|
2510
|
-
const ingest$
|
|
2510
|
+
const ingest$m = function AnalyticsAssetsQueryResultsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2511
2511
|
if (process.env.NODE_ENV !== 'production') {
|
|
2512
|
-
const validateError = validate$
|
|
2512
|
+
const validateError = validate$s(input);
|
|
2513
2513
|
if (validateError !== null) {
|
|
2514
2514
|
throw validateError;
|
|
2515
2515
|
}
|
|
2516
2516
|
}
|
|
2517
2517
|
const key = keyBuilderFromType$c(luvio, input);
|
|
2518
|
-
const ttlToUse = TTL$
|
|
2519
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2518
|
+
const ttlToUse = TTL$c;
|
|
2519
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$m, "UnifiedAnalytics", VERSION$m, RepresentationType$n, equals$m);
|
|
2520
2520
|
return createLink(key);
|
|
2521
2521
|
};
|
|
2522
|
-
function getTypeCacheKeys$
|
|
2522
|
+
function getTypeCacheKeys$m(rootKeySet, luvio, input, fullPathFactory) {
|
|
2523
2523
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2524
2524
|
const rootKey = keyBuilderFromType$c(luvio, input);
|
|
2525
2525
|
rootKeySet.set(rootKey, {
|
|
2526
2526
|
namespace: keyPrefix,
|
|
2527
|
-
representationName: RepresentationType$
|
|
2527
|
+
representationName: RepresentationType$n,
|
|
2528
2528
|
mergeable: false
|
|
2529
2529
|
});
|
|
2530
2530
|
}
|
|
2531
2531
|
|
|
2532
|
-
function select$
|
|
2533
|
-
return select$
|
|
2532
|
+
function select$P(luvio, params) {
|
|
2533
|
+
return select$Q();
|
|
2534
2534
|
}
|
|
2535
|
-
function getResponseCacheKeys$
|
|
2536
|
-
getTypeCacheKeys$
|
|
2535
|
+
function getResponseCacheKeys$y(storeKeyMap, luvio, resourceParams, response) {
|
|
2536
|
+
getTypeCacheKeys$m(storeKeyMap, luvio, response);
|
|
2537
2537
|
}
|
|
2538
|
-
function ingestSuccess$
|
|
2538
|
+
function ingestSuccess$t(luvio, resourceParams, response) {
|
|
2539
2539
|
const { body } = response;
|
|
2540
2540
|
const key = keyBuilderFromType$c(luvio, body);
|
|
2541
|
-
luvio.storeIngest(key, ingest$
|
|
2541
|
+
luvio.storeIngest(key, ingest$m, body);
|
|
2542
2542
|
const snapshot = luvio.storeLookup({
|
|
2543
2543
|
recordId: key,
|
|
2544
|
-
node: select$
|
|
2544
|
+
node: select$P(),
|
|
2545
2545
|
variables: {},
|
|
2546
2546
|
});
|
|
2547
2547
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2552,11 +2552,11 @@ function ingestSuccess$r(luvio, resourceParams, response) {
|
|
|
2552
2552
|
deepFreeze(snapshot.data);
|
|
2553
2553
|
return snapshot;
|
|
2554
2554
|
}
|
|
2555
|
-
function createResourceRequest$
|
|
2555
|
+
function createResourceRequest$y(config) {
|
|
2556
2556
|
const headers = {};
|
|
2557
2557
|
return {
|
|
2558
2558
|
baseUri: '/services/data/v62.0',
|
|
2559
|
-
basePath: '/
|
|
2559
|
+
basePath: '/tableau/assets/query',
|
|
2560
2560
|
method: 'post',
|
|
2561
2561
|
body: config.body,
|
|
2562
2562
|
urlParams: {},
|
|
@@ -2566,7 +2566,7 @@ function createResourceRequest$w(config) {
|
|
|
2566
2566
|
};
|
|
2567
2567
|
}
|
|
2568
2568
|
|
|
2569
|
-
const adapterName$
|
|
2569
|
+
const adapterName$y = 'queryAssets';
|
|
2570
2570
|
const queryAssets_ConfigPropertyMetadata = [
|
|
2571
2571
|
generateParamConfigMetadata('filters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2572
2572
|
generateParamConfigMetadata('limit', false, 2 /* Body */, 3 /* Integer */),
|
|
@@ -2575,11 +2575,11 @@ const queryAssets_ConfigPropertyMetadata = [
|
|
|
2575
2575
|
generateParamConfigMetadata('searchTerm', true, 2 /* Body */, 0 /* String */),
|
|
2576
2576
|
generateParamConfigMetadata('sortDirection', false, 2 /* Body */, 0 /* String */),
|
|
2577
2577
|
];
|
|
2578
|
-
const queryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2579
|
-
const createResourceParams$
|
|
2580
|
-
function typeCheckConfig$
|
|
2578
|
+
const queryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$y, queryAssets_ConfigPropertyMetadata);
|
|
2579
|
+
const createResourceParams$y = /*#__PURE__*/ createResourceParams$D(queryAssets_ConfigPropertyMetadata);
|
|
2580
|
+
function typeCheckConfig$y(untrustedConfig) {
|
|
2581
2581
|
const config = {};
|
|
2582
|
-
typeCheckConfig$
|
|
2582
|
+
typeCheckConfig$D(untrustedConfig, config, queryAssets_ConfigPropertyMetadata);
|
|
2583
2583
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
2584
2584
|
if (untrustedIsObject(untrustedConfig_filters)) {
|
|
2585
2585
|
const untrustedConfig_filters_object = {};
|
|
@@ -2597,30 +2597,30 @@ function typeCheckConfig$w(untrustedConfig) {
|
|
|
2597
2597
|
}
|
|
2598
2598
|
return config;
|
|
2599
2599
|
}
|
|
2600
|
-
function validateAdapterConfig$
|
|
2600
|
+
function validateAdapterConfig$y(untrustedConfig, configPropertyNames) {
|
|
2601
2601
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2602
2602
|
return null;
|
|
2603
2603
|
}
|
|
2604
2604
|
if (process.env.NODE_ENV !== 'production') {
|
|
2605
2605
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2606
2606
|
}
|
|
2607
|
-
const config = typeCheckConfig$
|
|
2607
|
+
const config = typeCheckConfig$y(untrustedConfig);
|
|
2608
2608
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2609
2609
|
return null;
|
|
2610
2610
|
}
|
|
2611
2611
|
return config;
|
|
2612
2612
|
}
|
|
2613
|
-
function buildNetworkSnapshot$
|
|
2614
|
-
const resourceParams = createResourceParams$
|
|
2615
|
-
const request = createResourceRequest$
|
|
2613
|
+
function buildNetworkSnapshot$y(luvio, config, options) {
|
|
2614
|
+
const resourceParams = createResourceParams$y(config);
|
|
2615
|
+
const request = createResourceRequest$y(resourceParams);
|
|
2616
2616
|
return luvio.dispatchResourceRequest(request, options)
|
|
2617
2617
|
.then((response) => {
|
|
2618
2618
|
return luvio.handleSuccessResponse(() => {
|
|
2619
|
-
const snapshot = ingestSuccess$
|
|
2619
|
+
const snapshot = ingestSuccess$t(luvio, resourceParams, response);
|
|
2620
2620
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2621
2621
|
}, () => {
|
|
2622
2622
|
const cache = new StoreKeyMap();
|
|
2623
|
-
getResponseCacheKeys$
|
|
2623
|
+
getResponseCacheKeys$y(cache, luvio, resourceParams, response.body);
|
|
2624
2624
|
return cache;
|
|
2625
2625
|
});
|
|
2626
2626
|
}, (response) => {
|
|
@@ -2630,17 +2630,17 @@ function buildNetworkSnapshot$w(luvio, config, options) {
|
|
|
2630
2630
|
}
|
|
2631
2631
|
const queryAssetsAdapterFactory = (luvio) => {
|
|
2632
2632
|
return function queryAssets(untrustedConfig) {
|
|
2633
|
-
const config = validateAdapterConfig$
|
|
2633
|
+
const config = validateAdapterConfig$y(untrustedConfig, queryAssets_ConfigPropertyNames);
|
|
2634
2634
|
// Invalid or incomplete config
|
|
2635
2635
|
if (config === null) {
|
|
2636
2636
|
throw new Error('Invalid config for "queryAssets"');
|
|
2637
2637
|
}
|
|
2638
|
-
return buildNetworkSnapshot$
|
|
2638
|
+
return buildNetworkSnapshot$y(luvio, config);
|
|
2639
2639
|
};
|
|
2640
2640
|
};
|
|
2641
2641
|
|
|
2642
|
-
const VERSION$
|
|
2643
|
-
function validate$
|
|
2642
|
+
const VERSION$l = "d4e4a9f9b260b72ce8e09fac1746cd21";
|
|
2643
|
+
function validate$r(obj, path = 'DashboardRepresentation') {
|
|
2644
2644
|
const v_error = (() => {
|
|
2645
2645
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2646
2646
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2753,57 +2753,57 @@ function validate$o(obj, path = 'DashboardRepresentation') {
|
|
|
2753
2753
|
})();
|
|
2754
2754
|
return v_error === undefined ? null : v_error;
|
|
2755
2755
|
}
|
|
2756
|
-
const RepresentationType$
|
|
2757
|
-
function keyBuilder$
|
|
2758
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2756
|
+
const RepresentationType$m = 'DashboardRepresentation';
|
|
2757
|
+
function keyBuilder$L(luvio, config) {
|
|
2758
|
+
return keyPrefix + '::' + RepresentationType$m + ':' + config.name;
|
|
2759
2759
|
}
|
|
2760
2760
|
function keyBuilderFromType$b(luvio, object) {
|
|
2761
2761
|
const keyParams = {
|
|
2762
2762
|
name: object.cacheableKey
|
|
2763
2763
|
};
|
|
2764
|
-
return keyBuilder$
|
|
2764
|
+
return keyBuilder$L(luvio, keyParams);
|
|
2765
2765
|
}
|
|
2766
|
-
function normalize$
|
|
2766
|
+
function normalize$l(input, existing, path, luvio, store, timestamp) {
|
|
2767
2767
|
return input;
|
|
2768
2768
|
}
|
|
2769
|
-
const select$
|
|
2769
|
+
const select$O = function DashboardRepresentationSelect() {
|
|
2770
2770
|
return {
|
|
2771
2771
|
kind: 'Fragment',
|
|
2772
|
-
version: VERSION$
|
|
2772
|
+
version: VERSION$l,
|
|
2773
2773
|
private: [],
|
|
2774
2774
|
opaque: true
|
|
2775
2775
|
};
|
|
2776
2776
|
};
|
|
2777
|
-
function equals$
|
|
2777
|
+
function equals$l(existing, incoming) {
|
|
2778
2778
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2779
2779
|
return false;
|
|
2780
2780
|
}
|
|
2781
2781
|
return true;
|
|
2782
2782
|
}
|
|
2783
|
-
const ingest$
|
|
2783
|
+
const ingest$l = function DashboardRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2784
2784
|
if (process.env.NODE_ENV !== 'production') {
|
|
2785
|
-
const validateError = validate$
|
|
2785
|
+
const validateError = validate$r(input);
|
|
2786
2786
|
if (validateError !== null) {
|
|
2787
2787
|
throw validateError;
|
|
2788
2788
|
}
|
|
2789
2789
|
}
|
|
2790
2790
|
const key = keyBuilderFromType$b(luvio, input);
|
|
2791
2791
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2792
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2792
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$l, "UnifiedAnalytics", VERSION$l, RepresentationType$m, equals$l);
|
|
2793
2793
|
return createLink(key);
|
|
2794
2794
|
};
|
|
2795
|
-
function getTypeCacheKeys$
|
|
2795
|
+
function getTypeCacheKeys$l(rootKeySet, luvio, input, fullPathFactory) {
|
|
2796
2796
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2797
2797
|
const rootKey = keyBuilderFromType$b(luvio, input);
|
|
2798
2798
|
rootKeySet.set(rootKey, {
|
|
2799
2799
|
namespace: keyPrefix,
|
|
2800
|
-
representationName: RepresentationType$
|
|
2800
|
+
representationName: RepresentationType$m,
|
|
2801
2801
|
mergeable: false
|
|
2802
2802
|
});
|
|
2803
2803
|
}
|
|
2804
2804
|
|
|
2805
|
-
const VERSION$
|
|
2806
|
-
function validate$
|
|
2805
|
+
const VERSION$k = "962823130e6a9315240ef0e0f0c5f757";
|
|
2806
|
+
function validate$q(obj, path = 'DashboardCollectionRepresentation') {
|
|
2807
2807
|
const v_error = (() => {
|
|
2808
2808
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2809
2809
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2823,14 +2823,14 @@ function validate$n(obj, path = 'DashboardCollectionRepresentation') {
|
|
|
2823
2823
|
})();
|
|
2824
2824
|
return v_error === undefined ? null : v_error;
|
|
2825
2825
|
}
|
|
2826
|
-
const RepresentationType$
|
|
2827
|
-
function normalize$
|
|
2826
|
+
const RepresentationType$l = 'DashboardCollectionRepresentation';
|
|
2827
|
+
function normalize$k(input, existing, path, luvio, store, timestamp) {
|
|
2828
2828
|
const input_dashboards = input.dashboards;
|
|
2829
2829
|
const input_dashboards_id = path.fullPath + '__dashboards';
|
|
2830
2830
|
for (let i = 0; i < input_dashboards.length; i++) {
|
|
2831
2831
|
const input_dashboards_item = input_dashboards[i];
|
|
2832
2832
|
let input_dashboards_item_id = input_dashboards_id + '__' + i;
|
|
2833
|
-
input_dashboards[i] = ingest$
|
|
2833
|
+
input_dashboards[i] = ingest$l(input_dashboards_item, {
|
|
2834
2834
|
fullPath: input_dashboards_item_id,
|
|
2835
2835
|
propertyName: i,
|
|
2836
2836
|
parent: {
|
|
@@ -2843,22 +2843,22 @@ function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
|
2843
2843
|
}
|
|
2844
2844
|
return input;
|
|
2845
2845
|
}
|
|
2846
|
-
const select$
|
|
2846
|
+
const select$N = function DashboardCollectionRepresentationSelect() {
|
|
2847
2847
|
return {
|
|
2848
2848
|
kind: 'Fragment',
|
|
2849
|
-
version: VERSION$
|
|
2849
|
+
version: VERSION$k,
|
|
2850
2850
|
private: [],
|
|
2851
2851
|
selections: [
|
|
2852
2852
|
{
|
|
2853
2853
|
name: 'dashboards',
|
|
2854
2854
|
kind: 'Link',
|
|
2855
2855
|
plural: true,
|
|
2856
|
-
fragment: select$
|
|
2856
|
+
fragment: select$O()
|
|
2857
2857
|
}
|
|
2858
2858
|
]
|
|
2859
2859
|
};
|
|
2860
2860
|
};
|
|
2861
|
-
function equals$
|
|
2861
|
+
function equals$k(existing, incoming) {
|
|
2862
2862
|
const existing_dashboards = existing.dashboards;
|
|
2863
2863
|
const incoming_dashboards = incoming.dashboards;
|
|
2864
2864
|
const equals_dashboards_items = equalsArray(existing_dashboards, incoming_dashboards, (existing_dashboards_item, incoming_dashboards_item) => {
|
|
@@ -2871,48 +2871,48 @@ function equals$i(existing, incoming) {
|
|
|
2871
2871
|
}
|
|
2872
2872
|
return true;
|
|
2873
2873
|
}
|
|
2874
|
-
const ingest$
|
|
2874
|
+
const ingest$k = function DashboardCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2875
2875
|
if (process.env.NODE_ENV !== 'production') {
|
|
2876
|
-
const validateError = validate$
|
|
2876
|
+
const validateError = validate$q(input);
|
|
2877
2877
|
if (validateError !== null) {
|
|
2878
2878
|
throw validateError;
|
|
2879
2879
|
}
|
|
2880
2880
|
}
|
|
2881
2881
|
const key = path.fullPath;
|
|
2882
2882
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2883
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2883
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$k, "UnifiedAnalytics", VERSION$k, RepresentationType$l, equals$k);
|
|
2884
2884
|
return createLink(key);
|
|
2885
2885
|
};
|
|
2886
|
-
function getTypeCacheKeys$
|
|
2886
|
+
function getTypeCacheKeys$k(rootKeySet, luvio, input, fullPathFactory) {
|
|
2887
2887
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2888
2888
|
const rootKey = fullPathFactory();
|
|
2889
2889
|
rootKeySet.set(rootKey, {
|
|
2890
2890
|
namespace: keyPrefix,
|
|
2891
|
-
representationName: RepresentationType$
|
|
2891
|
+
representationName: RepresentationType$l,
|
|
2892
2892
|
mergeable: false
|
|
2893
2893
|
});
|
|
2894
2894
|
const input_dashboards_length = input.dashboards.length;
|
|
2895
2895
|
for (let i = 0; i < input_dashboards_length; i++) {
|
|
2896
|
-
getTypeCacheKeys$
|
|
2896
|
+
getTypeCacheKeys$l(rootKeySet, luvio, input.dashboards[i]);
|
|
2897
2897
|
}
|
|
2898
2898
|
}
|
|
2899
2899
|
|
|
2900
|
-
function select$
|
|
2901
|
-
return select$
|
|
2900
|
+
function select$M(luvio, params) {
|
|
2901
|
+
return select$N();
|
|
2902
2902
|
}
|
|
2903
|
-
function keyBuilder$
|
|
2903
|
+
function keyBuilder$K(luvio, params) {
|
|
2904
2904
|
return keyPrefix + '::DashboardCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
2905
2905
|
}
|
|
2906
|
-
function getResponseCacheKeys$
|
|
2907
|
-
getTypeCacheKeys$
|
|
2906
|
+
function getResponseCacheKeys$x(storeKeyMap, luvio, resourceParams, response) {
|
|
2907
|
+
getTypeCacheKeys$k(storeKeyMap, luvio, response, () => keyBuilder$K(luvio, resourceParams));
|
|
2908
2908
|
}
|
|
2909
|
-
function ingestSuccess$
|
|
2909
|
+
function ingestSuccess$s(luvio, resourceParams, response, snapshotRefresh) {
|
|
2910
2910
|
const { body } = response;
|
|
2911
|
-
const key = keyBuilder$
|
|
2912
|
-
luvio.storeIngest(key, ingest$
|
|
2911
|
+
const key = keyBuilder$K(luvio, resourceParams);
|
|
2912
|
+
luvio.storeIngest(key, ingest$k, body);
|
|
2913
2913
|
const snapshot = luvio.storeLookup({
|
|
2914
2914
|
recordId: key,
|
|
2915
|
-
node: select$
|
|
2915
|
+
node: select$M(),
|
|
2916
2916
|
variables: {},
|
|
2917
2917
|
}, snapshotRefresh);
|
|
2918
2918
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2923,17 +2923,17 @@ function ingestSuccess$q(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2923
2923
|
deepFreeze(snapshot.data);
|
|
2924
2924
|
return snapshot;
|
|
2925
2925
|
}
|
|
2926
|
-
function ingestError$
|
|
2927
|
-
const key = keyBuilder$
|
|
2926
|
+
function ingestError$e(luvio, params, error, snapshotRefresh) {
|
|
2927
|
+
const key = keyBuilder$K(luvio, params);
|
|
2928
2928
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2929
2929
|
luvio.storeIngestError(key, errorSnapshot);
|
|
2930
2930
|
return errorSnapshot;
|
|
2931
2931
|
}
|
|
2932
|
-
function createResourceRequest$
|
|
2932
|
+
function createResourceRequest$x(config) {
|
|
2933
2933
|
const headers = {};
|
|
2934
2934
|
return {
|
|
2935
2935
|
baseUri: '/services/data/v62.0',
|
|
2936
|
-
basePath: '/
|
|
2936
|
+
basePath: '/tableau/dashboards',
|
|
2937
2937
|
method: 'get',
|
|
2938
2938
|
body: null,
|
|
2939
2939
|
urlParams: {},
|
|
@@ -2943,106 +2943,106 @@ function createResourceRequest$v(config) {
|
|
|
2943
2943
|
};
|
|
2944
2944
|
}
|
|
2945
2945
|
|
|
2946
|
-
const adapterName$
|
|
2946
|
+
const adapterName$x = 'getDashboards';
|
|
2947
2947
|
const getDashboards_ConfigPropertyMetadata = [
|
|
2948
2948
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2949
2949
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2950
2950
|
];
|
|
2951
|
-
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2952
|
-
const createResourceParams$
|
|
2953
|
-
function keyBuilder$
|
|
2954
|
-
const resourceParams = createResourceParams$
|
|
2955
|
-
return keyBuilder$
|
|
2951
|
+
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$x, getDashboards_ConfigPropertyMetadata);
|
|
2952
|
+
const createResourceParams$x = /*#__PURE__*/ createResourceParams$D(getDashboards_ConfigPropertyMetadata);
|
|
2953
|
+
function keyBuilder$J(luvio, config) {
|
|
2954
|
+
const resourceParams = createResourceParams$x(config);
|
|
2955
|
+
return keyBuilder$K(luvio, resourceParams);
|
|
2956
2956
|
}
|
|
2957
|
-
function typeCheckConfig$
|
|
2957
|
+
function typeCheckConfig$x(untrustedConfig) {
|
|
2958
2958
|
const config = {};
|
|
2959
|
-
typeCheckConfig$
|
|
2959
|
+
typeCheckConfig$D(untrustedConfig, config, getDashboards_ConfigPropertyMetadata);
|
|
2960
2960
|
return config;
|
|
2961
2961
|
}
|
|
2962
|
-
function validateAdapterConfig$
|
|
2962
|
+
function validateAdapterConfig$x(untrustedConfig, configPropertyNames) {
|
|
2963
2963
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2964
2964
|
return null;
|
|
2965
2965
|
}
|
|
2966
2966
|
if (process.env.NODE_ENV !== 'production') {
|
|
2967
2967
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2968
2968
|
}
|
|
2969
|
-
const config = typeCheckConfig$
|
|
2969
|
+
const config = typeCheckConfig$x(untrustedConfig);
|
|
2970
2970
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2971
2971
|
return null;
|
|
2972
2972
|
}
|
|
2973
2973
|
return config;
|
|
2974
2974
|
}
|
|
2975
|
-
function adapterFragment$
|
|
2976
|
-
createResourceParams$
|
|
2977
|
-
return select$
|
|
2975
|
+
function adapterFragment$e(luvio, config) {
|
|
2976
|
+
createResourceParams$x(config);
|
|
2977
|
+
return select$M();
|
|
2978
2978
|
}
|
|
2979
|
-
function onFetchResponseSuccess$
|
|
2980
|
-
const snapshot = ingestSuccess$
|
|
2979
|
+
function onFetchResponseSuccess$e(luvio, config, resourceParams, response) {
|
|
2980
|
+
const snapshot = ingestSuccess$s(luvio, resourceParams, response, {
|
|
2981
2981
|
config,
|
|
2982
|
-
resolve: () => buildNetworkSnapshot$
|
|
2982
|
+
resolve: () => buildNetworkSnapshot$x(luvio, config, snapshotRefreshOptions)
|
|
2983
2983
|
});
|
|
2984
2984
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2985
2985
|
}
|
|
2986
|
-
function onFetchResponseError$
|
|
2987
|
-
const snapshot = ingestError$
|
|
2986
|
+
function onFetchResponseError$e(luvio, config, resourceParams, response) {
|
|
2987
|
+
const snapshot = ingestError$e(luvio, resourceParams, response, {
|
|
2988
2988
|
config,
|
|
2989
|
-
resolve: () => buildNetworkSnapshot$
|
|
2989
|
+
resolve: () => buildNetworkSnapshot$x(luvio, config, snapshotRefreshOptions)
|
|
2990
2990
|
});
|
|
2991
2991
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2992
2992
|
}
|
|
2993
|
-
function buildNetworkSnapshot$
|
|
2994
|
-
const resourceParams = createResourceParams$
|
|
2995
|
-
const request = createResourceRequest$
|
|
2993
|
+
function buildNetworkSnapshot$x(luvio, config, options) {
|
|
2994
|
+
const resourceParams = createResourceParams$x(config);
|
|
2995
|
+
const request = createResourceRequest$x(resourceParams);
|
|
2996
2996
|
return luvio.dispatchResourceRequest(request, options)
|
|
2997
2997
|
.then((response) => {
|
|
2998
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2998
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$e(luvio, config, resourceParams, response), () => {
|
|
2999
2999
|
const cache = new StoreKeyMap();
|
|
3000
|
-
getResponseCacheKeys$
|
|
3000
|
+
getResponseCacheKeys$x(cache, luvio, resourceParams, response.body);
|
|
3001
3001
|
return cache;
|
|
3002
3002
|
});
|
|
3003
3003
|
}, (response) => {
|
|
3004
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3004
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$e(luvio, config, resourceParams, response));
|
|
3005
3005
|
});
|
|
3006
3006
|
}
|
|
3007
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3008
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3007
|
+
function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
|
|
3008
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$x, undefined, false);
|
|
3009
3009
|
}
|
|
3010
|
-
function buildCachedSnapshotCachePolicy$
|
|
3010
|
+
function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
|
|
3011
3011
|
const { luvio, config } = context;
|
|
3012
3012
|
const selector = {
|
|
3013
|
-
recordId: keyBuilder$
|
|
3014
|
-
node: adapterFragment$
|
|
3013
|
+
recordId: keyBuilder$J(luvio, config),
|
|
3014
|
+
node: adapterFragment$e(luvio, config),
|
|
3015
3015
|
variables: {},
|
|
3016
3016
|
};
|
|
3017
3017
|
const cacheSnapshot = storeLookup(selector, {
|
|
3018
3018
|
config,
|
|
3019
|
-
resolve: () => buildNetworkSnapshot$
|
|
3019
|
+
resolve: () => buildNetworkSnapshot$x(luvio, config, snapshotRefreshOptions)
|
|
3020
3020
|
});
|
|
3021
3021
|
return cacheSnapshot;
|
|
3022
3022
|
}
|
|
3023
3023
|
const getDashboardsAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboards(untrustedConfig, requestContext) {
|
|
3024
|
-
const config = validateAdapterConfig$
|
|
3024
|
+
const config = validateAdapterConfig$x(untrustedConfig, getDashboards_ConfigPropertyNames);
|
|
3025
3025
|
// Invalid or incomplete config
|
|
3026
3026
|
if (config === null) {
|
|
3027
3027
|
return null;
|
|
3028
3028
|
}
|
|
3029
3029
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3030
|
-
buildCachedSnapshotCachePolicy$
|
|
3030
|
+
buildCachedSnapshotCachePolicy$e, buildNetworkSnapshotCachePolicy$e);
|
|
3031
3031
|
};
|
|
3032
3032
|
|
|
3033
|
-
function select$
|
|
3034
|
-
return select$
|
|
3033
|
+
function select$L(luvio, params) {
|
|
3034
|
+
return select$O();
|
|
3035
3035
|
}
|
|
3036
|
-
function getResponseCacheKeys$
|
|
3037
|
-
getTypeCacheKeys$
|
|
3036
|
+
function getResponseCacheKeys$w(storeKeyMap, luvio, resourceParams, response) {
|
|
3037
|
+
getTypeCacheKeys$l(storeKeyMap, luvio, response);
|
|
3038
3038
|
}
|
|
3039
|
-
function ingestSuccess$
|
|
3039
|
+
function ingestSuccess$r(luvio, resourceParams, response) {
|
|
3040
3040
|
const { body } = response;
|
|
3041
3041
|
const key = keyBuilderFromType$b(luvio, body);
|
|
3042
|
-
luvio.storeIngest(key, ingest$
|
|
3042
|
+
luvio.storeIngest(key, ingest$l, body);
|
|
3043
3043
|
const snapshot = luvio.storeLookup({
|
|
3044
3044
|
recordId: key,
|
|
3045
|
-
node: select$
|
|
3045
|
+
node: select$L(),
|
|
3046
3046
|
variables: {},
|
|
3047
3047
|
});
|
|
3048
3048
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3053,11 +3053,11 @@ function ingestSuccess$p(luvio, resourceParams, response) {
|
|
|
3053
3053
|
deepFreeze(snapshot.data);
|
|
3054
3054
|
return snapshot;
|
|
3055
3055
|
}
|
|
3056
|
-
function createResourceRequest$
|
|
3056
|
+
function createResourceRequest$w(config) {
|
|
3057
3057
|
const headers = {};
|
|
3058
3058
|
return {
|
|
3059
3059
|
baseUri: '/services/data/v62.0',
|
|
3060
|
-
basePath: '/
|
|
3060
|
+
basePath: '/tableau/dashboards',
|
|
3061
3061
|
method: 'post',
|
|
3062
3062
|
body: config.body,
|
|
3063
3063
|
urlParams: {},
|
|
@@ -3067,7 +3067,7 @@ function createResourceRequest$u(config) {
|
|
|
3067
3067
|
};
|
|
3068
3068
|
}
|
|
3069
3069
|
|
|
3070
|
-
const adapterName$
|
|
3070
|
+
const adapterName$w = 'createDashboard';
|
|
3071
3071
|
const createDashboard_ConfigPropertyMetadata = [
|
|
3072
3072
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
3073
3073
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
@@ -3078,11 +3078,11 @@ const createDashboard_ConfigPropertyMetadata = [
|
|
|
3078
3078
|
generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3079
3079
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3080
3080
|
];
|
|
3081
|
-
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3082
|
-
const createResourceParams$
|
|
3083
|
-
function typeCheckConfig$
|
|
3081
|
+
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$w, createDashboard_ConfigPropertyMetadata);
|
|
3082
|
+
const createResourceParams$w = /*#__PURE__*/ createResourceParams$D(createDashboard_ConfigPropertyMetadata);
|
|
3083
|
+
function typeCheckConfig$w(untrustedConfig) {
|
|
3084
3084
|
const config = {};
|
|
3085
|
-
typeCheckConfig$
|
|
3085
|
+
typeCheckConfig$D(untrustedConfig, config, createDashboard_ConfigPropertyMetadata);
|
|
3086
3086
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
3087
3087
|
if (ArrayIsArray$1(untrustedConfig_layouts)) {
|
|
3088
3088
|
const untrustedConfig_layouts_array = [];
|
|
@@ -3124,30 +3124,30 @@ function typeCheckConfig$u(untrustedConfig) {
|
|
|
3124
3124
|
}
|
|
3125
3125
|
return config;
|
|
3126
3126
|
}
|
|
3127
|
-
function validateAdapterConfig$
|
|
3127
|
+
function validateAdapterConfig$w(untrustedConfig, configPropertyNames) {
|
|
3128
3128
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3129
3129
|
return null;
|
|
3130
3130
|
}
|
|
3131
3131
|
if (process.env.NODE_ENV !== 'production') {
|
|
3132
3132
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3133
3133
|
}
|
|
3134
|
-
const config = typeCheckConfig$
|
|
3134
|
+
const config = typeCheckConfig$w(untrustedConfig);
|
|
3135
3135
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3136
3136
|
return null;
|
|
3137
3137
|
}
|
|
3138
3138
|
return config;
|
|
3139
3139
|
}
|
|
3140
|
-
function buildNetworkSnapshot$
|
|
3141
|
-
const resourceParams = createResourceParams$
|
|
3142
|
-
const request = createResourceRequest$
|
|
3140
|
+
function buildNetworkSnapshot$w(luvio, config, options) {
|
|
3141
|
+
const resourceParams = createResourceParams$w(config);
|
|
3142
|
+
const request = createResourceRequest$w(resourceParams);
|
|
3143
3143
|
return luvio.dispatchResourceRequest(request, options)
|
|
3144
3144
|
.then((response) => {
|
|
3145
3145
|
return luvio.handleSuccessResponse(() => {
|
|
3146
|
-
const snapshot = ingestSuccess$
|
|
3146
|
+
const snapshot = ingestSuccess$r(luvio, resourceParams, response);
|
|
3147
3147
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3148
3148
|
}, () => {
|
|
3149
3149
|
const cache = new StoreKeyMap();
|
|
3150
|
-
getResponseCacheKeys$
|
|
3150
|
+
getResponseCacheKeys$w(cache, luvio, resourceParams, response.body);
|
|
3151
3151
|
return cache;
|
|
3152
3152
|
});
|
|
3153
3153
|
}, (response) => {
|
|
@@ -3157,37 +3157,37 @@ function buildNetworkSnapshot$u(luvio, config, options) {
|
|
|
3157
3157
|
}
|
|
3158
3158
|
const createDashboardAdapterFactory = (luvio) => {
|
|
3159
3159
|
return function createDashboard(untrustedConfig) {
|
|
3160
|
-
const config = validateAdapterConfig$
|
|
3160
|
+
const config = validateAdapterConfig$w(untrustedConfig, createDashboard_ConfigPropertyNames);
|
|
3161
3161
|
// Invalid or incomplete config
|
|
3162
3162
|
if (config === null) {
|
|
3163
3163
|
throw new Error('Invalid config for "createDashboard"');
|
|
3164
3164
|
}
|
|
3165
|
-
return buildNetworkSnapshot$
|
|
3165
|
+
return buildNetworkSnapshot$w(luvio, config);
|
|
3166
3166
|
};
|
|
3167
3167
|
};
|
|
3168
3168
|
|
|
3169
|
-
function keyBuilder$
|
|
3170
|
-
return keyBuilder$
|
|
3169
|
+
function keyBuilder$I(luvio, params) {
|
|
3170
|
+
return keyBuilder$L(luvio, {
|
|
3171
3171
|
name: params.urlParams.dashboardIdOrApiName
|
|
3172
3172
|
});
|
|
3173
3173
|
}
|
|
3174
|
-
function getResponseCacheKeys$
|
|
3175
|
-
const key = keyBuilder$
|
|
3174
|
+
function getResponseCacheKeys$v(cacheKeyMap, luvio, resourceParams) {
|
|
3175
|
+
const key = keyBuilder$I(luvio, resourceParams);
|
|
3176
3176
|
cacheKeyMap.set(key, {
|
|
3177
3177
|
namespace: keyPrefix,
|
|
3178
|
-
representationName: RepresentationType$
|
|
3178
|
+
representationName: RepresentationType$m,
|
|
3179
3179
|
mergeable: false
|
|
3180
3180
|
});
|
|
3181
3181
|
}
|
|
3182
3182
|
function evictSuccess$4(luvio, resourceParams) {
|
|
3183
|
-
const key = keyBuilder$
|
|
3183
|
+
const key = keyBuilder$I(luvio, resourceParams);
|
|
3184
3184
|
luvio.storeEvict(key);
|
|
3185
3185
|
}
|
|
3186
|
-
function createResourceRequest$
|
|
3186
|
+
function createResourceRequest$v(config) {
|
|
3187
3187
|
const headers = {};
|
|
3188
3188
|
return {
|
|
3189
3189
|
baseUri: '/services/data/v62.0',
|
|
3190
|
-
basePath: '/
|
|
3190
|
+
basePath: '/tableau/dashboards/' + config.urlParams.dashboardIdOrApiName + '',
|
|
3191
3191
|
method: 'delete',
|
|
3192
3192
|
body: null,
|
|
3193
3193
|
urlParams: config.urlParams,
|
|
@@ -3197,33 +3197,33 @@ function createResourceRequest$t(config) {
|
|
|
3197
3197
|
};
|
|
3198
3198
|
}
|
|
3199
3199
|
|
|
3200
|
-
const adapterName$
|
|
3200
|
+
const adapterName$v = 'deleteDashboard';
|
|
3201
3201
|
const deleteDashboard_ConfigPropertyMetadata = [
|
|
3202
3202
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3203
3203
|
];
|
|
3204
|
-
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3205
|
-
const createResourceParams$
|
|
3206
|
-
function typeCheckConfig$
|
|
3204
|
+
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$v, deleteDashboard_ConfigPropertyMetadata);
|
|
3205
|
+
const createResourceParams$v = /*#__PURE__*/ createResourceParams$D(deleteDashboard_ConfigPropertyMetadata);
|
|
3206
|
+
function typeCheckConfig$v(untrustedConfig) {
|
|
3207
3207
|
const config = {};
|
|
3208
|
-
typeCheckConfig$
|
|
3208
|
+
typeCheckConfig$D(untrustedConfig, config, deleteDashboard_ConfigPropertyMetadata);
|
|
3209
3209
|
return config;
|
|
3210
3210
|
}
|
|
3211
|
-
function validateAdapterConfig$
|
|
3211
|
+
function validateAdapterConfig$v(untrustedConfig, configPropertyNames) {
|
|
3212
3212
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3213
3213
|
return null;
|
|
3214
3214
|
}
|
|
3215
3215
|
if (process.env.NODE_ENV !== 'production') {
|
|
3216
3216
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3217
3217
|
}
|
|
3218
|
-
const config = typeCheckConfig$
|
|
3218
|
+
const config = typeCheckConfig$v(untrustedConfig);
|
|
3219
3219
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3220
3220
|
return null;
|
|
3221
3221
|
}
|
|
3222
3222
|
return config;
|
|
3223
3223
|
}
|
|
3224
|
-
function buildNetworkSnapshot$
|
|
3225
|
-
const resourceParams = createResourceParams$
|
|
3226
|
-
const request = createResourceRequest$
|
|
3224
|
+
function buildNetworkSnapshot$v(luvio, config, options) {
|
|
3225
|
+
const resourceParams = createResourceParams$v(config);
|
|
3226
|
+
const request = createResourceRequest$v(resourceParams);
|
|
3227
3227
|
return luvio.dispatchResourceRequest(request, options)
|
|
3228
3228
|
.then(() => {
|
|
3229
3229
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -3231,7 +3231,7 @@ function buildNetworkSnapshot$t(luvio, config, options) {
|
|
|
3231
3231
|
return luvio.storeBroadcast();
|
|
3232
3232
|
}, () => {
|
|
3233
3233
|
const cache = new StoreKeyMap();
|
|
3234
|
-
getResponseCacheKeys$
|
|
3234
|
+
getResponseCacheKeys$v(cache, luvio, resourceParams);
|
|
3235
3235
|
return cache;
|
|
3236
3236
|
});
|
|
3237
3237
|
}, (response) => {
|
|
@@ -3241,33 +3241,33 @@ function buildNetworkSnapshot$t(luvio, config, options) {
|
|
|
3241
3241
|
}
|
|
3242
3242
|
const deleteDashboardAdapterFactory = (luvio) => {
|
|
3243
3243
|
return function UnifiedAnalyticsdeleteDashboard(untrustedConfig) {
|
|
3244
|
-
const config = validateAdapterConfig$
|
|
3244
|
+
const config = validateAdapterConfig$v(untrustedConfig, deleteDashboard_ConfigPropertyNames);
|
|
3245
3245
|
// Invalid or incomplete config
|
|
3246
3246
|
if (config === null) {
|
|
3247
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
3247
|
+
throw new Error(`Invalid config for "${adapterName$v}"`);
|
|
3248
3248
|
}
|
|
3249
|
-
return buildNetworkSnapshot$
|
|
3249
|
+
return buildNetworkSnapshot$v(luvio, config);
|
|
3250
3250
|
};
|
|
3251
3251
|
};
|
|
3252
3252
|
|
|
3253
|
-
function select$
|
|
3254
|
-
return select$
|
|
3253
|
+
function select$K(luvio, params) {
|
|
3254
|
+
return select$O();
|
|
3255
3255
|
}
|
|
3256
|
-
function keyBuilder$
|
|
3257
|
-
return keyBuilder$
|
|
3256
|
+
function keyBuilder$H(luvio, params) {
|
|
3257
|
+
return keyBuilder$L(luvio, {
|
|
3258
3258
|
name: params.urlParams.dashboardIdOrApiName
|
|
3259
3259
|
});
|
|
3260
3260
|
}
|
|
3261
|
-
function getResponseCacheKeys$
|
|
3262
|
-
getTypeCacheKeys$
|
|
3261
|
+
function getResponseCacheKeys$u(storeKeyMap, luvio, resourceParams, response) {
|
|
3262
|
+
getTypeCacheKeys$l(storeKeyMap, luvio, response);
|
|
3263
3263
|
}
|
|
3264
|
-
function ingestSuccess$
|
|
3264
|
+
function ingestSuccess$q(luvio, resourceParams, response, snapshotRefresh) {
|
|
3265
3265
|
const { body } = response;
|
|
3266
|
-
const key = keyBuilder$
|
|
3267
|
-
luvio.storeIngest(key, ingest$
|
|
3266
|
+
const key = keyBuilder$H(luvio, resourceParams);
|
|
3267
|
+
luvio.storeIngest(key, ingest$l, body);
|
|
3268
3268
|
const snapshot = luvio.storeLookup({
|
|
3269
3269
|
recordId: key,
|
|
3270
|
-
node: select$
|
|
3270
|
+
node: select$K(),
|
|
3271
3271
|
variables: {},
|
|
3272
3272
|
}, snapshotRefresh);
|
|
3273
3273
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3278,17 +3278,17 @@ function ingestSuccess$o(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3278
3278
|
deepFreeze(snapshot.data);
|
|
3279
3279
|
return snapshot;
|
|
3280
3280
|
}
|
|
3281
|
-
function ingestError$
|
|
3282
|
-
const key = keyBuilder$
|
|
3281
|
+
function ingestError$d(luvio, params, error, snapshotRefresh) {
|
|
3282
|
+
const key = keyBuilder$H(luvio, params);
|
|
3283
3283
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3284
3284
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3285
3285
|
return errorSnapshot;
|
|
3286
3286
|
}
|
|
3287
|
-
function createResourceRequest$
|
|
3287
|
+
function createResourceRequest$u(config) {
|
|
3288
3288
|
const headers = {};
|
|
3289
3289
|
return {
|
|
3290
3290
|
baseUri: '/services/data/v62.0',
|
|
3291
|
-
basePath: '/
|
|
3291
|
+
basePath: '/tableau/dashboards/' + config.urlParams.dashboardIdOrApiName + '',
|
|
3292
3292
|
method: 'get',
|
|
3293
3293
|
body: null,
|
|
3294
3294
|
urlParams: config.urlParams,
|
|
@@ -3298,105 +3298,105 @@ function createResourceRequest$s(config) {
|
|
|
3298
3298
|
};
|
|
3299
3299
|
}
|
|
3300
3300
|
|
|
3301
|
-
const adapterName$
|
|
3301
|
+
const adapterName$u = 'getDashboardByName';
|
|
3302
3302
|
const getDashboardByName_ConfigPropertyMetadata = [
|
|
3303
3303
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3304
3304
|
];
|
|
3305
|
-
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3306
|
-
const createResourceParams$
|
|
3307
|
-
function keyBuilder$
|
|
3308
|
-
const resourceParams = createResourceParams$
|
|
3309
|
-
return keyBuilder$
|
|
3305
|
+
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$u, getDashboardByName_ConfigPropertyMetadata);
|
|
3306
|
+
const createResourceParams$u = /*#__PURE__*/ createResourceParams$D(getDashboardByName_ConfigPropertyMetadata);
|
|
3307
|
+
function keyBuilder$G(luvio, config) {
|
|
3308
|
+
const resourceParams = createResourceParams$u(config);
|
|
3309
|
+
return keyBuilder$H(luvio, resourceParams);
|
|
3310
3310
|
}
|
|
3311
|
-
function typeCheckConfig$
|
|
3311
|
+
function typeCheckConfig$u(untrustedConfig) {
|
|
3312
3312
|
const config = {};
|
|
3313
|
-
typeCheckConfig$
|
|
3313
|
+
typeCheckConfig$D(untrustedConfig, config, getDashboardByName_ConfigPropertyMetadata);
|
|
3314
3314
|
return config;
|
|
3315
3315
|
}
|
|
3316
|
-
function validateAdapterConfig$
|
|
3316
|
+
function validateAdapterConfig$u(untrustedConfig, configPropertyNames) {
|
|
3317
3317
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3318
3318
|
return null;
|
|
3319
3319
|
}
|
|
3320
3320
|
if (process.env.NODE_ENV !== 'production') {
|
|
3321
3321
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3322
3322
|
}
|
|
3323
|
-
const config = typeCheckConfig$
|
|
3323
|
+
const config = typeCheckConfig$u(untrustedConfig);
|
|
3324
3324
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3325
3325
|
return null;
|
|
3326
3326
|
}
|
|
3327
3327
|
return config;
|
|
3328
3328
|
}
|
|
3329
|
-
function adapterFragment$
|
|
3330
|
-
createResourceParams$
|
|
3331
|
-
return select$
|
|
3329
|
+
function adapterFragment$d(luvio, config) {
|
|
3330
|
+
createResourceParams$u(config);
|
|
3331
|
+
return select$K();
|
|
3332
3332
|
}
|
|
3333
|
-
function onFetchResponseSuccess$
|
|
3334
|
-
const snapshot = ingestSuccess$
|
|
3333
|
+
function onFetchResponseSuccess$d(luvio, config, resourceParams, response) {
|
|
3334
|
+
const snapshot = ingestSuccess$q(luvio, resourceParams, response, {
|
|
3335
3335
|
config,
|
|
3336
|
-
resolve: () => buildNetworkSnapshot$
|
|
3336
|
+
resolve: () => buildNetworkSnapshot$u(luvio, config, snapshotRefreshOptions)
|
|
3337
3337
|
});
|
|
3338
3338
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3339
3339
|
}
|
|
3340
|
-
function onFetchResponseError$
|
|
3341
|
-
const snapshot = ingestError$
|
|
3340
|
+
function onFetchResponseError$d(luvio, config, resourceParams, response) {
|
|
3341
|
+
const snapshot = ingestError$d(luvio, resourceParams, response, {
|
|
3342
3342
|
config,
|
|
3343
|
-
resolve: () => buildNetworkSnapshot$
|
|
3343
|
+
resolve: () => buildNetworkSnapshot$u(luvio, config, snapshotRefreshOptions)
|
|
3344
3344
|
});
|
|
3345
3345
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3346
3346
|
}
|
|
3347
|
-
function buildNetworkSnapshot$
|
|
3348
|
-
const resourceParams = createResourceParams$
|
|
3349
|
-
const request = createResourceRequest$
|
|
3347
|
+
function buildNetworkSnapshot$u(luvio, config, options) {
|
|
3348
|
+
const resourceParams = createResourceParams$u(config);
|
|
3349
|
+
const request = createResourceRequest$u(resourceParams);
|
|
3350
3350
|
return luvio.dispatchResourceRequest(request, options)
|
|
3351
3351
|
.then((response) => {
|
|
3352
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3352
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$d(luvio, config, resourceParams, response), () => {
|
|
3353
3353
|
const cache = new StoreKeyMap();
|
|
3354
|
-
getResponseCacheKeys$
|
|
3354
|
+
getResponseCacheKeys$u(cache, luvio, resourceParams, response.body);
|
|
3355
3355
|
return cache;
|
|
3356
3356
|
});
|
|
3357
3357
|
}, (response) => {
|
|
3358
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3358
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$d(luvio, config, resourceParams, response));
|
|
3359
3359
|
});
|
|
3360
3360
|
}
|
|
3361
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3362
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3361
|
+
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
3362
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$u, undefined, false);
|
|
3363
3363
|
}
|
|
3364
|
-
function buildCachedSnapshotCachePolicy$
|
|
3364
|
+
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
3365
3365
|
const { luvio, config } = context;
|
|
3366
3366
|
const selector = {
|
|
3367
|
-
recordId: keyBuilder$
|
|
3368
|
-
node: adapterFragment$
|
|
3367
|
+
recordId: keyBuilder$G(luvio, config),
|
|
3368
|
+
node: adapterFragment$d(luvio, config),
|
|
3369
3369
|
variables: {},
|
|
3370
3370
|
};
|
|
3371
3371
|
const cacheSnapshot = storeLookup(selector, {
|
|
3372
3372
|
config,
|
|
3373
|
-
resolve: () => buildNetworkSnapshot$
|
|
3373
|
+
resolve: () => buildNetworkSnapshot$u(luvio, config, snapshotRefreshOptions)
|
|
3374
3374
|
});
|
|
3375
3375
|
return cacheSnapshot;
|
|
3376
3376
|
}
|
|
3377
3377
|
const getDashboardByNameAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboardByName(untrustedConfig, requestContext) {
|
|
3378
|
-
const config = validateAdapterConfig$
|
|
3378
|
+
const config = validateAdapterConfig$u(untrustedConfig, getDashboardByName_ConfigPropertyNames);
|
|
3379
3379
|
// Invalid or incomplete config
|
|
3380
3380
|
if (config === null) {
|
|
3381
3381
|
return null;
|
|
3382
3382
|
}
|
|
3383
3383
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3384
|
-
buildCachedSnapshotCachePolicy$
|
|
3384
|
+
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
|
|
3385
3385
|
};
|
|
3386
3386
|
|
|
3387
|
-
function select$
|
|
3388
|
-
return select$
|
|
3387
|
+
function select$J(luvio, params) {
|
|
3388
|
+
return select$O();
|
|
3389
3389
|
}
|
|
3390
|
-
function getResponseCacheKeys$
|
|
3391
|
-
getTypeCacheKeys$
|
|
3390
|
+
function getResponseCacheKeys$t(storeKeyMap, luvio, resourceParams, response) {
|
|
3391
|
+
getTypeCacheKeys$l(storeKeyMap, luvio, response);
|
|
3392
3392
|
}
|
|
3393
|
-
function ingestSuccess$
|
|
3393
|
+
function ingestSuccess$p(luvio, resourceParams, response) {
|
|
3394
3394
|
const { body } = response;
|
|
3395
3395
|
const key = keyBuilderFromType$b(luvio, body);
|
|
3396
|
-
luvio.storeIngest(key, ingest$
|
|
3396
|
+
luvio.storeIngest(key, ingest$l, body);
|
|
3397
3397
|
const snapshot = luvio.storeLookup({
|
|
3398
3398
|
recordId: key,
|
|
3399
|
-
node: select$
|
|
3399
|
+
node: select$J(),
|
|
3400
3400
|
variables: {},
|
|
3401
3401
|
});
|
|
3402
3402
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3407,11 +3407,11 @@ function ingestSuccess$n(luvio, resourceParams, response) {
|
|
|
3407
3407
|
deepFreeze(snapshot.data);
|
|
3408
3408
|
return snapshot;
|
|
3409
3409
|
}
|
|
3410
|
-
function createResourceRequest$
|
|
3410
|
+
function createResourceRequest$t(config) {
|
|
3411
3411
|
const headers = {};
|
|
3412
3412
|
return {
|
|
3413
3413
|
baseUri: '/services/data/v62.0',
|
|
3414
|
-
basePath: '/
|
|
3414
|
+
basePath: '/tableau/dashboards/' + config.urlParams.dashboardIdOrApiName + '',
|
|
3415
3415
|
method: 'patch',
|
|
3416
3416
|
body: config.body,
|
|
3417
3417
|
urlParams: config.urlParams,
|
|
@@ -3421,7 +3421,7 @@ function createResourceRequest$r(config) {
|
|
|
3421
3421
|
};
|
|
3422
3422
|
}
|
|
3423
3423
|
|
|
3424
|
-
const adapterName$
|
|
3424
|
+
const adapterName$t = 'updateDashboard';
|
|
3425
3425
|
const updateDashboard_ConfigPropertyMetadata = [
|
|
3426
3426
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3427
3427
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -3433,11 +3433,11 @@ const updateDashboard_ConfigPropertyMetadata = [
|
|
|
3433
3433
|
generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3434
3434
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3435
3435
|
];
|
|
3436
|
-
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3437
|
-
const createResourceParams$
|
|
3438
|
-
function typeCheckConfig$
|
|
3436
|
+
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, updateDashboard_ConfigPropertyMetadata);
|
|
3437
|
+
const createResourceParams$t = /*#__PURE__*/ createResourceParams$D(updateDashboard_ConfigPropertyMetadata);
|
|
3438
|
+
function typeCheckConfig$t(untrustedConfig) {
|
|
3439
3439
|
const config = {};
|
|
3440
|
-
typeCheckConfig$
|
|
3440
|
+
typeCheckConfig$D(untrustedConfig, config, updateDashboard_ConfigPropertyMetadata);
|
|
3441
3441
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
3442
3442
|
if (ArrayIsArray$1(untrustedConfig_layouts)) {
|
|
3443
3443
|
const untrustedConfig_layouts_array = [];
|
|
@@ -3479,30 +3479,30 @@ function typeCheckConfig$r(untrustedConfig) {
|
|
|
3479
3479
|
}
|
|
3480
3480
|
return config;
|
|
3481
3481
|
}
|
|
3482
|
-
function validateAdapterConfig$
|
|
3482
|
+
function validateAdapterConfig$t(untrustedConfig, configPropertyNames) {
|
|
3483
3483
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3484
3484
|
return null;
|
|
3485
3485
|
}
|
|
3486
3486
|
if (process.env.NODE_ENV !== 'production') {
|
|
3487
3487
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3488
3488
|
}
|
|
3489
|
-
const config = typeCheckConfig$
|
|
3489
|
+
const config = typeCheckConfig$t(untrustedConfig);
|
|
3490
3490
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3491
3491
|
return null;
|
|
3492
3492
|
}
|
|
3493
3493
|
return config;
|
|
3494
3494
|
}
|
|
3495
|
-
function buildNetworkSnapshot$
|
|
3496
|
-
const resourceParams = createResourceParams$
|
|
3497
|
-
const request = createResourceRequest$
|
|
3495
|
+
function buildNetworkSnapshot$t(luvio, config, options) {
|
|
3496
|
+
const resourceParams = createResourceParams$t(config);
|
|
3497
|
+
const request = createResourceRequest$t(resourceParams);
|
|
3498
3498
|
return luvio.dispatchResourceRequest(request, options)
|
|
3499
3499
|
.then((response) => {
|
|
3500
3500
|
return luvio.handleSuccessResponse(() => {
|
|
3501
|
-
const snapshot = ingestSuccess$
|
|
3501
|
+
const snapshot = ingestSuccess$p(luvio, resourceParams, response);
|
|
3502
3502
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3503
3503
|
}, () => {
|
|
3504
3504
|
const cache = new StoreKeyMap();
|
|
3505
|
-
getResponseCacheKeys$
|
|
3505
|
+
getResponseCacheKeys$t(cache, luvio, resourceParams, response.body);
|
|
3506
3506
|
return cache;
|
|
3507
3507
|
});
|
|
3508
3508
|
}, (response) => {
|
|
@@ -3512,17 +3512,17 @@ function buildNetworkSnapshot$r(luvio, config, options) {
|
|
|
3512
3512
|
}
|
|
3513
3513
|
const updateDashboardAdapterFactory = (luvio) => {
|
|
3514
3514
|
return function updateDashboard(untrustedConfig) {
|
|
3515
|
-
const config = validateAdapterConfig$
|
|
3515
|
+
const config = validateAdapterConfig$t(untrustedConfig, updateDashboard_ConfigPropertyNames);
|
|
3516
3516
|
// Invalid or incomplete config
|
|
3517
3517
|
if (config === null) {
|
|
3518
3518
|
throw new Error('Invalid config for "updateDashboard"');
|
|
3519
3519
|
}
|
|
3520
|
-
return buildNetworkSnapshot$
|
|
3520
|
+
return buildNetworkSnapshot$t(luvio, config);
|
|
3521
3521
|
};
|
|
3522
3522
|
};
|
|
3523
3523
|
|
|
3524
|
-
function validate$
|
|
3525
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
3524
|
+
function validate$p(obj, path = 'AnalyticsUserRepresentation') {
|
|
3525
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$v(obj, path);
|
|
3526
3526
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
3527
3527
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
3528
3528
|
}
|
|
@@ -3562,16 +3562,16 @@ function validate$m(obj, path = 'AnalyticsUserRepresentation') {
|
|
|
3562
3562
|
return v_error === undefined ? null : v_error;
|
|
3563
3563
|
}
|
|
3564
3564
|
|
|
3565
|
-
const TTL$
|
|
3566
|
-
const VERSION$
|
|
3567
|
-
function validate$
|
|
3565
|
+
const TTL$b = 500;
|
|
3566
|
+
const VERSION$j = "9a4f1166e92aab266ef84b910ef0c322";
|
|
3567
|
+
function validate$o(obj, path = 'FollowerAssetRepresentation') {
|
|
3568
3568
|
const v_error = (() => {
|
|
3569
3569
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3570
3570
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3571
3571
|
}
|
|
3572
3572
|
const obj_createdBy = obj.createdBy;
|
|
3573
3573
|
const path_createdBy = path + '.createdBy';
|
|
3574
|
-
const referencepath_createdByValidationError = validate$
|
|
3574
|
+
const referencepath_createdByValidationError = validate$p(obj_createdBy, path_createdBy);
|
|
3575
3575
|
if (referencepath_createdByValidationError !== null) {
|
|
3576
3576
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
3577
3577
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3605,68 +3605,68 @@ function validate$l(obj, path = 'FollowerAssetRepresentation') {
|
|
|
3605
3605
|
})();
|
|
3606
3606
|
return v_error === undefined ? null : v_error;
|
|
3607
3607
|
}
|
|
3608
|
-
const RepresentationType$
|
|
3609
|
-
function keyBuilder$
|
|
3610
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3608
|
+
const RepresentationType$k = 'FollowerAssetRepresentation';
|
|
3609
|
+
function keyBuilder$F(luvio, config) {
|
|
3610
|
+
return keyPrefix + '::' + RepresentationType$k + ':' + config.followerId;
|
|
3611
3611
|
}
|
|
3612
3612
|
function keyBuilderFromType$a(luvio, object) {
|
|
3613
3613
|
const keyParams = {
|
|
3614
3614
|
followerId: object.followerId
|
|
3615
3615
|
};
|
|
3616
|
-
return keyBuilder$
|
|
3616
|
+
return keyBuilder$F(luvio, keyParams);
|
|
3617
3617
|
}
|
|
3618
|
-
function normalize$
|
|
3618
|
+
function normalize$j(input, existing, path, luvio, store, timestamp) {
|
|
3619
3619
|
return input;
|
|
3620
3620
|
}
|
|
3621
|
-
const select$
|
|
3621
|
+
const select$I = function FollowerAssetRepresentationSelect() {
|
|
3622
3622
|
return {
|
|
3623
3623
|
kind: 'Fragment',
|
|
3624
|
-
version: VERSION$
|
|
3624
|
+
version: VERSION$j,
|
|
3625
3625
|
private: [],
|
|
3626
3626
|
opaque: true
|
|
3627
3627
|
};
|
|
3628
3628
|
};
|
|
3629
|
-
function equals$
|
|
3629
|
+
function equals$j(existing, incoming) {
|
|
3630
3630
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3631
3631
|
return false;
|
|
3632
3632
|
}
|
|
3633
3633
|
return true;
|
|
3634
3634
|
}
|
|
3635
|
-
const ingest$
|
|
3635
|
+
const ingest$j = function FollowerAssetRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3636
3636
|
if (process.env.NODE_ENV !== 'production') {
|
|
3637
|
-
const validateError = validate$
|
|
3637
|
+
const validateError = validate$o(input);
|
|
3638
3638
|
if (validateError !== null) {
|
|
3639
3639
|
throw validateError;
|
|
3640
3640
|
}
|
|
3641
3641
|
}
|
|
3642
3642
|
const key = keyBuilderFromType$a(luvio, input);
|
|
3643
|
-
const ttlToUse = TTL$
|
|
3644
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3643
|
+
const ttlToUse = TTL$b;
|
|
3644
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$j, "UnifiedAnalytics", VERSION$j, RepresentationType$k, equals$j);
|
|
3645
3645
|
return createLink(key);
|
|
3646
3646
|
};
|
|
3647
|
-
function getTypeCacheKeys$
|
|
3647
|
+
function getTypeCacheKeys$j(rootKeySet, luvio, input, fullPathFactory) {
|
|
3648
3648
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3649
3649
|
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
3650
3650
|
rootKeySet.set(rootKey, {
|
|
3651
3651
|
namespace: keyPrefix,
|
|
3652
|
-
representationName: RepresentationType$
|
|
3652
|
+
representationName: RepresentationType$k,
|
|
3653
3653
|
mergeable: false
|
|
3654
3654
|
});
|
|
3655
3655
|
}
|
|
3656
3656
|
|
|
3657
|
-
function select$
|
|
3658
|
-
return select$
|
|
3657
|
+
function select$H(luvio, params) {
|
|
3658
|
+
return select$I();
|
|
3659
3659
|
}
|
|
3660
|
-
function getResponseCacheKeys$
|
|
3661
|
-
getTypeCacheKeys$
|
|
3660
|
+
function getResponseCacheKeys$s(storeKeyMap, luvio, resourceParams, response) {
|
|
3661
|
+
getTypeCacheKeys$j(storeKeyMap, luvio, response);
|
|
3662
3662
|
}
|
|
3663
|
-
function ingestSuccess$
|
|
3663
|
+
function ingestSuccess$o(luvio, resourceParams, response) {
|
|
3664
3664
|
const { body } = response;
|
|
3665
3665
|
const key = keyBuilderFromType$a(luvio, body);
|
|
3666
|
-
luvio.storeIngest(key, ingest$
|
|
3666
|
+
luvio.storeIngest(key, ingest$j, body);
|
|
3667
3667
|
const snapshot = luvio.storeLookup({
|
|
3668
3668
|
recordId: key,
|
|
3669
|
-
node: select$
|
|
3669
|
+
node: select$H(),
|
|
3670
3670
|
variables: {},
|
|
3671
3671
|
});
|
|
3672
3672
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3677,11 +3677,11 @@ function ingestSuccess$m(luvio, resourceParams, response) {
|
|
|
3677
3677
|
deepFreeze(snapshot.data);
|
|
3678
3678
|
return snapshot;
|
|
3679
3679
|
}
|
|
3680
|
-
function createResourceRequest$
|
|
3680
|
+
function createResourceRequest$s(config) {
|
|
3681
3681
|
const headers = {};
|
|
3682
3682
|
return {
|
|
3683
3683
|
baseUri: '/services/data/v62.0',
|
|
3684
|
-
basePath: '/
|
|
3684
|
+
basePath: '/tableau/follow/followers/' + config.urlParams.followerId + '/follows',
|
|
3685
3685
|
method: 'post',
|
|
3686
3686
|
body: config.body,
|
|
3687
3687
|
urlParams: config.urlParams,
|
|
@@ -3691,44 +3691,44 @@ function createResourceRequest$q(config) {
|
|
|
3691
3691
|
};
|
|
3692
3692
|
}
|
|
3693
3693
|
|
|
3694
|
-
const adapterName$
|
|
3694
|
+
const adapterName$s = 'follow';
|
|
3695
3695
|
const follow_ConfigPropertyMetadata = [
|
|
3696
3696
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3697
3697
|
generateParamConfigMetadata('assetId', true, 2 /* Body */, 0 /* String */),
|
|
3698
3698
|
generateParamConfigMetadata('assetType', true, 2 /* Body */, 0 /* String */),
|
|
3699
3699
|
generateParamConfigMetadata('followerType', true, 2 /* Body */, 0 /* String */),
|
|
3700
3700
|
];
|
|
3701
|
-
const follow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3702
|
-
const createResourceParams$
|
|
3703
|
-
function typeCheckConfig$
|
|
3701
|
+
const follow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$s, follow_ConfigPropertyMetadata);
|
|
3702
|
+
const createResourceParams$s = /*#__PURE__*/ createResourceParams$D(follow_ConfigPropertyMetadata);
|
|
3703
|
+
function typeCheckConfig$s(untrustedConfig) {
|
|
3704
3704
|
const config = {};
|
|
3705
|
-
typeCheckConfig$
|
|
3705
|
+
typeCheckConfig$D(untrustedConfig, config, follow_ConfigPropertyMetadata);
|
|
3706
3706
|
return config;
|
|
3707
3707
|
}
|
|
3708
|
-
function validateAdapterConfig$
|
|
3708
|
+
function validateAdapterConfig$s(untrustedConfig, configPropertyNames) {
|
|
3709
3709
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3710
3710
|
return null;
|
|
3711
3711
|
}
|
|
3712
3712
|
if (process.env.NODE_ENV !== 'production') {
|
|
3713
3713
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3714
3714
|
}
|
|
3715
|
-
const config = typeCheckConfig$
|
|
3715
|
+
const config = typeCheckConfig$s(untrustedConfig);
|
|
3716
3716
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3717
3717
|
return null;
|
|
3718
3718
|
}
|
|
3719
3719
|
return config;
|
|
3720
3720
|
}
|
|
3721
|
-
function buildNetworkSnapshot$
|
|
3722
|
-
const resourceParams = createResourceParams$
|
|
3723
|
-
const request = createResourceRequest$
|
|
3721
|
+
function buildNetworkSnapshot$s(luvio, config, options) {
|
|
3722
|
+
const resourceParams = createResourceParams$s(config);
|
|
3723
|
+
const request = createResourceRequest$s(resourceParams);
|
|
3724
3724
|
return luvio.dispatchResourceRequest(request, options)
|
|
3725
3725
|
.then((response) => {
|
|
3726
3726
|
return luvio.handleSuccessResponse(() => {
|
|
3727
|
-
const snapshot = ingestSuccess$
|
|
3727
|
+
const snapshot = ingestSuccess$o(luvio, resourceParams, response);
|
|
3728
3728
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3729
3729
|
}, () => {
|
|
3730
3730
|
const cache = new StoreKeyMap();
|
|
3731
|
-
getResponseCacheKeys$
|
|
3731
|
+
getResponseCacheKeys$s(cache, luvio, resourceParams, response.body);
|
|
3732
3732
|
return cache;
|
|
3733
3733
|
});
|
|
3734
3734
|
}, (response) => {
|
|
@@ -3738,16 +3738,16 @@ function buildNetworkSnapshot$q(luvio, config, options) {
|
|
|
3738
3738
|
}
|
|
3739
3739
|
const followAdapterFactory = (luvio) => {
|
|
3740
3740
|
return function follow(untrustedConfig) {
|
|
3741
|
-
const config = validateAdapterConfig$
|
|
3741
|
+
const config = validateAdapterConfig$s(untrustedConfig, follow_ConfigPropertyNames);
|
|
3742
3742
|
// Invalid or incomplete config
|
|
3743
3743
|
if (config === null) {
|
|
3744
3744
|
throw new Error('Invalid config for "follow"');
|
|
3745
3745
|
}
|
|
3746
|
-
return buildNetworkSnapshot$
|
|
3746
|
+
return buildNetworkSnapshot$s(luvio, config);
|
|
3747
3747
|
};
|
|
3748
3748
|
};
|
|
3749
3749
|
|
|
3750
|
-
function validate$
|
|
3750
|
+
function validate$n(obj, path = 'FollowedAssetRepresentation') {
|
|
3751
3751
|
const v_error = (() => {
|
|
3752
3752
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3753
3753
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3806,33 +3806,33 @@ function validate$k(obj, path = 'FollowedAssetRepresentation') {
|
|
|
3806
3806
|
})();
|
|
3807
3807
|
return v_error === undefined ? null : v_error;
|
|
3808
3808
|
}
|
|
3809
|
-
const RepresentationType$
|
|
3810
|
-
function keyBuilder$
|
|
3811
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3809
|
+
const RepresentationType$j = 'FollowedAssetRepresentation';
|
|
3810
|
+
function keyBuilder$E(luvio, config) {
|
|
3811
|
+
return keyPrefix + '::' + RepresentationType$j + ':' + config.followedAssetId;
|
|
3812
3812
|
}
|
|
3813
3813
|
|
|
3814
|
-
function keyBuilder$
|
|
3815
|
-
return keyBuilder$
|
|
3814
|
+
function keyBuilder$D(luvio, params) {
|
|
3815
|
+
return keyBuilder$E(luvio, {
|
|
3816
3816
|
followedAssetId: params.urlParams.followedAssetId
|
|
3817
3817
|
});
|
|
3818
3818
|
}
|
|
3819
|
-
function getResponseCacheKeys$
|
|
3820
|
-
const key = keyBuilder$
|
|
3819
|
+
function getResponseCacheKeys$r(cacheKeyMap, luvio, resourceParams) {
|
|
3820
|
+
const key = keyBuilder$D(luvio, resourceParams);
|
|
3821
3821
|
cacheKeyMap.set(key, {
|
|
3822
3822
|
namespace: keyPrefix,
|
|
3823
|
-
representationName: RepresentationType$
|
|
3823
|
+
representationName: RepresentationType$j,
|
|
3824
3824
|
mergeable: false
|
|
3825
3825
|
});
|
|
3826
3826
|
}
|
|
3827
3827
|
function evictSuccess$3(luvio, resourceParams) {
|
|
3828
|
-
const key = keyBuilder$
|
|
3828
|
+
const key = keyBuilder$D(luvio, resourceParams);
|
|
3829
3829
|
luvio.storeEvict(key);
|
|
3830
3830
|
}
|
|
3831
|
-
function createResourceRequest$
|
|
3831
|
+
function createResourceRequest$r(config) {
|
|
3832
3832
|
const headers = {};
|
|
3833
3833
|
return {
|
|
3834
3834
|
baseUri: '/services/data/v62.0',
|
|
3835
|
-
basePath: '/
|
|
3835
|
+
basePath: '/tableau/follow/followers/' + config.urlParams.followerId + '/follows/' + config.urlParams.followedAssetId + '',
|
|
3836
3836
|
method: 'delete',
|
|
3837
3837
|
body: null,
|
|
3838
3838
|
urlParams: config.urlParams,
|
|
@@ -3842,34 +3842,34 @@ function createResourceRequest$p(config) {
|
|
|
3842
3842
|
};
|
|
3843
3843
|
}
|
|
3844
3844
|
|
|
3845
|
-
const adapterName$
|
|
3845
|
+
const adapterName$r = 'unfollow';
|
|
3846
3846
|
const unfollow_ConfigPropertyMetadata = [
|
|
3847
3847
|
generateParamConfigMetadata('followedAssetId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3848
3848
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3849
3849
|
];
|
|
3850
|
-
const unfollow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3851
|
-
const createResourceParams$
|
|
3852
|
-
function typeCheckConfig$
|
|
3850
|
+
const unfollow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$r, unfollow_ConfigPropertyMetadata);
|
|
3851
|
+
const createResourceParams$r = /*#__PURE__*/ createResourceParams$D(unfollow_ConfigPropertyMetadata);
|
|
3852
|
+
function typeCheckConfig$r(untrustedConfig) {
|
|
3853
3853
|
const config = {};
|
|
3854
|
-
typeCheckConfig$
|
|
3854
|
+
typeCheckConfig$D(untrustedConfig, config, unfollow_ConfigPropertyMetadata);
|
|
3855
3855
|
return config;
|
|
3856
3856
|
}
|
|
3857
|
-
function validateAdapterConfig$
|
|
3857
|
+
function validateAdapterConfig$r(untrustedConfig, configPropertyNames) {
|
|
3858
3858
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3859
3859
|
return null;
|
|
3860
3860
|
}
|
|
3861
3861
|
if (process.env.NODE_ENV !== 'production') {
|
|
3862
3862
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3863
3863
|
}
|
|
3864
|
-
const config = typeCheckConfig$
|
|
3864
|
+
const config = typeCheckConfig$r(untrustedConfig);
|
|
3865
3865
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3866
3866
|
return null;
|
|
3867
3867
|
}
|
|
3868
3868
|
return config;
|
|
3869
3869
|
}
|
|
3870
|
-
function buildNetworkSnapshot$
|
|
3871
|
-
const resourceParams = createResourceParams$
|
|
3872
|
-
const request = createResourceRequest$
|
|
3870
|
+
function buildNetworkSnapshot$r(luvio, config, options) {
|
|
3871
|
+
const resourceParams = createResourceParams$r(config);
|
|
3872
|
+
const request = createResourceRequest$r(resourceParams);
|
|
3873
3873
|
return luvio.dispatchResourceRequest(request, options)
|
|
3874
3874
|
.then(() => {
|
|
3875
3875
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -3877,7 +3877,7 @@ function buildNetworkSnapshot$p(luvio, config, options) {
|
|
|
3877
3877
|
return luvio.storeBroadcast();
|
|
3878
3878
|
}, () => {
|
|
3879
3879
|
const cache = new StoreKeyMap();
|
|
3880
|
-
getResponseCacheKeys$
|
|
3880
|
+
getResponseCacheKeys$r(cache, luvio, resourceParams);
|
|
3881
3881
|
return cache;
|
|
3882
3882
|
});
|
|
3883
3883
|
}, (response) => {
|
|
@@ -3887,18 +3887,18 @@ function buildNetworkSnapshot$p(luvio, config, options) {
|
|
|
3887
3887
|
}
|
|
3888
3888
|
const unfollowAdapterFactory = (luvio) => {
|
|
3889
3889
|
return function UnifiedAnalyticsunfollow(untrustedConfig) {
|
|
3890
|
-
const config = validateAdapterConfig$
|
|
3890
|
+
const config = validateAdapterConfig$r(untrustedConfig, unfollow_ConfigPropertyNames);
|
|
3891
3891
|
// Invalid or incomplete config
|
|
3892
3892
|
if (config === null) {
|
|
3893
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
3893
|
+
throw new Error(`Invalid config for "${adapterName$r}"`);
|
|
3894
3894
|
}
|
|
3895
|
-
return buildNetworkSnapshot$
|
|
3895
|
+
return buildNetworkSnapshot$r(luvio, config);
|
|
3896
3896
|
};
|
|
3897
3897
|
};
|
|
3898
3898
|
|
|
3899
|
-
const TTL$
|
|
3900
|
-
const VERSION$
|
|
3901
|
-
function validate$
|
|
3899
|
+
const TTL$a = 500;
|
|
3900
|
+
const VERSION$i = "1fd0770995d332e49822d6bbabe35e87";
|
|
3901
|
+
function validate$m(obj, path = 'FollowerCollectionRepresentation') {
|
|
3902
3902
|
const v_error = (() => {
|
|
3903
3903
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3904
3904
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3911,7 +3911,7 @@ function validate$j(obj, path = 'FollowerCollectionRepresentation') {
|
|
|
3911
3911
|
for (let i = 0; i < obj_followers.length; i++) {
|
|
3912
3912
|
const obj_followers_item = obj_followers[i];
|
|
3913
3913
|
const path_followers_item = path_followers + '[' + i + ']';
|
|
3914
|
-
const referencepath_followers_itemValidationError = validate$
|
|
3914
|
+
const referencepath_followers_itemValidationError = validate$p(obj_followers_item, path_followers_item);
|
|
3915
3915
|
if (referencepath_followers_itemValidationError !== null) {
|
|
3916
3916
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_followers_item + '")\n';
|
|
3917
3917
|
message += referencepath_followers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3921,11 +3921,414 @@ function validate$j(obj, path = 'FollowerCollectionRepresentation') {
|
|
|
3921
3921
|
})();
|
|
3922
3922
|
return v_error === undefined ? null : v_error;
|
|
3923
3923
|
}
|
|
3924
|
-
const RepresentationType$
|
|
3924
|
+
const RepresentationType$i = 'FollowerCollectionRepresentation';
|
|
3925
|
+
function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
3926
|
+
return input;
|
|
3927
|
+
}
|
|
3928
|
+
const select$G = function FollowerCollectionRepresentationSelect() {
|
|
3929
|
+
return {
|
|
3930
|
+
kind: 'Fragment',
|
|
3931
|
+
version: VERSION$i,
|
|
3932
|
+
private: [],
|
|
3933
|
+
opaque: true
|
|
3934
|
+
};
|
|
3935
|
+
};
|
|
3936
|
+
function equals$i(existing, incoming) {
|
|
3937
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3938
|
+
return false;
|
|
3939
|
+
}
|
|
3940
|
+
return true;
|
|
3941
|
+
}
|
|
3942
|
+
const ingest$i = function FollowerCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3943
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3944
|
+
const validateError = validate$m(input);
|
|
3945
|
+
if (validateError !== null) {
|
|
3946
|
+
throw validateError;
|
|
3947
|
+
}
|
|
3948
|
+
}
|
|
3949
|
+
const key = path.fullPath;
|
|
3950
|
+
const ttlToUse = TTL$a;
|
|
3951
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "UnifiedAnalytics", VERSION$i, RepresentationType$i, equals$i);
|
|
3952
|
+
return createLink(key);
|
|
3953
|
+
};
|
|
3954
|
+
function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
3955
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3956
|
+
const rootKey = fullPathFactory();
|
|
3957
|
+
rootKeySet.set(rootKey, {
|
|
3958
|
+
namespace: keyPrefix,
|
|
3959
|
+
representationName: RepresentationType$i,
|
|
3960
|
+
mergeable: false
|
|
3961
|
+
});
|
|
3962
|
+
}
|
|
3963
|
+
|
|
3964
|
+
function select$F(luvio, params) {
|
|
3965
|
+
return select$G();
|
|
3966
|
+
}
|
|
3967
|
+
function keyBuilder$C(luvio, params) {
|
|
3968
|
+
return keyPrefix + '::FollowerCollectionRepresentation:(' + 'followerId:' + params.queryParams.followerId + ',' + 'followerType:' + params.queryParams.followerType + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'followedAssetId:' + params.urlParams.followedAssetId + ')';
|
|
3969
|
+
}
|
|
3970
|
+
function getResponseCacheKeys$q(storeKeyMap, luvio, resourceParams, response) {
|
|
3971
|
+
getTypeCacheKeys$i(storeKeyMap, luvio, response, () => keyBuilder$C(luvio, resourceParams));
|
|
3972
|
+
}
|
|
3973
|
+
function ingestSuccess$n(luvio, resourceParams, response, snapshotRefresh) {
|
|
3974
|
+
const { body } = response;
|
|
3975
|
+
const key = keyBuilder$C(luvio, resourceParams);
|
|
3976
|
+
luvio.storeIngest(key, ingest$i, body);
|
|
3977
|
+
const snapshot = luvio.storeLookup({
|
|
3978
|
+
recordId: key,
|
|
3979
|
+
node: select$F(),
|
|
3980
|
+
variables: {},
|
|
3981
|
+
}, snapshotRefresh);
|
|
3982
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3983
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
3984
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3985
|
+
}
|
|
3986
|
+
}
|
|
3987
|
+
deepFreeze(snapshot.data);
|
|
3988
|
+
return snapshot;
|
|
3989
|
+
}
|
|
3990
|
+
function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
3991
|
+
const key = keyBuilder$C(luvio, params);
|
|
3992
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3993
|
+
const storeMetadataParams = {
|
|
3994
|
+
ttl: TTL$a,
|
|
3995
|
+
namespace: keyPrefix,
|
|
3996
|
+
version: VERSION$i,
|
|
3997
|
+
representationName: RepresentationType$i
|
|
3998
|
+
};
|
|
3999
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4000
|
+
return errorSnapshot;
|
|
4001
|
+
}
|
|
4002
|
+
function createResourceRequest$q(config) {
|
|
4003
|
+
const headers = {};
|
|
4004
|
+
return {
|
|
4005
|
+
baseUri: '/services/data/v62.0',
|
|
4006
|
+
basePath: '/tableau/follow/assets/' + config.urlParams.followedAssetId + '/followers',
|
|
4007
|
+
method: 'get',
|
|
4008
|
+
body: null,
|
|
4009
|
+
urlParams: config.urlParams,
|
|
4010
|
+
queryParams: config.queryParams,
|
|
4011
|
+
headers,
|
|
4012
|
+
priority: 'normal',
|
|
4013
|
+
};
|
|
4014
|
+
}
|
|
4015
|
+
|
|
4016
|
+
const adapterName$q = 'getFollowers';
|
|
4017
|
+
const getFollowers_ConfigPropertyMetadata = [
|
|
4018
|
+
generateParamConfigMetadata('followedAssetId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4019
|
+
generateParamConfigMetadata('followerId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4020
|
+
generateParamConfigMetadata('followerType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4021
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4022
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4023
|
+
];
|
|
4024
|
+
const getFollowers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$q, getFollowers_ConfigPropertyMetadata);
|
|
4025
|
+
const createResourceParams$q = /*#__PURE__*/ createResourceParams$D(getFollowers_ConfigPropertyMetadata);
|
|
4026
|
+
function keyBuilder$B(luvio, config) {
|
|
4027
|
+
const resourceParams = createResourceParams$q(config);
|
|
4028
|
+
return keyBuilder$C(luvio, resourceParams);
|
|
4029
|
+
}
|
|
4030
|
+
function typeCheckConfig$q(untrustedConfig) {
|
|
4031
|
+
const config = {};
|
|
4032
|
+
typeCheckConfig$D(untrustedConfig, config, getFollowers_ConfigPropertyMetadata);
|
|
4033
|
+
return config;
|
|
4034
|
+
}
|
|
4035
|
+
function validateAdapterConfig$q(untrustedConfig, configPropertyNames) {
|
|
4036
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4037
|
+
return null;
|
|
4038
|
+
}
|
|
4039
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4040
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4041
|
+
}
|
|
4042
|
+
const config = typeCheckConfig$q(untrustedConfig);
|
|
4043
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4044
|
+
return null;
|
|
4045
|
+
}
|
|
4046
|
+
return config;
|
|
4047
|
+
}
|
|
4048
|
+
function adapterFragment$c(luvio, config) {
|
|
4049
|
+
createResourceParams$q(config);
|
|
4050
|
+
return select$F();
|
|
4051
|
+
}
|
|
4052
|
+
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
4053
|
+
const snapshot = ingestSuccess$n(luvio, resourceParams, response, {
|
|
4054
|
+
config,
|
|
4055
|
+
resolve: () => buildNetworkSnapshot$q(luvio, config, snapshotRefreshOptions)
|
|
4056
|
+
});
|
|
4057
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4058
|
+
}
|
|
4059
|
+
function onFetchResponseError$c(luvio, config, resourceParams, response) {
|
|
4060
|
+
const snapshot = ingestError$c(luvio, resourceParams, response, {
|
|
4061
|
+
config,
|
|
4062
|
+
resolve: () => buildNetworkSnapshot$q(luvio, config, snapshotRefreshOptions)
|
|
4063
|
+
});
|
|
4064
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4065
|
+
}
|
|
4066
|
+
function buildNetworkSnapshot$q(luvio, config, options) {
|
|
4067
|
+
const resourceParams = createResourceParams$q(config);
|
|
4068
|
+
const request = createResourceRequest$q(resourceParams);
|
|
4069
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4070
|
+
.then((response) => {
|
|
4071
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => {
|
|
4072
|
+
const cache = new StoreKeyMap();
|
|
4073
|
+
getResponseCacheKeys$q(cache, luvio, resourceParams, response.body);
|
|
4074
|
+
return cache;
|
|
4075
|
+
});
|
|
4076
|
+
}, (response) => {
|
|
4077
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$c(luvio, config, resourceParams, response));
|
|
4078
|
+
});
|
|
4079
|
+
}
|
|
4080
|
+
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
4081
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$q, undefined, false);
|
|
4082
|
+
}
|
|
4083
|
+
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
4084
|
+
const { luvio, config } = context;
|
|
4085
|
+
const selector = {
|
|
4086
|
+
recordId: keyBuilder$B(luvio, config),
|
|
4087
|
+
node: adapterFragment$c(luvio, config),
|
|
4088
|
+
variables: {},
|
|
4089
|
+
};
|
|
4090
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4091
|
+
config,
|
|
4092
|
+
resolve: () => buildNetworkSnapshot$q(luvio, config, snapshotRefreshOptions)
|
|
4093
|
+
});
|
|
4094
|
+
return cacheSnapshot;
|
|
4095
|
+
}
|
|
4096
|
+
const getFollowersAdapterFactory = (luvio) => function UnifiedAnalytics__getFollowers(untrustedConfig, requestContext) {
|
|
4097
|
+
const config = validateAdapterConfig$q(untrustedConfig, getFollowers_ConfigPropertyNames);
|
|
4098
|
+
// Invalid or incomplete config
|
|
4099
|
+
if (config === null) {
|
|
4100
|
+
return null;
|
|
4101
|
+
}
|
|
4102
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4103
|
+
buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
|
|
4104
|
+
};
|
|
4105
|
+
|
|
4106
|
+
const TTL$9 = 500;
|
|
4107
|
+
const VERSION$h = "1f44696f5314fa2f963688e14067a00c";
|
|
4108
|
+
function validate$l(obj, path = 'FollowedAssetCollectionRepresentation') {
|
|
4109
|
+
const v_error = (() => {
|
|
4110
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4111
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4112
|
+
}
|
|
4113
|
+
const obj_followedAssets = obj.followedAssets;
|
|
4114
|
+
const path_followedAssets = path + '.followedAssets';
|
|
4115
|
+
if (!ArrayIsArray(obj_followedAssets)) {
|
|
4116
|
+
return new TypeError('Expected "array" but received "' + typeof obj_followedAssets + '" (at "' + path_followedAssets + '")');
|
|
4117
|
+
}
|
|
4118
|
+
for (let i = 0; i < obj_followedAssets.length; i++) {
|
|
4119
|
+
const obj_followedAssets_item = obj_followedAssets[i];
|
|
4120
|
+
const path_followedAssets_item = path_followedAssets + '[' + i + ']';
|
|
4121
|
+
const referencepath_followedAssets_itemValidationError = validate$n(obj_followedAssets_item, path_followedAssets_item);
|
|
4122
|
+
if (referencepath_followedAssets_itemValidationError !== null) {
|
|
4123
|
+
let message = 'Object doesn\'t match FollowedAssetRepresentation (at "' + path_followedAssets_item + '")\n';
|
|
4124
|
+
message += referencepath_followedAssets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4125
|
+
return new TypeError(message);
|
|
4126
|
+
}
|
|
4127
|
+
}
|
|
4128
|
+
})();
|
|
4129
|
+
return v_error === undefined ? null : v_error;
|
|
4130
|
+
}
|
|
4131
|
+
const RepresentationType$h = 'FollowedAssetCollectionRepresentation';
|
|
4132
|
+
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
4133
|
+
return input;
|
|
4134
|
+
}
|
|
4135
|
+
const select$E = function FollowedAssetCollectionRepresentationSelect() {
|
|
4136
|
+
return {
|
|
4137
|
+
kind: 'Fragment',
|
|
4138
|
+
version: VERSION$h,
|
|
4139
|
+
private: [],
|
|
4140
|
+
opaque: true
|
|
4141
|
+
};
|
|
4142
|
+
};
|
|
4143
|
+
function equals$h(existing, incoming) {
|
|
4144
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4145
|
+
return false;
|
|
4146
|
+
}
|
|
4147
|
+
return true;
|
|
4148
|
+
}
|
|
4149
|
+
const ingest$h = function FollowedAssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4150
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4151
|
+
const validateError = validate$l(input);
|
|
4152
|
+
if (validateError !== null) {
|
|
4153
|
+
throw validateError;
|
|
4154
|
+
}
|
|
4155
|
+
}
|
|
4156
|
+
const key = path.fullPath;
|
|
4157
|
+
const ttlToUse = TTL$9;
|
|
4158
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "UnifiedAnalytics", VERSION$h, RepresentationType$h, equals$h);
|
|
4159
|
+
return createLink(key);
|
|
4160
|
+
};
|
|
4161
|
+
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
4162
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4163
|
+
const rootKey = fullPathFactory();
|
|
4164
|
+
rootKeySet.set(rootKey, {
|
|
4165
|
+
namespace: keyPrefix,
|
|
4166
|
+
representationName: RepresentationType$h,
|
|
4167
|
+
mergeable: false
|
|
4168
|
+
});
|
|
4169
|
+
}
|
|
4170
|
+
|
|
4171
|
+
function select$D(luvio, params) {
|
|
4172
|
+
return select$E();
|
|
4173
|
+
}
|
|
4174
|
+
function keyBuilder$A(luvio, params) {
|
|
4175
|
+
return keyPrefix + '::FollowedAssetCollectionRepresentation:(' + 'followedAssetType:' + params.queryParams.followedAssetType + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'followerId:' + params.urlParams.followerId + ')';
|
|
4176
|
+
}
|
|
4177
|
+
function getResponseCacheKeys$p(storeKeyMap, luvio, resourceParams, response) {
|
|
4178
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response, () => keyBuilder$A(luvio, resourceParams));
|
|
4179
|
+
}
|
|
4180
|
+
function ingestSuccess$m(luvio, resourceParams, response, snapshotRefresh) {
|
|
4181
|
+
const { body } = response;
|
|
4182
|
+
const key = keyBuilder$A(luvio, resourceParams);
|
|
4183
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
4184
|
+
const snapshot = luvio.storeLookup({
|
|
4185
|
+
recordId: key,
|
|
4186
|
+
node: select$D(),
|
|
4187
|
+
variables: {},
|
|
4188
|
+
}, snapshotRefresh);
|
|
4189
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4190
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4191
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4192
|
+
}
|
|
4193
|
+
}
|
|
4194
|
+
deepFreeze(snapshot.data);
|
|
4195
|
+
return snapshot;
|
|
4196
|
+
}
|
|
4197
|
+
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
4198
|
+
const key = keyBuilder$A(luvio, params);
|
|
4199
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4200
|
+
const storeMetadataParams = {
|
|
4201
|
+
ttl: TTL$9,
|
|
4202
|
+
namespace: keyPrefix,
|
|
4203
|
+
version: VERSION$h,
|
|
4204
|
+
representationName: RepresentationType$h
|
|
4205
|
+
};
|
|
4206
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4207
|
+
return errorSnapshot;
|
|
4208
|
+
}
|
|
4209
|
+
function createResourceRequest$p(config) {
|
|
4210
|
+
const headers = {};
|
|
4211
|
+
return {
|
|
4212
|
+
baseUri: '/services/data/v62.0',
|
|
4213
|
+
basePath: '/tableau/follow/followers/' + config.urlParams.followerId + '/followed-assets',
|
|
4214
|
+
method: 'get',
|
|
4215
|
+
body: null,
|
|
4216
|
+
urlParams: config.urlParams,
|
|
4217
|
+
queryParams: config.queryParams,
|
|
4218
|
+
headers,
|
|
4219
|
+
priority: 'normal',
|
|
4220
|
+
};
|
|
4221
|
+
}
|
|
4222
|
+
|
|
4223
|
+
const adapterName$p = 'getFollowedAssets';
|
|
4224
|
+
const getFollowedAssets_ConfigPropertyMetadata = [
|
|
4225
|
+
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4226
|
+
generateParamConfigMetadata('followedAssetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4227
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4228
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4229
|
+
];
|
|
4230
|
+
const getFollowedAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$p, getFollowedAssets_ConfigPropertyMetadata);
|
|
4231
|
+
const createResourceParams$p = /*#__PURE__*/ createResourceParams$D(getFollowedAssets_ConfigPropertyMetadata);
|
|
4232
|
+
function keyBuilder$z(luvio, config) {
|
|
4233
|
+
const resourceParams = createResourceParams$p(config);
|
|
4234
|
+
return keyBuilder$A(luvio, resourceParams);
|
|
4235
|
+
}
|
|
4236
|
+
function typeCheckConfig$p(untrustedConfig) {
|
|
4237
|
+
const config = {};
|
|
4238
|
+
typeCheckConfig$D(untrustedConfig, config, getFollowedAssets_ConfigPropertyMetadata);
|
|
4239
|
+
return config;
|
|
4240
|
+
}
|
|
4241
|
+
function validateAdapterConfig$p(untrustedConfig, configPropertyNames) {
|
|
4242
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4243
|
+
return null;
|
|
4244
|
+
}
|
|
4245
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4246
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4247
|
+
}
|
|
4248
|
+
const config = typeCheckConfig$p(untrustedConfig);
|
|
4249
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4250
|
+
return null;
|
|
4251
|
+
}
|
|
4252
|
+
return config;
|
|
4253
|
+
}
|
|
4254
|
+
function adapterFragment$b(luvio, config) {
|
|
4255
|
+
createResourceParams$p(config);
|
|
4256
|
+
return select$D();
|
|
4257
|
+
}
|
|
4258
|
+
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
4259
|
+
const snapshot = ingestSuccess$m(luvio, resourceParams, response, {
|
|
4260
|
+
config,
|
|
4261
|
+
resolve: () => buildNetworkSnapshot$p(luvio, config, snapshotRefreshOptions)
|
|
4262
|
+
});
|
|
4263
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4264
|
+
}
|
|
4265
|
+
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
4266
|
+
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
4267
|
+
config,
|
|
4268
|
+
resolve: () => buildNetworkSnapshot$p(luvio, config, snapshotRefreshOptions)
|
|
4269
|
+
});
|
|
4270
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4271
|
+
}
|
|
4272
|
+
function buildNetworkSnapshot$p(luvio, config, options) {
|
|
4273
|
+
const resourceParams = createResourceParams$p(config);
|
|
4274
|
+
const request = createResourceRequest$p(resourceParams);
|
|
4275
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4276
|
+
.then((response) => {
|
|
4277
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
|
|
4278
|
+
const cache = new StoreKeyMap();
|
|
4279
|
+
getResponseCacheKeys$p(cache, luvio, resourceParams, response.body);
|
|
4280
|
+
return cache;
|
|
4281
|
+
});
|
|
4282
|
+
}, (response) => {
|
|
4283
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$b(luvio, config, resourceParams, response));
|
|
4284
|
+
});
|
|
4285
|
+
}
|
|
4286
|
+
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
4287
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$p, undefined, false);
|
|
4288
|
+
}
|
|
4289
|
+
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
4290
|
+
const { luvio, config } = context;
|
|
4291
|
+
const selector = {
|
|
4292
|
+
recordId: keyBuilder$z(luvio, config),
|
|
4293
|
+
node: adapterFragment$b(luvio, config),
|
|
4294
|
+
variables: {},
|
|
4295
|
+
};
|
|
4296
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4297
|
+
config,
|
|
4298
|
+
resolve: () => buildNetworkSnapshot$p(luvio, config, snapshotRefreshOptions)
|
|
4299
|
+
});
|
|
4300
|
+
return cacheSnapshot;
|
|
4301
|
+
}
|
|
4302
|
+
const getFollowedAssetsAdapterFactory = (luvio) => function UnifiedAnalytics__getFollowedAssets(untrustedConfig, requestContext) {
|
|
4303
|
+
const config = validateAdapterConfig$p(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$b, buildNetworkSnapshotCachePolicy$b);
|
|
4310
|
+
};
|
|
4311
|
+
|
|
4312
|
+
const TTL$8 = 500;
|
|
4313
|
+
const VERSION$g = "a4167cdb0a6477d9d7ddbe70da03f1b4";
|
|
4314
|
+
function validate$k(obj, path = 'UniqueFollowerCountRepresentation') {
|
|
4315
|
+
const v_error = (() => {
|
|
4316
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4317
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4318
|
+
}
|
|
4319
|
+
const obj_uniqueFollowerCount = obj.uniqueFollowerCount;
|
|
4320
|
+
const path_uniqueFollowerCount = path + '.uniqueFollowerCount';
|
|
4321
|
+
if (typeof obj_uniqueFollowerCount !== 'number' || (typeof obj_uniqueFollowerCount === 'number' && Math.floor(obj_uniqueFollowerCount) !== obj_uniqueFollowerCount)) {
|
|
4322
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_uniqueFollowerCount + '" (at "' + path_uniqueFollowerCount + '")');
|
|
4323
|
+
}
|
|
4324
|
+
})();
|
|
4325
|
+
return v_error === undefined ? null : v_error;
|
|
4326
|
+
}
|
|
4327
|
+
const RepresentationType$g = 'UniqueFollowerCountRepresentation';
|
|
3925
4328
|
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
3926
4329
|
return input;
|
|
3927
4330
|
}
|
|
3928
|
-
const select$C = function
|
|
4331
|
+
const select$C = function UniqueFollowerCountRepresentationSelect() {
|
|
3929
4332
|
return {
|
|
3930
4333
|
kind: 'Fragment',
|
|
3931
4334
|
version: VERSION$g,
|
|
@@ -3939,9 +4342,9 @@ function equals$g(existing, incoming) {
|
|
|
3939
4342
|
}
|
|
3940
4343
|
return true;
|
|
3941
4344
|
}
|
|
3942
|
-
const ingest$g = function
|
|
4345
|
+
const ingest$g = function UniqueFollowerCountRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3943
4346
|
if (process.env.NODE_ENV !== 'production') {
|
|
3944
|
-
const validateError = validate$
|
|
4347
|
+
const validateError = validate$k(input);
|
|
3945
4348
|
if (validateError !== null) {
|
|
3946
4349
|
throw validateError;
|
|
3947
4350
|
}
|
|
@@ -3965,7 +4368,7 @@ function select$B(luvio, params) {
|
|
|
3965
4368
|
return select$C();
|
|
3966
4369
|
}
|
|
3967
4370
|
function keyBuilder$y(luvio, params) {
|
|
3968
|
-
return keyPrefix + '::
|
|
4371
|
+
return keyPrefix + '::UniqueFollowerCountRepresentation:(' + 'followedAssetType:' + params.queryParams.followedAssetType + ',' + 'followedAssetId:' + params.urlParams.followedAssetId + ')';
|
|
3969
4372
|
}
|
|
3970
4373
|
function getResponseCacheKeys$o(storeKeyMap, luvio, resourceParams, response) {
|
|
3971
4374
|
getTypeCacheKeys$g(storeKeyMap, luvio, response, () => keyBuilder$y(luvio, resourceParams));
|
|
@@ -4003,7 +4406,7 @@ function createResourceRequest$o(config) {
|
|
|
4003
4406
|
const headers = {};
|
|
4004
4407
|
return {
|
|
4005
4408
|
baseUri: '/services/data/v62.0',
|
|
4006
|
-
basePath: '/
|
|
4409
|
+
basePath: '/tableau/follow/assets/' + config.urlParams.followedAssetId + '/follower-count',
|
|
4007
4410
|
method: 'get',
|
|
4008
4411
|
body: null,
|
|
4009
4412
|
urlParams: config.urlParams,
|
|
@@ -4013,23 +4416,20 @@ function createResourceRequest$o(config) {
|
|
|
4013
4416
|
};
|
|
4014
4417
|
}
|
|
4015
4418
|
|
|
4016
|
-
const adapterName$o = '
|
|
4017
|
-
const
|
|
4419
|
+
const adapterName$o = 'getUniqueFollowerCount';
|
|
4420
|
+
const getUniqueFollowerCount_ConfigPropertyMetadata = [
|
|
4018
4421
|
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 */),
|
|
4422
|
+
generateParamConfigMetadata('followedAssetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4023
4423
|
];
|
|
4024
|
-
const
|
|
4025
|
-
const createResourceParams$o = /*#__PURE__*/ createResourceParams$
|
|
4424
|
+
const getUniqueFollowerCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
4425
|
+
const createResourceParams$o = /*#__PURE__*/ createResourceParams$D(getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
4026
4426
|
function keyBuilder$x(luvio, config) {
|
|
4027
4427
|
const resourceParams = createResourceParams$o(config);
|
|
4028
4428
|
return keyBuilder$y(luvio, resourceParams);
|
|
4029
4429
|
}
|
|
4030
4430
|
function typeCheckConfig$o(untrustedConfig) {
|
|
4031
4431
|
const config = {};
|
|
4032
|
-
typeCheckConfig$
|
|
4432
|
+
typeCheckConfig$D(untrustedConfig, config, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
4033
4433
|
return config;
|
|
4034
4434
|
}
|
|
4035
4435
|
function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
|
|
@@ -4078,7 +4478,7 @@ function buildNetworkSnapshot$o(luvio, config, options) {
|
|
|
4078
4478
|
});
|
|
4079
4479
|
}
|
|
4080
4480
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
4081
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4481
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$o, undefined, false);
|
|
4082
4482
|
}
|
|
4083
4483
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
4084
4484
|
const { luvio, config } = context;
|
|
@@ -4093,8 +4493,8 @@ function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
|
4093
4493
|
});
|
|
4094
4494
|
return cacheSnapshot;
|
|
4095
4495
|
}
|
|
4096
|
-
const
|
|
4097
|
-
const config = validateAdapterConfig$o(untrustedConfig,
|
|
4496
|
+
const getUniqueFollowerCountAdapterFactory = (luvio) => function UnifiedAnalytics__getUniqueFollowerCount(untrustedConfig, requestContext) {
|
|
4497
|
+
const config = validateAdapterConfig$o(untrustedConfig, getUniqueFollowerCount_ConfigPropertyNames);
|
|
4098
4498
|
// Invalid or incomplete config
|
|
4099
4499
|
if (config === null) {
|
|
4100
4500
|
return null;
|
|
@@ -4103,36 +4503,45 @@ const getFollowersAdapterFactory = (luvio) => function UnifiedAnalytics__getFoll
|
|
|
4103
4503
|
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
4104
4504
|
};
|
|
4105
4505
|
|
|
4106
|
-
const TTL$7 =
|
|
4107
|
-
const VERSION$f = "
|
|
4108
|
-
function validate$
|
|
4506
|
+
const TTL$7 = 1000;
|
|
4507
|
+
const VERSION$f = "f2e0254a8e6b03f2289f318634389df3";
|
|
4508
|
+
function validate$j(obj, path = 'UnifiedAnalyticsLogLinesRepresentation') {
|
|
4109
4509
|
const v_error = (() => {
|
|
4110
4510
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4111
4511
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4112
4512
|
}
|
|
4113
|
-
const
|
|
4114
|
-
const
|
|
4115
|
-
if (
|
|
4116
|
-
return new TypeError('Expected "
|
|
4513
|
+
const obj_failureCount = obj.failureCount;
|
|
4514
|
+
const path_failureCount = path + '.failureCount';
|
|
4515
|
+
if (typeof obj_failureCount !== 'number' || (typeof obj_failureCount === 'number' && Math.floor(obj_failureCount) !== obj_failureCount)) {
|
|
4516
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_failureCount + '" (at "' + path_failureCount + '")');
|
|
4117
4517
|
}
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4518
|
+
const obj_id = obj.id;
|
|
4519
|
+
const path_id = path + '.id';
|
|
4520
|
+
if (typeof obj_id !== 'string') {
|
|
4521
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
4522
|
+
}
|
|
4523
|
+
const obj_successCount = obj.successCount;
|
|
4524
|
+
const path_successCount = path + '.successCount';
|
|
4525
|
+
if (typeof obj_successCount !== 'number' || (typeof obj_successCount === 'number' && Math.floor(obj_successCount) !== obj_successCount)) {
|
|
4526
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_successCount + '" (at "' + path_successCount + '")');
|
|
4127
4527
|
}
|
|
4128
4528
|
})();
|
|
4129
4529
|
return v_error === undefined ? null : v_error;
|
|
4130
4530
|
}
|
|
4131
|
-
const RepresentationType$f = '
|
|
4531
|
+
const RepresentationType$f = 'UnifiedAnalyticsLogLinesRepresentation';
|
|
4532
|
+
function keyBuilder$w(luvio, config) {
|
|
4533
|
+
return keyPrefix + '::' + RepresentationType$f + ':' + config.id;
|
|
4534
|
+
}
|
|
4535
|
+
function keyBuilderFromType$9(luvio, object) {
|
|
4536
|
+
const keyParams = {
|
|
4537
|
+
id: object.id
|
|
4538
|
+
};
|
|
4539
|
+
return keyBuilder$w(luvio, keyParams);
|
|
4540
|
+
}
|
|
4132
4541
|
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
4133
4542
|
return input;
|
|
4134
4543
|
}
|
|
4135
|
-
const select$A = function
|
|
4544
|
+
const select$A = function UnifiedAnalyticsLogLinesRepresentationSelect() {
|
|
4136
4545
|
return {
|
|
4137
4546
|
kind: 'Fragment',
|
|
4138
4547
|
version: VERSION$f,
|
|
@@ -4146,21 +4555,21 @@ function equals$f(existing, incoming) {
|
|
|
4146
4555
|
}
|
|
4147
4556
|
return true;
|
|
4148
4557
|
}
|
|
4149
|
-
const ingest$f = function
|
|
4558
|
+
const ingest$f = function UnifiedAnalyticsLogLinesRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4150
4559
|
if (process.env.NODE_ENV !== 'production') {
|
|
4151
|
-
const validateError = validate$
|
|
4560
|
+
const validateError = validate$j(input);
|
|
4152
4561
|
if (validateError !== null) {
|
|
4153
4562
|
throw validateError;
|
|
4154
4563
|
}
|
|
4155
4564
|
}
|
|
4156
|
-
const key =
|
|
4565
|
+
const key = keyBuilderFromType$9(luvio, input);
|
|
4157
4566
|
const ttlToUse = TTL$7;
|
|
4158
4567
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "UnifiedAnalytics", VERSION$f, RepresentationType$f, equals$f);
|
|
4159
4568
|
return createLink(key);
|
|
4160
4569
|
};
|
|
4161
4570
|
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
4162
4571
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4163
|
-
const rootKey =
|
|
4572
|
+
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
4164
4573
|
rootKeySet.set(rootKey, {
|
|
4165
4574
|
namespace: keyPrefix,
|
|
4166
4575
|
representationName: RepresentationType$f,
|
|
@@ -4171,21 +4580,18 @@ function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4171
4580
|
function select$z(luvio, params) {
|
|
4172
4581
|
return select$A();
|
|
4173
4582
|
}
|
|
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
4583
|
function getResponseCacheKeys$n(storeKeyMap, luvio, resourceParams, response) {
|
|
4178
|
-
getTypeCacheKeys$f(storeKeyMap, luvio, response
|
|
4584
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
4179
4585
|
}
|
|
4180
|
-
function ingestSuccess$k(luvio, resourceParams, response
|
|
4586
|
+
function ingestSuccess$k(luvio, resourceParams, response) {
|
|
4181
4587
|
const { body } = response;
|
|
4182
|
-
const key =
|
|
4588
|
+
const key = keyBuilderFromType$9(luvio, body);
|
|
4183
4589
|
luvio.storeIngest(key, ingest$f, body);
|
|
4184
4590
|
const snapshot = luvio.storeLookup({
|
|
4185
4591
|
recordId: key,
|
|
4186
4592
|
node: select$z(),
|
|
4187
4593
|
variables: {},
|
|
4188
|
-
}
|
|
4594
|
+
});
|
|
4189
4595
|
if (process.env.NODE_ENV !== 'production') {
|
|
4190
4596
|
if (snapshot.state !== 'Fulfilled') {
|
|
4191
4597
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
@@ -4194,48 +4600,37 @@ function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4194
4600
|
deepFreeze(snapshot.data);
|
|
4195
4601
|
return snapshot;
|
|
4196
4602
|
}
|
|
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
4603
|
function createResourceRequest$n(config) {
|
|
4210
4604
|
const headers = {};
|
|
4211
4605
|
return {
|
|
4212
4606
|
baseUri: '/services/data/v62.0',
|
|
4213
|
-
basePath: '/
|
|
4214
|
-
method: '
|
|
4215
|
-
body:
|
|
4216
|
-
urlParams:
|
|
4217
|
-
queryParams:
|
|
4607
|
+
basePath: '/tableau/loglines',
|
|
4608
|
+
method: 'post',
|
|
4609
|
+
body: config.body,
|
|
4610
|
+
urlParams: {},
|
|
4611
|
+
queryParams: {},
|
|
4218
4612
|
headers,
|
|
4219
4613
|
priority: 'normal',
|
|
4220
4614
|
};
|
|
4221
4615
|
}
|
|
4222
4616
|
|
|
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 */),
|
|
4617
|
+
const adapterName$n = 'createLoglines';
|
|
4618
|
+
const createLoglines_ConfigPropertyMetadata = [
|
|
4619
|
+
generateParamConfigMetadata('loglines', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4229
4620
|
];
|
|
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
|
-
}
|
|
4621
|
+
const createLoglines_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, createLoglines_ConfigPropertyMetadata);
|
|
4622
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$D(createLoglines_ConfigPropertyMetadata);
|
|
4236
4623
|
function typeCheckConfig$n(untrustedConfig) {
|
|
4237
4624
|
const config = {};
|
|
4238
|
-
|
|
4625
|
+
const untrustedConfig_loglines = untrustedConfig.loglines;
|
|
4626
|
+
if (ArrayIsArray$1(untrustedConfig_loglines)) {
|
|
4627
|
+
const untrustedConfig_loglines_array = [];
|
|
4628
|
+
for (let i = 0, arrayLength = untrustedConfig_loglines.length; i < arrayLength; i++) {
|
|
4629
|
+
const untrustedConfig_loglines_item = untrustedConfig_loglines[i];
|
|
4630
|
+
untrustedConfig_loglines_array.push(untrustedConfig_loglines_item);
|
|
4631
|
+
}
|
|
4632
|
+
config.loglines = untrustedConfig_loglines_array;
|
|
4633
|
+
}
|
|
4239
4634
|
return config;
|
|
4240
4635
|
}
|
|
4241
4636
|
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
@@ -4251,103 +4646,102 @@ function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
|
4251
4646
|
}
|
|
4252
4647
|
return config;
|
|
4253
4648
|
}
|
|
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
4649
|
function buildNetworkSnapshot$n(luvio, config, options) {
|
|
4273
4650
|
const resourceParams = createResourceParams$n(config);
|
|
4274
4651
|
const request = createResourceRequest$n(resourceParams);
|
|
4275
4652
|
return luvio.dispatchResourceRequest(request, options)
|
|
4276
4653
|
.then((response) => {
|
|
4277
|
-
return luvio.handleSuccessResponse(() =>
|
|
4654
|
+
return luvio.handleSuccessResponse(() => {
|
|
4655
|
+
const snapshot = ingestSuccess$k(luvio, resourceParams, response);
|
|
4656
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4657
|
+
}, () => {
|
|
4278
4658
|
const cache = new StoreKeyMap();
|
|
4279
4659
|
getResponseCacheKeys$n(cache, luvio, resourceParams, response.body);
|
|
4280
4660
|
return cache;
|
|
4281
4661
|
});
|
|
4282
4662
|
}, (response) => {
|
|
4283
|
-
|
|
4663
|
+
deepFreeze(response);
|
|
4664
|
+
throw response;
|
|
4284
4665
|
});
|
|
4285
4666
|
}
|
|
4286
|
-
|
|
4287
|
-
return
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
variables: {},
|
|
4667
|
+
const createLoglinesAdapterFactory = (luvio) => {
|
|
4668
|
+
return function createLoglines(untrustedConfig) {
|
|
4669
|
+
const config = validateAdapterConfig$n(untrustedConfig, createLoglines_ConfigPropertyNames);
|
|
4670
|
+
// Invalid or incomplete config
|
|
4671
|
+
if (config === null) {
|
|
4672
|
+
throw new Error('Invalid config for "createLoglines"');
|
|
4673
|
+
}
|
|
4674
|
+
return buildNetworkSnapshot$n(luvio, config);
|
|
4295
4675
|
};
|
|
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
4676
|
};
|
|
4311
4677
|
|
|
4312
|
-
|
|
4313
|
-
const VERSION$e = "f2e0254a8e6b03f2289f318634389df3";
|
|
4314
|
-
function validate$h(obj, path = 'UnifiedAnalyticsLogLinesRepresentation') {
|
|
4678
|
+
function validate$i(obj, path = 'OrgRepresentation') {
|
|
4315
4679
|
const v_error = (() => {
|
|
4316
4680
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4317
4681
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4318
4682
|
}
|
|
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
4683
|
const obj_id = obj.id;
|
|
4325
4684
|
const path_id = path + '.id';
|
|
4326
4685
|
if (typeof obj_id !== 'string') {
|
|
4327
4686
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
4328
4687
|
}
|
|
4329
|
-
const
|
|
4330
|
-
const
|
|
4331
|
-
if (typeof
|
|
4332
|
-
return new TypeError('Expected "
|
|
4688
|
+
const obj_label = obj.label;
|
|
4689
|
+
const path_label = path + '.label';
|
|
4690
|
+
if (typeof obj_label !== 'string') {
|
|
4691
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
4692
|
+
}
|
|
4693
|
+
const obj_orgUrl = obj.orgUrl;
|
|
4694
|
+
const path_orgUrl = path + '.orgUrl';
|
|
4695
|
+
if (typeof obj_orgUrl !== 'string') {
|
|
4696
|
+
return new TypeError('Expected "string" but received "' + typeof obj_orgUrl + '" (at "' + path_orgUrl + '")');
|
|
4697
|
+
}
|
|
4698
|
+
const obj_targetUrl = obj.targetUrl;
|
|
4699
|
+
const path_targetUrl = path + '.targetUrl';
|
|
4700
|
+
if (typeof obj_targetUrl !== 'string') {
|
|
4701
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetUrl + '" (at "' + path_targetUrl + '")');
|
|
4333
4702
|
}
|
|
4334
4703
|
})();
|
|
4335
4704
|
return v_error === undefined ? null : v_error;
|
|
4336
4705
|
}
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4706
|
+
|
|
4707
|
+
const TTL$6 = 500;
|
|
4708
|
+
const VERSION$e = "ebd45d9f8ecdc711027eec047d0803ac";
|
|
4709
|
+
function validate$h(obj, path = 'OrgCollectionRepresentation') {
|
|
4710
|
+
const v_error = (() => {
|
|
4711
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4712
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4713
|
+
}
|
|
4714
|
+
const obj_currentOrg = obj.currentOrg;
|
|
4715
|
+
const path_currentOrg = path + '.currentOrg';
|
|
4716
|
+
const referencepath_currentOrgValidationError = validate$i(obj_currentOrg, path_currentOrg);
|
|
4717
|
+
if (referencepath_currentOrgValidationError !== null) {
|
|
4718
|
+
let message = 'Object doesn\'t match OrgRepresentation (at "' + path_currentOrg + '")\n';
|
|
4719
|
+
message += referencepath_currentOrgValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4720
|
+
return new TypeError(message);
|
|
4721
|
+
}
|
|
4722
|
+
const obj_orgs = obj.orgs;
|
|
4723
|
+
const path_orgs = path + '.orgs';
|
|
4724
|
+
if (!ArrayIsArray(obj_orgs)) {
|
|
4725
|
+
return new TypeError('Expected "array" but received "' + typeof obj_orgs + '" (at "' + path_orgs + '")');
|
|
4726
|
+
}
|
|
4727
|
+
for (let i = 0; i < obj_orgs.length; i++) {
|
|
4728
|
+
const obj_orgs_item = obj_orgs[i];
|
|
4729
|
+
const path_orgs_item = path_orgs + '[' + i + ']';
|
|
4730
|
+
const referencepath_orgs_itemValidationError = validate$i(obj_orgs_item, path_orgs_item);
|
|
4731
|
+
if (referencepath_orgs_itemValidationError !== null) {
|
|
4732
|
+
let message = 'Object doesn\'t match OrgRepresentation (at "' + path_orgs_item + '")\n';
|
|
4733
|
+
message += referencepath_orgs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4734
|
+
return new TypeError(message);
|
|
4735
|
+
}
|
|
4736
|
+
}
|
|
4737
|
+
})();
|
|
4738
|
+
return v_error === undefined ? null : v_error;
|
|
4346
4739
|
}
|
|
4740
|
+
const RepresentationType$e = 'OrgCollectionRepresentation';
|
|
4347
4741
|
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
4348
4742
|
return input;
|
|
4349
4743
|
}
|
|
4350
|
-
const select$y = function
|
|
4744
|
+
const select$y = function OrgCollectionRepresentationSelect() {
|
|
4351
4745
|
return {
|
|
4352
4746
|
kind: 'Fragment',
|
|
4353
4747
|
version: VERSION$e,
|
|
@@ -4361,21 +4755,21 @@ function equals$e(existing, incoming) {
|
|
|
4361
4755
|
}
|
|
4362
4756
|
return true;
|
|
4363
4757
|
}
|
|
4364
|
-
const ingest$e = function
|
|
4758
|
+
const ingest$e = function OrgCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4365
4759
|
if (process.env.NODE_ENV !== 'production') {
|
|
4366
4760
|
const validateError = validate$h(input);
|
|
4367
4761
|
if (validateError !== null) {
|
|
4368
4762
|
throw validateError;
|
|
4369
4763
|
}
|
|
4370
4764
|
}
|
|
4371
|
-
const key =
|
|
4765
|
+
const key = path.fullPath;
|
|
4372
4766
|
const ttlToUse = TTL$6;
|
|
4373
4767
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "UnifiedAnalytics", VERSION$e, RepresentationType$e, equals$e);
|
|
4374
4768
|
return createLink(key);
|
|
4375
4769
|
};
|
|
4376
4770
|
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
4377
4771
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4378
|
-
const rootKey =
|
|
4772
|
+
const rootKey = fullPathFactory();
|
|
4379
4773
|
rootKeySet.set(rootKey, {
|
|
4380
4774
|
namespace: keyPrefix,
|
|
4381
4775
|
representationName: RepresentationType$e,
|
|
@@ -4386,18 +4780,21 @@ function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4386
4780
|
function select$x(luvio, params) {
|
|
4387
4781
|
return select$y();
|
|
4388
4782
|
}
|
|
4783
|
+
function keyBuilder$v(luvio, params) {
|
|
4784
|
+
return keyPrefix + '::OrgCollectionRepresentation:(' + 'userName:' + params.urlParams.userName + ')';
|
|
4785
|
+
}
|
|
4389
4786
|
function getResponseCacheKeys$m(storeKeyMap, luvio, resourceParams, response) {
|
|
4390
|
-
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
4787
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response, () => keyBuilder$v(luvio, resourceParams));
|
|
4391
4788
|
}
|
|
4392
|
-
function ingestSuccess$j(luvio, resourceParams, response) {
|
|
4789
|
+
function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
4393
4790
|
const { body } = response;
|
|
4394
|
-
const key =
|
|
4791
|
+
const key = keyBuilder$v(luvio, resourceParams);
|
|
4395
4792
|
luvio.storeIngest(key, ingest$e, body);
|
|
4396
4793
|
const snapshot = luvio.storeLookup({
|
|
4397
4794
|
recordId: key,
|
|
4398
4795
|
node: select$x(),
|
|
4399
4796
|
variables: {},
|
|
4400
|
-
});
|
|
4797
|
+
}, snapshotRefresh);
|
|
4401
4798
|
if (process.env.NODE_ENV !== 'production') {
|
|
4402
4799
|
if (snapshot.state !== 'Fulfilled') {
|
|
4403
4800
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
@@ -4406,37 +4803,45 @@ function ingestSuccess$j(luvio, resourceParams, response) {
|
|
|
4406
4803
|
deepFreeze(snapshot.data);
|
|
4407
4804
|
return snapshot;
|
|
4408
4805
|
}
|
|
4806
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
4807
|
+
const key = keyBuilder$v(luvio, params);
|
|
4808
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4809
|
+
const storeMetadataParams = {
|
|
4810
|
+
ttl: TTL$6,
|
|
4811
|
+
namespace: keyPrefix,
|
|
4812
|
+
version: VERSION$e,
|
|
4813
|
+
representationName: RepresentationType$e
|
|
4814
|
+
};
|
|
4815
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4816
|
+
return errorSnapshot;
|
|
4817
|
+
}
|
|
4409
4818
|
function createResourceRequest$m(config) {
|
|
4410
4819
|
const headers = {};
|
|
4411
4820
|
return {
|
|
4412
4821
|
baseUri: '/services/data/v62.0',
|
|
4413
|
-
basePath: '/
|
|
4414
|
-
method: '
|
|
4415
|
-
body:
|
|
4416
|
-
urlParams:
|
|
4822
|
+
basePath: '/tableau/orgs/' + config.urlParams.userName + '',
|
|
4823
|
+
method: 'get',
|
|
4824
|
+
body: null,
|
|
4825
|
+
urlParams: config.urlParams,
|
|
4417
4826
|
queryParams: {},
|
|
4418
4827
|
headers,
|
|
4419
4828
|
priority: 'normal',
|
|
4420
4829
|
};
|
|
4421
4830
|
}
|
|
4422
4831
|
|
|
4423
|
-
const adapterName$m = '
|
|
4424
|
-
const
|
|
4425
|
-
generateParamConfigMetadata('
|
|
4832
|
+
const adapterName$m = 'getOrg';
|
|
4833
|
+
const getOrg_ConfigPropertyMetadata = [
|
|
4834
|
+
generateParamConfigMetadata('userName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4426
4835
|
];
|
|
4427
|
-
const
|
|
4428
|
-
const createResourceParams$m = /*#__PURE__*/ createResourceParams$
|
|
4836
|
+
const getOrg_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, getOrg_ConfigPropertyMetadata);
|
|
4837
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$D(getOrg_ConfigPropertyMetadata);
|
|
4838
|
+
function keyBuilder$u(luvio, config) {
|
|
4839
|
+
const resourceParams = createResourceParams$m(config);
|
|
4840
|
+
return keyBuilder$v(luvio, resourceParams);
|
|
4841
|
+
}
|
|
4429
4842
|
function typeCheckConfig$m(untrustedConfig) {
|
|
4430
4843
|
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
|
-
}
|
|
4844
|
+
typeCheckConfig$D(untrustedConfig, config, getOrg_ConfigPropertyMetadata);
|
|
4440
4845
|
return config;
|
|
4441
4846
|
}
|
|
4442
4847
|
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
@@ -4452,33 +4857,62 @@ function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
|
4452
4857
|
}
|
|
4453
4858
|
return config;
|
|
4454
4859
|
}
|
|
4860
|
+
function adapterFragment$9(luvio, config) {
|
|
4861
|
+
createResourceParams$m(config);
|
|
4862
|
+
return select$x();
|
|
4863
|
+
}
|
|
4864
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
4865
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
|
|
4866
|
+
config,
|
|
4867
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
4868
|
+
});
|
|
4869
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4870
|
+
}
|
|
4871
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
4872
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
4873
|
+
config,
|
|
4874
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
4875
|
+
});
|
|
4876
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4877
|
+
}
|
|
4455
4878
|
function buildNetworkSnapshot$m(luvio, config, options) {
|
|
4456
4879
|
const resourceParams = createResourceParams$m(config);
|
|
4457
4880
|
const request = createResourceRequest$m(resourceParams);
|
|
4458
4881
|
return luvio.dispatchResourceRequest(request, options)
|
|
4459
4882
|
.then((response) => {
|
|
4460
|
-
return luvio.handleSuccessResponse(() => {
|
|
4461
|
-
const snapshot = ingestSuccess$j(luvio, resourceParams, response);
|
|
4462
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
4463
|
-
}, () => {
|
|
4883
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
4464
4884
|
const cache = new StoreKeyMap();
|
|
4465
4885
|
getResponseCacheKeys$m(cache, luvio, resourceParams, response.body);
|
|
4466
4886
|
return cache;
|
|
4467
4887
|
});
|
|
4468
4888
|
}, (response) => {
|
|
4469
|
-
|
|
4470
|
-
throw response;
|
|
4889
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
4471
4890
|
});
|
|
4472
4891
|
}
|
|
4473
|
-
|
|
4474
|
-
return
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4892
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
4893
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$m, undefined, false);
|
|
4894
|
+
}
|
|
4895
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
4896
|
+
const { luvio, config } = context;
|
|
4897
|
+
const selector = {
|
|
4898
|
+
recordId: keyBuilder$u(luvio, config),
|
|
4899
|
+
node: adapterFragment$9(luvio, config),
|
|
4900
|
+
variables: {},
|
|
4481
4901
|
};
|
|
4902
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4903
|
+
config,
|
|
4904
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
4905
|
+
});
|
|
4906
|
+
return cacheSnapshot;
|
|
4907
|
+
}
|
|
4908
|
+
const getOrgAdapterFactory = (luvio) => function UnifiedAnalytics__getOrg(untrustedConfig, requestContext) {
|
|
4909
|
+
const config = validateAdapterConfig$m(untrustedConfig, getOrg_ConfigPropertyNames);
|
|
4910
|
+
// Invalid or incomplete config
|
|
4911
|
+
if (config === null) {
|
|
4912
|
+
return null;
|
|
4913
|
+
}
|
|
4914
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4915
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
4482
4916
|
};
|
|
4483
4917
|
|
|
4484
4918
|
const TTL$5 = 1000;
|
|
@@ -4746,7 +5180,7 @@ function createResourceRequest$l(config) {
|
|
|
4746
5180
|
const headers = {};
|
|
4747
5181
|
return {
|
|
4748
5182
|
baseUri: '/services/data/v62.0',
|
|
4749
|
-
basePath: '/
|
|
5183
|
+
basePath: '/tableau/slack/channels',
|
|
4750
5184
|
method: 'get',
|
|
4751
5185
|
body: null,
|
|
4752
5186
|
urlParams: {},
|
|
@@ -4761,14 +5195,14 @@ const getAssetSlackChannels_ConfigPropertyMetadata = [
|
|
|
4761
5195
|
generateParamConfigMetadata('assetId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
4762
5196
|
];
|
|
4763
5197
|
const getAssetSlackChannels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
4764
|
-
const createResourceParams$l = /*#__PURE__*/ createResourceParams$
|
|
5198
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$D(getAssetSlackChannels_ConfigPropertyMetadata);
|
|
4765
5199
|
function keyBuilder$r(luvio, config) {
|
|
4766
5200
|
const resourceParams = createResourceParams$l(config);
|
|
4767
5201
|
return keyBuilder$s(luvio, resourceParams);
|
|
4768
5202
|
}
|
|
4769
5203
|
function typeCheckConfig$l(untrustedConfig) {
|
|
4770
5204
|
const config = {};
|
|
4771
|
-
typeCheckConfig$
|
|
5205
|
+
typeCheckConfig$D(untrustedConfig, config, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
4772
5206
|
return config;
|
|
4773
5207
|
}
|
|
4774
5208
|
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
@@ -4817,7 +5251,7 @@ function buildNetworkSnapshot$l(luvio, config, options) {
|
|
|
4817
5251
|
});
|
|
4818
5252
|
}
|
|
4819
5253
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
4820
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5254
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$l, undefined, false);
|
|
4821
5255
|
}
|
|
4822
5256
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
4823
5257
|
const { luvio, config } = context;
|
|
@@ -4869,7 +5303,7 @@ function createResourceRequest$k(config) {
|
|
|
4869
5303
|
const headers = {};
|
|
4870
5304
|
return {
|
|
4871
5305
|
baseUri: '/services/data/v62.0',
|
|
4872
|
-
basePath: '/
|
|
5306
|
+
basePath: '/tableau/slack/channels',
|
|
4873
5307
|
method: 'post',
|
|
4874
5308
|
body: config.body,
|
|
4875
5309
|
urlParams: {},
|
|
@@ -4886,10 +5320,10 @@ const createAssetSlackChannel_ConfigPropertyMetadata = [
|
|
|
4886
5320
|
generateParamConfigMetadata('teamId', true, 2 /* Body */, 0 /* String */),
|
|
4887
5321
|
];
|
|
4888
5322
|
const createAssetSlackChannel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
4889
|
-
const createResourceParams$k = /*#__PURE__*/ createResourceParams$
|
|
5323
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$D(createAssetSlackChannel_ConfigPropertyMetadata);
|
|
4890
5324
|
function typeCheckConfig$k(untrustedConfig) {
|
|
4891
5325
|
const config = {};
|
|
4892
|
-
typeCheckConfig$
|
|
5326
|
+
typeCheckConfig$D(untrustedConfig, config, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
4893
5327
|
return config;
|
|
4894
5328
|
}
|
|
4895
5329
|
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
@@ -4949,7 +5383,7 @@ function validate$e(obj, path = 'AnalyticsUsersQueryResultsRepresentation') {
|
|
|
4949
5383
|
for (let i = 0; i < obj_items.length; i++) {
|
|
4950
5384
|
const obj_items_item = obj_items[i];
|
|
4951
5385
|
const path_items_item = path_items + '[' + i + ']';
|
|
4952
|
-
const referencepath_items_itemValidationError = validate$
|
|
5386
|
+
const referencepath_items_itemValidationError = validate$p(obj_items_item, path_items_item);
|
|
4953
5387
|
if (referencepath_items_itemValidationError !== null) {
|
|
4954
5388
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_items_item + '")\n';
|
|
4955
5389
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5050,7 +5484,7 @@ function createResourceRequest$j(config) {
|
|
|
5050
5484
|
const headers = {};
|
|
5051
5485
|
return {
|
|
5052
5486
|
baseUri: '/services/data/v62.0',
|
|
5053
|
-
basePath: '/
|
|
5487
|
+
basePath: '/tableau/users/query',
|
|
5054
5488
|
method: 'post',
|
|
5055
5489
|
body: config.body,
|
|
5056
5490
|
urlParams: {},
|
|
@@ -5066,10 +5500,10 @@ const queryUsers_ConfigPropertyMetadata = [
|
|
|
5066
5500
|
generateParamConfigMetadata('useAutoSuggest', true, 2 /* Body */, 1 /* Boolean */),
|
|
5067
5501
|
];
|
|
5068
5502
|
const queryUsers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, queryUsers_ConfigPropertyMetadata);
|
|
5069
|
-
const createResourceParams$j = /*#__PURE__*/ createResourceParams$
|
|
5503
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$D(queryUsers_ConfigPropertyMetadata);
|
|
5070
5504
|
function typeCheckConfig$j(untrustedConfig) {
|
|
5071
5505
|
const config = {};
|
|
5072
|
-
typeCheckConfig$
|
|
5506
|
+
typeCheckConfig$D(untrustedConfig, config, queryUsers_ConfigPropertyMetadata);
|
|
5073
5507
|
return config;
|
|
5074
5508
|
}
|
|
5075
5509
|
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
@@ -5122,7 +5556,7 @@ function validate$d(obj, path = 'VisualizationRepresentation') {
|
|
|
5122
5556
|
}
|
|
5123
5557
|
const obj_createdBy = obj.createdBy;
|
|
5124
5558
|
const path_createdBy = path + '.createdBy';
|
|
5125
|
-
const referencepath_createdByValidationError = validate$
|
|
5559
|
+
const referencepath_createdByValidationError = validate$p(obj_createdBy, path_createdBy);
|
|
5126
5560
|
if (referencepath_createdByValidationError !== null) {
|
|
5127
5561
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
5128
5562
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5197,7 +5631,7 @@ function validate$d(obj, path = 'VisualizationRepresentation') {
|
|
|
5197
5631
|
if (obj.lastModifiedBy !== undefined) {
|
|
5198
5632
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
5199
5633
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
5200
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
5634
|
+
const referencepath_lastModifiedByValidationError = validate$p(obj_lastModifiedBy, path_lastModifiedBy);
|
|
5201
5635
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
5202
5636
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
5203
5637
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5443,7 +5877,7 @@ function createResourceRequest$i(config) {
|
|
|
5443
5877
|
const headers = {};
|
|
5444
5878
|
return {
|
|
5445
5879
|
baseUri: '/services/data/v62.0',
|
|
5446
|
-
basePath: '/
|
|
5880
|
+
basePath: '/tableau/visualizations',
|
|
5447
5881
|
method: 'get',
|
|
5448
5882
|
body: null,
|
|
5449
5883
|
urlParams: {},
|
|
@@ -5459,14 +5893,14 @@ const getVisualizations_ConfigPropertyMetadata = [
|
|
|
5459
5893
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5460
5894
|
];
|
|
5461
5895
|
const getVisualizations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getVisualizations_ConfigPropertyMetadata);
|
|
5462
|
-
const createResourceParams$i = /*#__PURE__*/ createResourceParams$
|
|
5896
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$D(getVisualizations_ConfigPropertyMetadata);
|
|
5463
5897
|
function keyBuilder$n(luvio, config) {
|
|
5464
5898
|
const resourceParams = createResourceParams$i(config);
|
|
5465
5899
|
return keyBuilder$o(luvio, resourceParams);
|
|
5466
5900
|
}
|
|
5467
5901
|
function typeCheckConfig$i(untrustedConfig) {
|
|
5468
5902
|
const config = {};
|
|
5469
|
-
typeCheckConfig$
|
|
5903
|
+
typeCheckConfig$D(untrustedConfig, config, getVisualizations_ConfigPropertyMetadata);
|
|
5470
5904
|
return config;
|
|
5471
5905
|
}
|
|
5472
5906
|
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
@@ -5515,7 +5949,7 @@ function buildNetworkSnapshot$i(luvio, config, options) {
|
|
|
5515
5949
|
});
|
|
5516
5950
|
}
|
|
5517
5951
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
5518
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5952
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
5519
5953
|
}
|
|
5520
5954
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
5521
5955
|
const { luvio, config } = context;
|
|
@@ -5567,7 +6001,7 @@ function createResourceRequest$h(config) {
|
|
|
5567
6001
|
const headers = {};
|
|
5568
6002
|
return {
|
|
5569
6003
|
baseUri: '/services/data/v62.0',
|
|
5570
|
-
basePath: '/
|
|
6004
|
+
basePath: '/tableau/visualizations',
|
|
5571
6005
|
method: 'post',
|
|
5572
6006
|
body: config.body,
|
|
5573
6007
|
urlParams: {},
|
|
@@ -5591,10 +6025,10 @@ const createVisualization_ConfigPropertyMetadata = [
|
|
|
5591
6025
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5592
6026
|
];
|
|
5593
6027
|
const createVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, createVisualization_ConfigPropertyMetadata);
|
|
5594
|
-
const createResourceParams$h = /*#__PURE__*/ createResourceParams$
|
|
6028
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$D(createVisualization_ConfigPropertyMetadata);
|
|
5595
6029
|
function typeCheckConfig$h(untrustedConfig) {
|
|
5596
6030
|
const config = {};
|
|
5597
|
-
typeCheckConfig$
|
|
6031
|
+
typeCheckConfig$D(untrustedConfig, config, createVisualization_ConfigPropertyMetadata);
|
|
5598
6032
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
5599
6033
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
5600
6034
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -5744,7 +6178,7 @@ function createResourceRequest$g(config) {
|
|
|
5744
6178
|
const headers = {};
|
|
5745
6179
|
return {
|
|
5746
6180
|
baseUri: '/services/data/v62.0',
|
|
5747
|
-
basePath: '/
|
|
6181
|
+
basePath: '/tableau/visualizations/' + config.urlParams.visualizationIdOrApiName + '',
|
|
5748
6182
|
method: 'delete',
|
|
5749
6183
|
body: null,
|
|
5750
6184
|
urlParams: config.urlParams,
|
|
@@ -5759,10 +6193,10 @@ const deleteVisualization_ConfigPropertyMetadata = [
|
|
|
5759
6193
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5760
6194
|
];
|
|
5761
6195
|
const deleteVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, deleteVisualization_ConfigPropertyMetadata);
|
|
5762
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
6196
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$D(deleteVisualization_ConfigPropertyMetadata);
|
|
5763
6197
|
function typeCheckConfig$g(untrustedConfig) {
|
|
5764
6198
|
const config = {};
|
|
5765
|
-
typeCheckConfig$
|
|
6199
|
+
typeCheckConfig$D(untrustedConfig, config, deleteVisualization_ConfigPropertyMetadata);
|
|
5766
6200
|
return config;
|
|
5767
6201
|
}
|
|
5768
6202
|
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
@@ -5845,7 +6279,7 @@ function createResourceRequest$f(config) {
|
|
|
5845
6279
|
const headers = {};
|
|
5846
6280
|
return {
|
|
5847
6281
|
baseUri: '/services/data/v62.0',
|
|
5848
|
-
basePath: '/
|
|
6282
|
+
basePath: '/tableau/visualizations/' + config.urlParams.visualizationIdOrApiName + '',
|
|
5849
6283
|
method: 'get',
|
|
5850
6284
|
body: null,
|
|
5851
6285
|
urlParams: config.urlParams,
|
|
@@ -5860,14 +6294,14 @@ const getVisualization_ConfigPropertyMetadata = [
|
|
|
5860
6294
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5861
6295
|
];
|
|
5862
6296
|
const getVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getVisualization_ConfigPropertyMetadata);
|
|
5863
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
6297
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$D(getVisualization_ConfigPropertyMetadata);
|
|
5864
6298
|
function keyBuilder$k(luvio, config) {
|
|
5865
6299
|
const resourceParams = createResourceParams$f(config);
|
|
5866
6300
|
return keyBuilder$l(luvio, resourceParams);
|
|
5867
6301
|
}
|
|
5868
6302
|
function typeCheckConfig$f(untrustedConfig) {
|
|
5869
6303
|
const config = {};
|
|
5870
|
-
typeCheckConfig$
|
|
6304
|
+
typeCheckConfig$D(untrustedConfig, config, getVisualization_ConfigPropertyMetadata);
|
|
5871
6305
|
return config;
|
|
5872
6306
|
}
|
|
5873
6307
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -5916,7 +6350,7 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
5916
6350
|
});
|
|
5917
6351
|
}
|
|
5918
6352
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
5919
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6353
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
5920
6354
|
}
|
|
5921
6355
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
5922
6356
|
const { luvio, config } = context;
|
|
@@ -5968,7 +6402,7 @@ function createResourceRequest$e(config) {
|
|
|
5968
6402
|
const headers = {};
|
|
5969
6403
|
return {
|
|
5970
6404
|
baseUri: '/services/data/v62.0',
|
|
5971
|
-
basePath: '/
|
|
6405
|
+
basePath: '/tableau/visualizations/' + config.urlParams.visualizationIdOrApiName + '',
|
|
5972
6406
|
method: 'patch',
|
|
5973
6407
|
body: config.body,
|
|
5974
6408
|
urlParams: config.urlParams,
|
|
@@ -5993,10 +6427,10 @@ const updateVisualization_ConfigPropertyMetadata = [
|
|
|
5993
6427
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5994
6428
|
];
|
|
5995
6429
|
const updateVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, updateVisualization_ConfigPropertyMetadata);
|
|
5996
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
6430
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$D(updateVisualization_ConfigPropertyMetadata);
|
|
5997
6431
|
function typeCheckConfig$e(untrustedConfig) {
|
|
5998
6432
|
const config = {};
|
|
5999
|
-
typeCheckConfig$
|
|
6433
|
+
typeCheckConfig$D(untrustedConfig, config, updateVisualization_ConfigPropertyMetadata);
|
|
6000
6434
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
6001
6435
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
6002
6436
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -6245,7 +6679,7 @@ function createResourceRequest$d(config) {
|
|
|
6245
6679
|
const headers = {};
|
|
6246
6680
|
return {
|
|
6247
6681
|
baseUri: '/services/data/v62.0',
|
|
6248
|
-
basePath: '/
|
|
6682
|
+
basePath: '/tableau/visualizations/' + config.urlParams.visualizationIdOrApiName + '/bundle',
|
|
6249
6683
|
method: 'get',
|
|
6250
6684
|
body: null,
|
|
6251
6685
|
urlParams: config.urlParams,
|
|
@@ -6260,14 +6694,14 @@ const getVisualizationBundle_ConfigPropertyMetadata = [
|
|
|
6260
6694
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6261
6695
|
];
|
|
6262
6696
|
const getVisualizationBundle_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getVisualizationBundle_ConfigPropertyMetadata);
|
|
6263
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
6697
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$D(getVisualizationBundle_ConfigPropertyMetadata);
|
|
6264
6698
|
function keyBuilder$h(luvio, config) {
|
|
6265
6699
|
const resourceParams = createResourceParams$d(config);
|
|
6266
6700
|
return keyBuilder$i(luvio, resourceParams);
|
|
6267
6701
|
}
|
|
6268
6702
|
function typeCheckConfig$d(untrustedConfig) {
|
|
6269
6703
|
const config = {};
|
|
6270
|
-
typeCheckConfig$
|
|
6704
|
+
typeCheckConfig$D(untrustedConfig, config, getVisualizationBundle_ConfigPropertyMetadata);
|
|
6271
6705
|
return config;
|
|
6272
6706
|
}
|
|
6273
6707
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -6316,7 +6750,7 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
6316
6750
|
});
|
|
6317
6751
|
}
|
|
6318
6752
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
6319
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6753
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
6320
6754
|
}
|
|
6321
6755
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
6322
6756
|
const { luvio, config } = context;
|
|
@@ -6341,20 +6775,15 @@ const getVisualizationBundleAdapterFactory = (luvio) => function UnifiedAnalytic
|
|
|
6341
6775
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
6342
6776
|
};
|
|
6343
6777
|
|
|
6344
|
-
const VERSION$7 = "
|
|
6778
|
+
const VERSION$7 = "1d72d9ce1a25023f80eef5daa23f140e";
|
|
6345
6779
|
function validate$a(obj, path = 'WorkspaceRepresentation') {
|
|
6346
6780
|
const v_error = (() => {
|
|
6347
6781
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6348
6782
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6349
6783
|
}
|
|
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
6784
|
const obj_createdBy = obj.createdBy;
|
|
6356
6785
|
const path_createdBy = path + '.createdBy';
|
|
6357
|
-
const referencepath_createdByValidationError = validate$
|
|
6786
|
+
const referencepath_createdByValidationError = validate$p(obj_createdBy, path_createdBy);
|
|
6358
6787
|
if (referencepath_createdByValidationError !== null) {
|
|
6359
6788
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
6360
6789
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6415,7 +6844,7 @@ function keyBuilder$g(luvio, config) {
|
|
|
6415
6844
|
}
|
|
6416
6845
|
function keyBuilderFromType$4(luvio, object) {
|
|
6417
6846
|
const keyParams = {
|
|
6418
|
-
name: object.
|
|
6847
|
+
name: object.name
|
|
6419
6848
|
};
|
|
6420
6849
|
return keyBuilder$g(luvio, keyParams);
|
|
6421
6850
|
}
|
|
@@ -6589,7 +7018,7 @@ function createResourceRequest$c(config) {
|
|
|
6589
7018
|
const headers = {};
|
|
6590
7019
|
return {
|
|
6591
7020
|
baseUri: '/services/data/v62.0',
|
|
6592
|
-
basePath: '/
|
|
7021
|
+
basePath: '/tableau/workspaces',
|
|
6593
7022
|
method: 'get',
|
|
6594
7023
|
body: null,
|
|
6595
7024
|
urlParams: {},
|
|
@@ -6605,14 +7034,14 @@ const getWorkspaces_ConfigPropertyMetadata = [
|
|
|
6605
7034
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
6606
7035
|
];
|
|
6607
7036
|
const getWorkspaces_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getWorkspaces_ConfigPropertyMetadata);
|
|
6608
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
7037
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$D(getWorkspaces_ConfigPropertyMetadata);
|
|
6609
7038
|
function keyBuilder$e(luvio, config) {
|
|
6610
7039
|
const resourceParams = createResourceParams$c(config);
|
|
6611
7040
|
return keyBuilder$f(luvio, resourceParams);
|
|
6612
7041
|
}
|
|
6613
7042
|
function typeCheckConfig$c(untrustedConfig) {
|
|
6614
7043
|
const config = {};
|
|
6615
|
-
typeCheckConfig$
|
|
7044
|
+
typeCheckConfig$D(untrustedConfig, config, getWorkspaces_ConfigPropertyMetadata);
|
|
6616
7045
|
return config;
|
|
6617
7046
|
}
|
|
6618
7047
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -6661,7 +7090,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
6661
7090
|
});
|
|
6662
7091
|
}
|
|
6663
7092
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
6664
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7093
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
6665
7094
|
}
|
|
6666
7095
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
6667
7096
|
const { luvio, config } = context;
|
|
@@ -6713,7 +7142,7 @@ function createResourceRequest$b(config) {
|
|
|
6713
7142
|
const headers = {};
|
|
6714
7143
|
return {
|
|
6715
7144
|
baseUri: '/services/data/v62.0',
|
|
6716
|
-
basePath: '/
|
|
7145
|
+
basePath: '/tableau/workspaces',
|
|
6717
7146
|
method: 'post',
|
|
6718
7147
|
body: config.body,
|
|
6719
7148
|
urlParams: {},
|
|
@@ -6731,10 +7160,10 @@ const createWorkspace_ConfigPropertyMetadata = [
|
|
|
6731
7160
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
6732
7161
|
];
|
|
6733
7162
|
const createWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, createWorkspace_ConfigPropertyMetadata);
|
|
6734
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
7163
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$D(createWorkspace_ConfigPropertyMetadata);
|
|
6735
7164
|
function typeCheckConfig$b(untrustedConfig) {
|
|
6736
7165
|
const config = {};
|
|
6737
|
-
typeCheckConfig$
|
|
7166
|
+
typeCheckConfig$D(untrustedConfig, config, createWorkspace_ConfigPropertyMetadata);
|
|
6738
7167
|
return config;
|
|
6739
7168
|
}
|
|
6740
7169
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -6800,7 +7229,7 @@ function createResourceRequest$a(config) {
|
|
|
6800
7229
|
const headers = {};
|
|
6801
7230
|
return {
|
|
6802
7231
|
baseUri: '/services/data/v62.0',
|
|
6803
|
-
basePath: '/
|
|
7232
|
+
basePath: '/tableau/workspaces/' + config.urlParams.workspaceIdOrApiName + '',
|
|
6804
7233
|
method: 'delete',
|
|
6805
7234
|
body: null,
|
|
6806
7235
|
urlParams: config.urlParams,
|
|
@@ -6815,10 +7244,10 @@ const deleteWorkspace_ConfigPropertyMetadata = [
|
|
|
6815
7244
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6816
7245
|
];
|
|
6817
7246
|
const deleteWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, deleteWorkspace_ConfigPropertyMetadata);
|
|
6818
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
7247
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$D(deleteWorkspace_ConfigPropertyMetadata);
|
|
6819
7248
|
function typeCheckConfig$a(untrustedConfig) {
|
|
6820
7249
|
const config = {};
|
|
6821
|
-
typeCheckConfig$
|
|
7250
|
+
typeCheckConfig$D(untrustedConfig, config, deleteWorkspace_ConfigPropertyMetadata);
|
|
6822
7251
|
return config;
|
|
6823
7252
|
}
|
|
6824
7253
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -6901,7 +7330,7 @@ function createResourceRequest$9(config) {
|
|
|
6901
7330
|
const headers = {};
|
|
6902
7331
|
return {
|
|
6903
7332
|
baseUri: '/services/data/v62.0',
|
|
6904
|
-
basePath: '/
|
|
7333
|
+
basePath: '/tableau/workspaces/' + config.urlParams.workspaceIdOrApiName + '',
|
|
6905
7334
|
method: 'get',
|
|
6906
7335
|
body: null,
|
|
6907
7336
|
urlParams: config.urlParams,
|
|
@@ -6916,14 +7345,14 @@ const getWorkspaceByIdOrName_ConfigPropertyMetadata = [
|
|
|
6916
7345
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6917
7346
|
];
|
|
6918
7347
|
const getWorkspaceByIdOrName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
6919
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
7348
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$D(getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
6920
7349
|
function keyBuilder$b(luvio, config) {
|
|
6921
7350
|
const resourceParams = createResourceParams$9(config);
|
|
6922
7351
|
return keyBuilder$c(luvio, resourceParams);
|
|
6923
7352
|
}
|
|
6924
7353
|
function typeCheckConfig$9(untrustedConfig) {
|
|
6925
7354
|
const config = {};
|
|
6926
|
-
typeCheckConfig$
|
|
7355
|
+
typeCheckConfig$D(untrustedConfig, config, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
6927
7356
|
return config;
|
|
6928
7357
|
}
|
|
6929
7358
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -6972,7 +7401,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
6972
7401
|
});
|
|
6973
7402
|
}
|
|
6974
7403
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
6975
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7404
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
6976
7405
|
}
|
|
6977
7406
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
6978
7407
|
const { luvio, config } = context;
|
|
@@ -7024,7 +7453,7 @@ function createResourceRequest$8(config) {
|
|
|
7024
7453
|
const headers = {};
|
|
7025
7454
|
return {
|
|
7026
7455
|
baseUri: '/services/data/v62.0',
|
|
7027
|
-
basePath: '/
|
|
7456
|
+
basePath: '/tableau/workspaces/' + config.urlParams.workspaceIdOrApiName + '',
|
|
7028
7457
|
method: 'patch',
|
|
7029
7458
|
body: config.body,
|
|
7030
7459
|
urlParams: config.urlParams,
|
|
@@ -7043,10 +7472,10 @@ const updateWorkspace_ConfigPropertyMetadata = [
|
|
|
7043
7472
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
7044
7473
|
];
|
|
7045
7474
|
const updateWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, updateWorkspace_ConfigPropertyMetadata);
|
|
7046
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
7475
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$D(updateWorkspace_ConfigPropertyMetadata);
|
|
7047
7476
|
function typeCheckConfig$8(untrustedConfig) {
|
|
7048
7477
|
const config = {};
|
|
7049
|
-
typeCheckConfig$
|
|
7478
|
+
typeCheckConfig$D(untrustedConfig, config, updateWorkspace_ConfigPropertyMetadata);
|
|
7050
7479
|
return config;
|
|
7051
7480
|
}
|
|
7052
7481
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -7114,7 +7543,7 @@ function validate$8(obj, path = 'WorkspaceAssetRepresentation') {
|
|
|
7114
7543
|
}
|
|
7115
7544
|
const obj_createdBy = obj.createdBy;
|
|
7116
7545
|
const path_createdBy = path + '.createdBy';
|
|
7117
|
-
const referencepath_createdByValidationError = validate$
|
|
7546
|
+
const referencepath_createdByValidationError = validate$p(obj_createdBy, path_createdBy);
|
|
7118
7547
|
if (referencepath_createdByValidationError !== null) {
|
|
7119
7548
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
7120
7549
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7209,7 +7638,7 @@ function createResourceRequest$7(config) {
|
|
|
7209
7638
|
const headers = {};
|
|
7210
7639
|
return {
|
|
7211
7640
|
baseUri: '/services/data/v62.0',
|
|
7212
|
-
basePath: '/
|
|
7641
|
+
basePath: '/tableau/workspaces/' + config.urlParams.workspaceIdOrApiName + '/assets',
|
|
7213
7642
|
method: 'post',
|
|
7214
7643
|
body: config.body,
|
|
7215
7644
|
urlParams: config.urlParams,
|
|
@@ -7227,10 +7656,10 @@ const createWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
7227
7656
|
generateParamConfigMetadata('assetUsageType', true, 2 /* Body */, 0 /* String */),
|
|
7228
7657
|
];
|
|
7229
7658
|
const createWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
7230
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
7659
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$D(createWorkspaceAsset_ConfigPropertyMetadata);
|
|
7231
7660
|
function typeCheckConfig$7(untrustedConfig) {
|
|
7232
7661
|
const config = {};
|
|
7233
|
-
typeCheckConfig$
|
|
7662
|
+
typeCheckConfig$D(untrustedConfig, config, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
7234
7663
|
return config;
|
|
7235
7664
|
}
|
|
7236
7665
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -7296,7 +7725,7 @@ function createResourceRequest$6(config) {
|
|
|
7296
7725
|
const headers = {};
|
|
7297
7726
|
return {
|
|
7298
7727
|
baseUri: '/services/data/v62.0',
|
|
7299
|
-
basePath: '/
|
|
7728
|
+
basePath: '/tableau/workspaces/' + config.urlParams.workspaceIdOrApiName + '/assets/' + config.urlParams.assetId + '',
|
|
7300
7729
|
method: 'delete',
|
|
7301
7730
|
body: null,
|
|
7302
7731
|
urlParams: config.urlParams,
|
|
@@ -7312,10 +7741,10 @@ const deleteWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
7312
7741
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7313
7742
|
];
|
|
7314
7743
|
const deleteWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
7315
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
7744
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$D(deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
7316
7745
|
function typeCheckConfig$6(untrustedConfig) {
|
|
7317
7746
|
const config = {};
|
|
7318
|
-
typeCheckConfig$
|
|
7747
|
+
typeCheckConfig$D(untrustedConfig, config, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
7319
7748
|
return config;
|
|
7320
7749
|
}
|
|
7321
7750
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -7683,7 +8112,7 @@ function createResourceRequest$5(config) {
|
|
|
7683
8112
|
const headers = {};
|
|
7684
8113
|
return {
|
|
7685
8114
|
baseUri: '/services/data/v62.0',
|
|
7686
|
-
basePath: '/
|
|
8115
|
+
basePath: '/tableau/flows',
|
|
7687
8116
|
method: 'get',
|
|
7688
8117
|
body: null,
|
|
7689
8118
|
urlParams: {},
|
|
@@ -7699,14 +8128,14 @@ const getFlows_ConfigPropertyMetadata = [
|
|
|
7699
8128
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
7700
8129
|
];
|
|
7701
8130
|
const getFlows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getFlows_ConfigPropertyMetadata);
|
|
7702
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
8131
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$D(getFlows_ConfigPropertyMetadata);
|
|
7703
8132
|
function keyBuilder$7(luvio, config) {
|
|
7704
8133
|
const resourceParams = createResourceParams$5(config);
|
|
7705
8134
|
return keyBuilder$8(luvio, resourceParams);
|
|
7706
8135
|
}
|
|
7707
8136
|
function typeCheckConfig$5(untrustedConfig) {
|
|
7708
8137
|
const config = {};
|
|
7709
|
-
typeCheckConfig$
|
|
8138
|
+
typeCheckConfig$D(untrustedConfig, config, getFlows_ConfigPropertyMetadata);
|
|
7710
8139
|
return config;
|
|
7711
8140
|
}
|
|
7712
8141
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -7755,7 +8184,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
7755
8184
|
});
|
|
7756
8185
|
}
|
|
7757
8186
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
7758
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8187
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
7759
8188
|
}
|
|
7760
8189
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
7761
8190
|
const { luvio, config } = context;
|
|
@@ -7816,7 +8245,7 @@ function createResourceRequest$4(config) {
|
|
|
7816
8245
|
const headers = {};
|
|
7817
8246
|
return {
|
|
7818
8247
|
baseUri: '/services/data/v62.0',
|
|
7819
|
-
basePath: '/
|
|
8248
|
+
basePath: '/tableau/flows/' + config.urlParams.flowApiName + '',
|
|
7820
8249
|
method: 'get',
|
|
7821
8250
|
body: null,
|
|
7822
8251
|
urlParams: config.urlParams,
|
|
@@ -7831,14 +8260,14 @@ const getFlowByName_ConfigPropertyMetadata = [
|
|
|
7831
8260
|
generateParamConfigMetadata('flowApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7832
8261
|
];
|
|
7833
8262
|
const getFlowByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getFlowByName_ConfigPropertyMetadata);
|
|
7834
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
8263
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$D(getFlowByName_ConfigPropertyMetadata);
|
|
7835
8264
|
function keyBuilder$5(luvio, config) {
|
|
7836
8265
|
const resourceParams = createResourceParams$4(config);
|
|
7837
8266
|
return keyBuilder$6(luvio, resourceParams);
|
|
7838
8267
|
}
|
|
7839
8268
|
function typeCheckConfig$4(untrustedConfig) {
|
|
7840
8269
|
const config = {};
|
|
7841
|
-
typeCheckConfig$
|
|
8270
|
+
typeCheckConfig$D(untrustedConfig, config, getFlowByName_ConfigPropertyMetadata);
|
|
7842
8271
|
return config;
|
|
7843
8272
|
}
|
|
7844
8273
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -7887,7 +8316,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
7887
8316
|
});
|
|
7888
8317
|
}
|
|
7889
8318
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
7890
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8319
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
7891
8320
|
}
|
|
7892
8321
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
7893
8322
|
const { luvio, config } = context;
|
|
@@ -8030,7 +8459,7 @@ function createResourceRequest$3(config) {
|
|
|
8030
8459
|
const headers = {};
|
|
8031
8460
|
return {
|
|
8032
8461
|
baseUri: '/services/data/v62.0',
|
|
8033
|
-
basePath: '/
|
|
8462
|
+
basePath: '/tableau/subscriptions/digest/' + config.urlParams.digestConfigOwner + '',
|
|
8034
8463
|
method: 'get',
|
|
8035
8464
|
body: null,
|
|
8036
8465
|
urlParams: config.urlParams,
|
|
@@ -8045,14 +8474,14 @@ const getSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
8045
8474
|
generateParamConfigMetadata('digestConfigOwner', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8046
8475
|
];
|
|
8047
8476
|
const getSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
8048
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
8477
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$D(getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
8049
8478
|
function keyBuilder$2(luvio, config) {
|
|
8050
8479
|
const resourceParams = createResourceParams$3(config);
|
|
8051
8480
|
return keyBuilder$3(luvio, resourceParams);
|
|
8052
8481
|
}
|
|
8053
8482
|
function typeCheckConfig$3(untrustedConfig) {
|
|
8054
8483
|
const config = {};
|
|
8055
|
-
typeCheckConfig$
|
|
8484
|
+
typeCheckConfig$D(untrustedConfig, config, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
8056
8485
|
return config;
|
|
8057
8486
|
}
|
|
8058
8487
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -8101,7 +8530,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
8101
8530
|
});
|
|
8102
8531
|
}
|
|
8103
8532
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
8104
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8533
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
8105
8534
|
}
|
|
8106
8535
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
8107
8536
|
const { luvio, config } = context;
|
|
@@ -8153,7 +8582,7 @@ function createResourceRequest$2(config) {
|
|
|
8153
8582
|
const headers = {};
|
|
8154
8583
|
return {
|
|
8155
8584
|
baseUri: '/services/data/v62.0',
|
|
8156
|
-
basePath: '/
|
|
8585
|
+
basePath: '/tableau/subscriptions/digest/' + config.urlParams.digestConfigOwner + '',
|
|
8157
8586
|
method: 'patch',
|
|
8158
8587
|
body: config.body,
|
|
8159
8588
|
urlParams: config.urlParams,
|
|
@@ -8170,10 +8599,10 @@ const updateSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
8170
8599
|
generateParamConfigMetadata('scheduleType', true, 2 /* Body */, 0 /* String */),
|
|
8171
8600
|
];
|
|
8172
8601
|
const updateSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
8173
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
8602
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$D(updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
8174
8603
|
function typeCheckConfig$2(untrustedConfig) {
|
|
8175
8604
|
const config = {};
|
|
8176
|
-
typeCheckConfig$
|
|
8605
|
+
typeCheckConfig$D(untrustedConfig, config, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
8177
8606
|
return config;
|
|
8178
8607
|
}
|
|
8179
8608
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -8384,7 +8813,7 @@ function createResourceRequest$1(config) {
|
|
|
8384
8813
|
const headers = {};
|
|
8385
8814
|
return {
|
|
8386
8815
|
baseUri: '/services/data/v62.0',
|
|
8387
|
-
basePath: '/
|
|
8816
|
+
basePath: '/tableau/library/assets/query',
|
|
8388
8817
|
method: 'post',
|
|
8389
8818
|
body: config.body,
|
|
8390
8819
|
urlParams: {},
|
|
@@ -8403,7 +8832,7 @@ const getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata = [
|
|
|
8403
8832
|
generateParamConfigMetadata('searchToken', false, 2 /* Body */, 4 /* Unsupported */),
|
|
8404
8833
|
];
|
|
8405
8834
|
const getUnifiedAnalyticsLibraryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
8406
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
8835
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$D(getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
8407
8836
|
function typeCheckConfig$1(untrustedConfig) {
|
|
8408
8837
|
const config = {};
|
|
8409
8838
|
const untrustedConfig_assetTypes = untrustedConfig.assetTypes;
|
|
@@ -8637,10 +9066,10 @@ const generateSFDriveCredentials_ConfigPropertyMetadata = [
|
|
|
8637
9066
|
generateParamConfigMetadata('path', true, 2 /* Body */, 0 /* String */),
|
|
8638
9067
|
];
|
|
8639
9068
|
const generateSFDriveCredentials_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
8640
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
9069
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$D(generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
8641
9070
|
function typeCheckConfig(untrustedConfig) {
|
|
8642
9071
|
const config = {};
|
|
8643
|
-
typeCheckConfig$
|
|
9072
|
+
typeCheckConfig$D(untrustedConfig, config, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
8644
9073
|
return config;
|
|
8645
9074
|
}
|
|
8646
9075
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -8685,4 +9114,4 @@ const generateSFDriveCredentialsAdapterFactory = (luvio) => {
|
|
|
8685
9114
|
};
|
|
8686
9115
|
};
|
|
8687
9116
|
|
|
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 };
|
|
9117
|
+
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 };
|