@salesforce/lds-adapters-analytics-unifiedanalytics 1.310.0 → 1.311.0
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 +1041 -801
- package/dist/es/es2018/types/src/generated/adapters/getOrg.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getUnifiedAnalyticsOrgsByUserName.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/package.json +3 -3
- package/sfdc/index.js +1250 -1002
- package/src/raml/api.raml +51 -0
- package/src/raml/luvio.raml +8 -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$I(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,7 +190,7 @@ function ingestSuccess$w(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',
|
|
@@ -204,13 +204,13 @@ function createResourceRequest$B(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$B(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$B(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$H(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$G(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$F(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$E(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$E(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$D(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$D(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$C(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$C(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$B(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$A(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$A(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$z(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$z(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$y(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');
|
|
@@ -1443,7 +1443,7 @@ function validate$y(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1443
1443
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
1444
1444
|
const obj_reactions_item = obj_reactions[i];
|
|
1445
1445
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
1446
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
1446
|
+
const referencepath_reactions_itemValidationError = validate$B(obj_reactions_item, path_reactions_item);
|
|
1447
1447
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
1448
1448
|
let message = 'Object doesn\'t match SlackReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
1449
1449
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1484,7 +1484,7 @@ function validate$y(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1484
1484
|
for (let i = 0; i < obj_replyUsers.length; i++) {
|
|
1485
1485
|
const obj_replyUsers_item = obj_replyUsers[i];
|
|
1486
1486
|
const path_replyUsers_item = path_replyUsers + '[' + i + ']';
|
|
1487
|
-
const referencepath_replyUsers_itemValidationError = validate$
|
|
1487
|
+
const referencepath_replyUsers_itemValidationError = validate$C(obj_replyUsers_item, path_replyUsers_item);
|
|
1488
1488
|
if (referencepath_replyUsers_itemValidationError !== null) {
|
|
1489
1489
|
let message = 'Object doesn\'t match SlackUserInfoOutputRepresentation (at "' + path_replyUsers_item + '")\n';
|
|
1490
1490
|
message += referencepath_replyUsers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1617,7 +1617,7 @@ function validate$y(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1617
1617
|
}
|
|
1618
1618
|
const obj_userInfo = obj.userInfo;
|
|
1619
1619
|
const path_userInfo = path + '.userInfo';
|
|
1620
|
-
const referencepath_userInfoValidationError = validate$
|
|
1620
|
+
const referencepath_userInfoValidationError = validate$C(obj_userInfo, path_userInfo);
|
|
1621
1621
|
if (referencepath_userInfoValidationError !== null) {
|
|
1622
1622
|
let message = 'Object doesn\'t match SlackUserInfoOutputRepresentation (at "' + path_userInfo + '")\n';
|
|
1623
1623
|
message += referencepath_userInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1627,7 +1627,7 @@ function validate$y(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1627
1627
|
return v_error === undefined ? null : v_error;
|
|
1628
1628
|
}
|
|
1629
1629
|
|
|
1630
|
-
function validate$
|
|
1630
|
+
function validate$z(obj, path = 'AnnotationConversationRepresentation') {
|
|
1631
1631
|
const v_error = (() => {
|
|
1632
1632
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1633
1633
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1652,7 +1652,7 @@ function validate$x(obj, path = 'AnnotationConversationRepresentation') {
|
|
|
1652
1652
|
const path_message = path + '.message';
|
|
1653
1653
|
let obj_message_union0 = null;
|
|
1654
1654
|
const obj_message_union0_error = (() => {
|
|
1655
|
-
const referencepath_messageValidationError = validate$
|
|
1655
|
+
const referencepath_messageValidationError = validate$A(obj_message, path_message);
|
|
1656
1656
|
if (referencepath_messageValidationError !== null) {
|
|
1657
1657
|
let message = 'Object doesn\'t match SlackMessageOutputRepresentation (at "' + path_message + '")\n';
|
|
1658
1658
|
message += referencepath_messageValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1687,9 +1687,9 @@ function validate$x(obj, path = 'AnnotationConversationRepresentation') {
|
|
|
1687
1687
|
return v_error === undefined ? null : v_error;
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
|
-
const TTL$
|
|
1691
|
-
const VERSION$
|
|
1692
|
-
function validate$
|
|
1690
|
+
const TTL$f = 1000;
|
|
1691
|
+
const VERSION$p = "bacc25da56cffff8126d9bdafc471a37";
|
|
1692
|
+
function validate$y(obj, path = 'AnnotationRepresentation') {
|
|
1693
1693
|
const v_error = (() => {
|
|
1694
1694
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1695
1695
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1697,7 +1697,7 @@ function validate$w(obj, path = 'AnnotationRepresentation') {
|
|
|
1697
1697
|
if (obj.anchor !== undefined) {
|
|
1698
1698
|
const obj_anchor = obj.anchor;
|
|
1699
1699
|
const path_anchor = path + '.anchor';
|
|
1700
|
-
const referencepath_anchorValidationError = validate$
|
|
1700
|
+
const referencepath_anchorValidationError = validate$J(obj_anchor, path_anchor);
|
|
1701
1701
|
if (referencepath_anchorValidationError !== null) {
|
|
1702
1702
|
let message = 'Object doesn\'t match DashboardAnnotationAnchorRepresentation (at "' + path_anchor + '")\n';
|
|
1703
1703
|
message += referencepath_anchorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1711,7 +1711,7 @@ function validate$w(obj, path = 'AnnotationRepresentation') {
|
|
|
1711
1711
|
}
|
|
1712
1712
|
const obj_asset = obj.asset;
|
|
1713
1713
|
const path_asset = path + '.asset';
|
|
1714
|
-
const referencepath_assetValidationError = validate$
|
|
1714
|
+
const referencepath_assetValidationError = validate$I(obj_asset, path_asset);
|
|
1715
1715
|
if (referencepath_assetValidationError !== null) {
|
|
1716
1716
|
let message = 'Object doesn\'t match AnnotationAssetRepresentation (at "' + path_asset + '")\n';
|
|
1717
1717
|
message += referencepath_assetValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1719,7 +1719,7 @@ function validate$w(obj, path = 'AnnotationRepresentation') {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
const obj_collaborationObject = obj.collaborationObject;
|
|
1721
1721
|
const path_collaborationObject = path + '.collaborationObject';
|
|
1722
|
-
const referencepath_collaborationObjectValidationError = validate$
|
|
1722
|
+
const referencepath_collaborationObjectValidationError = validate$z(obj_collaborationObject, path_collaborationObject);
|
|
1723
1723
|
if (referencepath_collaborationObjectValidationError !== null) {
|
|
1724
1724
|
let message = 'Object doesn\'t match AnnotationConversationRepresentation (at "' + path_collaborationObject + '")\n';
|
|
1725
1725
|
message += referencepath_collaborationObjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1738,58 +1738,58 @@ function validate$w(obj, path = 'AnnotationRepresentation') {
|
|
|
1738
1738
|
})();
|
|
1739
1739
|
return v_error === undefined ? null : v_error;
|
|
1740
1740
|
}
|
|
1741
|
-
const RepresentationType$
|
|
1742
|
-
function keyBuilder$
|
|
1743
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1741
|
+
const RepresentationType$q = 'AnnotationRepresentation';
|
|
1742
|
+
function keyBuilder$R(luvio, config) {
|
|
1743
|
+
return keyPrefix + '::' + RepresentationType$q + ':' + config.id;
|
|
1744
1744
|
}
|
|
1745
1745
|
function keyBuilderFromType$d(luvio, object) {
|
|
1746
1746
|
const keyParams = {
|
|
1747
1747
|
id: object.id
|
|
1748
1748
|
};
|
|
1749
|
-
return keyBuilder$
|
|
1749
|
+
return keyBuilder$R(luvio, keyParams);
|
|
1750
1750
|
}
|
|
1751
|
-
function normalize$
|
|
1751
|
+
function normalize$p(input, existing, path, luvio, store, timestamp) {
|
|
1752
1752
|
return input;
|
|
1753
1753
|
}
|
|
1754
|
-
const select$
|
|
1754
|
+
const select$W = function AnnotationRepresentationSelect() {
|
|
1755
1755
|
return {
|
|
1756
1756
|
kind: 'Fragment',
|
|
1757
|
-
version: VERSION$
|
|
1757
|
+
version: VERSION$p,
|
|
1758
1758
|
private: [],
|
|
1759
1759
|
opaque: true
|
|
1760
1760
|
};
|
|
1761
1761
|
};
|
|
1762
|
-
function equals$
|
|
1762
|
+
function equals$p(existing, incoming) {
|
|
1763
1763
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1764
1764
|
return false;
|
|
1765
1765
|
}
|
|
1766
1766
|
return true;
|
|
1767
1767
|
}
|
|
1768
|
-
const ingest$
|
|
1768
|
+
const ingest$p = function AnnotationRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1769
1769
|
if (process.env.NODE_ENV !== 'production') {
|
|
1770
|
-
const validateError = validate$
|
|
1770
|
+
const validateError = validate$y(input);
|
|
1771
1771
|
if (validateError !== null) {
|
|
1772
1772
|
throw validateError;
|
|
1773
1773
|
}
|
|
1774
1774
|
}
|
|
1775
1775
|
const key = keyBuilderFromType$d(luvio, input);
|
|
1776
|
-
const ttlToUse = TTL$
|
|
1777
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1776
|
+
const ttlToUse = TTL$f;
|
|
1777
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$p, "UnifiedAnalytics", VERSION$p, RepresentationType$q, equals$p);
|
|
1778
1778
|
return createLink(key);
|
|
1779
1779
|
};
|
|
1780
|
-
function getTypeCacheKeys$
|
|
1780
|
+
function getTypeCacheKeys$p(rootKeySet, luvio, input, fullPathFactory) {
|
|
1781
1781
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1782
1782
|
const rootKey = keyBuilderFromType$d(luvio, input);
|
|
1783
1783
|
rootKeySet.set(rootKey, {
|
|
1784
1784
|
namespace: keyPrefix,
|
|
1785
|
-
representationName: RepresentationType$
|
|
1785
|
+
representationName: RepresentationType$q,
|
|
1786
1786
|
mergeable: false
|
|
1787
1787
|
});
|
|
1788
1788
|
}
|
|
1789
1789
|
|
|
1790
|
-
const TTL$
|
|
1791
|
-
const VERSION$
|
|
1792
|
-
function validate$
|
|
1790
|
+
const TTL$e = 1000;
|
|
1791
|
+
const VERSION$o = "a80c8e970184cc7789e13f69392d6203";
|
|
1792
|
+
function validate$x(obj, path = 'AnnotationCollectionRepresentation') {
|
|
1793
1793
|
const v_error = (() => {
|
|
1794
1794
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1795
1795
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1814,14 +1814,14 @@ function validate$v(obj, path = 'AnnotationCollectionRepresentation') {
|
|
|
1814
1814
|
})();
|
|
1815
1815
|
return v_error === undefined ? null : v_error;
|
|
1816
1816
|
}
|
|
1817
|
-
const RepresentationType$
|
|
1818
|
-
function normalize$
|
|
1817
|
+
const RepresentationType$p = 'AnnotationCollectionRepresentation';
|
|
1818
|
+
function normalize$o(input, existing, path, luvio, store, timestamp) {
|
|
1819
1819
|
const input_annotations = input.annotations;
|
|
1820
1820
|
const input_annotations_id = path.fullPath + '__annotations';
|
|
1821
1821
|
for (let i = 0; i < input_annotations.length; i++) {
|
|
1822
1822
|
const input_annotations_item = input_annotations[i];
|
|
1823
1823
|
let input_annotations_item_id = input_annotations_id + '__' + i;
|
|
1824
|
-
input_annotations[i] = ingest$
|
|
1824
|
+
input_annotations[i] = ingest$p(input_annotations_item, {
|
|
1825
1825
|
fullPath: input_annotations_item_id,
|
|
1826
1826
|
propertyName: i,
|
|
1827
1827
|
parent: {
|
|
@@ -1834,17 +1834,17 @@ function normalize$n(input, existing, path, luvio, store, timestamp) {
|
|
|
1834
1834
|
}
|
|
1835
1835
|
return input;
|
|
1836
1836
|
}
|
|
1837
|
-
const select$
|
|
1837
|
+
const select$V = function AnnotationCollectionRepresentationSelect() {
|
|
1838
1838
|
return {
|
|
1839
1839
|
kind: 'Fragment',
|
|
1840
|
-
version: VERSION$
|
|
1840
|
+
version: VERSION$o,
|
|
1841
1841
|
private: [],
|
|
1842
1842
|
selections: [
|
|
1843
1843
|
{
|
|
1844
1844
|
name: 'annotations',
|
|
1845
1845
|
kind: 'Link',
|
|
1846
1846
|
plural: true,
|
|
1847
|
-
fragment: select$
|
|
1847
|
+
fragment: select$W()
|
|
1848
1848
|
},
|
|
1849
1849
|
{
|
|
1850
1850
|
name: 'total',
|
|
@@ -1853,7 +1853,7 @@ const select$T = function AnnotationCollectionRepresentationSelect() {
|
|
|
1853
1853
|
]
|
|
1854
1854
|
};
|
|
1855
1855
|
};
|
|
1856
|
-
function equals$
|
|
1856
|
+
function equals$o(existing, incoming) {
|
|
1857
1857
|
const existing_total = existing.total;
|
|
1858
1858
|
const incoming_total = incoming.total;
|
|
1859
1859
|
if (!(existing_total === incoming_total)) {
|
|
@@ -1871,48 +1871,48 @@ function equals$n(existing, incoming) {
|
|
|
1871
1871
|
}
|
|
1872
1872
|
return true;
|
|
1873
1873
|
}
|
|
1874
|
-
const ingest$
|
|
1874
|
+
const ingest$o = function AnnotationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1875
1875
|
if (process.env.NODE_ENV !== 'production') {
|
|
1876
|
-
const validateError = validate$
|
|
1876
|
+
const validateError = validate$x(input);
|
|
1877
1877
|
if (validateError !== null) {
|
|
1878
1878
|
throw validateError;
|
|
1879
1879
|
}
|
|
1880
1880
|
}
|
|
1881
1881
|
const key = path.fullPath;
|
|
1882
|
-
const ttlToUse = TTL$
|
|
1883
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1882
|
+
const ttlToUse = TTL$e;
|
|
1883
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$o, "UnifiedAnalytics", VERSION$o, RepresentationType$p, equals$o);
|
|
1884
1884
|
return createLink(key);
|
|
1885
1885
|
};
|
|
1886
|
-
function getTypeCacheKeys$
|
|
1886
|
+
function getTypeCacheKeys$o(rootKeySet, luvio, input, fullPathFactory) {
|
|
1887
1887
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1888
1888
|
const rootKey = fullPathFactory();
|
|
1889
1889
|
rootKeySet.set(rootKey, {
|
|
1890
1890
|
namespace: keyPrefix,
|
|
1891
|
-
representationName: RepresentationType$
|
|
1891
|
+
representationName: RepresentationType$p,
|
|
1892
1892
|
mergeable: false
|
|
1893
1893
|
});
|
|
1894
1894
|
const input_annotations_length = input.annotations.length;
|
|
1895
1895
|
for (let i = 0; i < input_annotations_length; i++) {
|
|
1896
|
-
getTypeCacheKeys$
|
|
1896
|
+
getTypeCacheKeys$p(rootKeySet, luvio, input.annotations[i]);
|
|
1897
1897
|
}
|
|
1898
1898
|
}
|
|
1899
1899
|
|
|
1900
|
-
function select$
|
|
1901
|
-
return select$
|
|
1900
|
+
function select$U(luvio, params) {
|
|
1901
|
+
return select$V();
|
|
1902
1902
|
}
|
|
1903
|
-
function keyBuilder$
|
|
1903
|
+
function keyBuilder$Q(luvio, params) {
|
|
1904
1904
|
return keyPrefix + '::AnnotationCollectionRepresentation:(' + 'assetIds:' + params.queryParams.assetIds + ',' + 'includeTopMessage:' + params.queryParams.includeTopMessage + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'slackAppId:' + params.queryParams.slackAppId + ')';
|
|
1905
1905
|
}
|
|
1906
|
-
function getResponseCacheKeys$
|
|
1907
|
-
getTypeCacheKeys$
|
|
1906
|
+
function getResponseCacheKeys$B(storeKeyMap, luvio, resourceParams, response) {
|
|
1907
|
+
getTypeCacheKeys$o(storeKeyMap, luvio, response, () => keyBuilder$Q(luvio, resourceParams));
|
|
1908
1908
|
}
|
|
1909
|
-
function ingestSuccess$
|
|
1909
|
+
function ingestSuccess$w(luvio, resourceParams, response, snapshotRefresh) {
|
|
1910
1910
|
const { body } = response;
|
|
1911
|
-
const key = keyBuilder$
|
|
1912
|
-
luvio.storeIngest(key, ingest$
|
|
1911
|
+
const key = keyBuilder$Q(luvio, resourceParams);
|
|
1912
|
+
luvio.storeIngest(key, ingest$o, body);
|
|
1913
1913
|
const snapshot = luvio.storeLookup({
|
|
1914
1914
|
recordId: key,
|
|
1915
|
-
node: select$
|
|
1915
|
+
node: select$U(),
|
|
1916
1916
|
variables: {},
|
|
1917
1917
|
}, snapshotRefresh);
|
|
1918
1918
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1923,19 +1923,19 @@ function ingestSuccess$v(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1923
1923
|
deepFreeze(snapshot.data);
|
|
1924
1924
|
return snapshot;
|
|
1925
1925
|
}
|
|
1926
|
-
function ingestError$
|
|
1927
|
-
const key = keyBuilder$
|
|
1926
|
+
function ingestError$g(luvio, params, error, snapshotRefresh) {
|
|
1927
|
+
const key = keyBuilder$Q(luvio, params);
|
|
1928
1928
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1929
1929
|
const storeMetadataParams = {
|
|
1930
|
-
ttl: TTL$
|
|
1930
|
+
ttl: TTL$e,
|
|
1931
1931
|
namespace: keyPrefix,
|
|
1932
|
-
version: VERSION$
|
|
1933
|
-
representationName: RepresentationType$
|
|
1932
|
+
version: VERSION$o,
|
|
1933
|
+
representationName: RepresentationType$p
|
|
1934
1934
|
};
|
|
1935
1935
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1936
1936
|
return errorSnapshot;
|
|
1937
1937
|
}
|
|
1938
|
-
function createResourceRequest$
|
|
1938
|
+
function createResourceRequest$B(config) {
|
|
1939
1939
|
const headers = {};
|
|
1940
1940
|
return {
|
|
1941
1941
|
baseUri: '/services/data/v62.0',
|
|
@@ -1949,7 +1949,7 @@ function createResourceRequest$A(config) {
|
|
|
1949
1949
|
};
|
|
1950
1950
|
}
|
|
1951
1951
|
|
|
1952
|
-
const adapterName$
|
|
1952
|
+
const adapterName$B = 'getAnnotations';
|
|
1953
1953
|
const getAnnotations_ConfigPropertyMetadata = [
|
|
1954
1954
|
generateParamConfigMetadata('assetIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
1955
1955
|
generateParamConfigMetadata('includeTopMessage', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -1957,101 +1957,101 @@ const getAnnotations_ConfigPropertyMetadata = [
|
|
|
1957
1957
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1958
1958
|
generateParamConfigMetadata('slackAppId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1959
1959
|
];
|
|
1960
|
-
const getAnnotations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1961
|
-
const createResourceParams$
|
|
1962
|
-
function keyBuilder$
|
|
1963
|
-
const resourceParams = createResourceParams$
|
|
1964
|
-
return keyBuilder$
|
|
1960
|
+
const getAnnotations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$B, getAnnotations_ConfigPropertyMetadata);
|
|
1961
|
+
const createResourceParams$B = /*#__PURE__*/ createResourceParams$D(getAnnotations_ConfigPropertyMetadata);
|
|
1962
|
+
function keyBuilder$P(luvio, config) {
|
|
1963
|
+
const resourceParams = createResourceParams$B(config);
|
|
1964
|
+
return keyBuilder$Q(luvio, resourceParams);
|
|
1965
1965
|
}
|
|
1966
|
-
function typeCheckConfig$
|
|
1966
|
+
function typeCheckConfig$B(untrustedConfig) {
|
|
1967
1967
|
const config = {};
|
|
1968
|
-
typeCheckConfig$
|
|
1968
|
+
typeCheckConfig$D(untrustedConfig, config, getAnnotations_ConfigPropertyMetadata);
|
|
1969
1969
|
return config;
|
|
1970
1970
|
}
|
|
1971
|
-
function validateAdapterConfig$
|
|
1971
|
+
function validateAdapterConfig$B(untrustedConfig, configPropertyNames) {
|
|
1972
1972
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1973
1973
|
return null;
|
|
1974
1974
|
}
|
|
1975
1975
|
if (process.env.NODE_ENV !== 'production') {
|
|
1976
1976
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1977
1977
|
}
|
|
1978
|
-
const config = typeCheckConfig$
|
|
1978
|
+
const config = typeCheckConfig$B(untrustedConfig);
|
|
1979
1979
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1980
1980
|
return null;
|
|
1981
1981
|
}
|
|
1982
1982
|
return config;
|
|
1983
1983
|
}
|
|
1984
|
-
function adapterFragment$
|
|
1985
|
-
createResourceParams$
|
|
1986
|
-
return select$
|
|
1984
|
+
function adapterFragment$g(luvio, config) {
|
|
1985
|
+
createResourceParams$B(config);
|
|
1986
|
+
return select$U();
|
|
1987
1987
|
}
|
|
1988
|
-
function onFetchResponseSuccess$
|
|
1989
|
-
const snapshot = ingestSuccess$
|
|
1988
|
+
function onFetchResponseSuccess$g(luvio, config, resourceParams, response) {
|
|
1989
|
+
const snapshot = ingestSuccess$w(luvio, resourceParams, response, {
|
|
1990
1990
|
config,
|
|
1991
|
-
resolve: () => buildNetworkSnapshot$
|
|
1991
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
1992
1992
|
});
|
|
1993
1993
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1994
1994
|
}
|
|
1995
|
-
function onFetchResponseError$
|
|
1996
|
-
const snapshot = ingestError$
|
|
1995
|
+
function onFetchResponseError$g(luvio, config, resourceParams, response) {
|
|
1996
|
+
const snapshot = ingestError$g(luvio, resourceParams, response, {
|
|
1997
1997
|
config,
|
|
1998
|
-
resolve: () => buildNetworkSnapshot$
|
|
1998
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
1999
1999
|
});
|
|
2000
2000
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2001
2001
|
}
|
|
2002
|
-
function buildNetworkSnapshot$
|
|
2003
|
-
const resourceParams = createResourceParams$
|
|
2004
|
-
const request = createResourceRequest$
|
|
2002
|
+
function buildNetworkSnapshot$B(luvio, config, options) {
|
|
2003
|
+
const resourceParams = createResourceParams$B(config);
|
|
2004
|
+
const request = createResourceRequest$B(resourceParams);
|
|
2005
2005
|
return luvio.dispatchResourceRequest(request, options)
|
|
2006
2006
|
.then((response) => {
|
|
2007
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2007
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$g(luvio, config, resourceParams, response), () => {
|
|
2008
2008
|
const cache = new StoreKeyMap();
|
|
2009
|
-
getResponseCacheKeys$
|
|
2009
|
+
getResponseCacheKeys$B(cache, luvio, resourceParams, response.body);
|
|
2010
2010
|
return cache;
|
|
2011
2011
|
});
|
|
2012
2012
|
}, (response) => {
|
|
2013
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2013
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$g(luvio, config, resourceParams, response));
|
|
2014
2014
|
});
|
|
2015
2015
|
}
|
|
2016
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2017
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2016
|
+
function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
|
|
2017
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$B, undefined, false);
|
|
2018
2018
|
}
|
|
2019
|
-
function buildCachedSnapshotCachePolicy$
|
|
2019
|
+
function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
2020
2020
|
const { luvio, config } = context;
|
|
2021
2021
|
const selector = {
|
|
2022
|
-
recordId: keyBuilder$
|
|
2023
|
-
node: adapterFragment$
|
|
2022
|
+
recordId: keyBuilder$P(luvio, config),
|
|
2023
|
+
node: adapterFragment$g(luvio, config),
|
|
2024
2024
|
variables: {},
|
|
2025
2025
|
};
|
|
2026
2026
|
const cacheSnapshot = storeLookup(selector, {
|
|
2027
2027
|
config,
|
|
2028
|
-
resolve: () => buildNetworkSnapshot$
|
|
2028
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
2029
2029
|
});
|
|
2030
2030
|
return cacheSnapshot;
|
|
2031
2031
|
}
|
|
2032
2032
|
const getAnnotationsAdapterFactory = (luvio) => function UnifiedAnalytics__getAnnotations(untrustedConfig, requestContext) {
|
|
2033
|
-
const config = validateAdapterConfig$
|
|
2033
|
+
const config = validateAdapterConfig$B(untrustedConfig, getAnnotations_ConfigPropertyNames);
|
|
2034
2034
|
// Invalid or incomplete config
|
|
2035
2035
|
if (config === null) {
|
|
2036
2036
|
return null;
|
|
2037
2037
|
}
|
|
2038
2038
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2039
|
-
buildCachedSnapshotCachePolicy$
|
|
2039
|
+
buildCachedSnapshotCachePolicy$g, buildNetworkSnapshotCachePolicy$g);
|
|
2040
2040
|
};
|
|
2041
2041
|
|
|
2042
|
-
function select$
|
|
2043
|
-
return select$
|
|
2042
|
+
function select$T(luvio, params) {
|
|
2043
|
+
return select$W();
|
|
2044
2044
|
}
|
|
2045
|
-
function getResponseCacheKeys$
|
|
2046
|
-
getTypeCacheKeys$
|
|
2045
|
+
function getResponseCacheKeys$A(storeKeyMap, luvio, resourceParams, response) {
|
|
2046
|
+
getTypeCacheKeys$p(storeKeyMap, luvio, response);
|
|
2047
2047
|
}
|
|
2048
|
-
function ingestSuccess$
|
|
2048
|
+
function ingestSuccess$v(luvio, resourceParams, response) {
|
|
2049
2049
|
const { body } = response;
|
|
2050
2050
|
const key = keyBuilderFromType$d(luvio, body);
|
|
2051
|
-
luvio.storeIngest(key, ingest$
|
|
2051
|
+
luvio.storeIngest(key, ingest$p, body);
|
|
2052
2052
|
const snapshot = luvio.storeLookup({
|
|
2053
2053
|
recordId: key,
|
|
2054
|
-
node: select$
|
|
2054
|
+
node: select$T(),
|
|
2055
2055
|
variables: {},
|
|
2056
2056
|
});
|
|
2057
2057
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2062,7 +2062,7 @@ function ingestSuccess$u(luvio, resourceParams, response) {
|
|
|
2062
2062
|
deepFreeze(snapshot.data);
|
|
2063
2063
|
return snapshot;
|
|
2064
2064
|
}
|
|
2065
|
-
function createResourceRequest$
|
|
2065
|
+
function createResourceRequest$A(config) {
|
|
2066
2066
|
const headers = {};
|
|
2067
2067
|
return {
|
|
2068
2068
|
baseUri: '/services/data/v62.0',
|
|
@@ -2076,7 +2076,7 @@ function createResourceRequest$z(config) {
|
|
|
2076
2076
|
};
|
|
2077
2077
|
}
|
|
2078
2078
|
|
|
2079
|
-
const adapterName$
|
|
2079
|
+
const adapterName$A = 'createAnnotation';
|
|
2080
2080
|
const createAnnotation_ConfigPropertyMetadata = [
|
|
2081
2081
|
generateParamConfigMetadata('anchor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2082
2082
|
generateParamConfigMetadata('annotationTool', true, 2 /* Body */, 0 /* String */),
|
|
@@ -2085,41 +2085,41 @@ const createAnnotation_ConfigPropertyMetadata = [
|
|
|
2085
2085
|
generateParamConfigMetadata('collaborationObject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2086
2086
|
generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
|
|
2087
2087
|
];
|
|
2088
|
-
const createAnnotation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2089
|
-
const createResourceParams$
|
|
2090
|
-
function typeCheckConfig$
|
|
2088
|
+
const createAnnotation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$A, createAnnotation_ConfigPropertyMetadata);
|
|
2089
|
+
const createResourceParams$A = /*#__PURE__*/ createResourceParams$D(createAnnotation_ConfigPropertyMetadata);
|
|
2090
|
+
function typeCheckConfig$A(untrustedConfig) {
|
|
2091
2091
|
const config = {};
|
|
2092
|
-
typeCheckConfig$
|
|
2092
|
+
typeCheckConfig$D(untrustedConfig, config, createAnnotation_ConfigPropertyMetadata);
|
|
2093
2093
|
const untrustedConfig_anchor = untrustedConfig.anchor;
|
|
2094
2094
|
config.anchor = untrustedConfig_anchor;
|
|
2095
2095
|
const untrustedConfig_collaborationObject = untrustedConfig.collaborationObject;
|
|
2096
2096
|
config.collaborationObject = untrustedConfig_collaborationObject;
|
|
2097
2097
|
return config;
|
|
2098
2098
|
}
|
|
2099
|
-
function validateAdapterConfig$
|
|
2099
|
+
function validateAdapterConfig$A(untrustedConfig, configPropertyNames) {
|
|
2100
2100
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2101
2101
|
return null;
|
|
2102
2102
|
}
|
|
2103
2103
|
if (process.env.NODE_ENV !== 'production') {
|
|
2104
2104
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2105
2105
|
}
|
|
2106
|
-
const config = typeCheckConfig$
|
|
2106
|
+
const config = typeCheckConfig$A(untrustedConfig);
|
|
2107
2107
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2108
2108
|
return null;
|
|
2109
2109
|
}
|
|
2110
2110
|
return config;
|
|
2111
2111
|
}
|
|
2112
|
-
function buildNetworkSnapshot$
|
|
2113
|
-
const resourceParams = createResourceParams$
|
|
2114
|
-
const request = createResourceRequest$
|
|
2112
|
+
function buildNetworkSnapshot$A(luvio, config, options) {
|
|
2113
|
+
const resourceParams = createResourceParams$A(config);
|
|
2114
|
+
const request = createResourceRequest$A(resourceParams);
|
|
2115
2115
|
return luvio.dispatchResourceRequest(request, options)
|
|
2116
2116
|
.then((response) => {
|
|
2117
2117
|
return luvio.handleSuccessResponse(() => {
|
|
2118
|
-
const snapshot = ingestSuccess$
|
|
2118
|
+
const snapshot = ingestSuccess$v(luvio, resourceParams, response);
|
|
2119
2119
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2120
2120
|
}, () => {
|
|
2121
2121
|
const cache = new StoreKeyMap();
|
|
2122
|
-
getResponseCacheKeys$
|
|
2122
|
+
getResponseCacheKeys$A(cache, luvio, resourceParams, response.body);
|
|
2123
2123
|
return cache;
|
|
2124
2124
|
});
|
|
2125
2125
|
}, (response) => {
|
|
@@ -2129,18 +2129,18 @@ function buildNetworkSnapshot$z(luvio, config, options) {
|
|
|
2129
2129
|
}
|
|
2130
2130
|
const createAnnotationAdapterFactory = (luvio) => {
|
|
2131
2131
|
return function createAnnotation(untrustedConfig) {
|
|
2132
|
-
const config = validateAdapterConfig$
|
|
2132
|
+
const config = validateAdapterConfig$A(untrustedConfig, createAnnotation_ConfigPropertyNames);
|
|
2133
2133
|
// Invalid or incomplete config
|
|
2134
2134
|
if (config === null) {
|
|
2135
2135
|
throw new Error('Invalid config for "createAnnotation"');
|
|
2136
2136
|
}
|
|
2137
|
-
return buildNetworkSnapshot$
|
|
2137
|
+
return buildNetworkSnapshot$A(luvio, config);
|
|
2138
2138
|
};
|
|
2139
2139
|
};
|
|
2140
2140
|
|
|
2141
|
-
const TTL$
|
|
2142
|
-
const VERSION$
|
|
2143
|
-
function validate$
|
|
2141
|
+
const TTL$d = 5000;
|
|
2142
|
+
const VERSION$n = "505a83d97fefa7ce68ec6512264b0543";
|
|
2143
|
+
function validate$w(obj, path = 'SlackAppInfoRepresentation') {
|
|
2144
2144
|
const v_error = (() => {
|
|
2145
2145
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2146
2146
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2180,14 +2180,14 @@ function validate$u(obj, path = 'SlackAppInfoRepresentation') {
|
|
|
2180
2180
|
})();
|
|
2181
2181
|
return v_error === undefined ? null : v_error;
|
|
2182
2182
|
}
|
|
2183
|
-
const RepresentationType$
|
|
2184
|
-
function normalize$
|
|
2183
|
+
const RepresentationType$o = 'SlackAppInfoRepresentation';
|
|
2184
|
+
function normalize$n(input, existing, path, luvio, store, timestamp) {
|
|
2185
2185
|
return input;
|
|
2186
2186
|
}
|
|
2187
|
-
const select$
|
|
2187
|
+
const select$S = function SlackAppInfoRepresentationSelect() {
|
|
2188
2188
|
return {
|
|
2189
2189
|
kind: 'Fragment',
|
|
2190
|
-
version: VERSION$
|
|
2190
|
+
version: VERSION$n,
|
|
2191
2191
|
private: [],
|
|
2192
2192
|
selections: [
|
|
2193
2193
|
{
|
|
@@ -2214,7 +2214,7 @@ const select$Q = function SlackAppInfoRepresentationSelect() {
|
|
|
2214
2214
|
]
|
|
2215
2215
|
};
|
|
2216
2216
|
};
|
|
2217
|
-
function equals$
|
|
2217
|
+
function equals$n(existing, incoming) {
|
|
2218
2218
|
const existing_isSlackAppAuthorized = existing.isSlackAppAuthorized;
|
|
2219
2219
|
const incoming_isSlackAppAuthorized = incoming.isSlackAppAuthorized;
|
|
2220
2220
|
if (!(existing_isSlackAppAuthorized === incoming_isSlackAppAuthorized)) {
|
|
@@ -2247,44 +2247,44 @@ function equals$m(existing, incoming) {
|
|
|
2247
2247
|
}
|
|
2248
2248
|
return true;
|
|
2249
2249
|
}
|
|
2250
|
-
const ingest$
|
|
2250
|
+
const ingest$n = function SlackAppInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2251
2251
|
if (process.env.NODE_ENV !== 'production') {
|
|
2252
|
-
const validateError = validate$
|
|
2252
|
+
const validateError = validate$w(input);
|
|
2253
2253
|
if (validateError !== null) {
|
|
2254
2254
|
throw validateError;
|
|
2255
2255
|
}
|
|
2256
2256
|
}
|
|
2257
2257
|
const key = path.fullPath;
|
|
2258
|
-
const ttlToUse = TTL$
|
|
2259
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2258
|
+
const ttlToUse = TTL$d;
|
|
2259
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$n, "UnifiedAnalytics", VERSION$n, RepresentationType$o, equals$n);
|
|
2260
2260
|
return createLink(key);
|
|
2261
2261
|
};
|
|
2262
|
-
function getTypeCacheKeys$
|
|
2262
|
+
function getTypeCacheKeys$n(rootKeySet, luvio, input, fullPathFactory) {
|
|
2263
2263
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2264
2264
|
const rootKey = fullPathFactory();
|
|
2265
2265
|
rootKeySet.set(rootKey, {
|
|
2266
2266
|
namespace: keyPrefix,
|
|
2267
|
-
representationName: RepresentationType$
|
|
2267
|
+
representationName: RepresentationType$o,
|
|
2268
2268
|
mergeable: false
|
|
2269
2269
|
});
|
|
2270
2270
|
}
|
|
2271
2271
|
|
|
2272
|
-
function select$
|
|
2273
|
-
return select$
|
|
2272
|
+
function select$R(luvio, params) {
|
|
2273
|
+
return select$S();
|
|
2274
2274
|
}
|
|
2275
|
-
function keyBuilder$
|
|
2275
|
+
function keyBuilder$O(luvio, params) {
|
|
2276
2276
|
return keyPrefix + '::SlackAppInfoRepresentation:(' + ')';
|
|
2277
2277
|
}
|
|
2278
|
-
function getResponseCacheKeys$
|
|
2279
|
-
getTypeCacheKeys$
|
|
2278
|
+
function getResponseCacheKeys$z(storeKeyMap, luvio, resourceParams, response) {
|
|
2279
|
+
getTypeCacheKeys$n(storeKeyMap, luvio, response, () => keyBuilder$O());
|
|
2280
2280
|
}
|
|
2281
|
-
function ingestSuccess$
|
|
2281
|
+
function ingestSuccess$u(luvio, resourceParams, response, snapshotRefresh) {
|
|
2282
2282
|
const { body } = response;
|
|
2283
|
-
const key = keyBuilder$
|
|
2284
|
-
luvio.storeIngest(key, ingest$
|
|
2283
|
+
const key = keyBuilder$O();
|
|
2284
|
+
luvio.storeIngest(key, ingest$n, body);
|
|
2285
2285
|
const snapshot = luvio.storeLookup({
|
|
2286
2286
|
recordId: key,
|
|
2287
|
-
node: select$
|
|
2287
|
+
node: select$R(),
|
|
2288
2288
|
variables: {},
|
|
2289
2289
|
}, snapshotRefresh);
|
|
2290
2290
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2295,19 +2295,19 @@ function ingestSuccess$t(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2295
2295
|
deepFreeze(snapshot.data);
|
|
2296
2296
|
return snapshot;
|
|
2297
2297
|
}
|
|
2298
|
-
function ingestError$
|
|
2299
|
-
const key = keyBuilder$
|
|
2298
|
+
function ingestError$f(luvio, params, error, snapshotRefresh) {
|
|
2299
|
+
const key = keyBuilder$O();
|
|
2300
2300
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2301
2301
|
const storeMetadataParams = {
|
|
2302
|
-
ttl: TTL$
|
|
2302
|
+
ttl: TTL$d,
|
|
2303
2303
|
namespace: keyPrefix,
|
|
2304
|
-
version: VERSION$
|
|
2305
|
-
representationName: RepresentationType$
|
|
2304
|
+
version: VERSION$n,
|
|
2305
|
+
representationName: RepresentationType$o
|
|
2306
2306
|
};
|
|
2307
2307
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2308
2308
|
return errorSnapshot;
|
|
2309
2309
|
}
|
|
2310
|
-
function createResourceRequest$
|
|
2310
|
+
function createResourceRequest$z(config) {
|
|
2311
2311
|
const headers = {};
|
|
2312
2312
|
return {
|
|
2313
2313
|
baseUri: '/services/data/v62.0',
|
|
@@ -2321,90 +2321,90 @@ function createResourceRequest$y(config) {
|
|
|
2321
2321
|
};
|
|
2322
2322
|
}
|
|
2323
2323
|
|
|
2324
|
-
const adapterName$
|
|
2324
|
+
const adapterName$z = 'getSlackAppInfo';
|
|
2325
2325
|
const getSlackAppInfo_ConfigPropertyMetadata = [];
|
|
2326
|
-
const getSlackAppInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2327
|
-
const createResourceParams$
|
|
2328
|
-
function keyBuilder$
|
|
2329
|
-
createResourceParams$
|
|
2330
|
-
return keyBuilder$
|
|
2326
|
+
const getSlackAppInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$z, getSlackAppInfo_ConfigPropertyMetadata);
|
|
2327
|
+
const createResourceParams$z = /*#__PURE__*/ createResourceParams$D(getSlackAppInfo_ConfigPropertyMetadata);
|
|
2328
|
+
function keyBuilder$N(luvio, config) {
|
|
2329
|
+
createResourceParams$z(config);
|
|
2330
|
+
return keyBuilder$O();
|
|
2331
2331
|
}
|
|
2332
|
-
function typeCheckConfig$
|
|
2332
|
+
function typeCheckConfig$z(untrustedConfig) {
|
|
2333
2333
|
const config = {};
|
|
2334
2334
|
return config;
|
|
2335
2335
|
}
|
|
2336
|
-
function validateAdapterConfig$
|
|
2336
|
+
function validateAdapterConfig$z(untrustedConfig, configPropertyNames) {
|
|
2337
2337
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2338
2338
|
return null;
|
|
2339
2339
|
}
|
|
2340
2340
|
if (process.env.NODE_ENV !== 'production') {
|
|
2341
2341
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2342
2342
|
}
|
|
2343
|
-
const config = typeCheckConfig$
|
|
2343
|
+
const config = typeCheckConfig$z();
|
|
2344
2344
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2345
2345
|
return null;
|
|
2346
2346
|
}
|
|
2347
2347
|
return config;
|
|
2348
2348
|
}
|
|
2349
|
-
function adapterFragment$
|
|
2350
|
-
createResourceParams$
|
|
2351
|
-
return select$
|
|
2349
|
+
function adapterFragment$f(luvio, config) {
|
|
2350
|
+
createResourceParams$z(config);
|
|
2351
|
+
return select$R();
|
|
2352
2352
|
}
|
|
2353
|
-
function onFetchResponseSuccess$
|
|
2354
|
-
const snapshot = ingestSuccess$
|
|
2353
|
+
function onFetchResponseSuccess$f(luvio, config, resourceParams, response) {
|
|
2354
|
+
const snapshot = ingestSuccess$u(luvio, resourceParams, response, {
|
|
2355
2355
|
config,
|
|
2356
|
-
resolve: () => buildNetworkSnapshot$
|
|
2356
|
+
resolve: () => buildNetworkSnapshot$z(luvio, config, snapshotRefreshOptions)
|
|
2357
2357
|
});
|
|
2358
2358
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2359
2359
|
}
|
|
2360
|
-
function onFetchResponseError$
|
|
2361
|
-
const snapshot = ingestError$
|
|
2360
|
+
function onFetchResponseError$f(luvio, config, resourceParams, response) {
|
|
2361
|
+
const snapshot = ingestError$f(luvio, resourceParams, response, {
|
|
2362
2362
|
config,
|
|
2363
|
-
resolve: () => buildNetworkSnapshot$
|
|
2363
|
+
resolve: () => buildNetworkSnapshot$z(luvio, config, snapshotRefreshOptions)
|
|
2364
2364
|
});
|
|
2365
2365
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2366
2366
|
}
|
|
2367
|
-
function buildNetworkSnapshot$
|
|
2368
|
-
const resourceParams = createResourceParams$
|
|
2369
|
-
const request = createResourceRequest$
|
|
2367
|
+
function buildNetworkSnapshot$z(luvio, config, options) {
|
|
2368
|
+
const resourceParams = createResourceParams$z(config);
|
|
2369
|
+
const request = createResourceRequest$z();
|
|
2370
2370
|
return luvio.dispatchResourceRequest(request, options)
|
|
2371
2371
|
.then((response) => {
|
|
2372
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2372
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$f(luvio, config, resourceParams, response), () => {
|
|
2373
2373
|
const cache = new StoreKeyMap();
|
|
2374
|
-
getResponseCacheKeys$
|
|
2374
|
+
getResponseCacheKeys$z(cache, luvio, resourceParams, response.body);
|
|
2375
2375
|
return cache;
|
|
2376
2376
|
});
|
|
2377
2377
|
}, (response) => {
|
|
2378
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2378
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$f(luvio, config, resourceParams, response));
|
|
2379
2379
|
});
|
|
2380
2380
|
}
|
|
2381
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2382
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2381
|
+
function buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext) {
|
|
2382
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$z, undefined, false);
|
|
2383
2383
|
}
|
|
2384
|
-
function buildCachedSnapshotCachePolicy$
|
|
2384
|
+
function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
|
|
2385
2385
|
const { luvio, config } = context;
|
|
2386
2386
|
const selector = {
|
|
2387
|
-
recordId: keyBuilder$
|
|
2388
|
-
node: adapterFragment$
|
|
2387
|
+
recordId: keyBuilder$N(luvio, config),
|
|
2388
|
+
node: adapterFragment$f(luvio, config),
|
|
2389
2389
|
variables: {},
|
|
2390
2390
|
};
|
|
2391
2391
|
const cacheSnapshot = storeLookup(selector, {
|
|
2392
2392
|
config,
|
|
2393
|
-
resolve: () => buildNetworkSnapshot$
|
|
2393
|
+
resolve: () => buildNetworkSnapshot$z(luvio, config, snapshotRefreshOptions)
|
|
2394
2394
|
});
|
|
2395
2395
|
return cacheSnapshot;
|
|
2396
2396
|
}
|
|
2397
2397
|
const getSlackAppInfoAdapterFactory = (luvio) => function UnifiedAnalytics__getSlackAppInfo(untrustedConfig, requestContext) {
|
|
2398
|
-
const config = validateAdapterConfig$
|
|
2398
|
+
const config = validateAdapterConfig$z(untrustedConfig, getSlackAppInfo_ConfigPropertyNames);
|
|
2399
2399
|
// Invalid or incomplete config
|
|
2400
2400
|
if (config === null) {
|
|
2401
2401
|
return null;
|
|
2402
2402
|
}
|
|
2403
2403
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2404
|
-
buildCachedSnapshotCachePolicy$
|
|
2404
|
+
buildCachedSnapshotCachePolicy$f, buildNetworkSnapshotCachePolicy$f);
|
|
2405
2405
|
};
|
|
2406
2406
|
|
|
2407
|
-
function validate$
|
|
2407
|
+
function validate$v(obj, path = 'BaseAnalyticsRepresentation') {
|
|
2408
2408
|
const v_error = (() => {
|
|
2409
2409
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2410
2410
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2439,8 +2439,8 @@ function validate$t(obj, path = 'BaseAnalyticsRepresentation') {
|
|
|
2439
2439
|
return v_error === undefined ? null : v_error;
|
|
2440
2440
|
}
|
|
2441
2441
|
|
|
2442
|
-
function validate$
|
|
2443
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
2442
|
+
function validate$u(obj, path = 'AnalyticsAssetsQueryResultsWorkspaceRepresentation') {
|
|
2443
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$v(obj, path);
|
|
2444
2444
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
2445
2445
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
2446
2446
|
}
|
|
@@ -2452,8 +2452,8 @@ function validate$s(obj, path = 'AnalyticsAssetsQueryResultsWorkspaceRepresentat
|
|
|
2452
2452
|
return v_error === undefined ? null : v_error;
|
|
2453
2453
|
}
|
|
2454
2454
|
|
|
2455
|
-
function validate$
|
|
2456
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
2455
|
+
function validate$t(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation') {
|
|
2456
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$v(obj, path);
|
|
2457
2457
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
2458
2458
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
2459
2459
|
}
|
|
@@ -2494,7 +2494,7 @@ function validate$r(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation')
|
|
|
2494
2494
|
const path_workspace = path + '.workspace';
|
|
2495
2495
|
let obj_workspace_union0 = null;
|
|
2496
2496
|
const obj_workspace_union0_error = (() => {
|
|
2497
|
-
const referencepath_workspaceValidationError = validate$
|
|
2497
|
+
const referencepath_workspaceValidationError = validate$u(obj_workspace, path_workspace);
|
|
2498
2498
|
if (referencepath_workspaceValidationError !== null) {
|
|
2499
2499
|
let message = 'Object doesn\'t match AnalyticsAssetsQueryResultsWorkspaceRepresentation (at "' + path_workspace + '")\n';
|
|
2500
2500
|
message += referencepath_workspaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2524,9 +2524,9 @@ function validate$r(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation')
|
|
|
2524
2524
|
return v_error === undefined ? null : v_error;
|
|
2525
2525
|
}
|
|
2526
2526
|
|
|
2527
|
-
const TTL$
|
|
2528
|
-
const VERSION$
|
|
2529
|
-
function validate$
|
|
2527
|
+
const TTL$c = 500;
|
|
2528
|
+
const VERSION$m = "ed60d9cca169a3e5ed897c67d11a23db";
|
|
2529
|
+
function validate$s(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
|
|
2530
2530
|
const v_error = (() => {
|
|
2531
2531
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2532
2532
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2539,7 +2539,7 @@ function validate$q(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
|
|
|
2539
2539
|
for (let i = 0; i < obj_items.length; i++) {
|
|
2540
2540
|
const obj_items_item = obj_items[i];
|
|
2541
2541
|
const path_items_item = path_items + '[' + i + ']';
|
|
2542
|
-
const referencepath_items_itemValidationError = validate$
|
|
2542
|
+
const referencepath_items_itemValidationError = validate$t(obj_items_item, path_items_item);
|
|
2543
2543
|
if (referencepath_items_itemValidationError !== null) {
|
|
2544
2544
|
let message = 'Object doesn\'t match AnalyticsAssetsQueryResultsItemRepresentation (at "' + path_items_item + '")\n';
|
|
2545
2545
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2564,68 +2564,68 @@ function validate$q(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
|
|
|
2564
2564
|
})();
|
|
2565
2565
|
return v_error === undefined ? null : v_error;
|
|
2566
2566
|
}
|
|
2567
|
-
const RepresentationType$
|
|
2568
|
-
function keyBuilder$
|
|
2569
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2567
|
+
const RepresentationType$n = 'AnalyticsAssetsQueryResultsRepresentation';
|
|
2568
|
+
function keyBuilder$M(luvio, config) {
|
|
2569
|
+
return keyPrefix + '::' + RepresentationType$n + ':' + config.searchId;
|
|
2570
2570
|
}
|
|
2571
2571
|
function keyBuilderFromType$c(luvio, object) {
|
|
2572
2572
|
const keyParams = {
|
|
2573
2573
|
searchId: object.queryKey
|
|
2574
2574
|
};
|
|
2575
|
-
return keyBuilder$
|
|
2575
|
+
return keyBuilder$M(luvio, keyParams);
|
|
2576
2576
|
}
|
|
2577
|
-
function normalize$
|
|
2577
|
+
function normalize$m(input, existing, path, luvio, store, timestamp) {
|
|
2578
2578
|
return input;
|
|
2579
2579
|
}
|
|
2580
|
-
const select$
|
|
2580
|
+
const select$Q = function AnalyticsAssetsQueryResultsRepresentationSelect() {
|
|
2581
2581
|
return {
|
|
2582
2582
|
kind: 'Fragment',
|
|
2583
|
-
version: VERSION$
|
|
2583
|
+
version: VERSION$m,
|
|
2584
2584
|
private: [],
|
|
2585
2585
|
opaque: true
|
|
2586
2586
|
};
|
|
2587
2587
|
};
|
|
2588
|
-
function equals$
|
|
2588
|
+
function equals$m(existing, incoming) {
|
|
2589
2589
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2590
2590
|
return false;
|
|
2591
2591
|
}
|
|
2592
2592
|
return true;
|
|
2593
2593
|
}
|
|
2594
|
-
const ingest$
|
|
2594
|
+
const ingest$m = function AnalyticsAssetsQueryResultsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2595
2595
|
if (process.env.NODE_ENV !== 'production') {
|
|
2596
|
-
const validateError = validate$
|
|
2596
|
+
const validateError = validate$s(input);
|
|
2597
2597
|
if (validateError !== null) {
|
|
2598
2598
|
throw validateError;
|
|
2599
2599
|
}
|
|
2600
2600
|
}
|
|
2601
2601
|
const key = keyBuilderFromType$c(luvio, input);
|
|
2602
|
-
const ttlToUse = TTL$
|
|
2603
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2602
|
+
const ttlToUse = TTL$c;
|
|
2603
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$m, "UnifiedAnalytics", VERSION$m, RepresentationType$n, equals$m);
|
|
2604
2604
|
return createLink(key);
|
|
2605
2605
|
};
|
|
2606
|
-
function getTypeCacheKeys$
|
|
2606
|
+
function getTypeCacheKeys$m(rootKeySet, luvio, input, fullPathFactory) {
|
|
2607
2607
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2608
2608
|
const rootKey = keyBuilderFromType$c(luvio, input);
|
|
2609
2609
|
rootKeySet.set(rootKey, {
|
|
2610
2610
|
namespace: keyPrefix,
|
|
2611
|
-
representationName: RepresentationType$
|
|
2611
|
+
representationName: RepresentationType$n,
|
|
2612
2612
|
mergeable: false
|
|
2613
2613
|
});
|
|
2614
2614
|
}
|
|
2615
2615
|
|
|
2616
|
-
function select$
|
|
2617
|
-
return select$
|
|
2616
|
+
function select$P(luvio, params) {
|
|
2617
|
+
return select$Q();
|
|
2618
2618
|
}
|
|
2619
|
-
function getResponseCacheKeys$
|
|
2620
|
-
getTypeCacheKeys$
|
|
2619
|
+
function getResponseCacheKeys$y(storeKeyMap, luvio, resourceParams, response) {
|
|
2620
|
+
getTypeCacheKeys$m(storeKeyMap, luvio, response);
|
|
2621
2621
|
}
|
|
2622
|
-
function ingestSuccess$
|
|
2622
|
+
function ingestSuccess$t(luvio, resourceParams, response) {
|
|
2623
2623
|
const { body } = response;
|
|
2624
2624
|
const key = keyBuilderFromType$c(luvio, body);
|
|
2625
|
-
luvio.storeIngest(key, ingest$
|
|
2625
|
+
luvio.storeIngest(key, ingest$m, body);
|
|
2626
2626
|
const snapshot = luvio.storeLookup({
|
|
2627
2627
|
recordId: key,
|
|
2628
|
-
node: select$
|
|
2628
|
+
node: select$P(),
|
|
2629
2629
|
variables: {},
|
|
2630
2630
|
});
|
|
2631
2631
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2636,7 +2636,7 @@ function ingestSuccess$s(luvio, resourceParams, response) {
|
|
|
2636
2636
|
deepFreeze(snapshot.data);
|
|
2637
2637
|
return snapshot;
|
|
2638
2638
|
}
|
|
2639
|
-
function createResourceRequest$
|
|
2639
|
+
function createResourceRequest$y(config) {
|
|
2640
2640
|
const headers = {};
|
|
2641
2641
|
return {
|
|
2642
2642
|
baseUri: '/services/data/v62.0',
|
|
@@ -2650,7 +2650,7 @@ function createResourceRequest$x(config) {
|
|
|
2650
2650
|
};
|
|
2651
2651
|
}
|
|
2652
2652
|
|
|
2653
|
-
const adapterName$
|
|
2653
|
+
const adapterName$y = 'queryAssets';
|
|
2654
2654
|
const queryAssets_ConfigPropertyMetadata = [
|
|
2655
2655
|
generateParamConfigMetadata('filters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2656
2656
|
generateParamConfigMetadata('limit', false, 2 /* Body */, 3 /* Integer */),
|
|
@@ -2659,11 +2659,11 @@ const queryAssets_ConfigPropertyMetadata = [
|
|
|
2659
2659
|
generateParamConfigMetadata('searchTerm', true, 2 /* Body */, 0 /* String */),
|
|
2660
2660
|
generateParamConfigMetadata('sortDirection', false, 2 /* Body */, 0 /* String */),
|
|
2661
2661
|
];
|
|
2662
|
-
const queryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2663
|
-
const createResourceParams$
|
|
2664
|
-
function typeCheckConfig$
|
|
2662
|
+
const queryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$y, queryAssets_ConfigPropertyMetadata);
|
|
2663
|
+
const createResourceParams$y = /*#__PURE__*/ createResourceParams$D(queryAssets_ConfigPropertyMetadata);
|
|
2664
|
+
function typeCheckConfig$y(untrustedConfig) {
|
|
2665
2665
|
const config = {};
|
|
2666
|
-
typeCheckConfig$
|
|
2666
|
+
typeCheckConfig$D(untrustedConfig, config, queryAssets_ConfigPropertyMetadata);
|
|
2667
2667
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
2668
2668
|
if (untrustedIsObject(untrustedConfig_filters)) {
|
|
2669
2669
|
const untrustedConfig_filters_object = {};
|
|
@@ -2681,30 +2681,30 @@ function typeCheckConfig$x(untrustedConfig) {
|
|
|
2681
2681
|
}
|
|
2682
2682
|
return config;
|
|
2683
2683
|
}
|
|
2684
|
-
function validateAdapterConfig$
|
|
2684
|
+
function validateAdapterConfig$y(untrustedConfig, configPropertyNames) {
|
|
2685
2685
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2686
2686
|
return null;
|
|
2687
2687
|
}
|
|
2688
2688
|
if (process.env.NODE_ENV !== 'production') {
|
|
2689
2689
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2690
2690
|
}
|
|
2691
|
-
const config = typeCheckConfig$
|
|
2691
|
+
const config = typeCheckConfig$y(untrustedConfig);
|
|
2692
2692
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2693
2693
|
return null;
|
|
2694
2694
|
}
|
|
2695
2695
|
return config;
|
|
2696
2696
|
}
|
|
2697
|
-
function buildNetworkSnapshot$
|
|
2698
|
-
const resourceParams = createResourceParams$
|
|
2699
|
-
const request = createResourceRequest$
|
|
2697
|
+
function buildNetworkSnapshot$y(luvio, config, options) {
|
|
2698
|
+
const resourceParams = createResourceParams$y(config);
|
|
2699
|
+
const request = createResourceRequest$y(resourceParams);
|
|
2700
2700
|
return luvio.dispatchResourceRequest(request, options)
|
|
2701
2701
|
.then((response) => {
|
|
2702
2702
|
return luvio.handleSuccessResponse(() => {
|
|
2703
|
-
const snapshot = ingestSuccess$
|
|
2703
|
+
const snapshot = ingestSuccess$t(luvio, resourceParams, response);
|
|
2704
2704
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2705
2705
|
}, () => {
|
|
2706
2706
|
const cache = new StoreKeyMap();
|
|
2707
|
-
getResponseCacheKeys$
|
|
2707
|
+
getResponseCacheKeys$y(cache, luvio, resourceParams, response.body);
|
|
2708
2708
|
return cache;
|
|
2709
2709
|
});
|
|
2710
2710
|
}, (response) => {
|
|
@@ -2714,17 +2714,17 @@ function buildNetworkSnapshot$x(luvio, config, options) {
|
|
|
2714
2714
|
}
|
|
2715
2715
|
const queryAssetsAdapterFactory = (luvio) => {
|
|
2716
2716
|
return function queryAssets(untrustedConfig) {
|
|
2717
|
-
const config = validateAdapterConfig$
|
|
2717
|
+
const config = validateAdapterConfig$y(untrustedConfig, queryAssets_ConfigPropertyNames);
|
|
2718
2718
|
// Invalid or incomplete config
|
|
2719
2719
|
if (config === null) {
|
|
2720
2720
|
throw new Error('Invalid config for "queryAssets"');
|
|
2721
2721
|
}
|
|
2722
|
-
return buildNetworkSnapshot$
|
|
2722
|
+
return buildNetworkSnapshot$y(luvio, config);
|
|
2723
2723
|
};
|
|
2724
2724
|
};
|
|
2725
2725
|
|
|
2726
|
-
const VERSION$
|
|
2727
|
-
function validate$
|
|
2726
|
+
const VERSION$l = "d4e4a9f9b260b72ce8e09fac1746cd21";
|
|
2727
|
+
function validate$r(obj, path = 'DashboardRepresentation') {
|
|
2728
2728
|
const v_error = (() => {
|
|
2729
2729
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2730
2730
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2837,57 +2837,57 @@ function validate$p(obj, path = 'DashboardRepresentation') {
|
|
|
2837
2837
|
})();
|
|
2838
2838
|
return v_error === undefined ? null : v_error;
|
|
2839
2839
|
}
|
|
2840
|
-
const RepresentationType$
|
|
2841
|
-
function keyBuilder$
|
|
2842
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2840
|
+
const RepresentationType$m = 'DashboardRepresentation';
|
|
2841
|
+
function keyBuilder$L(luvio, config) {
|
|
2842
|
+
return keyPrefix + '::' + RepresentationType$m + ':' + config.name;
|
|
2843
2843
|
}
|
|
2844
2844
|
function keyBuilderFromType$b(luvio, object) {
|
|
2845
2845
|
const keyParams = {
|
|
2846
2846
|
name: object.cacheableKey
|
|
2847
2847
|
};
|
|
2848
|
-
return keyBuilder$
|
|
2848
|
+
return keyBuilder$L(luvio, keyParams);
|
|
2849
2849
|
}
|
|
2850
|
-
function normalize$
|
|
2850
|
+
function normalize$l(input, existing, path, luvio, store, timestamp) {
|
|
2851
2851
|
return input;
|
|
2852
2852
|
}
|
|
2853
|
-
const select$
|
|
2853
|
+
const select$O = function DashboardRepresentationSelect() {
|
|
2854
2854
|
return {
|
|
2855
2855
|
kind: 'Fragment',
|
|
2856
|
-
version: VERSION$
|
|
2856
|
+
version: VERSION$l,
|
|
2857
2857
|
private: [],
|
|
2858
2858
|
opaque: true
|
|
2859
2859
|
};
|
|
2860
2860
|
};
|
|
2861
|
-
function equals$
|
|
2861
|
+
function equals$l(existing, incoming) {
|
|
2862
2862
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2863
2863
|
return false;
|
|
2864
2864
|
}
|
|
2865
2865
|
return true;
|
|
2866
2866
|
}
|
|
2867
|
-
const ingest$
|
|
2867
|
+
const ingest$l = function DashboardRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2868
2868
|
if (process.env.NODE_ENV !== 'production') {
|
|
2869
|
-
const validateError = validate$
|
|
2869
|
+
const validateError = validate$r(input);
|
|
2870
2870
|
if (validateError !== null) {
|
|
2871
2871
|
throw validateError;
|
|
2872
2872
|
}
|
|
2873
2873
|
}
|
|
2874
2874
|
const key = keyBuilderFromType$b(luvio, input);
|
|
2875
2875
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2876
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2876
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$l, "UnifiedAnalytics", VERSION$l, RepresentationType$m, equals$l);
|
|
2877
2877
|
return createLink(key);
|
|
2878
2878
|
};
|
|
2879
|
-
function getTypeCacheKeys$
|
|
2879
|
+
function getTypeCacheKeys$l(rootKeySet, luvio, input, fullPathFactory) {
|
|
2880
2880
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2881
2881
|
const rootKey = keyBuilderFromType$b(luvio, input);
|
|
2882
2882
|
rootKeySet.set(rootKey, {
|
|
2883
2883
|
namespace: keyPrefix,
|
|
2884
|
-
representationName: RepresentationType$
|
|
2884
|
+
representationName: RepresentationType$m,
|
|
2885
2885
|
mergeable: false
|
|
2886
2886
|
});
|
|
2887
2887
|
}
|
|
2888
2888
|
|
|
2889
|
-
const VERSION$
|
|
2890
|
-
function validate$
|
|
2889
|
+
const VERSION$k = "962823130e6a9315240ef0e0f0c5f757";
|
|
2890
|
+
function validate$q(obj, path = 'DashboardCollectionRepresentation') {
|
|
2891
2891
|
const v_error = (() => {
|
|
2892
2892
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2893
2893
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2907,14 +2907,14 @@ function validate$o(obj, path = 'DashboardCollectionRepresentation') {
|
|
|
2907
2907
|
})();
|
|
2908
2908
|
return v_error === undefined ? null : v_error;
|
|
2909
2909
|
}
|
|
2910
|
-
const RepresentationType$
|
|
2911
|
-
function normalize$
|
|
2910
|
+
const RepresentationType$l = 'DashboardCollectionRepresentation';
|
|
2911
|
+
function normalize$k(input, existing, path, luvio, store, timestamp) {
|
|
2912
2912
|
const input_dashboards = input.dashboards;
|
|
2913
2913
|
const input_dashboards_id = path.fullPath + '__dashboards';
|
|
2914
2914
|
for (let i = 0; i < input_dashboards.length; i++) {
|
|
2915
2915
|
const input_dashboards_item = input_dashboards[i];
|
|
2916
2916
|
let input_dashboards_item_id = input_dashboards_id + '__' + i;
|
|
2917
|
-
input_dashboards[i] = ingest$
|
|
2917
|
+
input_dashboards[i] = ingest$l(input_dashboards_item, {
|
|
2918
2918
|
fullPath: input_dashboards_item_id,
|
|
2919
2919
|
propertyName: i,
|
|
2920
2920
|
parent: {
|
|
@@ -2927,22 +2927,22 @@ function normalize$j(input, existing, path, luvio, store, timestamp) {
|
|
|
2927
2927
|
}
|
|
2928
2928
|
return input;
|
|
2929
2929
|
}
|
|
2930
|
-
const select$
|
|
2930
|
+
const select$N = function DashboardCollectionRepresentationSelect() {
|
|
2931
2931
|
return {
|
|
2932
2932
|
kind: 'Fragment',
|
|
2933
|
-
version: VERSION$
|
|
2933
|
+
version: VERSION$k,
|
|
2934
2934
|
private: [],
|
|
2935
2935
|
selections: [
|
|
2936
2936
|
{
|
|
2937
2937
|
name: 'dashboards',
|
|
2938
2938
|
kind: 'Link',
|
|
2939
2939
|
plural: true,
|
|
2940
|
-
fragment: select$
|
|
2940
|
+
fragment: select$O()
|
|
2941
2941
|
}
|
|
2942
2942
|
]
|
|
2943
2943
|
};
|
|
2944
2944
|
};
|
|
2945
|
-
function equals$
|
|
2945
|
+
function equals$k(existing, incoming) {
|
|
2946
2946
|
const existing_dashboards = existing.dashboards;
|
|
2947
2947
|
const incoming_dashboards = incoming.dashboards;
|
|
2948
2948
|
const equals_dashboards_items = equalsArray(existing_dashboards, incoming_dashboards, (existing_dashboards_item, incoming_dashboards_item) => {
|
|
@@ -2955,48 +2955,48 @@ function equals$j(existing, incoming) {
|
|
|
2955
2955
|
}
|
|
2956
2956
|
return true;
|
|
2957
2957
|
}
|
|
2958
|
-
const ingest$
|
|
2958
|
+
const ingest$k = function DashboardCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2959
2959
|
if (process.env.NODE_ENV !== 'production') {
|
|
2960
|
-
const validateError = validate$
|
|
2960
|
+
const validateError = validate$q(input);
|
|
2961
2961
|
if (validateError !== null) {
|
|
2962
2962
|
throw validateError;
|
|
2963
2963
|
}
|
|
2964
2964
|
}
|
|
2965
2965
|
const key = path.fullPath;
|
|
2966
2966
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2967
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2967
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$k, "UnifiedAnalytics", VERSION$k, RepresentationType$l, equals$k);
|
|
2968
2968
|
return createLink(key);
|
|
2969
2969
|
};
|
|
2970
|
-
function getTypeCacheKeys$
|
|
2970
|
+
function getTypeCacheKeys$k(rootKeySet, luvio, input, fullPathFactory) {
|
|
2971
2971
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2972
2972
|
const rootKey = fullPathFactory();
|
|
2973
2973
|
rootKeySet.set(rootKey, {
|
|
2974
2974
|
namespace: keyPrefix,
|
|
2975
|
-
representationName: RepresentationType$
|
|
2975
|
+
representationName: RepresentationType$l,
|
|
2976
2976
|
mergeable: false
|
|
2977
2977
|
});
|
|
2978
2978
|
const input_dashboards_length = input.dashboards.length;
|
|
2979
2979
|
for (let i = 0; i < input_dashboards_length; i++) {
|
|
2980
|
-
getTypeCacheKeys$
|
|
2980
|
+
getTypeCacheKeys$l(rootKeySet, luvio, input.dashboards[i]);
|
|
2981
2981
|
}
|
|
2982
2982
|
}
|
|
2983
2983
|
|
|
2984
|
-
function select$
|
|
2985
|
-
return select$
|
|
2984
|
+
function select$M(luvio, params) {
|
|
2985
|
+
return select$N();
|
|
2986
2986
|
}
|
|
2987
|
-
function keyBuilder$
|
|
2987
|
+
function keyBuilder$K(luvio, params) {
|
|
2988
2988
|
return keyPrefix + '::DashboardCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
2989
2989
|
}
|
|
2990
|
-
function getResponseCacheKeys$
|
|
2991
|
-
getTypeCacheKeys$
|
|
2990
|
+
function getResponseCacheKeys$x(storeKeyMap, luvio, resourceParams, response) {
|
|
2991
|
+
getTypeCacheKeys$k(storeKeyMap, luvio, response, () => keyBuilder$K(luvio, resourceParams));
|
|
2992
2992
|
}
|
|
2993
|
-
function ingestSuccess$
|
|
2993
|
+
function ingestSuccess$s(luvio, resourceParams, response, snapshotRefresh) {
|
|
2994
2994
|
const { body } = response;
|
|
2995
|
-
const key = keyBuilder$
|
|
2996
|
-
luvio.storeIngest(key, ingest$
|
|
2995
|
+
const key = keyBuilder$K(luvio, resourceParams);
|
|
2996
|
+
luvio.storeIngest(key, ingest$k, body);
|
|
2997
2997
|
const snapshot = luvio.storeLookup({
|
|
2998
2998
|
recordId: key,
|
|
2999
|
-
node: select$
|
|
2999
|
+
node: select$M(),
|
|
3000
3000
|
variables: {},
|
|
3001
3001
|
}, snapshotRefresh);
|
|
3002
3002
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3007,13 +3007,13 @@ function ingestSuccess$r(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3007
3007
|
deepFreeze(snapshot.data);
|
|
3008
3008
|
return snapshot;
|
|
3009
3009
|
}
|
|
3010
|
-
function ingestError$
|
|
3011
|
-
const key = keyBuilder$
|
|
3010
|
+
function ingestError$e(luvio, params, error, snapshotRefresh) {
|
|
3011
|
+
const key = keyBuilder$K(luvio, params);
|
|
3012
3012
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3013
3013
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3014
3014
|
return errorSnapshot;
|
|
3015
3015
|
}
|
|
3016
|
-
function createResourceRequest$
|
|
3016
|
+
function createResourceRequest$x(config) {
|
|
3017
3017
|
const headers = {};
|
|
3018
3018
|
return {
|
|
3019
3019
|
baseUri: '/services/data/v62.0',
|
|
@@ -3027,106 +3027,106 @@ function createResourceRequest$w(config) {
|
|
|
3027
3027
|
};
|
|
3028
3028
|
}
|
|
3029
3029
|
|
|
3030
|
-
const adapterName$
|
|
3030
|
+
const adapterName$x = 'getDashboards';
|
|
3031
3031
|
const getDashboards_ConfigPropertyMetadata = [
|
|
3032
3032
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3033
3033
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3034
3034
|
];
|
|
3035
|
-
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3036
|
-
const createResourceParams$
|
|
3037
|
-
function keyBuilder$
|
|
3038
|
-
const resourceParams = createResourceParams$
|
|
3039
|
-
return keyBuilder$
|
|
3035
|
+
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$x, getDashboards_ConfigPropertyMetadata);
|
|
3036
|
+
const createResourceParams$x = /*#__PURE__*/ createResourceParams$D(getDashboards_ConfigPropertyMetadata);
|
|
3037
|
+
function keyBuilder$J(luvio, config) {
|
|
3038
|
+
const resourceParams = createResourceParams$x(config);
|
|
3039
|
+
return keyBuilder$K(luvio, resourceParams);
|
|
3040
3040
|
}
|
|
3041
|
-
function typeCheckConfig$
|
|
3041
|
+
function typeCheckConfig$x(untrustedConfig) {
|
|
3042
3042
|
const config = {};
|
|
3043
|
-
typeCheckConfig$
|
|
3043
|
+
typeCheckConfig$D(untrustedConfig, config, getDashboards_ConfigPropertyMetadata);
|
|
3044
3044
|
return config;
|
|
3045
3045
|
}
|
|
3046
|
-
function validateAdapterConfig$
|
|
3046
|
+
function validateAdapterConfig$x(untrustedConfig, configPropertyNames) {
|
|
3047
3047
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3048
3048
|
return null;
|
|
3049
3049
|
}
|
|
3050
3050
|
if (process.env.NODE_ENV !== 'production') {
|
|
3051
3051
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3052
3052
|
}
|
|
3053
|
-
const config = typeCheckConfig$
|
|
3053
|
+
const config = typeCheckConfig$x(untrustedConfig);
|
|
3054
3054
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3055
3055
|
return null;
|
|
3056
3056
|
}
|
|
3057
3057
|
return config;
|
|
3058
3058
|
}
|
|
3059
|
-
function adapterFragment$
|
|
3060
|
-
createResourceParams$
|
|
3061
|
-
return select$
|
|
3059
|
+
function adapterFragment$e(luvio, config) {
|
|
3060
|
+
createResourceParams$x(config);
|
|
3061
|
+
return select$M();
|
|
3062
3062
|
}
|
|
3063
|
-
function onFetchResponseSuccess$
|
|
3064
|
-
const snapshot = ingestSuccess$
|
|
3063
|
+
function onFetchResponseSuccess$e(luvio, config, resourceParams, response) {
|
|
3064
|
+
const snapshot = ingestSuccess$s(luvio, resourceParams, response, {
|
|
3065
3065
|
config,
|
|
3066
|
-
resolve: () => buildNetworkSnapshot$
|
|
3066
|
+
resolve: () => buildNetworkSnapshot$x(luvio, config, snapshotRefreshOptions)
|
|
3067
3067
|
});
|
|
3068
3068
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3069
3069
|
}
|
|
3070
|
-
function onFetchResponseError$
|
|
3071
|
-
const snapshot = ingestError$
|
|
3070
|
+
function onFetchResponseError$e(luvio, config, resourceParams, response) {
|
|
3071
|
+
const snapshot = ingestError$e(luvio, resourceParams, response, {
|
|
3072
3072
|
config,
|
|
3073
|
-
resolve: () => buildNetworkSnapshot$
|
|
3073
|
+
resolve: () => buildNetworkSnapshot$x(luvio, config, snapshotRefreshOptions)
|
|
3074
3074
|
});
|
|
3075
3075
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3076
3076
|
}
|
|
3077
|
-
function buildNetworkSnapshot$
|
|
3078
|
-
const resourceParams = createResourceParams$
|
|
3079
|
-
const request = createResourceRequest$
|
|
3077
|
+
function buildNetworkSnapshot$x(luvio, config, options) {
|
|
3078
|
+
const resourceParams = createResourceParams$x(config);
|
|
3079
|
+
const request = createResourceRequest$x(resourceParams);
|
|
3080
3080
|
return luvio.dispatchResourceRequest(request, options)
|
|
3081
3081
|
.then((response) => {
|
|
3082
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3082
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$e(luvio, config, resourceParams, response), () => {
|
|
3083
3083
|
const cache = new StoreKeyMap();
|
|
3084
|
-
getResponseCacheKeys$
|
|
3084
|
+
getResponseCacheKeys$x(cache, luvio, resourceParams, response.body);
|
|
3085
3085
|
return cache;
|
|
3086
3086
|
});
|
|
3087
3087
|
}, (response) => {
|
|
3088
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3088
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$e(luvio, config, resourceParams, response));
|
|
3089
3089
|
});
|
|
3090
3090
|
}
|
|
3091
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3092
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3091
|
+
function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
|
|
3092
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$x, undefined, false);
|
|
3093
3093
|
}
|
|
3094
|
-
function buildCachedSnapshotCachePolicy$
|
|
3094
|
+
function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
|
|
3095
3095
|
const { luvio, config } = context;
|
|
3096
3096
|
const selector = {
|
|
3097
|
-
recordId: keyBuilder$
|
|
3098
|
-
node: adapterFragment$
|
|
3097
|
+
recordId: keyBuilder$J(luvio, config),
|
|
3098
|
+
node: adapterFragment$e(luvio, config),
|
|
3099
3099
|
variables: {},
|
|
3100
3100
|
};
|
|
3101
3101
|
const cacheSnapshot = storeLookup(selector, {
|
|
3102
3102
|
config,
|
|
3103
|
-
resolve: () => buildNetworkSnapshot$
|
|
3103
|
+
resolve: () => buildNetworkSnapshot$x(luvio, config, snapshotRefreshOptions)
|
|
3104
3104
|
});
|
|
3105
3105
|
return cacheSnapshot;
|
|
3106
3106
|
}
|
|
3107
3107
|
const getDashboardsAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboards(untrustedConfig, requestContext) {
|
|
3108
|
-
const config = validateAdapterConfig$
|
|
3108
|
+
const config = validateAdapterConfig$x(untrustedConfig, getDashboards_ConfigPropertyNames);
|
|
3109
3109
|
// Invalid or incomplete config
|
|
3110
3110
|
if (config === null) {
|
|
3111
3111
|
return null;
|
|
3112
3112
|
}
|
|
3113
3113
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3114
|
-
buildCachedSnapshotCachePolicy$
|
|
3114
|
+
buildCachedSnapshotCachePolicy$e, buildNetworkSnapshotCachePolicy$e);
|
|
3115
3115
|
};
|
|
3116
3116
|
|
|
3117
|
-
function select$
|
|
3118
|
-
return select$
|
|
3117
|
+
function select$L(luvio, params) {
|
|
3118
|
+
return select$O();
|
|
3119
3119
|
}
|
|
3120
|
-
function getResponseCacheKeys$
|
|
3121
|
-
getTypeCacheKeys$
|
|
3120
|
+
function getResponseCacheKeys$w(storeKeyMap, luvio, resourceParams, response) {
|
|
3121
|
+
getTypeCacheKeys$l(storeKeyMap, luvio, response);
|
|
3122
3122
|
}
|
|
3123
|
-
function ingestSuccess$
|
|
3123
|
+
function ingestSuccess$r(luvio, resourceParams, response) {
|
|
3124
3124
|
const { body } = response;
|
|
3125
3125
|
const key = keyBuilderFromType$b(luvio, body);
|
|
3126
|
-
luvio.storeIngest(key, ingest$
|
|
3126
|
+
luvio.storeIngest(key, ingest$l, body);
|
|
3127
3127
|
const snapshot = luvio.storeLookup({
|
|
3128
3128
|
recordId: key,
|
|
3129
|
-
node: select$
|
|
3129
|
+
node: select$L(),
|
|
3130
3130
|
variables: {},
|
|
3131
3131
|
});
|
|
3132
3132
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3137,7 +3137,7 @@ function ingestSuccess$q(luvio, resourceParams, response) {
|
|
|
3137
3137
|
deepFreeze(snapshot.data);
|
|
3138
3138
|
return snapshot;
|
|
3139
3139
|
}
|
|
3140
|
-
function createResourceRequest$
|
|
3140
|
+
function createResourceRequest$w(config) {
|
|
3141
3141
|
const headers = {};
|
|
3142
3142
|
return {
|
|
3143
3143
|
baseUri: '/services/data/v62.0',
|
|
@@ -3151,7 +3151,7 @@ function createResourceRequest$v(config) {
|
|
|
3151
3151
|
};
|
|
3152
3152
|
}
|
|
3153
3153
|
|
|
3154
|
-
const adapterName$
|
|
3154
|
+
const adapterName$w = 'createDashboard';
|
|
3155
3155
|
const createDashboard_ConfigPropertyMetadata = [
|
|
3156
3156
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
3157
3157
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
@@ -3162,11 +3162,11 @@ const createDashboard_ConfigPropertyMetadata = [
|
|
|
3162
3162
|
generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3163
3163
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3164
3164
|
];
|
|
3165
|
-
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3166
|
-
const createResourceParams$
|
|
3167
|
-
function typeCheckConfig$
|
|
3165
|
+
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$w, createDashboard_ConfigPropertyMetadata);
|
|
3166
|
+
const createResourceParams$w = /*#__PURE__*/ createResourceParams$D(createDashboard_ConfigPropertyMetadata);
|
|
3167
|
+
function typeCheckConfig$w(untrustedConfig) {
|
|
3168
3168
|
const config = {};
|
|
3169
|
-
typeCheckConfig$
|
|
3169
|
+
typeCheckConfig$D(untrustedConfig, config, createDashboard_ConfigPropertyMetadata);
|
|
3170
3170
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
3171
3171
|
if (ArrayIsArray$1(untrustedConfig_layouts)) {
|
|
3172
3172
|
const untrustedConfig_layouts_array = [];
|
|
@@ -3208,30 +3208,30 @@ function typeCheckConfig$v(untrustedConfig) {
|
|
|
3208
3208
|
}
|
|
3209
3209
|
return config;
|
|
3210
3210
|
}
|
|
3211
|
-
function validateAdapterConfig$
|
|
3211
|
+
function validateAdapterConfig$w(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$w(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$w(luvio, config, options) {
|
|
3225
|
+
const resourceParams = createResourceParams$w(config);
|
|
3226
|
+
const request = createResourceRequest$w(resourceParams);
|
|
3227
3227
|
return luvio.dispatchResourceRequest(request, options)
|
|
3228
3228
|
.then((response) => {
|
|
3229
3229
|
return luvio.handleSuccessResponse(() => {
|
|
3230
|
-
const snapshot = ingestSuccess$
|
|
3230
|
+
const snapshot = ingestSuccess$r(luvio, resourceParams, response);
|
|
3231
3231
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3232
3232
|
}, () => {
|
|
3233
3233
|
const cache = new StoreKeyMap();
|
|
3234
|
-
getResponseCacheKeys$
|
|
3234
|
+
getResponseCacheKeys$w(cache, luvio, resourceParams, response.body);
|
|
3235
3235
|
return cache;
|
|
3236
3236
|
});
|
|
3237
3237
|
}, (response) => {
|
|
@@ -3241,33 +3241,33 @@ function buildNetworkSnapshot$v(luvio, config, options) {
|
|
|
3241
3241
|
}
|
|
3242
3242
|
const createDashboardAdapterFactory = (luvio) => {
|
|
3243
3243
|
return function createDashboard(untrustedConfig) {
|
|
3244
|
-
const config = validateAdapterConfig$
|
|
3244
|
+
const config = validateAdapterConfig$w(untrustedConfig, createDashboard_ConfigPropertyNames);
|
|
3245
3245
|
// Invalid or incomplete config
|
|
3246
3246
|
if (config === null) {
|
|
3247
3247
|
throw new Error('Invalid config for "createDashboard"');
|
|
3248
3248
|
}
|
|
3249
|
-
return buildNetworkSnapshot$
|
|
3249
|
+
return buildNetworkSnapshot$w(luvio, config);
|
|
3250
3250
|
};
|
|
3251
3251
|
};
|
|
3252
3252
|
|
|
3253
|
-
function keyBuilder$
|
|
3254
|
-
return keyBuilder$
|
|
3253
|
+
function keyBuilder$I(luvio, params) {
|
|
3254
|
+
return keyBuilder$L(luvio, {
|
|
3255
3255
|
name: params.urlParams.dashboardIdOrApiName
|
|
3256
3256
|
});
|
|
3257
3257
|
}
|
|
3258
|
-
function getResponseCacheKeys$
|
|
3259
|
-
const key = keyBuilder$
|
|
3258
|
+
function getResponseCacheKeys$v(cacheKeyMap, luvio, resourceParams) {
|
|
3259
|
+
const key = keyBuilder$I(luvio, resourceParams);
|
|
3260
3260
|
cacheKeyMap.set(key, {
|
|
3261
3261
|
namespace: keyPrefix,
|
|
3262
|
-
representationName: RepresentationType$
|
|
3262
|
+
representationName: RepresentationType$m,
|
|
3263
3263
|
mergeable: false
|
|
3264
3264
|
});
|
|
3265
3265
|
}
|
|
3266
3266
|
function evictSuccess$4(luvio, resourceParams) {
|
|
3267
|
-
const key = keyBuilder$
|
|
3267
|
+
const key = keyBuilder$I(luvio, resourceParams);
|
|
3268
3268
|
luvio.storeEvict(key);
|
|
3269
3269
|
}
|
|
3270
|
-
function createResourceRequest$
|
|
3270
|
+
function createResourceRequest$v(config) {
|
|
3271
3271
|
const headers = {};
|
|
3272
3272
|
return {
|
|
3273
3273
|
baseUri: '/services/data/v62.0',
|
|
@@ -3281,33 +3281,33 @@ function createResourceRequest$u(config) {
|
|
|
3281
3281
|
};
|
|
3282
3282
|
}
|
|
3283
3283
|
|
|
3284
|
-
const adapterName$
|
|
3284
|
+
const adapterName$v = 'deleteDashboard';
|
|
3285
3285
|
const deleteDashboard_ConfigPropertyMetadata = [
|
|
3286
3286
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3287
3287
|
];
|
|
3288
|
-
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3289
|
-
const createResourceParams$
|
|
3290
|
-
function typeCheckConfig$
|
|
3288
|
+
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$v, deleteDashboard_ConfigPropertyMetadata);
|
|
3289
|
+
const createResourceParams$v = /*#__PURE__*/ createResourceParams$D(deleteDashboard_ConfigPropertyMetadata);
|
|
3290
|
+
function typeCheckConfig$v(untrustedConfig) {
|
|
3291
3291
|
const config = {};
|
|
3292
|
-
typeCheckConfig$
|
|
3292
|
+
typeCheckConfig$D(untrustedConfig, config, deleteDashboard_ConfigPropertyMetadata);
|
|
3293
3293
|
return config;
|
|
3294
3294
|
}
|
|
3295
|
-
function validateAdapterConfig$
|
|
3295
|
+
function validateAdapterConfig$v(untrustedConfig, configPropertyNames) {
|
|
3296
3296
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3297
3297
|
return null;
|
|
3298
3298
|
}
|
|
3299
3299
|
if (process.env.NODE_ENV !== 'production') {
|
|
3300
3300
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3301
3301
|
}
|
|
3302
|
-
const config = typeCheckConfig$
|
|
3302
|
+
const config = typeCheckConfig$v(untrustedConfig);
|
|
3303
3303
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3304
3304
|
return null;
|
|
3305
3305
|
}
|
|
3306
3306
|
return config;
|
|
3307
3307
|
}
|
|
3308
|
-
function buildNetworkSnapshot$
|
|
3309
|
-
const resourceParams = createResourceParams$
|
|
3310
|
-
const request = createResourceRequest$
|
|
3308
|
+
function buildNetworkSnapshot$v(luvio, config, options) {
|
|
3309
|
+
const resourceParams = createResourceParams$v(config);
|
|
3310
|
+
const request = createResourceRequest$v(resourceParams);
|
|
3311
3311
|
return luvio.dispatchResourceRequest(request, options)
|
|
3312
3312
|
.then(() => {
|
|
3313
3313
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -3315,7 +3315,7 @@ function buildNetworkSnapshot$u(luvio, config, options) {
|
|
|
3315
3315
|
return luvio.storeBroadcast();
|
|
3316
3316
|
}, () => {
|
|
3317
3317
|
const cache = new StoreKeyMap();
|
|
3318
|
-
getResponseCacheKeys$
|
|
3318
|
+
getResponseCacheKeys$v(cache, luvio, resourceParams);
|
|
3319
3319
|
return cache;
|
|
3320
3320
|
});
|
|
3321
3321
|
}, (response) => {
|
|
@@ -3325,33 +3325,33 @@ function buildNetworkSnapshot$u(luvio, config, options) {
|
|
|
3325
3325
|
}
|
|
3326
3326
|
const deleteDashboardAdapterFactory = (luvio) => {
|
|
3327
3327
|
return function UnifiedAnalyticsdeleteDashboard(untrustedConfig) {
|
|
3328
|
-
const config = validateAdapterConfig$
|
|
3328
|
+
const config = validateAdapterConfig$v(untrustedConfig, deleteDashboard_ConfigPropertyNames);
|
|
3329
3329
|
// Invalid or incomplete config
|
|
3330
3330
|
if (config === null) {
|
|
3331
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
3331
|
+
throw new Error(`Invalid config for "${adapterName$v}"`);
|
|
3332
3332
|
}
|
|
3333
|
-
return buildNetworkSnapshot$
|
|
3333
|
+
return buildNetworkSnapshot$v(luvio, config);
|
|
3334
3334
|
};
|
|
3335
3335
|
};
|
|
3336
3336
|
|
|
3337
|
-
function select$
|
|
3338
|
-
return select$
|
|
3337
|
+
function select$K(luvio, params) {
|
|
3338
|
+
return select$O();
|
|
3339
3339
|
}
|
|
3340
|
-
function keyBuilder$
|
|
3341
|
-
return keyBuilder$
|
|
3340
|
+
function keyBuilder$H(luvio, params) {
|
|
3341
|
+
return keyBuilder$L(luvio, {
|
|
3342
3342
|
name: params.urlParams.dashboardIdOrApiName
|
|
3343
3343
|
});
|
|
3344
3344
|
}
|
|
3345
|
-
function getResponseCacheKeys$
|
|
3346
|
-
getTypeCacheKeys$
|
|
3345
|
+
function getResponseCacheKeys$u(storeKeyMap, luvio, resourceParams, response) {
|
|
3346
|
+
getTypeCacheKeys$l(storeKeyMap, luvio, response);
|
|
3347
3347
|
}
|
|
3348
|
-
function ingestSuccess$
|
|
3348
|
+
function ingestSuccess$q(luvio, resourceParams, response, snapshotRefresh) {
|
|
3349
3349
|
const { body } = response;
|
|
3350
|
-
const key = keyBuilder$
|
|
3351
|
-
luvio.storeIngest(key, ingest$
|
|
3350
|
+
const key = keyBuilder$H(luvio, resourceParams);
|
|
3351
|
+
luvio.storeIngest(key, ingest$l, body);
|
|
3352
3352
|
const snapshot = luvio.storeLookup({
|
|
3353
3353
|
recordId: key,
|
|
3354
|
-
node: select$
|
|
3354
|
+
node: select$K(),
|
|
3355
3355
|
variables: {},
|
|
3356
3356
|
}, snapshotRefresh);
|
|
3357
3357
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3362,13 +3362,13 @@ function ingestSuccess$p(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3362
3362
|
deepFreeze(snapshot.data);
|
|
3363
3363
|
return snapshot;
|
|
3364
3364
|
}
|
|
3365
|
-
function ingestError$
|
|
3366
|
-
const key = keyBuilder$
|
|
3365
|
+
function ingestError$d(luvio, params, error, snapshotRefresh) {
|
|
3366
|
+
const key = keyBuilder$H(luvio, params);
|
|
3367
3367
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3368
3368
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3369
3369
|
return errorSnapshot;
|
|
3370
3370
|
}
|
|
3371
|
-
function createResourceRequest$
|
|
3371
|
+
function createResourceRequest$u(config) {
|
|
3372
3372
|
const headers = {};
|
|
3373
3373
|
return {
|
|
3374
3374
|
baseUri: '/services/data/v62.0',
|
|
@@ -3382,105 +3382,105 @@ function createResourceRequest$t(config) {
|
|
|
3382
3382
|
};
|
|
3383
3383
|
}
|
|
3384
3384
|
|
|
3385
|
-
const adapterName$
|
|
3385
|
+
const adapterName$u = 'getDashboardByName';
|
|
3386
3386
|
const getDashboardByName_ConfigPropertyMetadata = [
|
|
3387
3387
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3388
3388
|
];
|
|
3389
|
-
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3390
|
-
const createResourceParams$
|
|
3391
|
-
function keyBuilder$
|
|
3392
|
-
const resourceParams = createResourceParams$
|
|
3393
|
-
return keyBuilder$
|
|
3389
|
+
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$u, getDashboardByName_ConfigPropertyMetadata);
|
|
3390
|
+
const createResourceParams$u = /*#__PURE__*/ createResourceParams$D(getDashboardByName_ConfigPropertyMetadata);
|
|
3391
|
+
function keyBuilder$G(luvio, config) {
|
|
3392
|
+
const resourceParams = createResourceParams$u(config);
|
|
3393
|
+
return keyBuilder$H(luvio, resourceParams);
|
|
3394
3394
|
}
|
|
3395
|
-
function typeCheckConfig$
|
|
3395
|
+
function typeCheckConfig$u(untrustedConfig) {
|
|
3396
3396
|
const config = {};
|
|
3397
|
-
typeCheckConfig$
|
|
3397
|
+
typeCheckConfig$D(untrustedConfig, config, getDashboardByName_ConfigPropertyMetadata);
|
|
3398
3398
|
return config;
|
|
3399
3399
|
}
|
|
3400
|
-
function validateAdapterConfig$
|
|
3400
|
+
function validateAdapterConfig$u(untrustedConfig, configPropertyNames) {
|
|
3401
3401
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3402
3402
|
return null;
|
|
3403
3403
|
}
|
|
3404
3404
|
if (process.env.NODE_ENV !== 'production') {
|
|
3405
3405
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3406
3406
|
}
|
|
3407
|
-
const config = typeCheckConfig$
|
|
3407
|
+
const config = typeCheckConfig$u(untrustedConfig);
|
|
3408
3408
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3409
3409
|
return null;
|
|
3410
3410
|
}
|
|
3411
3411
|
return config;
|
|
3412
3412
|
}
|
|
3413
|
-
function adapterFragment$
|
|
3414
|
-
createResourceParams$
|
|
3415
|
-
return select$
|
|
3413
|
+
function adapterFragment$d(luvio, config) {
|
|
3414
|
+
createResourceParams$u(config);
|
|
3415
|
+
return select$K();
|
|
3416
3416
|
}
|
|
3417
|
-
function onFetchResponseSuccess$
|
|
3418
|
-
const snapshot = ingestSuccess$
|
|
3417
|
+
function onFetchResponseSuccess$d(luvio, config, resourceParams, response) {
|
|
3418
|
+
const snapshot = ingestSuccess$q(luvio, resourceParams, response, {
|
|
3419
3419
|
config,
|
|
3420
|
-
resolve: () => buildNetworkSnapshot$
|
|
3420
|
+
resolve: () => buildNetworkSnapshot$u(luvio, config, snapshotRefreshOptions)
|
|
3421
3421
|
});
|
|
3422
3422
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3423
3423
|
}
|
|
3424
|
-
function onFetchResponseError$
|
|
3425
|
-
const snapshot = ingestError$
|
|
3424
|
+
function onFetchResponseError$d(luvio, config, resourceParams, response) {
|
|
3425
|
+
const snapshot = ingestError$d(luvio, resourceParams, response, {
|
|
3426
3426
|
config,
|
|
3427
|
-
resolve: () => buildNetworkSnapshot$
|
|
3427
|
+
resolve: () => buildNetworkSnapshot$u(luvio, config, snapshotRefreshOptions)
|
|
3428
3428
|
});
|
|
3429
3429
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3430
3430
|
}
|
|
3431
|
-
function buildNetworkSnapshot$
|
|
3432
|
-
const resourceParams = createResourceParams$
|
|
3433
|
-
const request = createResourceRequest$
|
|
3431
|
+
function buildNetworkSnapshot$u(luvio, config, options) {
|
|
3432
|
+
const resourceParams = createResourceParams$u(config);
|
|
3433
|
+
const request = createResourceRequest$u(resourceParams);
|
|
3434
3434
|
return luvio.dispatchResourceRequest(request, options)
|
|
3435
3435
|
.then((response) => {
|
|
3436
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3436
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$d(luvio, config, resourceParams, response), () => {
|
|
3437
3437
|
const cache = new StoreKeyMap();
|
|
3438
|
-
getResponseCacheKeys$
|
|
3438
|
+
getResponseCacheKeys$u(cache, luvio, resourceParams, response.body);
|
|
3439
3439
|
return cache;
|
|
3440
3440
|
});
|
|
3441
3441
|
}, (response) => {
|
|
3442
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3442
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$d(luvio, config, resourceParams, response));
|
|
3443
3443
|
});
|
|
3444
3444
|
}
|
|
3445
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3446
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3445
|
+
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
3446
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$u, undefined, false);
|
|
3447
3447
|
}
|
|
3448
|
-
function buildCachedSnapshotCachePolicy$
|
|
3448
|
+
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
3449
3449
|
const { luvio, config } = context;
|
|
3450
3450
|
const selector = {
|
|
3451
|
-
recordId: keyBuilder$
|
|
3452
|
-
node: adapterFragment$
|
|
3451
|
+
recordId: keyBuilder$G(luvio, config),
|
|
3452
|
+
node: adapterFragment$d(luvio, config),
|
|
3453
3453
|
variables: {},
|
|
3454
3454
|
};
|
|
3455
3455
|
const cacheSnapshot = storeLookup(selector, {
|
|
3456
3456
|
config,
|
|
3457
|
-
resolve: () => buildNetworkSnapshot$
|
|
3457
|
+
resolve: () => buildNetworkSnapshot$u(luvio, config, snapshotRefreshOptions)
|
|
3458
3458
|
});
|
|
3459
3459
|
return cacheSnapshot;
|
|
3460
3460
|
}
|
|
3461
3461
|
const getDashboardByNameAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboardByName(untrustedConfig, requestContext) {
|
|
3462
|
-
const config = validateAdapterConfig$
|
|
3462
|
+
const config = validateAdapterConfig$u(untrustedConfig, getDashboardByName_ConfigPropertyNames);
|
|
3463
3463
|
// Invalid or incomplete config
|
|
3464
3464
|
if (config === null) {
|
|
3465
3465
|
return null;
|
|
3466
3466
|
}
|
|
3467
3467
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3468
|
-
buildCachedSnapshotCachePolicy$
|
|
3468
|
+
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
|
|
3469
3469
|
};
|
|
3470
3470
|
|
|
3471
|
-
function select$
|
|
3472
|
-
return select$
|
|
3471
|
+
function select$J(luvio, params) {
|
|
3472
|
+
return select$O();
|
|
3473
3473
|
}
|
|
3474
|
-
function getResponseCacheKeys$
|
|
3475
|
-
getTypeCacheKeys$
|
|
3474
|
+
function getResponseCacheKeys$t(storeKeyMap, luvio, resourceParams, response) {
|
|
3475
|
+
getTypeCacheKeys$l(storeKeyMap, luvio, response);
|
|
3476
3476
|
}
|
|
3477
|
-
function ingestSuccess$
|
|
3477
|
+
function ingestSuccess$p(luvio, resourceParams, response) {
|
|
3478
3478
|
const { body } = response;
|
|
3479
3479
|
const key = keyBuilderFromType$b(luvio, body);
|
|
3480
|
-
luvio.storeIngest(key, ingest$
|
|
3480
|
+
luvio.storeIngest(key, ingest$l, body);
|
|
3481
3481
|
const snapshot = luvio.storeLookup({
|
|
3482
3482
|
recordId: key,
|
|
3483
|
-
node: select$
|
|
3483
|
+
node: select$J(),
|
|
3484
3484
|
variables: {},
|
|
3485
3485
|
});
|
|
3486
3486
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3491,7 +3491,7 @@ function ingestSuccess$o(luvio, resourceParams, response) {
|
|
|
3491
3491
|
deepFreeze(snapshot.data);
|
|
3492
3492
|
return snapshot;
|
|
3493
3493
|
}
|
|
3494
|
-
function createResourceRequest$
|
|
3494
|
+
function createResourceRequest$t(config) {
|
|
3495
3495
|
const headers = {};
|
|
3496
3496
|
return {
|
|
3497
3497
|
baseUri: '/services/data/v62.0',
|
|
@@ -3505,7 +3505,7 @@ function createResourceRequest$s(config) {
|
|
|
3505
3505
|
};
|
|
3506
3506
|
}
|
|
3507
3507
|
|
|
3508
|
-
const adapterName$
|
|
3508
|
+
const adapterName$t = 'updateDashboard';
|
|
3509
3509
|
const updateDashboard_ConfigPropertyMetadata = [
|
|
3510
3510
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3511
3511
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -3517,11 +3517,11 @@ const updateDashboard_ConfigPropertyMetadata = [
|
|
|
3517
3517
|
generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3518
3518
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3519
3519
|
];
|
|
3520
|
-
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3521
|
-
const createResourceParams$
|
|
3522
|
-
function typeCheckConfig$
|
|
3520
|
+
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, updateDashboard_ConfigPropertyMetadata);
|
|
3521
|
+
const createResourceParams$t = /*#__PURE__*/ createResourceParams$D(updateDashboard_ConfigPropertyMetadata);
|
|
3522
|
+
function typeCheckConfig$t(untrustedConfig) {
|
|
3523
3523
|
const config = {};
|
|
3524
|
-
typeCheckConfig$
|
|
3524
|
+
typeCheckConfig$D(untrustedConfig, config, updateDashboard_ConfigPropertyMetadata);
|
|
3525
3525
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
3526
3526
|
if (ArrayIsArray$1(untrustedConfig_layouts)) {
|
|
3527
3527
|
const untrustedConfig_layouts_array = [];
|
|
@@ -3563,30 +3563,30 @@ function typeCheckConfig$s(untrustedConfig) {
|
|
|
3563
3563
|
}
|
|
3564
3564
|
return config;
|
|
3565
3565
|
}
|
|
3566
|
-
function validateAdapterConfig$
|
|
3566
|
+
function validateAdapterConfig$t(untrustedConfig, configPropertyNames) {
|
|
3567
3567
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3568
3568
|
return null;
|
|
3569
3569
|
}
|
|
3570
3570
|
if (process.env.NODE_ENV !== 'production') {
|
|
3571
3571
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3572
3572
|
}
|
|
3573
|
-
const config = typeCheckConfig$
|
|
3573
|
+
const config = typeCheckConfig$t(untrustedConfig);
|
|
3574
3574
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3575
3575
|
return null;
|
|
3576
3576
|
}
|
|
3577
3577
|
return config;
|
|
3578
3578
|
}
|
|
3579
|
-
function buildNetworkSnapshot$
|
|
3580
|
-
const resourceParams = createResourceParams$
|
|
3581
|
-
const request = createResourceRequest$
|
|
3579
|
+
function buildNetworkSnapshot$t(luvio, config, options) {
|
|
3580
|
+
const resourceParams = createResourceParams$t(config);
|
|
3581
|
+
const request = createResourceRequest$t(resourceParams);
|
|
3582
3582
|
return luvio.dispatchResourceRequest(request, options)
|
|
3583
3583
|
.then((response) => {
|
|
3584
3584
|
return luvio.handleSuccessResponse(() => {
|
|
3585
|
-
const snapshot = ingestSuccess$
|
|
3585
|
+
const snapshot = ingestSuccess$p(luvio, resourceParams, response);
|
|
3586
3586
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3587
3587
|
}, () => {
|
|
3588
3588
|
const cache = new StoreKeyMap();
|
|
3589
|
-
getResponseCacheKeys$
|
|
3589
|
+
getResponseCacheKeys$t(cache, luvio, resourceParams, response.body);
|
|
3590
3590
|
return cache;
|
|
3591
3591
|
});
|
|
3592
3592
|
}, (response) => {
|
|
@@ -3596,17 +3596,17 @@ function buildNetworkSnapshot$s(luvio, config, options) {
|
|
|
3596
3596
|
}
|
|
3597
3597
|
const updateDashboardAdapterFactory = (luvio) => {
|
|
3598
3598
|
return function updateDashboard(untrustedConfig) {
|
|
3599
|
-
const config = validateAdapterConfig$
|
|
3599
|
+
const config = validateAdapterConfig$t(untrustedConfig, updateDashboard_ConfigPropertyNames);
|
|
3600
3600
|
// Invalid or incomplete config
|
|
3601
3601
|
if (config === null) {
|
|
3602
3602
|
throw new Error('Invalid config for "updateDashboard"');
|
|
3603
3603
|
}
|
|
3604
|
-
return buildNetworkSnapshot$
|
|
3604
|
+
return buildNetworkSnapshot$t(luvio, config);
|
|
3605
3605
|
};
|
|
3606
3606
|
};
|
|
3607
3607
|
|
|
3608
|
-
function validate$
|
|
3609
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
3608
|
+
function validate$p(obj, path = 'AnalyticsUserRepresentation') {
|
|
3609
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$v(obj, path);
|
|
3610
3610
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
3611
3611
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
3612
3612
|
}
|
|
@@ -3646,16 +3646,16 @@ function validate$n(obj, path = 'AnalyticsUserRepresentation') {
|
|
|
3646
3646
|
return v_error === undefined ? null : v_error;
|
|
3647
3647
|
}
|
|
3648
3648
|
|
|
3649
|
-
const TTL$
|
|
3650
|
-
const VERSION$
|
|
3651
|
-
function validate$
|
|
3649
|
+
const TTL$b = 500;
|
|
3650
|
+
const VERSION$j = "9a4f1166e92aab266ef84b910ef0c322";
|
|
3651
|
+
function validate$o(obj, path = 'FollowerAssetRepresentation') {
|
|
3652
3652
|
const v_error = (() => {
|
|
3653
3653
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3654
3654
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3655
3655
|
}
|
|
3656
3656
|
const obj_createdBy = obj.createdBy;
|
|
3657
3657
|
const path_createdBy = path + '.createdBy';
|
|
3658
|
-
const referencepath_createdByValidationError = validate$
|
|
3658
|
+
const referencepath_createdByValidationError = validate$p(obj_createdBy, path_createdBy);
|
|
3659
3659
|
if (referencepath_createdByValidationError !== null) {
|
|
3660
3660
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
3661
3661
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3689,68 +3689,68 @@ function validate$m(obj, path = 'FollowerAssetRepresentation') {
|
|
|
3689
3689
|
})();
|
|
3690
3690
|
return v_error === undefined ? null : v_error;
|
|
3691
3691
|
}
|
|
3692
|
-
const RepresentationType$
|
|
3693
|
-
function keyBuilder$
|
|
3694
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3692
|
+
const RepresentationType$k = 'FollowerAssetRepresentation';
|
|
3693
|
+
function keyBuilder$F(luvio, config) {
|
|
3694
|
+
return keyPrefix + '::' + RepresentationType$k + ':' + config.followerId;
|
|
3695
3695
|
}
|
|
3696
3696
|
function keyBuilderFromType$a(luvio, object) {
|
|
3697
3697
|
const keyParams = {
|
|
3698
3698
|
followerId: object.followerId
|
|
3699
3699
|
};
|
|
3700
|
-
return keyBuilder$
|
|
3700
|
+
return keyBuilder$F(luvio, keyParams);
|
|
3701
3701
|
}
|
|
3702
|
-
function normalize$
|
|
3702
|
+
function normalize$j(input, existing, path, luvio, store, timestamp) {
|
|
3703
3703
|
return input;
|
|
3704
3704
|
}
|
|
3705
|
-
const select$
|
|
3705
|
+
const select$I = function FollowerAssetRepresentationSelect() {
|
|
3706
3706
|
return {
|
|
3707
3707
|
kind: 'Fragment',
|
|
3708
|
-
version: VERSION$
|
|
3708
|
+
version: VERSION$j,
|
|
3709
3709
|
private: [],
|
|
3710
3710
|
opaque: true
|
|
3711
3711
|
};
|
|
3712
3712
|
};
|
|
3713
|
-
function equals$
|
|
3713
|
+
function equals$j(existing, incoming) {
|
|
3714
3714
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3715
3715
|
return false;
|
|
3716
3716
|
}
|
|
3717
3717
|
return true;
|
|
3718
3718
|
}
|
|
3719
|
-
const ingest$
|
|
3719
|
+
const ingest$j = function FollowerAssetRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3720
3720
|
if (process.env.NODE_ENV !== 'production') {
|
|
3721
|
-
const validateError = validate$
|
|
3721
|
+
const validateError = validate$o(input);
|
|
3722
3722
|
if (validateError !== null) {
|
|
3723
3723
|
throw validateError;
|
|
3724
3724
|
}
|
|
3725
3725
|
}
|
|
3726
3726
|
const key = keyBuilderFromType$a(luvio, input);
|
|
3727
|
-
const ttlToUse = TTL$
|
|
3728
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3727
|
+
const ttlToUse = TTL$b;
|
|
3728
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$j, "UnifiedAnalytics", VERSION$j, RepresentationType$k, equals$j);
|
|
3729
3729
|
return createLink(key);
|
|
3730
3730
|
};
|
|
3731
|
-
function getTypeCacheKeys$
|
|
3731
|
+
function getTypeCacheKeys$j(rootKeySet, luvio, input, fullPathFactory) {
|
|
3732
3732
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3733
3733
|
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
3734
3734
|
rootKeySet.set(rootKey, {
|
|
3735
3735
|
namespace: keyPrefix,
|
|
3736
|
-
representationName: RepresentationType$
|
|
3736
|
+
representationName: RepresentationType$k,
|
|
3737
3737
|
mergeable: false
|
|
3738
3738
|
});
|
|
3739
3739
|
}
|
|
3740
3740
|
|
|
3741
|
-
function select$
|
|
3742
|
-
return select$
|
|
3741
|
+
function select$H(luvio, params) {
|
|
3742
|
+
return select$I();
|
|
3743
3743
|
}
|
|
3744
|
-
function getResponseCacheKeys$
|
|
3745
|
-
getTypeCacheKeys$
|
|
3744
|
+
function getResponseCacheKeys$s(storeKeyMap, luvio, resourceParams, response) {
|
|
3745
|
+
getTypeCacheKeys$j(storeKeyMap, luvio, response);
|
|
3746
3746
|
}
|
|
3747
|
-
function ingestSuccess$
|
|
3747
|
+
function ingestSuccess$o(luvio, resourceParams, response) {
|
|
3748
3748
|
const { body } = response;
|
|
3749
3749
|
const key = keyBuilderFromType$a(luvio, body);
|
|
3750
|
-
luvio.storeIngest(key, ingest$
|
|
3750
|
+
luvio.storeIngest(key, ingest$j, body);
|
|
3751
3751
|
const snapshot = luvio.storeLookup({
|
|
3752
3752
|
recordId: key,
|
|
3753
|
-
node: select$
|
|
3753
|
+
node: select$H(),
|
|
3754
3754
|
variables: {},
|
|
3755
3755
|
});
|
|
3756
3756
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3761,7 +3761,7 @@ function ingestSuccess$n(luvio, resourceParams, response) {
|
|
|
3761
3761
|
deepFreeze(snapshot.data);
|
|
3762
3762
|
return snapshot;
|
|
3763
3763
|
}
|
|
3764
|
-
function createResourceRequest$
|
|
3764
|
+
function createResourceRequest$s(config) {
|
|
3765
3765
|
const headers = {};
|
|
3766
3766
|
return {
|
|
3767
3767
|
baseUri: '/services/data/v62.0',
|
|
@@ -3775,44 +3775,44 @@ function createResourceRequest$r(config) {
|
|
|
3775
3775
|
};
|
|
3776
3776
|
}
|
|
3777
3777
|
|
|
3778
|
-
const adapterName$
|
|
3778
|
+
const adapterName$s = 'follow';
|
|
3779
3779
|
const follow_ConfigPropertyMetadata = [
|
|
3780
3780
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3781
3781
|
generateParamConfigMetadata('assetId', true, 2 /* Body */, 0 /* String */),
|
|
3782
3782
|
generateParamConfigMetadata('assetType', true, 2 /* Body */, 0 /* String */),
|
|
3783
3783
|
generateParamConfigMetadata('followerType', true, 2 /* Body */, 0 /* String */),
|
|
3784
3784
|
];
|
|
3785
|
-
const follow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3786
|
-
const createResourceParams$
|
|
3787
|
-
function typeCheckConfig$
|
|
3785
|
+
const follow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$s, follow_ConfigPropertyMetadata);
|
|
3786
|
+
const createResourceParams$s = /*#__PURE__*/ createResourceParams$D(follow_ConfigPropertyMetadata);
|
|
3787
|
+
function typeCheckConfig$s(untrustedConfig) {
|
|
3788
3788
|
const config = {};
|
|
3789
|
-
typeCheckConfig$
|
|
3789
|
+
typeCheckConfig$D(untrustedConfig, config, follow_ConfigPropertyMetadata);
|
|
3790
3790
|
return config;
|
|
3791
3791
|
}
|
|
3792
|
-
function validateAdapterConfig$
|
|
3792
|
+
function validateAdapterConfig$s(untrustedConfig, configPropertyNames) {
|
|
3793
3793
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3794
3794
|
return null;
|
|
3795
3795
|
}
|
|
3796
3796
|
if (process.env.NODE_ENV !== 'production') {
|
|
3797
3797
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3798
3798
|
}
|
|
3799
|
-
const config = typeCheckConfig$
|
|
3799
|
+
const config = typeCheckConfig$s(untrustedConfig);
|
|
3800
3800
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3801
3801
|
return null;
|
|
3802
3802
|
}
|
|
3803
3803
|
return config;
|
|
3804
3804
|
}
|
|
3805
|
-
function buildNetworkSnapshot$
|
|
3806
|
-
const resourceParams = createResourceParams$
|
|
3807
|
-
const request = createResourceRequest$
|
|
3805
|
+
function buildNetworkSnapshot$s(luvio, config, options) {
|
|
3806
|
+
const resourceParams = createResourceParams$s(config);
|
|
3807
|
+
const request = createResourceRequest$s(resourceParams);
|
|
3808
3808
|
return luvio.dispatchResourceRequest(request, options)
|
|
3809
3809
|
.then((response) => {
|
|
3810
3810
|
return luvio.handleSuccessResponse(() => {
|
|
3811
|
-
const snapshot = ingestSuccess$
|
|
3811
|
+
const snapshot = ingestSuccess$o(luvio, resourceParams, response);
|
|
3812
3812
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3813
3813
|
}, () => {
|
|
3814
3814
|
const cache = new StoreKeyMap();
|
|
3815
|
-
getResponseCacheKeys$
|
|
3815
|
+
getResponseCacheKeys$s(cache, luvio, resourceParams, response.body);
|
|
3816
3816
|
return cache;
|
|
3817
3817
|
});
|
|
3818
3818
|
}, (response) => {
|
|
@@ -3822,16 +3822,16 @@ function buildNetworkSnapshot$r(luvio, config, options) {
|
|
|
3822
3822
|
}
|
|
3823
3823
|
const followAdapterFactory = (luvio) => {
|
|
3824
3824
|
return function follow(untrustedConfig) {
|
|
3825
|
-
const config = validateAdapterConfig$
|
|
3825
|
+
const config = validateAdapterConfig$s(untrustedConfig, follow_ConfigPropertyNames);
|
|
3826
3826
|
// Invalid or incomplete config
|
|
3827
3827
|
if (config === null) {
|
|
3828
3828
|
throw new Error('Invalid config for "follow"');
|
|
3829
3829
|
}
|
|
3830
|
-
return buildNetworkSnapshot$
|
|
3830
|
+
return buildNetworkSnapshot$s(luvio, config);
|
|
3831
3831
|
};
|
|
3832
3832
|
};
|
|
3833
3833
|
|
|
3834
|
-
function validate$
|
|
3834
|
+
function validate$n(obj, path = 'FollowedAssetRepresentation') {
|
|
3835
3835
|
const v_error = (() => {
|
|
3836
3836
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3837
3837
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3890,29 +3890,29 @@ function validate$l(obj, path = 'FollowedAssetRepresentation') {
|
|
|
3890
3890
|
})();
|
|
3891
3891
|
return v_error === undefined ? null : v_error;
|
|
3892
3892
|
}
|
|
3893
|
-
const RepresentationType$
|
|
3894
|
-
function keyBuilder$
|
|
3895
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3893
|
+
const RepresentationType$j = 'FollowedAssetRepresentation';
|
|
3894
|
+
function keyBuilder$E(luvio, config) {
|
|
3895
|
+
return keyPrefix + '::' + RepresentationType$j + ':' + config.followedAssetId;
|
|
3896
3896
|
}
|
|
3897
3897
|
|
|
3898
|
-
function keyBuilder$
|
|
3899
|
-
return keyBuilder$
|
|
3898
|
+
function keyBuilder$D(luvio, params) {
|
|
3899
|
+
return keyBuilder$E(luvio, {
|
|
3900
3900
|
followedAssetId: params.urlParams.followedAssetId
|
|
3901
3901
|
});
|
|
3902
3902
|
}
|
|
3903
|
-
function getResponseCacheKeys$
|
|
3904
|
-
const key = keyBuilder$
|
|
3903
|
+
function getResponseCacheKeys$r(cacheKeyMap, luvio, resourceParams) {
|
|
3904
|
+
const key = keyBuilder$D(luvio, resourceParams);
|
|
3905
3905
|
cacheKeyMap.set(key, {
|
|
3906
3906
|
namespace: keyPrefix,
|
|
3907
|
-
representationName: RepresentationType$
|
|
3907
|
+
representationName: RepresentationType$j,
|
|
3908
3908
|
mergeable: false
|
|
3909
3909
|
});
|
|
3910
3910
|
}
|
|
3911
3911
|
function evictSuccess$3(luvio, resourceParams) {
|
|
3912
|
-
const key = keyBuilder$
|
|
3912
|
+
const key = keyBuilder$D(luvio, resourceParams);
|
|
3913
3913
|
luvio.storeEvict(key);
|
|
3914
3914
|
}
|
|
3915
|
-
function createResourceRequest$
|
|
3915
|
+
function createResourceRequest$r(config) {
|
|
3916
3916
|
const headers = {};
|
|
3917
3917
|
return {
|
|
3918
3918
|
baseUri: '/services/data/v62.0',
|
|
@@ -3926,34 +3926,34 @@ function createResourceRequest$q(config) {
|
|
|
3926
3926
|
};
|
|
3927
3927
|
}
|
|
3928
3928
|
|
|
3929
|
-
const adapterName$
|
|
3929
|
+
const adapterName$r = 'unfollow';
|
|
3930
3930
|
const unfollow_ConfigPropertyMetadata = [
|
|
3931
3931
|
generateParamConfigMetadata('followedAssetId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3932
3932
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3933
3933
|
];
|
|
3934
|
-
const unfollow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3935
|
-
const createResourceParams$
|
|
3936
|
-
function typeCheckConfig$
|
|
3934
|
+
const unfollow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$r, unfollow_ConfigPropertyMetadata);
|
|
3935
|
+
const createResourceParams$r = /*#__PURE__*/ createResourceParams$D(unfollow_ConfigPropertyMetadata);
|
|
3936
|
+
function typeCheckConfig$r(untrustedConfig) {
|
|
3937
3937
|
const config = {};
|
|
3938
|
-
typeCheckConfig$
|
|
3938
|
+
typeCheckConfig$D(untrustedConfig, config, unfollow_ConfigPropertyMetadata);
|
|
3939
3939
|
return config;
|
|
3940
3940
|
}
|
|
3941
|
-
function validateAdapterConfig$
|
|
3941
|
+
function validateAdapterConfig$r(untrustedConfig, configPropertyNames) {
|
|
3942
3942
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3943
3943
|
return null;
|
|
3944
3944
|
}
|
|
3945
3945
|
if (process.env.NODE_ENV !== 'production') {
|
|
3946
3946
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3947
3947
|
}
|
|
3948
|
-
const config = typeCheckConfig$
|
|
3948
|
+
const config = typeCheckConfig$r(untrustedConfig);
|
|
3949
3949
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3950
3950
|
return null;
|
|
3951
3951
|
}
|
|
3952
3952
|
return config;
|
|
3953
3953
|
}
|
|
3954
|
-
function buildNetworkSnapshot$
|
|
3955
|
-
const resourceParams = createResourceParams$
|
|
3956
|
-
const request = createResourceRequest$
|
|
3954
|
+
function buildNetworkSnapshot$r(luvio, config, options) {
|
|
3955
|
+
const resourceParams = createResourceParams$r(config);
|
|
3956
|
+
const request = createResourceRequest$r(resourceParams);
|
|
3957
3957
|
return luvio.dispatchResourceRequest(request, options)
|
|
3958
3958
|
.then(() => {
|
|
3959
3959
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -3961,7 +3961,7 @@ function buildNetworkSnapshot$q(luvio, config, options) {
|
|
|
3961
3961
|
return luvio.storeBroadcast();
|
|
3962
3962
|
}, () => {
|
|
3963
3963
|
const cache = new StoreKeyMap();
|
|
3964
|
-
getResponseCacheKeys$
|
|
3964
|
+
getResponseCacheKeys$r(cache, luvio, resourceParams);
|
|
3965
3965
|
return cache;
|
|
3966
3966
|
});
|
|
3967
3967
|
}, (response) => {
|
|
@@ -3971,18 +3971,18 @@ function buildNetworkSnapshot$q(luvio, config, options) {
|
|
|
3971
3971
|
}
|
|
3972
3972
|
const unfollowAdapterFactory = (luvio) => {
|
|
3973
3973
|
return function UnifiedAnalyticsunfollow(untrustedConfig) {
|
|
3974
|
-
const config = validateAdapterConfig$
|
|
3974
|
+
const config = validateAdapterConfig$r(untrustedConfig, unfollow_ConfigPropertyNames);
|
|
3975
3975
|
// Invalid or incomplete config
|
|
3976
3976
|
if (config === null) {
|
|
3977
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
3977
|
+
throw new Error(`Invalid config for "${adapterName$r}"`);
|
|
3978
3978
|
}
|
|
3979
|
-
return buildNetworkSnapshot$
|
|
3979
|
+
return buildNetworkSnapshot$r(luvio, config);
|
|
3980
3980
|
};
|
|
3981
3981
|
};
|
|
3982
3982
|
|
|
3983
|
-
const TTL$
|
|
3984
|
-
const VERSION$
|
|
3985
|
-
function validate$
|
|
3983
|
+
const TTL$a = 500;
|
|
3984
|
+
const VERSION$i = "1fd0770995d332e49822d6bbabe35e87";
|
|
3985
|
+
function validate$m(obj, path = 'FollowerCollectionRepresentation') {
|
|
3986
3986
|
const v_error = (() => {
|
|
3987
3987
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3988
3988
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3995,7 +3995,7 @@ function validate$k(obj, path = 'FollowerCollectionRepresentation') {
|
|
|
3995
3995
|
for (let i = 0; i < obj_followers.length; i++) {
|
|
3996
3996
|
const obj_followers_item = obj_followers[i];
|
|
3997
3997
|
const path_followers_item = path_followers + '[' + i + ']';
|
|
3998
|
-
const referencepath_followers_itemValidationError = validate$
|
|
3998
|
+
const referencepath_followers_itemValidationError = validate$p(obj_followers_item, path_followers_item);
|
|
3999
3999
|
if (referencepath_followers_itemValidationError !== null) {
|
|
4000
4000
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_followers_item + '")\n';
|
|
4001
4001
|
message += referencepath_followers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4005,52 +4005,259 @@ function validate$k(obj, path = 'FollowerCollectionRepresentation') {
|
|
|
4005
4005
|
})();
|
|
4006
4006
|
return v_error === undefined ? null : v_error;
|
|
4007
4007
|
}
|
|
4008
|
-
const RepresentationType$
|
|
4009
|
-
function normalize$
|
|
4008
|
+
const RepresentationType$i = 'FollowerCollectionRepresentation';
|
|
4009
|
+
function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
4010
4010
|
return input;
|
|
4011
4011
|
}
|
|
4012
|
-
const select$
|
|
4012
|
+
const select$G = function FollowerCollectionRepresentationSelect() {
|
|
4013
4013
|
return {
|
|
4014
4014
|
kind: 'Fragment',
|
|
4015
|
-
version: VERSION$
|
|
4015
|
+
version: VERSION$i,
|
|
4016
4016
|
private: [],
|
|
4017
4017
|
opaque: true
|
|
4018
4018
|
};
|
|
4019
4019
|
};
|
|
4020
|
-
function equals$
|
|
4020
|
+
function equals$i(existing, incoming) {
|
|
4021
4021
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4022
4022
|
return false;
|
|
4023
4023
|
}
|
|
4024
4024
|
return true;
|
|
4025
4025
|
}
|
|
4026
|
-
const ingest$
|
|
4026
|
+
const ingest$i = function FollowerCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4027
4027
|
if (process.env.NODE_ENV !== 'production') {
|
|
4028
|
-
const validateError = validate$
|
|
4028
|
+
const validateError = validate$m(input);
|
|
4029
4029
|
if (validateError !== null) {
|
|
4030
4030
|
throw validateError;
|
|
4031
4031
|
}
|
|
4032
4032
|
}
|
|
4033
4033
|
const key = path.fullPath;
|
|
4034
|
-
const ttlToUse = TTL$
|
|
4035
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4034
|
+
const ttlToUse = TTL$a;
|
|
4035
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "UnifiedAnalytics", VERSION$i, RepresentationType$i, equals$i);
|
|
4036
4036
|
return createLink(key);
|
|
4037
4037
|
};
|
|
4038
|
-
function getTypeCacheKeys$
|
|
4038
|
+
function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
4039
4039
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4040
4040
|
const rootKey = fullPathFactory();
|
|
4041
4041
|
rootKeySet.set(rootKey, {
|
|
4042
4042
|
namespace: keyPrefix,
|
|
4043
|
-
representationName: RepresentationType$
|
|
4043
|
+
representationName: RepresentationType$i,
|
|
4044
4044
|
mergeable: false
|
|
4045
4045
|
});
|
|
4046
4046
|
}
|
|
4047
4047
|
|
|
4048
|
-
function select$
|
|
4049
|
-
return select$
|
|
4048
|
+
function select$F(luvio, params) {
|
|
4049
|
+
return select$G();
|
|
4050
4050
|
}
|
|
4051
|
-
function keyBuilder$
|
|
4051
|
+
function keyBuilder$C(luvio, params) {
|
|
4052
4052
|
return keyPrefix + '::FollowerCollectionRepresentation:(' + 'followerId:' + params.queryParams.followerId + ',' + 'followerType:' + params.queryParams.followerType + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'followedAssetId:' + params.urlParams.followedAssetId + ')';
|
|
4053
4053
|
}
|
|
4054
|
+
function getResponseCacheKeys$q(storeKeyMap, luvio, resourceParams, response) {
|
|
4055
|
+
getTypeCacheKeys$i(storeKeyMap, luvio, response, () => keyBuilder$C(luvio, resourceParams));
|
|
4056
|
+
}
|
|
4057
|
+
function ingestSuccess$n(luvio, resourceParams, response, snapshotRefresh) {
|
|
4058
|
+
const { body } = response;
|
|
4059
|
+
const key = keyBuilder$C(luvio, resourceParams);
|
|
4060
|
+
luvio.storeIngest(key, ingest$i, body);
|
|
4061
|
+
const snapshot = luvio.storeLookup({
|
|
4062
|
+
recordId: key,
|
|
4063
|
+
node: select$F(),
|
|
4064
|
+
variables: {},
|
|
4065
|
+
}, snapshotRefresh);
|
|
4066
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4067
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4068
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4069
|
+
}
|
|
4070
|
+
}
|
|
4071
|
+
deepFreeze(snapshot.data);
|
|
4072
|
+
return snapshot;
|
|
4073
|
+
}
|
|
4074
|
+
function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
4075
|
+
const key = keyBuilder$C(luvio, params);
|
|
4076
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4077
|
+
const storeMetadataParams = {
|
|
4078
|
+
ttl: TTL$a,
|
|
4079
|
+
namespace: keyPrefix,
|
|
4080
|
+
version: VERSION$i,
|
|
4081
|
+
representationName: RepresentationType$i
|
|
4082
|
+
};
|
|
4083
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4084
|
+
return errorSnapshot;
|
|
4085
|
+
}
|
|
4086
|
+
function createResourceRequest$q(config) {
|
|
4087
|
+
const headers = {};
|
|
4088
|
+
return {
|
|
4089
|
+
baseUri: '/services/data/v62.0',
|
|
4090
|
+
basePath: '/unified-analytics/follow/assets/' + config.urlParams.followedAssetId + '/followers',
|
|
4091
|
+
method: 'get',
|
|
4092
|
+
body: null,
|
|
4093
|
+
urlParams: config.urlParams,
|
|
4094
|
+
queryParams: config.queryParams,
|
|
4095
|
+
headers,
|
|
4096
|
+
priority: 'normal',
|
|
4097
|
+
};
|
|
4098
|
+
}
|
|
4099
|
+
|
|
4100
|
+
const adapterName$q = 'getFollowers';
|
|
4101
|
+
const getFollowers_ConfigPropertyMetadata = [
|
|
4102
|
+
generateParamConfigMetadata('followedAssetId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4103
|
+
generateParamConfigMetadata('followerId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4104
|
+
generateParamConfigMetadata('followerType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4105
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4106
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4107
|
+
];
|
|
4108
|
+
const getFollowers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$q, getFollowers_ConfigPropertyMetadata);
|
|
4109
|
+
const createResourceParams$q = /*#__PURE__*/ createResourceParams$D(getFollowers_ConfigPropertyMetadata);
|
|
4110
|
+
function keyBuilder$B(luvio, config) {
|
|
4111
|
+
const resourceParams = createResourceParams$q(config);
|
|
4112
|
+
return keyBuilder$C(luvio, resourceParams);
|
|
4113
|
+
}
|
|
4114
|
+
function typeCheckConfig$q(untrustedConfig) {
|
|
4115
|
+
const config = {};
|
|
4116
|
+
typeCheckConfig$D(untrustedConfig, config, getFollowers_ConfigPropertyMetadata);
|
|
4117
|
+
return config;
|
|
4118
|
+
}
|
|
4119
|
+
function validateAdapterConfig$q(untrustedConfig, configPropertyNames) {
|
|
4120
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4121
|
+
return null;
|
|
4122
|
+
}
|
|
4123
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4124
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4125
|
+
}
|
|
4126
|
+
const config = typeCheckConfig$q(untrustedConfig);
|
|
4127
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4128
|
+
return null;
|
|
4129
|
+
}
|
|
4130
|
+
return config;
|
|
4131
|
+
}
|
|
4132
|
+
function adapterFragment$c(luvio, config) {
|
|
4133
|
+
createResourceParams$q(config);
|
|
4134
|
+
return select$F();
|
|
4135
|
+
}
|
|
4136
|
+
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
4137
|
+
const snapshot = ingestSuccess$n(luvio, resourceParams, response, {
|
|
4138
|
+
config,
|
|
4139
|
+
resolve: () => buildNetworkSnapshot$q(luvio, config, snapshotRefreshOptions)
|
|
4140
|
+
});
|
|
4141
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4142
|
+
}
|
|
4143
|
+
function onFetchResponseError$c(luvio, config, resourceParams, response) {
|
|
4144
|
+
const snapshot = ingestError$c(luvio, resourceParams, response, {
|
|
4145
|
+
config,
|
|
4146
|
+
resolve: () => buildNetworkSnapshot$q(luvio, config, snapshotRefreshOptions)
|
|
4147
|
+
});
|
|
4148
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4149
|
+
}
|
|
4150
|
+
function buildNetworkSnapshot$q(luvio, config, options) {
|
|
4151
|
+
const resourceParams = createResourceParams$q(config);
|
|
4152
|
+
const request = createResourceRequest$q(resourceParams);
|
|
4153
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4154
|
+
.then((response) => {
|
|
4155
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => {
|
|
4156
|
+
const cache = new StoreKeyMap();
|
|
4157
|
+
getResponseCacheKeys$q(cache, luvio, resourceParams, response.body);
|
|
4158
|
+
return cache;
|
|
4159
|
+
});
|
|
4160
|
+
}, (response) => {
|
|
4161
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$c(luvio, config, resourceParams, response));
|
|
4162
|
+
});
|
|
4163
|
+
}
|
|
4164
|
+
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
4165
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$q, undefined, false);
|
|
4166
|
+
}
|
|
4167
|
+
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
4168
|
+
const { luvio, config } = context;
|
|
4169
|
+
const selector = {
|
|
4170
|
+
recordId: keyBuilder$B(luvio, config),
|
|
4171
|
+
node: adapterFragment$c(luvio, config),
|
|
4172
|
+
variables: {},
|
|
4173
|
+
};
|
|
4174
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4175
|
+
config,
|
|
4176
|
+
resolve: () => buildNetworkSnapshot$q(luvio, config, snapshotRefreshOptions)
|
|
4177
|
+
});
|
|
4178
|
+
return cacheSnapshot;
|
|
4179
|
+
}
|
|
4180
|
+
const getFollowersAdapterFactory = (luvio) => function UnifiedAnalytics__getFollowers(untrustedConfig, requestContext) {
|
|
4181
|
+
const config = validateAdapterConfig$q(untrustedConfig, getFollowers_ConfigPropertyNames);
|
|
4182
|
+
// Invalid or incomplete config
|
|
4183
|
+
if (config === null) {
|
|
4184
|
+
return null;
|
|
4185
|
+
}
|
|
4186
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4187
|
+
buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
|
|
4188
|
+
};
|
|
4189
|
+
|
|
4190
|
+
const TTL$9 = 500;
|
|
4191
|
+
const VERSION$h = "1f44696f5314fa2f963688e14067a00c";
|
|
4192
|
+
function validate$l(obj, path = 'FollowedAssetCollectionRepresentation') {
|
|
4193
|
+
const v_error = (() => {
|
|
4194
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4195
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4196
|
+
}
|
|
4197
|
+
const obj_followedAssets = obj.followedAssets;
|
|
4198
|
+
const path_followedAssets = path + '.followedAssets';
|
|
4199
|
+
if (!ArrayIsArray(obj_followedAssets)) {
|
|
4200
|
+
return new TypeError('Expected "array" but received "' + typeof obj_followedAssets + '" (at "' + path_followedAssets + '")');
|
|
4201
|
+
}
|
|
4202
|
+
for (let i = 0; i < obj_followedAssets.length; i++) {
|
|
4203
|
+
const obj_followedAssets_item = obj_followedAssets[i];
|
|
4204
|
+
const path_followedAssets_item = path_followedAssets + '[' + i + ']';
|
|
4205
|
+
const referencepath_followedAssets_itemValidationError = validate$n(obj_followedAssets_item, path_followedAssets_item);
|
|
4206
|
+
if (referencepath_followedAssets_itemValidationError !== null) {
|
|
4207
|
+
let message = 'Object doesn\'t match FollowedAssetRepresentation (at "' + path_followedAssets_item + '")\n';
|
|
4208
|
+
message += referencepath_followedAssets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4209
|
+
return new TypeError(message);
|
|
4210
|
+
}
|
|
4211
|
+
}
|
|
4212
|
+
})();
|
|
4213
|
+
return v_error === undefined ? null : v_error;
|
|
4214
|
+
}
|
|
4215
|
+
const RepresentationType$h = 'FollowedAssetCollectionRepresentation';
|
|
4216
|
+
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
4217
|
+
return input;
|
|
4218
|
+
}
|
|
4219
|
+
const select$E = function FollowedAssetCollectionRepresentationSelect() {
|
|
4220
|
+
return {
|
|
4221
|
+
kind: 'Fragment',
|
|
4222
|
+
version: VERSION$h,
|
|
4223
|
+
private: [],
|
|
4224
|
+
opaque: true
|
|
4225
|
+
};
|
|
4226
|
+
};
|
|
4227
|
+
function equals$h(existing, incoming) {
|
|
4228
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4229
|
+
return false;
|
|
4230
|
+
}
|
|
4231
|
+
return true;
|
|
4232
|
+
}
|
|
4233
|
+
const ingest$h = function FollowedAssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4234
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4235
|
+
const validateError = validate$l(input);
|
|
4236
|
+
if (validateError !== null) {
|
|
4237
|
+
throw validateError;
|
|
4238
|
+
}
|
|
4239
|
+
}
|
|
4240
|
+
const key = path.fullPath;
|
|
4241
|
+
const ttlToUse = TTL$9;
|
|
4242
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "UnifiedAnalytics", VERSION$h, RepresentationType$h, equals$h);
|
|
4243
|
+
return createLink(key);
|
|
4244
|
+
};
|
|
4245
|
+
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
4246
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4247
|
+
const rootKey = fullPathFactory();
|
|
4248
|
+
rootKeySet.set(rootKey, {
|
|
4249
|
+
namespace: keyPrefix,
|
|
4250
|
+
representationName: RepresentationType$h,
|
|
4251
|
+
mergeable: false
|
|
4252
|
+
});
|
|
4253
|
+
}
|
|
4254
|
+
|
|
4255
|
+
function select$D(luvio, params) {
|
|
4256
|
+
return select$E();
|
|
4257
|
+
}
|
|
4258
|
+
function keyBuilder$A(luvio, params) {
|
|
4259
|
+
return keyPrefix + '::FollowedAssetCollectionRepresentation:(' + 'followedAssetType:' + params.queryParams.followedAssetType + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'followerId:' + params.urlParams.followerId + ')';
|
|
4260
|
+
}
|
|
4054
4261
|
function getResponseCacheKeys$p(storeKeyMap, luvio, resourceParams, response) {
|
|
4055
4262
|
getTypeCacheKeys$h(storeKeyMap, luvio, response, () => keyBuilder$A(luvio, resourceParams));
|
|
4056
4263
|
}
|
|
@@ -4087,7 +4294,7 @@ function createResourceRequest$p(config) {
|
|
|
4087
4294
|
const headers = {};
|
|
4088
4295
|
return {
|
|
4089
4296
|
baseUri: '/services/data/v62.0',
|
|
4090
|
-
basePath: '/unified-analytics/follow/
|
|
4297
|
+
basePath: '/unified-analytics/follow/followers/' + config.urlParams.followerId + '/followed-assets',
|
|
4091
4298
|
method: 'get',
|
|
4092
4299
|
body: null,
|
|
4093
4300
|
urlParams: config.urlParams,
|
|
@@ -4097,23 +4304,22 @@ function createResourceRequest$p(config) {
|
|
|
4097
4304
|
};
|
|
4098
4305
|
}
|
|
4099
4306
|
|
|
4100
|
-
const adapterName$p = '
|
|
4101
|
-
const
|
|
4102
|
-
generateParamConfigMetadata('
|
|
4103
|
-
generateParamConfigMetadata('
|
|
4104
|
-
generateParamConfigMetadata('followerType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4307
|
+
const adapterName$p = 'getFollowedAssets';
|
|
4308
|
+
const getFollowedAssets_ConfigPropertyMetadata = [
|
|
4309
|
+
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4310
|
+
generateParamConfigMetadata('followedAssetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4105
4311
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4106
4312
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4107
4313
|
];
|
|
4108
|
-
const
|
|
4109
|
-
const createResourceParams$p = /*#__PURE__*/ createResourceParams$
|
|
4314
|
+
const getFollowedAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$p, getFollowedAssets_ConfigPropertyMetadata);
|
|
4315
|
+
const createResourceParams$p = /*#__PURE__*/ createResourceParams$D(getFollowedAssets_ConfigPropertyMetadata);
|
|
4110
4316
|
function keyBuilder$z(luvio, config) {
|
|
4111
4317
|
const resourceParams = createResourceParams$p(config);
|
|
4112
4318
|
return keyBuilder$A(luvio, resourceParams);
|
|
4113
4319
|
}
|
|
4114
4320
|
function typeCheckConfig$p(untrustedConfig) {
|
|
4115
4321
|
const config = {};
|
|
4116
|
-
typeCheckConfig$
|
|
4322
|
+
typeCheckConfig$D(untrustedConfig, config, getFollowedAssets_ConfigPropertyMetadata);
|
|
4117
4323
|
return config;
|
|
4118
4324
|
}
|
|
4119
4325
|
function validateAdapterConfig$p(untrustedConfig, configPropertyNames) {
|
|
@@ -4162,7 +4368,7 @@ function buildNetworkSnapshot$p(luvio, config, options) {
|
|
|
4162
4368
|
});
|
|
4163
4369
|
}
|
|
4164
4370
|
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
4165
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4371
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$p, undefined, false);
|
|
4166
4372
|
}
|
|
4167
4373
|
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
4168
4374
|
const { luvio, config } = context;
|
|
@@ -4177,8 +4383,8 @@ function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
|
4177
4383
|
});
|
|
4178
4384
|
return cacheSnapshot;
|
|
4179
4385
|
}
|
|
4180
|
-
const
|
|
4181
|
-
const config = validateAdapterConfig$p(untrustedConfig,
|
|
4386
|
+
const getFollowedAssetsAdapterFactory = (luvio) => function UnifiedAnalytics__getFollowedAssets(untrustedConfig, requestContext) {
|
|
4387
|
+
const config = validateAdapterConfig$p(untrustedConfig, getFollowedAssets_ConfigPropertyNames);
|
|
4182
4388
|
// Invalid or incomplete config
|
|
4183
4389
|
if (config === null) {
|
|
4184
4390
|
return null;
|
|
@@ -4188,35 +4394,25 @@ const getFollowersAdapterFactory = (luvio) => function UnifiedAnalytics__getFoll
|
|
|
4188
4394
|
};
|
|
4189
4395
|
|
|
4190
4396
|
const TTL$8 = 500;
|
|
4191
|
-
const VERSION$g = "
|
|
4192
|
-
function validate$
|
|
4397
|
+
const VERSION$g = "a4167cdb0a6477d9d7ddbe70da03f1b4";
|
|
4398
|
+
function validate$k(obj, path = 'UniqueFollowerCountRepresentation') {
|
|
4193
4399
|
const v_error = (() => {
|
|
4194
4400
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4195
4401
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4196
4402
|
}
|
|
4197
|
-
const
|
|
4198
|
-
const
|
|
4199
|
-
if (
|
|
4200
|
-
return new TypeError('Expected "
|
|
4201
|
-
}
|
|
4202
|
-
for (let i = 0; i < obj_followedAssets.length; i++) {
|
|
4203
|
-
const obj_followedAssets_item = obj_followedAssets[i];
|
|
4204
|
-
const path_followedAssets_item = path_followedAssets + '[' + i + ']';
|
|
4205
|
-
const referencepath_followedAssets_itemValidationError = validate$l(obj_followedAssets_item, path_followedAssets_item);
|
|
4206
|
-
if (referencepath_followedAssets_itemValidationError !== null) {
|
|
4207
|
-
let message = 'Object doesn\'t match FollowedAssetRepresentation (at "' + path_followedAssets_item + '")\n';
|
|
4208
|
-
message += referencepath_followedAssets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4209
|
-
return new TypeError(message);
|
|
4210
|
-
}
|
|
4403
|
+
const obj_uniqueFollowerCount = obj.uniqueFollowerCount;
|
|
4404
|
+
const path_uniqueFollowerCount = path + '.uniqueFollowerCount';
|
|
4405
|
+
if (typeof obj_uniqueFollowerCount !== 'number' || (typeof obj_uniqueFollowerCount === 'number' && Math.floor(obj_uniqueFollowerCount) !== obj_uniqueFollowerCount)) {
|
|
4406
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_uniqueFollowerCount + '" (at "' + path_uniqueFollowerCount + '")');
|
|
4211
4407
|
}
|
|
4212
4408
|
})();
|
|
4213
4409
|
return v_error === undefined ? null : v_error;
|
|
4214
4410
|
}
|
|
4215
|
-
const RepresentationType$g = '
|
|
4411
|
+
const RepresentationType$g = 'UniqueFollowerCountRepresentation';
|
|
4216
4412
|
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
4217
4413
|
return input;
|
|
4218
4414
|
}
|
|
4219
|
-
const select$C = function
|
|
4415
|
+
const select$C = function UniqueFollowerCountRepresentationSelect() {
|
|
4220
4416
|
return {
|
|
4221
4417
|
kind: 'Fragment',
|
|
4222
4418
|
version: VERSION$g,
|
|
@@ -4230,9 +4426,9 @@ function equals$g(existing, incoming) {
|
|
|
4230
4426
|
}
|
|
4231
4427
|
return true;
|
|
4232
4428
|
}
|
|
4233
|
-
const ingest$g = function
|
|
4429
|
+
const ingest$g = function UniqueFollowerCountRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4234
4430
|
if (process.env.NODE_ENV !== 'production') {
|
|
4235
|
-
const validateError = validate$
|
|
4431
|
+
const validateError = validate$k(input);
|
|
4236
4432
|
if (validateError !== null) {
|
|
4237
4433
|
throw validateError;
|
|
4238
4434
|
}
|
|
@@ -4256,7 +4452,7 @@ function select$B(luvio, params) {
|
|
|
4256
4452
|
return select$C();
|
|
4257
4453
|
}
|
|
4258
4454
|
function keyBuilder$y(luvio, params) {
|
|
4259
|
-
return keyPrefix + '::
|
|
4455
|
+
return keyPrefix + '::UniqueFollowerCountRepresentation:(' + 'followedAssetType:' + params.queryParams.followedAssetType + ',' + 'followedAssetId:' + params.urlParams.followedAssetId + ')';
|
|
4260
4456
|
}
|
|
4261
4457
|
function getResponseCacheKeys$o(storeKeyMap, luvio, resourceParams, response) {
|
|
4262
4458
|
getTypeCacheKeys$g(storeKeyMap, luvio, response, () => keyBuilder$y(luvio, resourceParams));
|
|
@@ -4294,7 +4490,7 @@ function createResourceRequest$o(config) {
|
|
|
4294
4490
|
const headers = {};
|
|
4295
4491
|
return {
|
|
4296
4492
|
baseUri: '/services/data/v62.0',
|
|
4297
|
-
basePath: '/unified-analytics/follow/
|
|
4493
|
+
basePath: '/unified-analytics/follow/assets/' + config.urlParams.followedAssetId + '/follower-count',
|
|
4298
4494
|
method: 'get',
|
|
4299
4495
|
body: null,
|
|
4300
4496
|
urlParams: config.urlParams,
|
|
@@ -4304,22 +4500,20 @@ function createResourceRequest$o(config) {
|
|
|
4304
4500
|
};
|
|
4305
4501
|
}
|
|
4306
4502
|
|
|
4307
|
-
const adapterName$o = '
|
|
4308
|
-
const
|
|
4309
|
-
generateParamConfigMetadata('
|
|
4503
|
+
const adapterName$o = 'getUniqueFollowerCount';
|
|
4504
|
+
const getUniqueFollowerCount_ConfigPropertyMetadata = [
|
|
4505
|
+
generateParamConfigMetadata('followedAssetId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4310
4506
|
generateParamConfigMetadata('followedAssetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4311
|
-
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4312
|
-
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4313
4507
|
];
|
|
4314
|
-
const
|
|
4315
|
-
const createResourceParams$o = /*#__PURE__*/ createResourceParams$
|
|
4508
|
+
const getUniqueFollowerCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
4509
|
+
const createResourceParams$o = /*#__PURE__*/ createResourceParams$D(getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
4316
4510
|
function keyBuilder$x(luvio, config) {
|
|
4317
4511
|
const resourceParams = createResourceParams$o(config);
|
|
4318
4512
|
return keyBuilder$y(luvio, resourceParams);
|
|
4319
4513
|
}
|
|
4320
4514
|
function typeCheckConfig$o(untrustedConfig) {
|
|
4321
4515
|
const config = {};
|
|
4322
|
-
typeCheckConfig$
|
|
4516
|
+
typeCheckConfig$D(untrustedConfig, config, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
4323
4517
|
return config;
|
|
4324
4518
|
}
|
|
4325
4519
|
function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
|
|
@@ -4368,7 +4562,7 @@ function buildNetworkSnapshot$o(luvio, config, options) {
|
|
|
4368
4562
|
});
|
|
4369
4563
|
}
|
|
4370
4564
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
4371
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4565
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$o, undefined, false);
|
|
4372
4566
|
}
|
|
4373
4567
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
4374
4568
|
const { luvio, config } = context;
|
|
@@ -4383,8 +4577,8 @@ function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
|
4383
4577
|
});
|
|
4384
4578
|
return cacheSnapshot;
|
|
4385
4579
|
}
|
|
4386
|
-
const
|
|
4387
|
-
const config = validateAdapterConfig$o(untrustedConfig,
|
|
4580
|
+
const getUniqueFollowerCountAdapterFactory = (luvio) => function UnifiedAnalytics__getUniqueFollowerCount(untrustedConfig, requestContext) {
|
|
4581
|
+
const config = validateAdapterConfig$o(untrustedConfig, getUniqueFollowerCount_ConfigPropertyNames);
|
|
4388
4582
|
// Invalid or incomplete config
|
|
4389
4583
|
if (config === null) {
|
|
4390
4584
|
return null;
|
|
@@ -4393,26 +4587,45 @@ const getFollowedAssetsAdapterFactory = (luvio) => function UnifiedAnalytics__ge
|
|
|
4393
4587
|
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
4394
4588
|
};
|
|
4395
4589
|
|
|
4396
|
-
const TTL$7 =
|
|
4397
|
-
const VERSION$f = "
|
|
4398
|
-
function validate$
|
|
4590
|
+
const TTL$7 = 1000;
|
|
4591
|
+
const VERSION$f = "f2e0254a8e6b03f2289f318634389df3";
|
|
4592
|
+
function validate$j(obj, path = 'UnifiedAnalyticsLogLinesRepresentation') {
|
|
4399
4593
|
const v_error = (() => {
|
|
4400
4594
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4401
4595
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4402
4596
|
}
|
|
4403
|
-
const
|
|
4404
|
-
const
|
|
4405
|
-
if (typeof
|
|
4406
|
-
return new TypeError('Expected "integer" but received "' + typeof
|
|
4597
|
+
const obj_failureCount = obj.failureCount;
|
|
4598
|
+
const path_failureCount = path + '.failureCount';
|
|
4599
|
+
if (typeof obj_failureCount !== 'number' || (typeof obj_failureCount === 'number' && Math.floor(obj_failureCount) !== obj_failureCount)) {
|
|
4600
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_failureCount + '" (at "' + path_failureCount + '")');
|
|
4601
|
+
}
|
|
4602
|
+
const obj_id = obj.id;
|
|
4603
|
+
const path_id = path + '.id';
|
|
4604
|
+
if (typeof obj_id !== 'string') {
|
|
4605
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
4606
|
+
}
|
|
4607
|
+
const obj_successCount = obj.successCount;
|
|
4608
|
+
const path_successCount = path + '.successCount';
|
|
4609
|
+
if (typeof obj_successCount !== 'number' || (typeof obj_successCount === 'number' && Math.floor(obj_successCount) !== obj_successCount)) {
|
|
4610
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_successCount + '" (at "' + path_successCount + '")');
|
|
4407
4611
|
}
|
|
4408
4612
|
})();
|
|
4409
4613
|
return v_error === undefined ? null : v_error;
|
|
4410
4614
|
}
|
|
4411
|
-
const RepresentationType$f = '
|
|
4615
|
+
const RepresentationType$f = 'UnifiedAnalyticsLogLinesRepresentation';
|
|
4616
|
+
function keyBuilder$w(luvio, config) {
|
|
4617
|
+
return keyPrefix + '::' + RepresentationType$f + ':' + config.id;
|
|
4618
|
+
}
|
|
4619
|
+
function keyBuilderFromType$9(luvio, object) {
|
|
4620
|
+
const keyParams = {
|
|
4621
|
+
id: object.id
|
|
4622
|
+
};
|
|
4623
|
+
return keyBuilder$w(luvio, keyParams);
|
|
4624
|
+
}
|
|
4412
4625
|
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
4413
4626
|
return input;
|
|
4414
4627
|
}
|
|
4415
|
-
const select$A = function
|
|
4628
|
+
const select$A = function UnifiedAnalyticsLogLinesRepresentationSelect() {
|
|
4416
4629
|
return {
|
|
4417
4630
|
kind: 'Fragment',
|
|
4418
4631
|
version: VERSION$f,
|
|
@@ -4426,21 +4639,21 @@ function equals$f(existing, incoming) {
|
|
|
4426
4639
|
}
|
|
4427
4640
|
return true;
|
|
4428
4641
|
}
|
|
4429
|
-
const ingest$f = function
|
|
4642
|
+
const ingest$f = function UnifiedAnalyticsLogLinesRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4430
4643
|
if (process.env.NODE_ENV !== 'production') {
|
|
4431
|
-
const validateError = validate$
|
|
4644
|
+
const validateError = validate$j(input);
|
|
4432
4645
|
if (validateError !== null) {
|
|
4433
4646
|
throw validateError;
|
|
4434
4647
|
}
|
|
4435
4648
|
}
|
|
4436
|
-
const key =
|
|
4649
|
+
const key = keyBuilderFromType$9(luvio, input);
|
|
4437
4650
|
const ttlToUse = TTL$7;
|
|
4438
4651
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "UnifiedAnalytics", VERSION$f, RepresentationType$f, equals$f);
|
|
4439
4652
|
return createLink(key);
|
|
4440
4653
|
};
|
|
4441
4654
|
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
4442
4655
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4443
|
-
const rootKey =
|
|
4656
|
+
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
4444
4657
|
rootKeySet.set(rootKey, {
|
|
4445
4658
|
namespace: keyPrefix,
|
|
4446
4659
|
representationName: RepresentationType$f,
|
|
@@ -4451,21 +4664,18 @@ function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4451
4664
|
function select$z(luvio, params) {
|
|
4452
4665
|
return select$A();
|
|
4453
4666
|
}
|
|
4454
|
-
function keyBuilder$w(luvio, params) {
|
|
4455
|
-
return keyPrefix + '::UniqueFollowerCountRepresentation:(' + 'followedAssetType:' + params.queryParams.followedAssetType + ',' + 'followedAssetId:' + params.urlParams.followedAssetId + ')';
|
|
4456
|
-
}
|
|
4457
4667
|
function getResponseCacheKeys$n(storeKeyMap, luvio, resourceParams, response) {
|
|
4458
|
-
getTypeCacheKeys$f(storeKeyMap, luvio, response
|
|
4668
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
4459
4669
|
}
|
|
4460
|
-
function ingestSuccess$k(luvio, resourceParams, response
|
|
4670
|
+
function ingestSuccess$k(luvio, resourceParams, response) {
|
|
4461
4671
|
const { body } = response;
|
|
4462
|
-
const key =
|
|
4672
|
+
const key = keyBuilderFromType$9(luvio, body);
|
|
4463
4673
|
luvio.storeIngest(key, ingest$f, body);
|
|
4464
4674
|
const snapshot = luvio.storeLookup({
|
|
4465
4675
|
recordId: key,
|
|
4466
4676
|
node: select$z(),
|
|
4467
4677
|
variables: {},
|
|
4468
|
-
}
|
|
4678
|
+
});
|
|
4469
4679
|
if (process.env.NODE_ENV !== 'production') {
|
|
4470
4680
|
if (snapshot.state !== 'Fulfilled') {
|
|
4471
4681
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
@@ -4474,46 +4684,37 @@ function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4474
4684
|
deepFreeze(snapshot.data);
|
|
4475
4685
|
return snapshot;
|
|
4476
4686
|
}
|
|
4477
|
-
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
4478
|
-
const key = keyBuilder$w(luvio, params);
|
|
4479
|
-
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4480
|
-
const storeMetadataParams = {
|
|
4481
|
-
ttl: TTL$7,
|
|
4482
|
-
namespace: keyPrefix,
|
|
4483
|
-
version: VERSION$f,
|
|
4484
|
-
representationName: RepresentationType$f
|
|
4485
|
-
};
|
|
4486
|
-
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4487
|
-
return errorSnapshot;
|
|
4488
|
-
}
|
|
4489
4687
|
function createResourceRequest$n(config) {
|
|
4490
4688
|
const headers = {};
|
|
4491
4689
|
return {
|
|
4492
4690
|
baseUri: '/services/data/v62.0',
|
|
4493
|
-
basePath: '/unified-analytics/
|
|
4494
|
-
method: '
|
|
4495
|
-
body:
|
|
4496
|
-
urlParams:
|
|
4497
|
-
queryParams:
|
|
4691
|
+
basePath: '/unified-analytics/loglines',
|
|
4692
|
+
method: 'post',
|
|
4693
|
+
body: config.body,
|
|
4694
|
+
urlParams: {},
|
|
4695
|
+
queryParams: {},
|
|
4498
4696
|
headers,
|
|
4499
4697
|
priority: 'normal',
|
|
4500
4698
|
};
|
|
4501
4699
|
}
|
|
4502
4700
|
|
|
4503
|
-
const adapterName$n = '
|
|
4504
|
-
const
|
|
4505
|
-
generateParamConfigMetadata('
|
|
4506
|
-
generateParamConfigMetadata('followedAssetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4701
|
+
const adapterName$n = 'createLoglines';
|
|
4702
|
+
const createLoglines_ConfigPropertyMetadata = [
|
|
4703
|
+
generateParamConfigMetadata('loglines', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4507
4704
|
];
|
|
4508
|
-
const
|
|
4509
|
-
const createResourceParams$n = /*#__PURE__*/ createResourceParams$
|
|
4510
|
-
function keyBuilder$v(luvio, config) {
|
|
4511
|
-
const resourceParams = createResourceParams$n(config);
|
|
4512
|
-
return keyBuilder$w(luvio, resourceParams);
|
|
4513
|
-
}
|
|
4705
|
+
const createLoglines_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, createLoglines_ConfigPropertyMetadata);
|
|
4706
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$D(createLoglines_ConfigPropertyMetadata);
|
|
4514
4707
|
function typeCheckConfig$n(untrustedConfig) {
|
|
4515
4708
|
const config = {};
|
|
4516
|
-
|
|
4709
|
+
const untrustedConfig_loglines = untrustedConfig.loglines;
|
|
4710
|
+
if (ArrayIsArray$1(untrustedConfig_loglines)) {
|
|
4711
|
+
const untrustedConfig_loglines_array = [];
|
|
4712
|
+
for (let i = 0, arrayLength = untrustedConfig_loglines.length; i < arrayLength; i++) {
|
|
4713
|
+
const untrustedConfig_loglines_item = untrustedConfig_loglines[i];
|
|
4714
|
+
untrustedConfig_loglines_array.push(untrustedConfig_loglines_item);
|
|
4715
|
+
}
|
|
4716
|
+
config.loglines = untrustedConfig_loglines_array;
|
|
4717
|
+
}
|
|
4517
4718
|
return config;
|
|
4518
4719
|
}
|
|
4519
4720
|
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
@@ -4529,103 +4730,102 @@ function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
|
4529
4730
|
}
|
|
4530
4731
|
return config;
|
|
4531
4732
|
}
|
|
4532
|
-
function adapterFragment$9(luvio, config) {
|
|
4533
|
-
createResourceParams$n(config);
|
|
4534
|
-
return select$z();
|
|
4535
|
-
}
|
|
4536
|
-
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
4537
|
-
const snapshot = ingestSuccess$k(luvio, resourceParams, response, {
|
|
4538
|
-
config,
|
|
4539
|
-
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
|
|
4540
|
-
});
|
|
4541
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
4542
|
-
}
|
|
4543
|
-
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
4544
|
-
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
4545
|
-
config,
|
|
4546
|
-
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
|
|
4547
|
-
});
|
|
4548
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
4549
|
-
}
|
|
4550
4733
|
function buildNetworkSnapshot$n(luvio, config, options) {
|
|
4551
4734
|
const resourceParams = createResourceParams$n(config);
|
|
4552
4735
|
const request = createResourceRequest$n(resourceParams);
|
|
4553
4736
|
return luvio.dispatchResourceRequest(request, options)
|
|
4554
4737
|
.then((response) => {
|
|
4555
|
-
return luvio.handleSuccessResponse(() =>
|
|
4738
|
+
return luvio.handleSuccessResponse(() => {
|
|
4739
|
+
const snapshot = ingestSuccess$k(luvio, resourceParams, response);
|
|
4740
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4741
|
+
}, () => {
|
|
4556
4742
|
const cache = new StoreKeyMap();
|
|
4557
4743
|
getResponseCacheKeys$n(cache, luvio, resourceParams, response.body);
|
|
4558
4744
|
return cache;
|
|
4559
4745
|
});
|
|
4560
4746
|
}, (response) => {
|
|
4561
|
-
|
|
4747
|
+
deepFreeze(response);
|
|
4748
|
+
throw response;
|
|
4562
4749
|
});
|
|
4563
4750
|
}
|
|
4564
|
-
|
|
4565
|
-
return
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
variables: {},
|
|
4751
|
+
const createLoglinesAdapterFactory = (luvio) => {
|
|
4752
|
+
return function createLoglines(untrustedConfig) {
|
|
4753
|
+
const config = validateAdapterConfig$n(untrustedConfig, createLoglines_ConfigPropertyNames);
|
|
4754
|
+
// Invalid or incomplete config
|
|
4755
|
+
if (config === null) {
|
|
4756
|
+
throw new Error('Invalid config for "createLoglines"');
|
|
4757
|
+
}
|
|
4758
|
+
return buildNetworkSnapshot$n(luvio, config);
|
|
4573
4759
|
};
|
|
4574
|
-
const cacheSnapshot = storeLookup(selector, {
|
|
4575
|
-
config,
|
|
4576
|
-
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
|
|
4577
|
-
});
|
|
4578
|
-
return cacheSnapshot;
|
|
4579
|
-
}
|
|
4580
|
-
const getUniqueFollowerCountAdapterFactory = (luvio) => function UnifiedAnalytics__getUniqueFollowerCount(untrustedConfig, requestContext) {
|
|
4581
|
-
const config = validateAdapterConfig$n(untrustedConfig, getUniqueFollowerCount_ConfigPropertyNames);
|
|
4582
|
-
// Invalid or incomplete config
|
|
4583
|
-
if (config === null) {
|
|
4584
|
-
return null;
|
|
4585
|
-
}
|
|
4586
|
-
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4587
|
-
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
4588
4760
|
};
|
|
4589
4761
|
|
|
4590
|
-
|
|
4591
|
-
const VERSION$e = "f2e0254a8e6b03f2289f318634389df3";
|
|
4592
|
-
function validate$h(obj, path = 'UnifiedAnalyticsLogLinesRepresentation') {
|
|
4762
|
+
function validate$i(obj, path = 'OrgRepresentation') {
|
|
4593
4763
|
const v_error = (() => {
|
|
4594
4764
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4595
4765
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4596
4766
|
}
|
|
4597
|
-
const obj_failureCount = obj.failureCount;
|
|
4598
|
-
const path_failureCount = path + '.failureCount';
|
|
4599
|
-
if (typeof obj_failureCount !== 'number' || (typeof obj_failureCount === 'number' && Math.floor(obj_failureCount) !== obj_failureCount)) {
|
|
4600
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_failureCount + '" (at "' + path_failureCount + '")');
|
|
4601
|
-
}
|
|
4602
4767
|
const obj_id = obj.id;
|
|
4603
4768
|
const path_id = path + '.id';
|
|
4604
4769
|
if (typeof obj_id !== 'string') {
|
|
4605
4770
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
4606
4771
|
}
|
|
4607
|
-
const
|
|
4608
|
-
const
|
|
4609
|
-
if (typeof
|
|
4610
|
-
return new TypeError('Expected "
|
|
4772
|
+
const obj_label = obj.label;
|
|
4773
|
+
const path_label = path + '.label';
|
|
4774
|
+
if (typeof obj_label !== 'string') {
|
|
4775
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
4776
|
+
}
|
|
4777
|
+
const obj_orgUrl = obj.orgUrl;
|
|
4778
|
+
const path_orgUrl = path + '.orgUrl';
|
|
4779
|
+
if (typeof obj_orgUrl !== 'string') {
|
|
4780
|
+
return new TypeError('Expected "string" but received "' + typeof obj_orgUrl + '" (at "' + path_orgUrl + '")');
|
|
4781
|
+
}
|
|
4782
|
+
const obj_targetUrl = obj.targetUrl;
|
|
4783
|
+
const path_targetUrl = path + '.targetUrl';
|
|
4784
|
+
if (typeof obj_targetUrl !== 'string') {
|
|
4785
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetUrl + '" (at "' + path_targetUrl + '")');
|
|
4611
4786
|
}
|
|
4612
4787
|
})();
|
|
4613
4788
|
return v_error === undefined ? null : v_error;
|
|
4614
4789
|
}
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4790
|
+
|
|
4791
|
+
const TTL$6 = 500;
|
|
4792
|
+
const VERSION$e = "ebd45d9f8ecdc711027eec047d0803ac";
|
|
4793
|
+
function validate$h(obj, path = 'OrgCollectionRepresentation') {
|
|
4794
|
+
const v_error = (() => {
|
|
4795
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4796
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4797
|
+
}
|
|
4798
|
+
const obj_currentOrg = obj.currentOrg;
|
|
4799
|
+
const path_currentOrg = path + '.currentOrg';
|
|
4800
|
+
const referencepath_currentOrgValidationError = validate$i(obj_currentOrg, path_currentOrg);
|
|
4801
|
+
if (referencepath_currentOrgValidationError !== null) {
|
|
4802
|
+
let message = 'Object doesn\'t match OrgRepresentation (at "' + path_currentOrg + '")\n';
|
|
4803
|
+
message += referencepath_currentOrgValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4804
|
+
return new TypeError(message);
|
|
4805
|
+
}
|
|
4806
|
+
const obj_orgs = obj.orgs;
|
|
4807
|
+
const path_orgs = path + '.orgs';
|
|
4808
|
+
if (!ArrayIsArray(obj_orgs)) {
|
|
4809
|
+
return new TypeError('Expected "array" but received "' + typeof obj_orgs + '" (at "' + path_orgs + '")');
|
|
4810
|
+
}
|
|
4811
|
+
for (let i = 0; i < obj_orgs.length; i++) {
|
|
4812
|
+
const obj_orgs_item = obj_orgs[i];
|
|
4813
|
+
const path_orgs_item = path_orgs + '[' + i + ']';
|
|
4814
|
+
const referencepath_orgs_itemValidationError = validate$i(obj_orgs_item, path_orgs_item);
|
|
4815
|
+
if (referencepath_orgs_itemValidationError !== null) {
|
|
4816
|
+
let message = 'Object doesn\'t match OrgRepresentation (at "' + path_orgs_item + '")\n';
|
|
4817
|
+
message += referencepath_orgs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4818
|
+
return new TypeError(message);
|
|
4819
|
+
}
|
|
4820
|
+
}
|
|
4821
|
+
})();
|
|
4822
|
+
return v_error === undefined ? null : v_error;
|
|
4624
4823
|
}
|
|
4824
|
+
const RepresentationType$e = 'OrgCollectionRepresentation';
|
|
4625
4825
|
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
4626
4826
|
return input;
|
|
4627
4827
|
}
|
|
4628
|
-
const select$y = function
|
|
4828
|
+
const select$y = function OrgCollectionRepresentationSelect() {
|
|
4629
4829
|
return {
|
|
4630
4830
|
kind: 'Fragment',
|
|
4631
4831
|
version: VERSION$e,
|
|
@@ -4639,21 +4839,21 @@ function equals$e(existing, incoming) {
|
|
|
4639
4839
|
}
|
|
4640
4840
|
return true;
|
|
4641
4841
|
}
|
|
4642
|
-
const ingest$e = function
|
|
4842
|
+
const ingest$e = function OrgCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4643
4843
|
if (process.env.NODE_ENV !== 'production') {
|
|
4644
4844
|
const validateError = validate$h(input);
|
|
4645
4845
|
if (validateError !== null) {
|
|
4646
4846
|
throw validateError;
|
|
4647
4847
|
}
|
|
4648
4848
|
}
|
|
4649
|
-
const key =
|
|
4849
|
+
const key = path.fullPath;
|
|
4650
4850
|
const ttlToUse = TTL$6;
|
|
4651
4851
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "UnifiedAnalytics", VERSION$e, RepresentationType$e, equals$e);
|
|
4652
4852
|
return createLink(key);
|
|
4653
4853
|
};
|
|
4654
4854
|
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
4655
4855
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4656
|
-
const rootKey =
|
|
4856
|
+
const rootKey = fullPathFactory();
|
|
4657
4857
|
rootKeySet.set(rootKey, {
|
|
4658
4858
|
namespace: keyPrefix,
|
|
4659
4859
|
representationName: RepresentationType$e,
|
|
@@ -4664,18 +4864,21 @@ function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4664
4864
|
function select$x(luvio, params) {
|
|
4665
4865
|
return select$y();
|
|
4666
4866
|
}
|
|
4867
|
+
function keyBuilder$v(luvio, params) {
|
|
4868
|
+
return keyPrefix + '::OrgCollectionRepresentation:(' + 'userName:' + params.urlParams.userName + ')';
|
|
4869
|
+
}
|
|
4667
4870
|
function getResponseCacheKeys$m(storeKeyMap, luvio, resourceParams, response) {
|
|
4668
|
-
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
4871
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response, () => keyBuilder$v(luvio, resourceParams));
|
|
4669
4872
|
}
|
|
4670
|
-
function ingestSuccess$j(luvio, resourceParams, response) {
|
|
4873
|
+
function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
4671
4874
|
const { body } = response;
|
|
4672
|
-
const key =
|
|
4875
|
+
const key = keyBuilder$v(luvio, resourceParams);
|
|
4673
4876
|
luvio.storeIngest(key, ingest$e, body);
|
|
4674
4877
|
const snapshot = luvio.storeLookup({
|
|
4675
4878
|
recordId: key,
|
|
4676
4879
|
node: select$x(),
|
|
4677
4880
|
variables: {},
|
|
4678
|
-
});
|
|
4881
|
+
}, snapshotRefresh);
|
|
4679
4882
|
if (process.env.NODE_ENV !== 'production') {
|
|
4680
4883
|
if (snapshot.state !== 'Fulfilled') {
|
|
4681
4884
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
@@ -4684,37 +4887,45 @@ function ingestSuccess$j(luvio, resourceParams, response) {
|
|
|
4684
4887
|
deepFreeze(snapshot.data);
|
|
4685
4888
|
return snapshot;
|
|
4686
4889
|
}
|
|
4890
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
4891
|
+
const key = keyBuilder$v(luvio, params);
|
|
4892
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4893
|
+
const storeMetadataParams = {
|
|
4894
|
+
ttl: TTL$6,
|
|
4895
|
+
namespace: keyPrefix,
|
|
4896
|
+
version: VERSION$e,
|
|
4897
|
+
representationName: RepresentationType$e
|
|
4898
|
+
};
|
|
4899
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4900
|
+
return errorSnapshot;
|
|
4901
|
+
}
|
|
4687
4902
|
function createResourceRequest$m(config) {
|
|
4688
4903
|
const headers = {};
|
|
4689
4904
|
return {
|
|
4690
4905
|
baseUri: '/services/data/v62.0',
|
|
4691
|
-
basePath: '/unified-analytics/
|
|
4692
|
-
method: '
|
|
4693
|
-
body:
|
|
4694
|
-
urlParams:
|
|
4906
|
+
basePath: '/unified-analytics/orgs/' + config.urlParams.userName + '',
|
|
4907
|
+
method: 'get',
|
|
4908
|
+
body: null,
|
|
4909
|
+
urlParams: config.urlParams,
|
|
4695
4910
|
queryParams: {},
|
|
4696
4911
|
headers,
|
|
4697
4912
|
priority: 'normal',
|
|
4698
4913
|
};
|
|
4699
4914
|
}
|
|
4700
4915
|
|
|
4701
|
-
const adapterName$m = '
|
|
4702
|
-
const
|
|
4703
|
-
generateParamConfigMetadata('
|
|
4916
|
+
const adapterName$m = 'getOrg';
|
|
4917
|
+
const getOrg_ConfigPropertyMetadata = [
|
|
4918
|
+
generateParamConfigMetadata('userName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4704
4919
|
];
|
|
4705
|
-
const
|
|
4706
|
-
const createResourceParams$m = /*#__PURE__*/ createResourceParams$
|
|
4920
|
+
const getOrg_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, getOrg_ConfigPropertyMetadata);
|
|
4921
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$D(getOrg_ConfigPropertyMetadata);
|
|
4922
|
+
function keyBuilder$u(luvio, config) {
|
|
4923
|
+
const resourceParams = createResourceParams$m(config);
|
|
4924
|
+
return keyBuilder$v(luvio, resourceParams);
|
|
4925
|
+
}
|
|
4707
4926
|
function typeCheckConfig$m(untrustedConfig) {
|
|
4708
4927
|
const config = {};
|
|
4709
|
-
|
|
4710
|
-
if (ArrayIsArray$1(untrustedConfig_loglines)) {
|
|
4711
|
-
const untrustedConfig_loglines_array = [];
|
|
4712
|
-
for (let i = 0, arrayLength = untrustedConfig_loglines.length; i < arrayLength; i++) {
|
|
4713
|
-
const untrustedConfig_loglines_item = untrustedConfig_loglines[i];
|
|
4714
|
-
untrustedConfig_loglines_array.push(untrustedConfig_loglines_item);
|
|
4715
|
-
}
|
|
4716
|
-
config.loglines = untrustedConfig_loglines_array;
|
|
4717
|
-
}
|
|
4928
|
+
typeCheckConfig$D(untrustedConfig, config, getOrg_ConfigPropertyMetadata);
|
|
4718
4929
|
return config;
|
|
4719
4930
|
}
|
|
4720
4931
|
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
@@ -4730,33 +4941,62 @@ function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
|
4730
4941
|
}
|
|
4731
4942
|
return config;
|
|
4732
4943
|
}
|
|
4944
|
+
function adapterFragment$9(luvio, config) {
|
|
4945
|
+
createResourceParams$m(config);
|
|
4946
|
+
return select$x();
|
|
4947
|
+
}
|
|
4948
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
4949
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
|
|
4950
|
+
config,
|
|
4951
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
4952
|
+
});
|
|
4953
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4954
|
+
}
|
|
4955
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
4956
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
4957
|
+
config,
|
|
4958
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
4959
|
+
});
|
|
4960
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4961
|
+
}
|
|
4733
4962
|
function buildNetworkSnapshot$m(luvio, config, options) {
|
|
4734
4963
|
const resourceParams = createResourceParams$m(config);
|
|
4735
4964
|
const request = createResourceRequest$m(resourceParams);
|
|
4736
4965
|
return luvio.dispatchResourceRequest(request, options)
|
|
4737
4966
|
.then((response) => {
|
|
4738
|
-
return luvio.handleSuccessResponse(() => {
|
|
4739
|
-
const snapshot = ingestSuccess$j(luvio, resourceParams, response);
|
|
4740
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
4741
|
-
}, () => {
|
|
4967
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
4742
4968
|
const cache = new StoreKeyMap();
|
|
4743
4969
|
getResponseCacheKeys$m(cache, luvio, resourceParams, response.body);
|
|
4744
4970
|
return cache;
|
|
4745
4971
|
});
|
|
4746
4972
|
}, (response) => {
|
|
4747
|
-
|
|
4748
|
-
throw response;
|
|
4973
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
4749
4974
|
});
|
|
4750
4975
|
}
|
|
4751
|
-
|
|
4752
|
-
return
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4976
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
4977
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$m, undefined, false);
|
|
4978
|
+
}
|
|
4979
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
4980
|
+
const { luvio, config } = context;
|
|
4981
|
+
const selector = {
|
|
4982
|
+
recordId: keyBuilder$u(luvio, config),
|
|
4983
|
+
node: adapterFragment$9(luvio, config),
|
|
4984
|
+
variables: {},
|
|
4759
4985
|
};
|
|
4986
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4987
|
+
config,
|
|
4988
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
4989
|
+
});
|
|
4990
|
+
return cacheSnapshot;
|
|
4991
|
+
}
|
|
4992
|
+
const getOrgAdapterFactory = (luvio) => function UnifiedAnalytics__getOrg(untrustedConfig, requestContext) {
|
|
4993
|
+
const config = validateAdapterConfig$m(untrustedConfig, getOrg_ConfigPropertyNames);
|
|
4994
|
+
// Invalid or incomplete config
|
|
4995
|
+
if (config === null) {
|
|
4996
|
+
return null;
|
|
4997
|
+
}
|
|
4998
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4999
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
4760
5000
|
};
|
|
4761
5001
|
|
|
4762
5002
|
const TTL$5 = 1000;
|
|
@@ -5039,14 +5279,14 @@ const getAssetSlackChannels_ConfigPropertyMetadata = [
|
|
|
5039
5279
|
generateParamConfigMetadata('assetId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
5040
5280
|
];
|
|
5041
5281
|
const getAssetSlackChannels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
5042
|
-
const createResourceParams$l = /*#__PURE__*/ createResourceParams$
|
|
5282
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$D(getAssetSlackChannels_ConfigPropertyMetadata);
|
|
5043
5283
|
function keyBuilder$r(luvio, config) {
|
|
5044
5284
|
const resourceParams = createResourceParams$l(config);
|
|
5045
5285
|
return keyBuilder$s(luvio, resourceParams);
|
|
5046
5286
|
}
|
|
5047
5287
|
function typeCheckConfig$l(untrustedConfig) {
|
|
5048
5288
|
const config = {};
|
|
5049
|
-
typeCheckConfig$
|
|
5289
|
+
typeCheckConfig$D(untrustedConfig, config, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
5050
5290
|
return config;
|
|
5051
5291
|
}
|
|
5052
5292
|
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
@@ -5095,7 +5335,7 @@ function buildNetworkSnapshot$l(luvio, config, options) {
|
|
|
5095
5335
|
});
|
|
5096
5336
|
}
|
|
5097
5337
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
5098
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5338
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$l, undefined, false);
|
|
5099
5339
|
}
|
|
5100
5340
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
5101
5341
|
const { luvio, config } = context;
|
|
@@ -5164,10 +5404,10 @@ const createAssetSlackChannel_ConfigPropertyMetadata = [
|
|
|
5164
5404
|
generateParamConfigMetadata('teamId', true, 2 /* Body */, 0 /* String */),
|
|
5165
5405
|
];
|
|
5166
5406
|
const createAssetSlackChannel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
5167
|
-
const createResourceParams$k = /*#__PURE__*/ createResourceParams$
|
|
5407
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$D(createAssetSlackChannel_ConfigPropertyMetadata);
|
|
5168
5408
|
function typeCheckConfig$k(untrustedConfig) {
|
|
5169
5409
|
const config = {};
|
|
5170
|
-
typeCheckConfig$
|
|
5410
|
+
typeCheckConfig$D(untrustedConfig, config, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
5171
5411
|
return config;
|
|
5172
5412
|
}
|
|
5173
5413
|
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
@@ -5227,7 +5467,7 @@ function validate$e(obj, path = 'AnalyticsUsersQueryResultsRepresentation') {
|
|
|
5227
5467
|
for (let i = 0; i < obj_items.length; i++) {
|
|
5228
5468
|
const obj_items_item = obj_items[i];
|
|
5229
5469
|
const path_items_item = path_items + '[' + i + ']';
|
|
5230
|
-
const referencepath_items_itemValidationError = validate$
|
|
5470
|
+
const referencepath_items_itemValidationError = validate$p(obj_items_item, path_items_item);
|
|
5231
5471
|
if (referencepath_items_itemValidationError !== null) {
|
|
5232
5472
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_items_item + '")\n';
|
|
5233
5473
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5344,10 +5584,10 @@ const queryUsers_ConfigPropertyMetadata = [
|
|
|
5344
5584
|
generateParamConfigMetadata('useAutoSuggest', true, 2 /* Body */, 1 /* Boolean */),
|
|
5345
5585
|
];
|
|
5346
5586
|
const queryUsers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, queryUsers_ConfigPropertyMetadata);
|
|
5347
|
-
const createResourceParams$j = /*#__PURE__*/ createResourceParams$
|
|
5587
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$D(queryUsers_ConfigPropertyMetadata);
|
|
5348
5588
|
function typeCheckConfig$j(untrustedConfig) {
|
|
5349
5589
|
const config = {};
|
|
5350
|
-
typeCheckConfig$
|
|
5590
|
+
typeCheckConfig$D(untrustedConfig, config, queryUsers_ConfigPropertyMetadata);
|
|
5351
5591
|
return config;
|
|
5352
5592
|
}
|
|
5353
5593
|
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
@@ -5400,7 +5640,7 @@ function validate$d(obj, path = 'VisualizationRepresentation') {
|
|
|
5400
5640
|
}
|
|
5401
5641
|
const obj_createdBy = obj.createdBy;
|
|
5402
5642
|
const path_createdBy = path + '.createdBy';
|
|
5403
|
-
const referencepath_createdByValidationError = validate$
|
|
5643
|
+
const referencepath_createdByValidationError = validate$p(obj_createdBy, path_createdBy);
|
|
5404
5644
|
if (referencepath_createdByValidationError !== null) {
|
|
5405
5645
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
5406
5646
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5475,7 +5715,7 @@ function validate$d(obj, path = 'VisualizationRepresentation') {
|
|
|
5475
5715
|
if (obj.lastModifiedBy !== undefined) {
|
|
5476
5716
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
5477
5717
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
5478
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
5718
|
+
const referencepath_lastModifiedByValidationError = validate$p(obj_lastModifiedBy, path_lastModifiedBy);
|
|
5479
5719
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
5480
5720
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
5481
5721
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5737,14 +5977,14 @@ const getVisualizations_ConfigPropertyMetadata = [
|
|
|
5737
5977
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5738
5978
|
];
|
|
5739
5979
|
const getVisualizations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getVisualizations_ConfigPropertyMetadata);
|
|
5740
|
-
const createResourceParams$i = /*#__PURE__*/ createResourceParams$
|
|
5980
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$D(getVisualizations_ConfigPropertyMetadata);
|
|
5741
5981
|
function keyBuilder$n(luvio, config) {
|
|
5742
5982
|
const resourceParams = createResourceParams$i(config);
|
|
5743
5983
|
return keyBuilder$o(luvio, resourceParams);
|
|
5744
5984
|
}
|
|
5745
5985
|
function typeCheckConfig$i(untrustedConfig) {
|
|
5746
5986
|
const config = {};
|
|
5747
|
-
typeCheckConfig$
|
|
5987
|
+
typeCheckConfig$D(untrustedConfig, config, getVisualizations_ConfigPropertyMetadata);
|
|
5748
5988
|
return config;
|
|
5749
5989
|
}
|
|
5750
5990
|
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
@@ -5793,7 +6033,7 @@ function buildNetworkSnapshot$i(luvio, config, options) {
|
|
|
5793
6033
|
});
|
|
5794
6034
|
}
|
|
5795
6035
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
5796
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6036
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
5797
6037
|
}
|
|
5798
6038
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
5799
6039
|
const { luvio, config } = context;
|
|
@@ -5869,10 +6109,10 @@ const createVisualization_ConfigPropertyMetadata = [
|
|
|
5869
6109
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5870
6110
|
];
|
|
5871
6111
|
const createVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, createVisualization_ConfigPropertyMetadata);
|
|
5872
|
-
const createResourceParams$h = /*#__PURE__*/ createResourceParams$
|
|
6112
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$D(createVisualization_ConfigPropertyMetadata);
|
|
5873
6113
|
function typeCheckConfig$h(untrustedConfig) {
|
|
5874
6114
|
const config = {};
|
|
5875
|
-
typeCheckConfig$
|
|
6115
|
+
typeCheckConfig$D(untrustedConfig, config, createVisualization_ConfigPropertyMetadata);
|
|
5876
6116
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
5877
6117
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
5878
6118
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -6037,10 +6277,10 @@ const deleteVisualization_ConfigPropertyMetadata = [
|
|
|
6037
6277
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6038
6278
|
];
|
|
6039
6279
|
const deleteVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, deleteVisualization_ConfigPropertyMetadata);
|
|
6040
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
6280
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$D(deleteVisualization_ConfigPropertyMetadata);
|
|
6041
6281
|
function typeCheckConfig$g(untrustedConfig) {
|
|
6042
6282
|
const config = {};
|
|
6043
|
-
typeCheckConfig$
|
|
6283
|
+
typeCheckConfig$D(untrustedConfig, config, deleteVisualization_ConfigPropertyMetadata);
|
|
6044
6284
|
return config;
|
|
6045
6285
|
}
|
|
6046
6286
|
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
@@ -6138,14 +6378,14 @@ const getVisualization_ConfigPropertyMetadata = [
|
|
|
6138
6378
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6139
6379
|
];
|
|
6140
6380
|
const getVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getVisualization_ConfigPropertyMetadata);
|
|
6141
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
6381
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$D(getVisualization_ConfigPropertyMetadata);
|
|
6142
6382
|
function keyBuilder$k(luvio, config) {
|
|
6143
6383
|
const resourceParams = createResourceParams$f(config);
|
|
6144
6384
|
return keyBuilder$l(luvio, resourceParams);
|
|
6145
6385
|
}
|
|
6146
6386
|
function typeCheckConfig$f(untrustedConfig) {
|
|
6147
6387
|
const config = {};
|
|
6148
|
-
typeCheckConfig$
|
|
6388
|
+
typeCheckConfig$D(untrustedConfig, config, getVisualization_ConfigPropertyMetadata);
|
|
6149
6389
|
return config;
|
|
6150
6390
|
}
|
|
6151
6391
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -6194,7 +6434,7 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
6194
6434
|
});
|
|
6195
6435
|
}
|
|
6196
6436
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
6197
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6437
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
6198
6438
|
}
|
|
6199
6439
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
6200
6440
|
const { luvio, config } = context;
|
|
@@ -6271,10 +6511,10 @@ const updateVisualization_ConfigPropertyMetadata = [
|
|
|
6271
6511
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
6272
6512
|
];
|
|
6273
6513
|
const updateVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, updateVisualization_ConfigPropertyMetadata);
|
|
6274
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
6514
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$D(updateVisualization_ConfigPropertyMetadata);
|
|
6275
6515
|
function typeCheckConfig$e(untrustedConfig) {
|
|
6276
6516
|
const config = {};
|
|
6277
|
-
typeCheckConfig$
|
|
6517
|
+
typeCheckConfig$D(untrustedConfig, config, updateVisualization_ConfigPropertyMetadata);
|
|
6278
6518
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
6279
6519
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
6280
6520
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -6538,14 +6778,14 @@ const getVisualizationBundle_ConfigPropertyMetadata = [
|
|
|
6538
6778
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6539
6779
|
];
|
|
6540
6780
|
const getVisualizationBundle_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getVisualizationBundle_ConfigPropertyMetadata);
|
|
6541
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
6781
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$D(getVisualizationBundle_ConfigPropertyMetadata);
|
|
6542
6782
|
function keyBuilder$h(luvio, config) {
|
|
6543
6783
|
const resourceParams = createResourceParams$d(config);
|
|
6544
6784
|
return keyBuilder$i(luvio, resourceParams);
|
|
6545
6785
|
}
|
|
6546
6786
|
function typeCheckConfig$d(untrustedConfig) {
|
|
6547
6787
|
const config = {};
|
|
6548
|
-
typeCheckConfig$
|
|
6788
|
+
typeCheckConfig$D(untrustedConfig, config, getVisualizationBundle_ConfigPropertyMetadata);
|
|
6549
6789
|
return config;
|
|
6550
6790
|
}
|
|
6551
6791
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -6594,7 +6834,7 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
6594
6834
|
});
|
|
6595
6835
|
}
|
|
6596
6836
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
6597
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6837
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
6598
6838
|
}
|
|
6599
6839
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
6600
6840
|
const { luvio, config } = context;
|
|
@@ -6632,7 +6872,7 @@ function validate$a(obj, path = 'WorkspaceRepresentation') {
|
|
|
6632
6872
|
}
|
|
6633
6873
|
const obj_createdBy = obj.createdBy;
|
|
6634
6874
|
const path_createdBy = path + '.createdBy';
|
|
6635
|
-
const referencepath_createdByValidationError = validate$
|
|
6875
|
+
const referencepath_createdByValidationError = validate$p(obj_createdBy, path_createdBy);
|
|
6636
6876
|
if (referencepath_createdByValidationError !== null) {
|
|
6637
6877
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
6638
6878
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6883,14 +7123,14 @@ const getWorkspaces_ConfigPropertyMetadata = [
|
|
|
6883
7123
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
6884
7124
|
];
|
|
6885
7125
|
const getWorkspaces_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getWorkspaces_ConfigPropertyMetadata);
|
|
6886
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
7126
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$D(getWorkspaces_ConfigPropertyMetadata);
|
|
6887
7127
|
function keyBuilder$e(luvio, config) {
|
|
6888
7128
|
const resourceParams = createResourceParams$c(config);
|
|
6889
7129
|
return keyBuilder$f(luvio, resourceParams);
|
|
6890
7130
|
}
|
|
6891
7131
|
function typeCheckConfig$c(untrustedConfig) {
|
|
6892
7132
|
const config = {};
|
|
6893
|
-
typeCheckConfig$
|
|
7133
|
+
typeCheckConfig$D(untrustedConfig, config, getWorkspaces_ConfigPropertyMetadata);
|
|
6894
7134
|
return config;
|
|
6895
7135
|
}
|
|
6896
7136
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -6939,7 +7179,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
6939
7179
|
});
|
|
6940
7180
|
}
|
|
6941
7181
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
6942
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7182
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
6943
7183
|
}
|
|
6944
7184
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
6945
7185
|
const { luvio, config } = context;
|
|
@@ -7009,10 +7249,10 @@ const createWorkspace_ConfigPropertyMetadata = [
|
|
|
7009
7249
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
7010
7250
|
];
|
|
7011
7251
|
const createWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, createWorkspace_ConfigPropertyMetadata);
|
|
7012
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
7252
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$D(createWorkspace_ConfigPropertyMetadata);
|
|
7013
7253
|
function typeCheckConfig$b(untrustedConfig) {
|
|
7014
7254
|
const config = {};
|
|
7015
|
-
typeCheckConfig$
|
|
7255
|
+
typeCheckConfig$D(untrustedConfig, config, createWorkspace_ConfigPropertyMetadata);
|
|
7016
7256
|
return config;
|
|
7017
7257
|
}
|
|
7018
7258
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -7093,10 +7333,10 @@ const deleteWorkspace_ConfigPropertyMetadata = [
|
|
|
7093
7333
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7094
7334
|
];
|
|
7095
7335
|
const deleteWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, deleteWorkspace_ConfigPropertyMetadata);
|
|
7096
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
7336
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$D(deleteWorkspace_ConfigPropertyMetadata);
|
|
7097
7337
|
function typeCheckConfig$a(untrustedConfig) {
|
|
7098
7338
|
const config = {};
|
|
7099
|
-
typeCheckConfig$
|
|
7339
|
+
typeCheckConfig$D(untrustedConfig, config, deleteWorkspace_ConfigPropertyMetadata);
|
|
7100
7340
|
return config;
|
|
7101
7341
|
}
|
|
7102
7342
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -7194,14 +7434,14 @@ const getWorkspaceByIdOrName_ConfigPropertyMetadata = [
|
|
|
7194
7434
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7195
7435
|
];
|
|
7196
7436
|
const getWorkspaceByIdOrName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
7197
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
7437
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$D(getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
7198
7438
|
function keyBuilder$b(luvio, config) {
|
|
7199
7439
|
const resourceParams = createResourceParams$9(config);
|
|
7200
7440
|
return keyBuilder$c(luvio, resourceParams);
|
|
7201
7441
|
}
|
|
7202
7442
|
function typeCheckConfig$9(untrustedConfig) {
|
|
7203
7443
|
const config = {};
|
|
7204
|
-
typeCheckConfig$
|
|
7444
|
+
typeCheckConfig$D(untrustedConfig, config, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
7205
7445
|
return config;
|
|
7206
7446
|
}
|
|
7207
7447
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -7250,7 +7490,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
7250
7490
|
});
|
|
7251
7491
|
}
|
|
7252
7492
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
7253
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7493
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
7254
7494
|
}
|
|
7255
7495
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
7256
7496
|
const { luvio, config } = context;
|
|
@@ -7321,10 +7561,10 @@ const updateWorkspace_ConfigPropertyMetadata = [
|
|
|
7321
7561
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
7322
7562
|
];
|
|
7323
7563
|
const updateWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, updateWorkspace_ConfigPropertyMetadata);
|
|
7324
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
7564
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$D(updateWorkspace_ConfigPropertyMetadata);
|
|
7325
7565
|
function typeCheckConfig$8(untrustedConfig) {
|
|
7326
7566
|
const config = {};
|
|
7327
|
-
typeCheckConfig$
|
|
7567
|
+
typeCheckConfig$D(untrustedConfig, config, updateWorkspace_ConfigPropertyMetadata);
|
|
7328
7568
|
return config;
|
|
7329
7569
|
}
|
|
7330
7570
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -7392,7 +7632,7 @@ function validate$8(obj, path = 'WorkspaceAssetRepresentation') {
|
|
|
7392
7632
|
}
|
|
7393
7633
|
const obj_createdBy = obj.createdBy;
|
|
7394
7634
|
const path_createdBy = path + '.createdBy';
|
|
7395
|
-
const referencepath_createdByValidationError = validate$
|
|
7635
|
+
const referencepath_createdByValidationError = validate$p(obj_createdBy, path_createdBy);
|
|
7396
7636
|
if (referencepath_createdByValidationError !== null) {
|
|
7397
7637
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
7398
7638
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7505,10 +7745,10 @@ const createWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
7505
7745
|
generateParamConfigMetadata('assetUsageType', true, 2 /* Body */, 0 /* String */),
|
|
7506
7746
|
];
|
|
7507
7747
|
const createWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
7508
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
7748
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$D(createWorkspaceAsset_ConfigPropertyMetadata);
|
|
7509
7749
|
function typeCheckConfig$7(untrustedConfig) {
|
|
7510
7750
|
const config = {};
|
|
7511
|
-
typeCheckConfig$
|
|
7751
|
+
typeCheckConfig$D(untrustedConfig, config, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
7512
7752
|
return config;
|
|
7513
7753
|
}
|
|
7514
7754
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -7590,10 +7830,10 @@ const deleteWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
7590
7830
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7591
7831
|
];
|
|
7592
7832
|
const deleteWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
7593
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
7833
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$D(deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
7594
7834
|
function typeCheckConfig$6(untrustedConfig) {
|
|
7595
7835
|
const config = {};
|
|
7596
|
-
typeCheckConfig$
|
|
7836
|
+
typeCheckConfig$D(untrustedConfig, config, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
7597
7837
|
return config;
|
|
7598
7838
|
}
|
|
7599
7839
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -7977,14 +8217,14 @@ const getFlows_ConfigPropertyMetadata = [
|
|
|
7977
8217
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
7978
8218
|
];
|
|
7979
8219
|
const getFlows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getFlows_ConfigPropertyMetadata);
|
|
7980
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
8220
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$D(getFlows_ConfigPropertyMetadata);
|
|
7981
8221
|
function keyBuilder$7(luvio, config) {
|
|
7982
8222
|
const resourceParams = createResourceParams$5(config);
|
|
7983
8223
|
return keyBuilder$8(luvio, resourceParams);
|
|
7984
8224
|
}
|
|
7985
8225
|
function typeCheckConfig$5(untrustedConfig) {
|
|
7986
8226
|
const config = {};
|
|
7987
|
-
typeCheckConfig$
|
|
8227
|
+
typeCheckConfig$D(untrustedConfig, config, getFlows_ConfigPropertyMetadata);
|
|
7988
8228
|
return config;
|
|
7989
8229
|
}
|
|
7990
8230
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -8033,7 +8273,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
8033
8273
|
});
|
|
8034
8274
|
}
|
|
8035
8275
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
8036
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8276
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
8037
8277
|
}
|
|
8038
8278
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
8039
8279
|
const { luvio, config } = context;
|
|
@@ -8109,14 +8349,14 @@ const getFlowByName_ConfigPropertyMetadata = [
|
|
|
8109
8349
|
generateParamConfigMetadata('flowApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8110
8350
|
];
|
|
8111
8351
|
const getFlowByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getFlowByName_ConfigPropertyMetadata);
|
|
8112
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
8352
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$D(getFlowByName_ConfigPropertyMetadata);
|
|
8113
8353
|
function keyBuilder$5(luvio, config) {
|
|
8114
8354
|
const resourceParams = createResourceParams$4(config);
|
|
8115
8355
|
return keyBuilder$6(luvio, resourceParams);
|
|
8116
8356
|
}
|
|
8117
8357
|
function typeCheckConfig$4(untrustedConfig) {
|
|
8118
8358
|
const config = {};
|
|
8119
|
-
typeCheckConfig$
|
|
8359
|
+
typeCheckConfig$D(untrustedConfig, config, getFlowByName_ConfigPropertyMetadata);
|
|
8120
8360
|
return config;
|
|
8121
8361
|
}
|
|
8122
8362
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -8165,7 +8405,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
8165
8405
|
});
|
|
8166
8406
|
}
|
|
8167
8407
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
8168
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8408
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
8169
8409
|
}
|
|
8170
8410
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
8171
8411
|
const { luvio, config } = context;
|
|
@@ -8323,14 +8563,14 @@ const getSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
8323
8563
|
generateParamConfigMetadata('digestConfigOwner', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8324
8564
|
];
|
|
8325
8565
|
const getSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
8326
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
8566
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$D(getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
8327
8567
|
function keyBuilder$2(luvio, config) {
|
|
8328
8568
|
const resourceParams = createResourceParams$3(config);
|
|
8329
8569
|
return keyBuilder$3(luvio, resourceParams);
|
|
8330
8570
|
}
|
|
8331
8571
|
function typeCheckConfig$3(untrustedConfig) {
|
|
8332
8572
|
const config = {};
|
|
8333
|
-
typeCheckConfig$
|
|
8573
|
+
typeCheckConfig$D(untrustedConfig, config, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
8334
8574
|
return config;
|
|
8335
8575
|
}
|
|
8336
8576
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -8379,7 +8619,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
8379
8619
|
});
|
|
8380
8620
|
}
|
|
8381
8621
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
8382
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8622
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
8383
8623
|
}
|
|
8384
8624
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
8385
8625
|
const { luvio, config } = context;
|
|
@@ -8448,10 +8688,10 @@ const updateSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
8448
8688
|
generateParamConfigMetadata('scheduleType', true, 2 /* Body */, 0 /* String */),
|
|
8449
8689
|
];
|
|
8450
8690
|
const updateSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
8451
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
8691
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$D(updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
8452
8692
|
function typeCheckConfig$2(untrustedConfig) {
|
|
8453
8693
|
const config = {};
|
|
8454
|
-
typeCheckConfig$
|
|
8694
|
+
typeCheckConfig$D(untrustedConfig, config, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
8455
8695
|
return config;
|
|
8456
8696
|
}
|
|
8457
8697
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -8681,7 +8921,7 @@ const getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata = [
|
|
|
8681
8921
|
generateParamConfigMetadata('searchToken', false, 2 /* Body */, 4 /* Unsupported */),
|
|
8682
8922
|
];
|
|
8683
8923
|
const getUnifiedAnalyticsLibraryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
8684
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
8924
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$D(getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
8685
8925
|
function typeCheckConfig$1(untrustedConfig) {
|
|
8686
8926
|
const config = {};
|
|
8687
8927
|
const untrustedConfig_assetTypes = untrustedConfig.assetTypes;
|
|
@@ -8915,10 +9155,10 @@ const generateSFDriveCredentials_ConfigPropertyMetadata = [
|
|
|
8915
9155
|
generateParamConfigMetadata('path', true, 2 /* Body */, 0 /* String */),
|
|
8916
9156
|
];
|
|
8917
9157
|
const generateSFDriveCredentials_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
8918
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
9158
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$D(generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
8919
9159
|
function typeCheckConfig(untrustedConfig) {
|
|
8920
9160
|
const config = {};
|
|
8921
|
-
typeCheckConfig$
|
|
9161
|
+
typeCheckConfig$D(untrustedConfig, config, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
8922
9162
|
return config;
|
|
8923
9163
|
}
|
|
8924
9164
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -8963,4 +9203,4 @@ const generateSFDriveCredentialsAdapterFactory = (luvio) => {
|
|
|
8963
9203
|
};
|
|
8964
9204
|
};
|
|
8965
9205
|
|
|
8966
|
-
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, getUniqueFollowerCountAdapterFactory, getVisualizationAdapterFactory, getVisualizationBundleAdapterFactory, getVisualizationsAdapterFactory, getWorkspaceByIdOrNameAdapterFactory, getWorkspacesAdapterFactory, publishAdapterFactory, queryAssetsAdapterFactory, queryUsersAdapterFactory, unfollowAdapterFactory, updateDashboardAdapterFactory, updateSubscriptionDigestConfigAdapterFactory, updateVisualizationAdapterFactory, updateWorkspaceAdapterFactory };
|
|
9206
|
+
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 };
|