@salesforce/lds-adapters-analytics-unifiedanalytics 1.305.0 → 1.306.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 +889 -661
- package/dist/es/es2018/types/src/generated/adapters/createDashboard.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/adapters/createVisualization.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/queryUsers.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/adapters/updateDashboard.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/adapters/updateVisualization.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/patchUnifiedAnalyticsDashboardsByDashboardIdOrApiName.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/patchUnifiedAnalyticsVisualizationsByVisualizationIdOrApiName.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/resources/postUnifiedAnalyticsDashboards.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/postUnifiedAnalyticsUsersQuery.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/resources/postUnifiedAnalyticsVisualizations.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/AnalyticsUsersQueryInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/AnalyticsUsersQueryResultsRepresentation.d.ts +48 -0
- package/dist/es/es2018/types/src/generated/types/DashboardInputRepresentation.d.ts +8 -1
- package/dist/es/es2018/types/src/generated/types/DashboardRepresentation.d.ts +8 -1
- package/dist/es/es2018/types/src/generated/types/VisualizationBundleRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/VisualizationInputRepresentation.d.ts +8 -8
- package/dist/es/es2018/types/src/generated/types/VisualizationRepresentation.d.ts +8 -8
- package/package.json +3 -3
- package/sfdc/index.js +1470 -1239
- package/src/raml/api.raml +60 -3
- package/src/raml/luvio.raml +10 -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, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$e, typeCheckConfig as typeCheckConfig$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$e, typeCheckConfig as typeCheckConfig$w, StoreKeyMap, createResourceParams as createResourceParams$w } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -93,7 +93,7 @@ function createLink(ref) {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
function validate$
|
|
96
|
+
function validate$C(obj, path = 'DashboardAnnotationAnchorRepresentation') {
|
|
97
97
|
const v_error = (() => {
|
|
98
98
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
99
99
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -107,7 +107,7 @@ function validate$B(obj, path = 'DashboardAnnotationAnchorRepresentation') {
|
|
|
107
107
|
return v_error === undefined ? null : v_error;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
function validate$
|
|
110
|
+
function validate$B(obj, path = 'AnnotationAssetRepresentation') {
|
|
111
111
|
const v_error = (() => {
|
|
112
112
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
113
113
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -126,7 +126,7 @@ function validate$A(obj, path = 'AnnotationAssetRepresentation') {
|
|
|
126
126
|
return v_error === undefined ? null : v_error;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
function validate$
|
|
129
|
+
function validate$A(obj, path = 'FileTypeOutputRepresentation') {
|
|
130
130
|
const v_error = (() => {
|
|
131
131
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
132
132
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -145,7 +145,7 @@ function validate$z(obj, path = 'FileTypeOutputRepresentation') {
|
|
|
145
145
|
return v_error === undefined ? null : v_error;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
function validate$
|
|
148
|
+
function validate$z(obj, path = 'ContentVersionOutputRepresentation') {
|
|
149
149
|
const v_error = (() => {
|
|
150
150
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
151
151
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -159,7 +159,7 @@ function validate$y(obj, path = 'ContentVersionOutputRepresentation') {
|
|
|
159
159
|
const path_filetype = path + '.filetype';
|
|
160
160
|
let obj_filetype_union0 = null;
|
|
161
161
|
const obj_filetype_union0_error = (() => {
|
|
162
|
-
const referencepath_filetypeValidationError = validate$
|
|
162
|
+
const referencepath_filetypeValidationError = validate$A(obj_filetype, path_filetype);
|
|
163
163
|
if (referencepath_filetypeValidationError !== null) {
|
|
164
164
|
let message = 'Object doesn\'t match FileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
165
165
|
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -229,14 +229,14 @@ function validate$y(obj, path = 'ContentVersionOutputRepresentation') {
|
|
|
229
229
|
return v_error === undefined ? null : v_error;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
function validate$
|
|
232
|
+
function validate$y(obj, path = 'ContentDocumentOutputRepresentation') {
|
|
233
233
|
const v_error = (() => {
|
|
234
234
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
235
235
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
236
236
|
}
|
|
237
237
|
const obj_filetype = obj.filetype;
|
|
238
238
|
const path_filetype = path + '.filetype';
|
|
239
|
-
const referencepath_filetypeValidationError = validate$
|
|
239
|
+
const referencepath_filetypeValidationError = validate$A(obj_filetype, path_filetype);
|
|
240
240
|
if (referencepath_filetypeValidationError !== null) {
|
|
241
241
|
let message = 'Object doesn\'t match FileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
242
242
|
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -249,7 +249,7 @@ function validate$x(obj, path = 'ContentDocumentOutputRepresentation') {
|
|
|
249
249
|
}
|
|
250
250
|
const obj_latestPublishedVersion = obj.latestPublishedVersion;
|
|
251
251
|
const path_latestPublishedVersion = path + '.latestPublishedVersion';
|
|
252
|
-
const referencepath_latestPublishedVersionValidationError = validate$
|
|
252
|
+
const referencepath_latestPublishedVersionValidationError = validate$z(obj_latestPublishedVersion, path_latestPublishedVersion);
|
|
253
253
|
if (referencepath_latestPublishedVersionValidationError !== null) {
|
|
254
254
|
let message = 'Object doesn\'t match ContentVersionOutputRepresentation (at "' + path_latestPublishedVersion + '")\n';
|
|
255
255
|
message += referencepath_latestPublishedVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -269,7 +269,7 @@ function validate$x(obj, path = 'ContentDocumentOutputRepresentation') {
|
|
|
269
269
|
return v_error === undefined ? null : v_error;
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
function validate$
|
|
272
|
+
function validate$x(obj, path = 'SlackFileOutputRepresentation') {
|
|
273
273
|
const v_error = (() => {
|
|
274
274
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
275
275
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -278,7 +278,7 @@ function validate$w(obj, path = 'SlackFileOutputRepresentation') {
|
|
|
278
278
|
const path_contentDocument = path + '.contentDocument';
|
|
279
279
|
let obj_contentDocument_union0 = null;
|
|
280
280
|
const obj_contentDocument_union0_error = (() => {
|
|
281
|
-
const referencepath_contentDocumentValidationError = validate$
|
|
281
|
+
const referencepath_contentDocumentValidationError = validate$y(obj_contentDocument, path_contentDocument);
|
|
282
282
|
if (referencepath_contentDocumentValidationError !== null) {
|
|
283
283
|
let message = 'Object doesn\'t match ContentDocumentOutputRepresentation (at "' + path_contentDocument + '")\n';
|
|
284
284
|
message += referencepath_contentDocumentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -378,7 +378,7 @@ function validate$w(obj, path = 'SlackFileOutputRepresentation') {
|
|
|
378
378
|
return v_error === undefined ? null : v_error;
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
function validate$
|
|
381
|
+
function validate$w(obj, path = 'SlackEmojiOutputRepresentation') {
|
|
382
382
|
const v_error = (() => {
|
|
383
383
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
384
384
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -502,7 +502,7 @@ function validate$v(obj, path = 'SlackEmojiOutputRepresentation') {
|
|
|
502
502
|
return v_error === undefined ? null : v_error;
|
|
503
503
|
}
|
|
504
504
|
|
|
505
|
-
function validate$
|
|
505
|
+
function validate$v(obj, path = 'SlackUserInfoOutputRepresentation') {
|
|
506
506
|
const v_error = (() => {
|
|
507
507
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
508
508
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -829,7 +829,7 @@ function validate$u(obj, path = 'SlackUserInfoOutputRepresentation') {
|
|
|
829
829
|
const path_statusEmoji = path + '.statusEmoji';
|
|
830
830
|
let obj_statusEmoji_union0 = null;
|
|
831
831
|
const obj_statusEmoji_union0_error = (() => {
|
|
832
|
-
const referencepath_statusEmojiValidationError = validate$
|
|
832
|
+
const referencepath_statusEmojiValidationError = validate$w(obj_statusEmoji, path_statusEmoji);
|
|
833
833
|
if (referencepath_statusEmojiValidationError !== null) {
|
|
834
834
|
let message = 'Object doesn\'t match SlackEmojiOutputRepresentation (at "' + path_statusEmoji + '")\n';
|
|
835
835
|
message += referencepath_statusEmojiValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -892,7 +892,7 @@ function validate$u(obj, path = 'SlackUserInfoOutputRepresentation') {
|
|
|
892
892
|
return v_error === undefined ? null : v_error;
|
|
893
893
|
}
|
|
894
894
|
|
|
895
|
-
function validate$
|
|
895
|
+
function validate$u(obj, path = 'SlackReactionOutputRepresentation') {
|
|
896
896
|
const v_error = (() => {
|
|
897
897
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
898
898
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -972,7 +972,7 @@ function validate$t(obj, path = 'SlackReactionOutputRepresentation') {
|
|
|
972
972
|
for (let i = 0; i < obj_reactedUsers.length; i++) {
|
|
973
973
|
const obj_reactedUsers_item = obj_reactedUsers[i];
|
|
974
974
|
const path_reactedUsers_item = path_reactedUsers + '[' + i + ']';
|
|
975
|
-
const referencepath_reactedUsers_itemValidationError = validate$
|
|
975
|
+
const referencepath_reactedUsers_itemValidationError = validate$v(obj_reactedUsers_item, path_reactedUsers_item);
|
|
976
976
|
if (referencepath_reactedUsers_itemValidationError !== null) {
|
|
977
977
|
let message = 'Object doesn\'t match SlackUserInfoOutputRepresentation (at "' + path_reactedUsers_item + '")\n';
|
|
978
978
|
message += referencepath_reactedUsers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1061,7 +1061,7 @@ function validate$t(obj, path = 'SlackReactionOutputRepresentation') {
|
|
|
1061
1061
|
return v_error === undefined ? null : v_error;
|
|
1062
1062
|
}
|
|
1063
1063
|
|
|
1064
|
-
function validate$
|
|
1064
|
+
function validate$t(obj, path = 'SlackMessageOutputRepresentation') {
|
|
1065
1065
|
const v_error = (() => {
|
|
1066
1066
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1067
1067
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1110,7 +1110,7 @@ function validate$s(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1110
1110
|
for (let i = 0; i < obj_files.length; i++) {
|
|
1111
1111
|
const obj_files_item = obj_files[i];
|
|
1112
1112
|
const path_files_item = path_files + '[' + i + ']';
|
|
1113
|
-
const referencepath_files_itemValidationError = validate$
|
|
1113
|
+
const referencepath_files_itemValidationError = validate$x(obj_files_item, path_files_item);
|
|
1114
1114
|
if (referencepath_files_itemValidationError !== null) {
|
|
1115
1115
|
let message = 'Object doesn\'t match SlackFileOutputRepresentation (at "' + path_files_item + '")\n';
|
|
1116
1116
|
message += referencepath_files_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1208,7 +1208,7 @@ function validate$s(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1208
1208
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
1209
1209
|
const obj_reactions_item = obj_reactions[i];
|
|
1210
1210
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
1211
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
1211
|
+
const referencepath_reactions_itemValidationError = validate$u(obj_reactions_item, path_reactions_item);
|
|
1212
1212
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
1213
1213
|
let message = 'Object doesn\'t match SlackReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
1214
1214
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1249,7 +1249,7 @@ function validate$s(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1249
1249
|
for (let i = 0; i < obj_replyUsers.length; i++) {
|
|
1250
1250
|
const obj_replyUsers_item = obj_replyUsers[i];
|
|
1251
1251
|
const path_replyUsers_item = path_replyUsers + '[' + i + ']';
|
|
1252
|
-
const referencepath_replyUsers_itemValidationError = validate$
|
|
1252
|
+
const referencepath_replyUsers_itemValidationError = validate$v(obj_replyUsers_item, path_replyUsers_item);
|
|
1253
1253
|
if (referencepath_replyUsers_itemValidationError !== null) {
|
|
1254
1254
|
let message = 'Object doesn\'t match SlackUserInfoOutputRepresentation (at "' + path_replyUsers_item + '")\n';
|
|
1255
1255
|
message += referencepath_replyUsers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1361,7 +1361,7 @@ function validate$s(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1361
1361
|
}
|
|
1362
1362
|
const obj_userInfo = obj.userInfo;
|
|
1363
1363
|
const path_userInfo = path + '.userInfo';
|
|
1364
|
-
const referencepath_userInfoValidationError = validate$
|
|
1364
|
+
const referencepath_userInfoValidationError = validate$v(obj_userInfo, path_userInfo);
|
|
1365
1365
|
if (referencepath_userInfoValidationError !== null) {
|
|
1366
1366
|
let message = 'Object doesn\'t match SlackUserInfoOutputRepresentation (at "' + path_userInfo + '")\n';
|
|
1367
1367
|
message += referencepath_userInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1371,7 +1371,7 @@ function validate$s(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1371
1371
|
return v_error === undefined ? null : v_error;
|
|
1372
1372
|
}
|
|
1373
1373
|
|
|
1374
|
-
function validate$
|
|
1374
|
+
function validate$s(obj, path = 'AnnotationConversationRepresentation') {
|
|
1375
1375
|
const v_error = (() => {
|
|
1376
1376
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1377
1377
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1396,7 +1396,7 @@ function validate$r(obj, path = 'AnnotationConversationRepresentation') {
|
|
|
1396
1396
|
const path_message = path + '.message';
|
|
1397
1397
|
let obj_message_union0 = null;
|
|
1398
1398
|
const obj_message_union0_error = (() => {
|
|
1399
|
-
const referencepath_messageValidationError = validate$
|
|
1399
|
+
const referencepath_messageValidationError = validate$t(obj_message, path_message);
|
|
1400
1400
|
if (referencepath_messageValidationError !== null) {
|
|
1401
1401
|
let message = 'Object doesn\'t match SlackMessageOutputRepresentation (at "' + path_message + '")\n';
|
|
1402
1402
|
message += referencepath_messageValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1431,9 +1431,9 @@ function validate$r(obj, path = 'AnnotationConversationRepresentation') {
|
|
|
1431
1431
|
return v_error === undefined ? null : v_error;
|
|
1432
1432
|
}
|
|
1433
1433
|
|
|
1434
|
-
const TTL$
|
|
1435
|
-
const VERSION$
|
|
1436
|
-
function validate$
|
|
1434
|
+
const TTL$9 = 1000;
|
|
1435
|
+
const VERSION$j = "bacc25da56cffff8126d9bdafc471a37";
|
|
1436
|
+
function validate$r(obj, path = 'AnnotationRepresentation') {
|
|
1437
1437
|
const v_error = (() => {
|
|
1438
1438
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1439
1439
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1441,7 +1441,7 @@ function validate$q(obj, path = 'AnnotationRepresentation') {
|
|
|
1441
1441
|
if (obj.anchor !== undefined) {
|
|
1442
1442
|
const obj_anchor = obj.anchor;
|
|
1443
1443
|
const path_anchor = path + '.anchor';
|
|
1444
|
-
const referencepath_anchorValidationError = validate$
|
|
1444
|
+
const referencepath_anchorValidationError = validate$C(obj_anchor, path_anchor);
|
|
1445
1445
|
if (referencepath_anchorValidationError !== null) {
|
|
1446
1446
|
let message = 'Object doesn\'t match DashboardAnnotationAnchorRepresentation (at "' + path_anchor + '")\n';
|
|
1447
1447
|
message += referencepath_anchorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1455,7 +1455,7 @@ function validate$q(obj, path = 'AnnotationRepresentation') {
|
|
|
1455
1455
|
}
|
|
1456
1456
|
const obj_asset = obj.asset;
|
|
1457
1457
|
const path_asset = path + '.asset';
|
|
1458
|
-
const referencepath_assetValidationError = validate$
|
|
1458
|
+
const referencepath_assetValidationError = validate$B(obj_asset, path_asset);
|
|
1459
1459
|
if (referencepath_assetValidationError !== null) {
|
|
1460
1460
|
let message = 'Object doesn\'t match AnnotationAssetRepresentation (at "' + path_asset + '")\n';
|
|
1461
1461
|
message += referencepath_assetValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1463,7 +1463,7 @@ function validate$q(obj, path = 'AnnotationRepresentation') {
|
|
|
1463
1463
|
}
|
|
1464
1464
|
const obj_collaborationObject = obj.collaborationObject;
|
|
1465
1465
|
const path_collaborationObject = path + '.collaborationObject';
|
|
1466
|
-
const referencepath_collaborationObjectValidationError = validate$
|
|
1466
|
+
const referencepath_collaborationObjectValidationError = validate$s(obj_collaborationObject, path_collaborationObject);
|
|
1467
1467
|
if (referencepath_collaborationObjectValidationError !== null) {
|
|
1468
1468
|
let message = 'Object doesn\'t match AnnotationConversationRepresentation (at "' + path_collaborationObject + '")\n';
|
|
1469
1469
|
message += referencepath_collaborationObjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1482,58 +1482,58 @@ function validate$q(obj, path = 'AnnotationRepresentation') {
|
|
|
1482
1482
|
})();
|
|
1483
1483
|
return v_error === undefined ? null : v_error;
|
|
1484
1484
|
}
|
|
1485
|
-
const RepresentationType$
|
|
1486
|
-
function keyBuilder$
|
|
1487
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1485
|
+
const RepresentationType$k = 'AnnotationRepresentation';
|
|
1486
|
+
function keyBuilder$I(luvio, config) {
|
|
1487
|
+
return keyPrefix + '::' + RepresentationType$k + ':' + config.id;
|
|
1488
1488
|
}
|
|
1489
|
-
function keyBuilderFromType$
|
|
1489
|
+
function keyBuilderFromType$a(luvio, object) {
|
|
1490
1490
|
const keyParams = {
|
|
1491
1491
|
id: object.id
|
|
1492
1492
|
};
|
|
1493
|
-
return keyBuilder$
|
|
1493
|
+
return keyBuilder$I(luvio, keyParams);
|
|
1494
1494
|
}
|
|
1495
|
-
function normalize$
|
|
1495
|
+
function normalize$j(input, existing, path, luvio, store, timestamp) {
|
|
1496
1496
|
return input;
|
|
1497
1497
|
}
|
|
1498
|
-
const select$
|
|
1498
|
+
const select$K = function AnnotationRepresentationSelect() {
|
|
1499
1499
|
return {
|
|
1500
1500
|
kind: 'Fragment',
|
|
1501
|
-
version: VERSION$
|
|
1501
|
+
version: VERSION$j,
|
|
1502
1502
|
private: [],
|
|
1503
1503
|
opaque: true
|
|
1504
1504
|
};
|
|
1505
1505
|
};
|
|
1506
|
-
function equals$
|
|
1506
|
+
function equals$j(existing, incoming) {
|
|
1507
1507
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1508
1508
|
return false;
|
|
1509
1509
|
}
|
|
1510
1510
|
return true;
|
|
1511
1511
|
}
|
|
1512
|
-
const ingest$
|
|
1512
|
+
const ingest$j = function AnnotationRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1513
1513
|
if (process.env.NODE_ENV !== 'production') {
|
|
1514
|
-
const validateError = validate$
|
|
1514
|
+
const validateError = validate$r(input);
|
|
1515
1515
|
if (validateError !== null) {
|
|
1516
1516
|
throw validateError;
|
|
1517
1517
|
}
|
|
1518
1518
|
}
|
|
1519
|
-
const key = keyBuilderFromType$
|
|
1520
|
-
const ttlToUse = TTL$
|
|
1521
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1519
|
+
const key = keyBuilderFromType$a(luvio, input);
|
|
1520
|
+
const ttlToUse = TTL$9;
|
|
1521
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$j, "UnifiedAnalytics", VERSION$j, RepresentationType$k, equals$j);
|
|
1522
1522
|
return createLink(key);
|
|
1523
1523
|
};
|
|
1524
|
-
function getTypeCacheKeys$
|
|
1524
|
+
function getTypeCacheKeys$j(rootKeySet, luvio, input, fullPathFactory) {
|
|
1525
1525
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1526
|
-
const rootKey = keyBuilderFromType$
|
|
1526
|
+
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
1527
1527
|
rootKeySet.set(rootKey, {
|
|
1528
1528
|
namespace: keyPrefix,
|
|
1529
|
-
representationName: RepresentationType$
|
|
1529
|
+
representationName: RepresentationType$k,
|
|
1530
1530
|
mergeable: false
|
|
1531
1531
|
});
|
|
1532
1532
|
}
|
|
1533
1533
|
|
|
1534
|
-
const TTL$
|
|
1535
|
-
const VERSION$
|
|
1536
|
-
function validate$
|
|
1534
|
+
const TTL$8 = 1000;
|
|
1535
|
+
const VERSION$i = "a80c8e970184cc7789e13f69392d6203";
|
|
1536
|
+
function validate$q(obj, path = 'AnnotationCollectionRepresentation') {
|
|
1537
1537
|
const v_error = (() => {
|
|
1538
1538
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1539
1539
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1558,14 +1558,14 @@ function validate$p(obj, path = 'AnnotationCollectionRepresentation') {
|
|
|
1558
1558
|
})();
|
|
1559
1559
|
return v_error === undefined ? null : v_error;
|
|
1560
1560
|
}
|
|
1561
|
-
const RepresentationType$
|
|
1562
|
-
function normalize$
|
|
1561
|
+
const RepresentationType$j = 'AnnotationCollectionRepresentation';
|
|
1562
|
+
function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
1563
1563
|
const input_annotations = input.annotations;
|
|
1564
1564
|
const input_annotations_id = path.fullPath + '__annotations';
|
|
1565
1565
|
for (let i = 0; i < input_annotations.length; i++) {
|
|
1566
1566
|
const input_annotations_item = input_annotations[i];
|
|
1567
1567
|
let input_annotations_item_id = input_annotations_id + '__' + i;
|
|
1568
|
-
input_annotations[i] = ingest$
|
|
1568
|
+
input_annotations[i] = ingest$j(input_annotations_item, {
|
|
1569
1569
|
fullPath: input_annotations_item_id,
|
|
1570
1570
|
propertyName: i,
|
|
1571
1571
|
parent: {
|
|
@@ -1578,17 +1578,17 @@ function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
|
1578
1578
|
}
|
|
1579
1579
|
return input;
|
|
1580
1580
|
}
|
|
1581
|
-
const select$
|
|
1581
|
+
const select$J = function AnnotationCollectionRepresentationSelect() {
|
|
1582
1582
|
return {
|
|
1583
1583
|
kind: 'Fragment',
|
|
1584
|
-
version: VERSION$
|
|
1584
|
+
version: VERSION$i,
|
|
1585
1585
|
private: [],
|
|
1586
1586
|
selections: [
|
|
1587
1587
|
{
|
|
1588
1588
|
name: 'annotations',
|
|
1589
1589
|
kind: 'Link',
|
|
1590
1590
|
plural: true,
|
|
1591
|
-
fragment: select$
|
|
1591
|
+
fragment: select$K()
|
|
1592
1592
|
},
|
|
1593
1593
|
{
|
|
1594
1594
|
name: 'total',
|
|
@@ -1597,7 +1597,7 @@ const select$H = function AnnotationCollectionRepresentationSelect() {
|
|
|
1597
1597
|
]
|
|
1598
1598
|
};
|
|
1599
1599
|
};
|
|
1600
|
-
function equals$
|
|
1600
|
+
function equals$i(existing, incoming) {
|
|
1601
1601
|
const existing_total = existing.total;
|
|
1602
1602
|
const incoming_total = incoming.total;
|
|
1603
1603
|
if (!(existing_total === incoming_total)) {
|
|
@@ -1615,48 +1615,48 @@ function equals$h(existing, incoming) {
|
|
|
1615
1615
|
}
|
|
1616
1616
|
return true;
|
|
1617
1617
|
}
|
|
1618
|
-
const ingest$
|
|
1618
|
+
const ingest$i = function AnnotationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1619
1619
|
if (process.env.NODE_ENV !== 'production') {
|
|
1620
|
-
const validateError = validate$
|
|
1620
|
+
const validateError = validate$q(input);
|
|
1621
1621
|
if (validateError !== null) {
|
|
1622
1622
|
throw validateError;
|
|
1623
1623
|
}
|
|
1624
1624
|
}
|
|
1625
1625
|
const key = path.fullPath;
|
|
1626
|
-
const ttlToUse = TTL$
|
|
1627
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1626
|
+
const ttlToUse = TTL$8;
|
|
1627
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "UnifiedAnalytics", VERSION$i, RepresentationType$j, equals$i);
|
|
1628
1628
|
return createLink(key);
|
|
1629
1629
|
};
|
|
1630
|
-
function getTypeCacheKeys$
|
|
1630
|
+
function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
1631
1631
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1632
1632
|
const rootKey = fullPathFactory();
|
|
1633
1633
|
rootKeySet.set(rootKey, {
|
|
1634
1634
|
namespace: keyPrefix,
|
|
1635
|
-
representationName: RepresentationType$
|
|
1635
|
+
representationName: RepresentationType$j,
|
|
1636
1636
|
mergeable: false
|
|
1637
1637
|
});
|
|
1638
1638
|
const input_annotations_length = input.annotations.length;
|
|
1639
1639
|
for (let i = 0; i < input_annotations_length; i++) {
|
|
1640
|
-
getTypeCacheKeys$
|
|
1640
|
+
getTypeCacheKeys$j(rootKeySet, luvio, input.annotations[i]);
|
|
1641
1641
|
}
|
|
1642
1642
|
}
|
|
1643
1643
|
|
|
1644
|
-
function select$
|
|
1645
|
-
return select$
|
|
1644
|
+
function select$I(luvio, params) {
|
|
1645
|
+
return select$J();
|
|
1646
1646
|
}
|
|
1647
|
-
function keyBuilder$
|
|
1647
|
+
function keyBuilder$H(luvio, params) {
|
|
1648
1648
|
return keyPrefix + '::AnnotationCollectionRepresentation:(' + 'assetIds:' + params.queryParams.assetIds + ',' + 'includeTopMessage:' + params.queryParams.includeTopMessage + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'slackAppId:' + params.queryParams.slackAppId + ')';
|
|
1649
1649
|
}
|
|
1650
|
-
function getResponseCacheKeys$
|
|
1651
|
-
getTypeCacheKeys$
|
|
1650
|
+
function getResponseCacheKeys$v(storeKeyMap, luvio, resourceParams, response) {
|
|
1651
|
+
getTypeCacheKeys$i(storeKeyMap, luvio, response, () => keyBuilder$H(luvio, resourceParams));
|
|
1652
1652
|
}
|
|
1653
|
-
function ingestSuccess$
|
|
1653
|
+
function ingestSuccess$q(luvio, resourceParams, response, snapshotRefresh) {
|
|
1654
1654
|
const { body } = response;
|
|
1655
|
-
const key = keyBuilder$
|
|
1656
|
-
luvio.storeIngest(key, ingest$
|
|
1655
|
+
const key = keyBuilder$H(luvio, resourceParams);
|
|
1656
|
+
luvio.storeIngest(key, ingest$i, body);
|
|
1657
1657
|
const snapshot = luvio.storeLookup({
|
|
1658
1658
|
recordId: key,
|
|
1659
|
-
node: select$
|
|
1659
|
+
node: select$I(),
|
|
1660
1660
|
variables: {},
|
|
1661
1661
|
}, snapshotRefresh);
|
|
1662
1662
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1668,18 +1668,18 @@ function ingestSuccess$p(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1668
1668
|
return snapshot;
|
|
1669
1669
|
}
|
|
1670
1670
|
function ingestError$d(luvio, params, error, snapshotRefresh) {
|
|
1671
|
-
const key = keyBuilder$
|
|
1671
|
+
const key = keyBuilder$H(luvio, params);
|
|
1672
1672
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1673
1673
|
const storeMetadataParams = {
|
|
1674
|
-
ttl: TTL$
|
|
1674
|
+
ttl: TTL$8,
|
|
1675
1675
|
namespace: keyPrefix,
|
|
1676
|
-
version: VERSION$
|
|
1677
|
-
representationName: RepresentationType$
|
|
1676
|
+
version: VERSION$i,
|
|
1677
|
+
representationName: RepresentationType$j
|
|
1678
1678
|
};
|
|
1679
1679
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1680
1680
|
return errorSnapshot;
|
|
1681
1681
|
}
|
|
1682
|
-
function createResourceRequest$
|
|
1682
|
+
function createResourceRequest$v(config) {
|
|
1683
1683
|
const headers = {};
|
|
1684
1684
|
return {
|
|
1685
1685
|
baseUri: '/services/data/v62.0',
|
|
@@ -1693,7 +1693,7 @@ function createResourceRequest$u(config) {
|
|
|
1693
1693
|
};
|
|
1694
1694
|
}
|
|
1695
1695
|
|
|
1696
|
-
const adapterName$
|
|
1696
|
+
const adapterName$v = 'getAnnotations';
|
|
1697
1697
|
const getAnnotations_ConfigPropertyMetadata = [
|
|
1698
1698
|
generateParamConfigMetadata('assetIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
1699
1699
|
generateParamConfigMetadata('includeTopMessage', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -1701,56 +1701,56 @@ const getAnnotations_ConfigPropertyMetadata = [
|
|
|
1701
1701
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1702
1702
|
generateParamConfigMetadata('slackAppId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1703
1703
|
];
|
|
1704
|
-
const getAnnotations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1705
|
-
const createResourceParams$
|
|
1706
|
-
function keyBuilder$
|
|
1707
|
-
const resourceParams = createResourceParams$
|
|
1708
|
-
return keyBuilder$
|
|
1704
|
+
const getAnnotations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$v, getAnnotations_ConfigPropertyMetadata);
|
|
1705
|
+
const createResourceParams$v = /*#__PURE__*/ createResourceParams$w(getAnnotations_ConfigPropertyMetadata);
|
|
1706
|
+
function keyBuilder$G(luvio, config) {
|
|
1707
|
+
const resourceParams = createResourceParams$v(config);
|
|
1708
|
+
return keyBuilder$H(luvio, resourceParams);
|
|
1709
1709
|
}
|
|
1710
|
-
function typeCheckConfig$
|
|
1710
|
+
function typeCheckConfig$v(untrustedConfig) {
|
|
1711
1711
|
const config = {};
|
|
1712
|
-
typeCheckConfig$
|
|
1712
|
+
typeCheckConfig$w(untrustedConfig, config, getAnnotations_ConfigPropertyMetadata);
|
|
1713
1713
|
return config;
|
|
1714
1714
|
}
|
|
1715
|
-
function validateAdapterConfig$
|
|
1715
|
+
function validateAdapterConfig$v(untrustedConfig, configPropertyNames) {
|
|
1716
1716
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1717
1717
|
return null;
|
|
1718
1718
|
}
|
|
1719
1719
|
if (process.env.NODE_ENV !== 'production') {
|
|
1720
1720
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1721
1721
|
}
|
|
1722
|
-
const config = typeCheckConfig$
|
|
1722
|
+
const config = typeCheckConfig$v(untrustedConfig);
|
|
1723
1723
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1724
1724
|
return null;
|
|
1725
1725
|
}
|
|
1726
1726
|
return config;
|
|
1727
1727
|
}
|
|
1728
1728
|
function adapterFragment$d(luvio, config) {
|
|
1729
|
-
createResourceParams$
|
|
1730
|
-
return select$
|
|
1729
|
+
createResourceParams$v(config);
|
|
1730
|
+
return select$I();
|
|
1731
1731
|
}
|
|
1732
1732
|
function onFetchResponseSuccess$d(luvio, config, resourceParams, response) {
|
|
1733
|
-
const snapshot = ingestSuccess$
|
|
1733
|
+
const snapshot = ingestSuccess$q(luvio, resourceParams, response, {
|
|
1734
1734
|
config,
|
|
1735
|
-
resolve: () => buildNetworkSnapshot$
|
|
1735
|
+
resolve: () => buildNetworkSnapshot$v(luvio, config, snapshotRefreshOptions)
|
|
1736
1736
|
});
|
|
1737
1737
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1738
1738
|
}
|
|
1739
1739
|
function onFetchResponseError$d(luvio, config, resourceParams, response) {
|
|
1740
1740
|
const snapshot = ingestError$d(luvio, resourceParams, response, {
|
|
1741
1741
|
config,
|
|
1742
|
-
resolve: () => buildNetworkSnapshot$
|
|
1742
|
+
resolve: () => buildNetworkSnapshot$v(luvio, config, snapshotRefreshOptions)
|
|
1743
1743
|
});
|
|
1744
1744
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1745
1745
|
}
|
|
1746
|
-
function buildNetworkSnapshot$
|
|
1747
|
-
const resourceParams = createResourceParams$
|
|
1748
|
-
const request = createResourceRequest$
|
|
1746
|
+
function buildNetworkSnapshot$v(luvio, config, options) {
|
|
1747
|
+
const resourceParams = createResourceParams$v(config);
|
|
1748
|
+
const request = createResourceRequest$v(resourceParams);
|
|
1749
1749
|
return luvio.dispatchResourceRequest(request, options)
|
|
1750
1750
|
.then((response) => {
|
|
1751
1751
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$d(luvio, config, resourceParams, response), () => {
|
|
1752
1752
|
const cache = new StoreKeyMap();
|
|
1753
|
-
getResponseCacheKeys$
|
|
1753
|
+
getResponseCacheKeys$v(cache, luvio, resourceParams, response.body);
|
|
1754
1754
|
return cache;
|
|
1755
1755
|
});
|
|
1756
1756
|
}, (response) => {
|
|
@@ -1758,23 +1758,23 @@ function buildNetworkSnapshot$u(luvio, config, options) {
|
|
|
1758
1758
|
});
|
|
1759
1759
|
}
|
|
1760
1760
|
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
1761
|
-
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
1761
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$v, undefined, false);
|
|
1762
1762
|
}
|
|
1763
1763
|
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
1764
1764
|
const { luvio, config } = context;
|
|
1765
1765
|
const selector = {
|
|
1766
|
-
recordId: keyBuilder$
|
|
1766
|
+
recordId: keyBuilder$G(luvio, config),
|
|
1767
1767
|
node: adapterFragment$d(luvio, config),
|
|
1768
1768
|
variables: {},
|
|
1769
1769
|
};
|
|
1770
1770
|
const cacheSnapshot = storeLookup(selector, {
|
|
1771
1771
|
config,
|
|
1772
|
-
resolve: () => buildNetworkSnapshot$
|
|
1772
|
+
resolve: () => buildNetworkSnapshot$v(luvio, config, snapshotRefreshOptions)
|
|
1773
1773
|
});
|
|
1774
1774
|
return cacheSnapshot;
|
|
1775
1775
|
}
|
|
1776
1776
|
const getAnnotationsAdapterFactory = (luvio) => function UnifiedAnalytics__getAnnotations(untrustedConfig, requestContext) {
|
|
1777
|
-
const config = validateAdapterConfig$
|
|
1777
|
+
const config = validateAdapterConfig$v(untrustedConfig, getAnnotations_ConfigPropertyNames);
|
|
1778
1778
|
// Invalid or incomplete config
|
|
1779
1779
|
if (config === null) {
|
|
1780
1780
|
return null;
|
|
@@ -1783,19 +1783,19 @@ const getAnnotationsAdapterFactory = (luvio) => function UnifiedAnalytics__getAn
|
|
|
1783
1783
|
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
|
|
1784
1784
|
};
|
|
1785
1785
|
|
|
1786
|
-
function select$
|
|
1787
|
-
return select$
|
|
1786
|
+
function select$H(luvio, params) {
|
|
1787
|
+
return select$K();
|
|
1788
1788
|
}
|
|
1789
|
-
function getResponseCacheKeys$
|
|
1790
|
-
getTypeCacheKeys$
|
|
1789
|
+
function getResponseCacheKeys$u(storeKeyMap, luvio, resourceParams, response) {
|
|
1790
|
+
getTypeCacheKeys$j(storeKeyMap, luvio, response);
|
|
1791
1791
|
}
|
|
1792
|
-
function ingestSuccess$
|
|
1792
|
+
function ingestSuccess$p(luvio, resourceParams, response) {
|
|
1793
1793
|
const { body } = response;
|
|
1794
|
-
const key = keyBuilderFromType$
|
|
1795
|
-
luvio.storeIngest(key, ingest$
|
|
1794
|
+
const key = keyBuilderFromType$a(luvio, body);
|
|
1795
|
+
luvio.storeIngest(key, ingest$j, body);
|
|
1796
1796
|
const snapshot = luvio.storeLookup({
|
|
1797
1797
|
recordId: key,
|
|
1798
|
-
node: select$
|
|
1798
|
+
node: select$H(),
|
|
1799
1799
|
variables: {},
|
|
1800
1800
|
});
|
|
1801
1801
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1806,7 +1806,7 @@ function ingestSuccess$o(luvio, resourceParams, response) {
|
|
|
1806
1806
|
deepFreeze(snapshot.data);
|
|
1807
1807
|
return snapshot;
|
|
1808
1808
|
}
|
|
1809
|
-
function createResourceRequest$
|
|
1809
|
+
function createResourceRequest$u(config) {
|
|
1810
1810
|
const headers = {};
|
|
1811
1811
|
return {
|
|
1812
1812
|
baseUri: '/services/data/v62.0',
|
|
@@ -1820,7 +1820,7 @@ function createResourceRequest$t(config) {
|
|
|
1820
1820
|
};
|
|
1821
1821
|
}
|
|
1822
1822
|
|
|
1823
|
-
const adapterName$
|
|
1823
|
+
const adapterName$u = 'createAnnotation';
|
|
1824
1824
|
const createAnnotation_ConfigPropertyMetadata = [
|
|
1825
1825
|
generateParamConfigMetadata('anchor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1826
1826
|
generateParamConfigMetadata('annotationTool', true, 2 /* Body */, 0 /* String */),
|
|
@@ -1829,41 +1829,41 @@ const createAnnotation_ConfigPropertyMetadata = [
|
|
|
1829
1829
|
generateParamConfigMetadata('collaborationObject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1830
1830
|
generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
|
|
1831
1831
|
];
|
|
1832
|
-
const createAnnotation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1833
|
-
const createResourceParams$
|
|
1834
|
-
function typeCheckConfig$
|
|
1832
|
+
const createAnnotation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$u, createAnnotation_ConfigPropertyMetadata);
|
|
1833
|
+
const createResourceParams$u = /*#__PURE__*/ createResourceParams$w(createAnnotation_ConfigPropertyMetadata);
|
|
1834
|
+
function typeCheckConfig$u(untrustedConfig) {
|
|
1835
1835
|
const config = {};
|
|
1836
|
-
typeCheckConfig$
|
|
1836
|
+
typeCheckConfig$w(untrustedConfig, config, createAnnotation_ConfigPropertyMetadata);
|
|
1837
1837
|
const untrustedConfig_anchor = untrustedConfig.anchor;
|
|
1838
1838
|
config.anchor = untrustedConfig_anchor;
|
|
1839
1839
|
const untrustedConfig_collaborationObject = untrustedConfig.collaborationObject;
|
|
1840
1840
|
config.collaborationObject = untrustedConfig_collaborationObject;
|
|
1841
1841
|
return config;
|
|
1842
1842
|
}
|
|
1843
|
-
function validateAdapterConfig$
|
|
1843
|
+
function validateAdapterConfig$u(untrustedConfig, configPropertyNames) {
|
|
1844
1844
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1845
1845
|
return null;
|
|
1846
1846
|
}
|
|
1847
1847
|
if (process.env.NODE_ENV !== 'production') {
|
|
1848
1848
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1849
1849
|
}
|
|
1850
|
-
const config = typeCheckConfig$
|
|
1850
|
+
const config = typeCheckConfig$u(untrustedConfig);
|
|
1851
1851
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1852
1852
|
return null;
|
|
1853
1853
|
}
|
|
1854
1854
|
return config;
|
|
1855
1855
|
}
|
|
1856
|
-
function buildNetworkSnapshot$
|
|
1857
|
-
const resourceParams = createResourceParams$
|
|
1858
|
-
const request = createResourceRequest$
|
|
1856
|
+
function buildNetworkSnapshot$u(luvio, config, options) {
|
|
1857
|
+
const resourceParams = createResourceParams$u(config);
|
|
1858
|
+
const request = createResourceRequest$u(resourceParams);
|
|
1859
1859
|
return luvio.dispatchResourceRequest(request, options)
|
|
1860
1860
|
.then((response) => {
|
|
1861
1861
|
return luvio.handleSuccessResponse(() => {
|
|
1862
|
-
const snapshot = ingestSuccess$
|
|
1862
|
+
const snapshot = ingestSuccess$p(luvio, resourceParams, response);
|
|
1863
1863
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1864
1864
|
}, () => {
|
|
1865
1865
|
const cache = new StoreKeyMap();
|
|
1866
|
-
getResponseCacheKeys$
|
|
1866
|
+
getResponseCacheKeys$u(cache, luvio, resourceParams, response.body);
|
|
1867
1867
|
return cache;
|
|
1868
1868
|
});
|
|
1869
1869
|
}, (response) => {
|
|
@@ -1873,18 +1873,18 @@ function buildNetworkSnapshot$t(luvio, config, options) {
|
|
|
1873
1873
|
}
|
|
1874
1874
|
const createAnnotationAdapterFactory = (luvio) => {
|
|
1875
1875
|
return function createAnnotation(untrustedConfig) {
|
|
1876
|
-
const config = validateAdapterConfig$
|
|
1876
|
+
const config = validateAdapterConfig$u(untrustedConfig, createAnnotation_ConfigPropertyNames);
|
|
1877
1877
|
// Invalid or incomplete config
|
|
1878
1878
|
if (config === null) {
|
|
1879
1879
|
throw new Error('Invalid config for "createAnnotation"');
|
|
1880
1880
|
}
|
|
1881
|
-
return buildNetworkSnapshot$
|
|
1881
|
+
return buildNetworkSnapshot$u(luvio, config);
|
|
1882
1882
|
};
|
|
1883
1883
|
};
|
|
1884
1884
|
|
|
1885
|
-
const TTL$
|
|
1886
|
-
const VERSION$
|
|
1887
|
-
function validate$
|
|
1885
|
+
const TTL$7 = 5000;
|
|
1886
|
+
const VERSION$h = "505a83d97fefa7ce68ec6512264b0543";
|
|
1887
|
+
function validate$p(obj, path = 'SlackAppInfoRepresentation') {
|
|
1888
1888
|
const v_error = (() => {
|
|
1889
1889
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1890
1890
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1924,14 +1924,14 @@ function validate$o(obj, path = 'SlackAppInfoRepresentation') {
|
|
|
1924
1924
|
})();
|
|
1925
1925
|
return v_error === undefined ? null : v_error;
|
|
1926
1926
|
}
|
|
1927
|
-
const RepresentationType$
|
|
1928
|
-
function normalize$
|
|
1927
|
+
const RepresentationType$i = 'SlackAppInfoRepresentation';
|
|
1928
|
+
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
1929
1929
|
return input;
|
|
1930
1930
|
}
|
|
1931
|
-
const select$
|
|
1931
|
+
const select$G = function SlackAppInfoRepresentationSelect() {
|
|
1932
1932
|
return {
|
|
1933
1933
|
kind: 'Fragment',
|
|
1934
|
-
version: VERSION$
|
|
1934
|
+
version: VERSION$h,
|
|
1935
1935
|
private: [],
|
|
1936
1936
|
selections: [
|
|
1937
1937
|
{
|
|
@@ -1958,7 +1958,7 @@ const select$E = function SlackAppInfoRepresentationSelect() {
|
|
|
1958
1958
|
]
|
|
1959
1959
|
};
|
|
1960
1960
|
};
|
|
1961
|
-
function equals$
|
|
1961
|
+
function equals$h(existing, incoming) {
|
|
1962
1962
|
const existing_isSlackAppAuthorized = existing.isSlackAppAuthorized;
|
|
1963
1963
|
const incoming_isSlackAppAuthorized = incoming.isSlackAppAuthorized;
|
|
1964
1964
|
if (!(existing_isSlackAppAuthorized === incoming_isSlackAppAuthorized)) {
|
|
@@ -1991,44 +1991,44 @@ function equals$g(existing, incoming) {
|
|
|
1991
1991
|
}
|
|
1992
1992
|
return true;
|
|
1993
1993
|
}
|
|
1994
|
-
const ingest$
|
|
1994
|
+
const ingest$h = function SlackAppInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1995
1995
|
if (process.env.NODE_ENV !== 'production') {
|
|
1996
|
-
const validateError = validate$
|
|
1996
|
+
const validateError = validate$p(input);
|
|
1997
1997
|
if (validateError !== null) {
|
|
1998
1998
|
throw validateError;
|
|
1999
1999
|
}
|
|
2000
2000
|
}
|
|
2001
2001
|
const key = path.fullPath;
|
|
2002
|
-
const ttlToUse = TTL$
|
|
2003
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2002
|
+
const ttlToUse = TTL$7;
|
|
2003
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "UnifiedAnalytics", VERSION$h, RepresentationType$i, equals$h);
|
|
2004
2004
|
return createLink(key);
|
|
2005
2005
|
};
|
|
2006
|
-
function getTypeCacheKeys$
|
|
2006
|
+
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
2007
2007
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2008
2008
|
const rootKey = fullPathFactory();
|
|
2009
2009
|
rootKeySet.set(rootKey, {
|
|
2010
2010
|
namespace: keyPrefix,
|
|
2011
|
-
representationName: RepresentationType$
|
|
2011
|
+
representationName: RepresentationType$i,
|
|
2012
2012
|
mergeable: false
|
|
2013
2013
|
});
|
|
2014
2014
|
}
|
|
2015
2015
|
|
|
2016
|
-
function select$
|
|
2017
|
-
return select$
|
|
2016
|
+
function select$F(luvio, params) {
|
|
2017
|
+
return select$G();
|
|
2018
2018
|
}
|
|
2019
|
-
function keyBuilder$
|
|
2019
|
+
function keyBuilder$F(luvio, params) {
|
|
2020
2020
|
return keyPrefix + '::SlackAppInfoRepresentation:(' + ')';
|
|
2021
2021
|
}
|
|
2022
|
-
function getResponseCacheKeys$
|
|
2023
|
-
getTypeCacheKeys$
|
|
2022
|
+
function getResponseCacheKeys$t(storeKeyMap, luvio, resourceParams, response) {
|
|
2023
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response, () => keyBuilder$F());
|
|
2024
2024
|
}
|
|
2025
|
-
function ingestSuccess$
|
|
2025
|
+
function ingestSuccess$o(luvio, resourceParams, response, snapshotRefresh) {
|
|
2026
2026
|
const { body } = response;
|
|
2027
|
-
const key = keyBuilder$
|
|
2028
|
-
luvio.storeIngest(key, ingest$
|
|
2027
|
+
const key = keyBuilder$F();
|
|
2028
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
2029
2029
|
const snapshot = luvio.storeLookup({
|
|
2030
2030
|
recordId: key,
|
|
2031
|
-
node: select$
|
|
2031
|
+
node: select$F(),
|
|
2032
2032
|
variables: {},
|
|
2033
2033
|
}, snapshotRefresh);
|
|
2034
2034
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2040,18 +2040,18 @@ function ingestSuccess$n(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2040
2040
|
return snapshot;
|
|
2041
2041
|
}
|
|
2042
2042
|
function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
2043
|
-
const key = keyBuilder$
|
|
2043
|
+
const key = keyBuilder$F();
|
|
2044
2044
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2045
2045
|
const storeMetadataParams = {
|
|
2046
|
-
ttl: TTL$
|
|
2046
|
+
ttl: TTL$7,
|
|
2047
2047
|
namespace: keyPrefix,
|
|
2048
|
-
version: VERSION$
|
|
2049
|
-
representationName: RepresentationType$
|
|
2048
|
+
version: VERSION$h,
|
|
2049
|
+
representationName: RepresentationType$i
|
|
2050
2050
|
};
|
|
2051
2051
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2052
2052
|
return errorSnapshot;
|
|
2053
2053
|
}
|
|
2054
|
-
function createResourceRequest$
|
|
2054
|
+
function createResourceRequest$t(config) {
|
|
2055
2055
|
const headers = {};
|
|
2056
2056
|
return {
|
|
2057
2057
|
baseUri: '/services/data/v62.0',
|
|
@@ -2065,57 +2065,57 @@ function createResourceRequest$s(config) {
|
|
|
2065
2065
|
};
|
|
2066
2066
|
}
|
|
2067
2067
|
|
|
2068
|
-
const adapterName$
|
|
2068
|
+
const adapterName$t = 'getSlackAppInfo';
|
|
2069
2069
|
const getSlackAppInfo_ConfigPropertyMetadata = [];
|
|
2070
|
-
const getSlackAppInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2071
|
-
const createResourceParams$
|
|
2072
|
-
function keyBuilder$
|
|
2073
|
-
createResourceParams$
|
|
2074
|
-
return keyBuilder$
|
|
2070
|
+
const getSlackAppInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, getSlackAppInfo_ConfigPropertyMetadata);
|
|
2071
|
+
const createResourceParams$t = /*#__PURE__*/ createResourceParams$w(getSlackAppInfo_ConfigPropertyMetadata);
|
|
2072
|
+
function keyBuilder$E(luvio, config) {
|
|
2073
|
+
createResourceParams$t(config);
|
|
2074
|
+
return keyBuilder$F();
|
|
2075
2075
|
}
|
|
2076
|
-
function typeCheckConfig$
|
|
2076
|
+
function typeCheckConfig$t(untrustedConfig) {
|
|
2077
2077
|
const config = {};
|
|
2078
2078
|
return config;
|
|
2079
2079
|
}
|
|
2080
|
-
function validateAdapterConfig$
|
|
2080
|
+
function validateAdapterConfig$t(untrustedConfig, configPropertyNames) {
|
|
2081
2081
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2082
2082
|
return null;
|
|
2083
2083
|
}
|
|
2084
2084
|
if (process.env.NODE_ENV !== 'production') {
|
|
2085
2085
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2086
2086
|
}
|
|
2087
|
-
const config = typeCheckConfig$
|
|
2087
|
+
const config = typeCheckConfig$t();
|
|
2088
2088
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2089
2089
|
return null;
|
|
2090
2090
|
}
|
|
2091
2091
|
return config;
|
|
2092
2092
|
}
|
|
2093
2093
|
function adapterFragment$c(luvio, config) {
|
|
2094
|
-
createResourceParams$
|
|
2095
|
-
return select$
|
|
2094
|
+
createResourceParams$t(config);
|
|
2095
|
+
return select$F();
|
|
2096
2096
|
}
|
|
2097
2097
|
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
2098
|
-
const snapshot = ingestSuccess$
|
|
2098
|
+
const snapshot = ingestSuccess$o(luvio, resourceParams, response, {
|
|
2099
2099
|
config,
|
|
2100
|
-
resolve: () => buildNetworkSnapshot$
|
|
2100
|
+
resolve: () => buildNetworkSnapshot$t(luvio, config, snapshotRefreshOptions)
|
|
2101
2101
|
});
|
|
2102
2102
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2103
2103
|
}
|
|
2104
2104
|
function onFetchResponseError$c(luvio, config, resourceParams, response) {
|
|
2105
2105
|
const snapshot = ingestError$c(luvio, resourceParams, response, {
|
|
2106
2106
|
config,
|
|
2107
|
-
resolve: () => buildNetworkSnapshot$
|
|
2107
|
+
resolve: () => buildNetworkSnapshot$t(luvio, config, snapshotRefreshOptions)
|
|
2108
2108
|
});
|
|
2109
2109
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2110
2110
|
}
|
|
2111
|
-
function buildNetworkSnapshot$
|
|
2112
|
-
const resourceParams = createResourceParams$
|
|
2113
|
-
const request = createResourceRequest$
|
|
2111
|
+
function buildNetworkSnapshot$t(luvio, config, options) {
|
|
2112
|
+
const resourceParams = createResourceParams$t(config);
|
|
2113
|
+
const request = createResourceRequest$t();
|
|
2114
2114
|
return luvio.dispatchResourceRequest(request, options)
|
|
2115
2115
|
.then((response) => {
|
|
2116
2116
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => {
|
|
2117
2117
|
const cache = new StoreKeyMap();
|
|
2118
|
-
getResponseCacheKeys$
|
|
2118
|
+
getResponseCacheKeys$t(cache, luvio, resourceParams, response.body);
|
|
2119
2119
|
return cache;
|
|
2120
2120
|
});
|
|
2121
2121
|
}, (response) => {
|
|
@@ -2123,23 +2123,23 @@ function buildNetworkSnapshot$s(luvio, config, options) {
|
|
|
2123
2123
|
});
|
|
2124
2124
|
}
|
|
2125
2125
|
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
2126
|
-
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
2126
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$t, undefined, false);
|
|
2127
2127
|
}
|
|
2128
2128
|
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
2129
2129
|
const { luvio, config } = context;
|
|
2130
2130
|
const selector = {
|
|
2131
|
-
recordId: keyBuilder$
|
|
2131
|
+
recordId: keyBuilder$E(luvio, config),
|
|
2132
2132
|
node: adapterFragment$c(luvio, config),
|
|
2133
2133
|
variables: {},
|
|
2134
2134
|
};
|
|
2135
2135
|
const cacheSnapshot = storeLookup(selector, {
|
|
2136
2136
|
config,
|
|
2137
|
-
resolve: () => buildNetworkSnapshot$
|
|
2137
|
+
resolve: () => buildNetworkSnapshot$t(luvio, config, snapshotRefreshOptions)
|
|
2138
2138
|
});
|
|
2139
2139
|
return cacheSnapshot;
|
|
2140
2140
|
}
|
|
2141
2141
|
const getSlackAppInfoAdapterFactory = (luvio) => function UnifiedAnalytics__getSlackAppInfo(untrustedConfig, requestContext) {
|
|
2142
|
-
const config = validateAdapterConfig$
|
|
2142
|
+
const config = validateAdapterConfig$t(untrustedConfig, getSlackAppInfo_ConfigPropertyNames);
|
|
2143
2143
|
// Invalid or incomplete config
|
|
2144
2144
|
if (config === null) {
|
|
2145
2145
|
return null;
|
|
@@ -2148,7 +2148,7 @@ const getSlackAppInfoAdapterFactory = (luvio) => function UnifiedAnalytics__getS
|
|
|
2148
2148
|
buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
|
|
2149
2149
|
};
|
|
2150
2150
|
|
|
2151
|
-
function validate$
|
|
2151
|
+
function validate$o(obj, path = 'BaseAnalyticsRepresentation') {
|
|
2152
2152
|
const v_error = (() => {
|
|
2153
2153
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2154
2154
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2183,8 +2183,8 @@ function validate$n(obj, path = 'BaseAnalyticsRepresentation') {
|
|
|
2183
2183
|
return v_error === undefined ? null : v_error;
|
|
2184
2184
|
}
|
|
2185
2185
|
|
|
2186
|
-
function validate$
|
|
2187
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
2186
|
+
function validate$n(obj, path = 'AnalyticsAssetsQueryResultsWorkspaceRepresentation') {
|
|
2187
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$o(obj, path);
|
|
2188
2188
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
2189
2189
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
2190
2190
|
}
|
|
@@ -2196,8 +2196,8 @@ function validate$m(obj, path = 'AnalyticsAssetsQueryResultsWorkspaceRepresentat
|
|
|
2196
2196
|
return v_error === undefined ? null : v_error;
|
|
2197
2197
|
}
|
|
2198
2198
|
|
|
2199
|
-
function validate$
|
|
2200
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
2199
|
+
function validate$m(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation') {
|
|
2200
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$o(obj, path);
|
|
2201
2201
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
2202
2202
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
2203
2203
|
}
|
|
@@ -2238,7 +2238,7 @@ function validate$l(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation')
|
|
|
2238
2238
|
const path_workspace = path + '.workspace';
|
|
2239
2239
|
let obj_workspace_union0 = null;
|
|
2240
2240
|
const obj_workspace_union0_error = (() => {
|
|
2241
|
-
const referencepath_workspaceValidationError = validate$
|
|
2241
|
+
const referencepath_workspaceValidationError = validate$n(obj_workspace, path_workspace);
|
|
2242
2242
|
if (referencepath_workspaceValidationError !== null) {
|
|
2243
2243
|
let message = 'Object doesn\'t match AnalyticsAssetsQueryResultsWorkspaceRepresentation (at "' + path_workspace + '")\n';
|
|
2244
2244
|
message += referencepath_workspaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2268,9 +2268,9 @@ function validate$l(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation')
|
|
|
2268
2268
|
return v_error === undefined ? null : v_error;
|
|
2269
2269
|
}
|
|
2270
2270
|
|
|
2271
|
-
const TTL$
|
|
2272
|
-
const VERSION$
|
|
2273
|
-
function validate$
|
|
2271
|
+
const TTL$6 = 500;
|
|
2272
|
+
const VERSION$g = "ed60d9cca169a3e5ed897c67d11a23db";
|
|
2273
|
+
function validate$l(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
|
|
2274
2274
|
const v_error = (() => {
|
|
2275
2275
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2276
2276
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2283,7 +2283,7 @@ function validate$k(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
|
|
|
2283
2283
|
for (let i = 0; i < obj_items.length; i++) {
|
|
2284
2284
|
const obj_items_item = obj_items[i];
|
|
2285
2285
|
const path_items_item = path_items + '[' + i + ']';
|
|
2286
|
-
const referencepath_items_itemValidationError = validate$
|
|
2286
|
+
const referencepath_items_itemValidationError = validate$m(obj_items_item, path_items_item);
|
|
2287
2287
|
if (referencepath_items_itemValidationError !== null) {
|
|
2288
2288
|
let message = 'Object doesn\'t match AnalyticsAssetsQueryResultsItemRepresentation (at "' + path_items_item + '")\n';
|
|
2289
2289
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2308,68 +2308,68 @@ function validate$k(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
|
|
|
2308
2308
|
})();
|
|
2309
2309
|
return v_error === undefined ? null : v_error;
|
|
2310
2310
|
}
|
|
2311
|
-
const RepresentationType$
|
|
2312
|
-
function keyBuilder$
|
|
2313
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2311
|
+
const RepresentationType$h = 'AnalyticsAssetsQueryResultsRepresentation';
|
|
2312
|
+
function keyBuilder$D(luvio, config) {
|
|
2313
|
+
return keyPrefix + '::' + RepresentationType$h + ':' + config.searchId;
|
|
2314
2314
|
}
|
|
2315
|
-
function keyBuilderFromType$
|
|
2315
|
+
function keyBuilderFromType$9(luvio, object) {
|
|
2316
2316
|
const keyParams = {
|
|
2317
2317
|
searchId: object.queryKey
|
|
2318
2318
|
};
|
|
2319
|
-
return keyBuilder$
|
|
2319
|
+
return keyBuilder$D(luvio, keyParams);
|
|
2320
2320
|
}
|
|
2321
|
-
function normalize$
|
|
2321
|
+
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
2322
2322
|
return input;
|
|
2323
2323
|
}
|
|
2324
|
-
const select$
|
|
2324
|
+
const select$E = function AnalyticsAssetsQueryResultsRepresentationSelect() {
|
|
2325
2325
|
return {
|
|
2326
2326
|
kind: 'Fragment',
|
|
2327
|
-
version: VERSION$
|
|
2327
|
+
version: VERSION$g,
|
|
2328
2328
|
private: [],
|
|
2329
2329
|
opaque: true
|
|
2330
2330
|
};
|
|
2331
2331
|
};
|
|
2332
|
-
function equals$
|
|
2332
|
+
function equals$g(existing, incoming) {
|
|
2333
2333
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2334
2334
|
return false;
|
|
2335
2335
|
}
|
|
2336
2336
|
return true;
|
|
2337
2337
|
}
|
|
2338
|
-
const ingest$
|
|
2338
|
+
const ingest$g = function AnalyticsAssetsQueryResultsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2339
2339
|
if (process.env.NODE_ENV !== 'production') {
|
|
2340
|
-
const validateError = validate$
|
|
2340
|
+
const validateError = validate$l(input);
|
|
2341
2341
|
if (validateError !== null) {
|
|
2342
2342
|
throw validateError;
|
|
2343
2343
|
}
|
|
2344
2344
|
}
|
|
2345
|
-
const key = keyBuilderFromType$
|
|
2346
|
-
const ttlToUse = TTL$
|
|
2347
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2345
|
+
const key = keyBuilderFromType$9(luvio, input);
|
|
2346
|
+
const ttlToUse = TTL$6;
|
|
2347
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "UnifiedAnalytics", VERSION$g, RepresentationType$h, equals$g);
|
|
2348
2348
|
return createLink(key);
|
|
2349
2349
|
};
|
|
2350
|
-
function getTypeCacheKeys$
|
|
2350
|
+
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
2351
2351
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2352
|
-
const rootKey = keyBuilderFromType$
|
|
2352
|
+
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
2353
2353
|
rootKeySet.set(rootKey, {
|
|
2354
2354
|
namespace: keyPrefix,
|
|
2355
|
-
representationName: RepresentationType$
|
|
2355
|
+
representationName: RepresentationType$h,
|
|
2356
2356
|
mergeable: false
|
|
2357
2357
|
});
|
|
2358
2358
|
}
|
|
2359
2359
|
|
|
2360
|
-
function select$
|
|
2361
|
-
return select$
|
|
2360
|
+
function select$D(luvio, params) {
|
|
2361
|
+
return select$E();
|
|
2362
2362
|
}
|
|
2363
|
-
function getResponseCacheKeys$
|
|
2364
|
-
getTypeCacheKeys$
|
|
2363
|
+
function getResponseCacheKeys$s(storeKeyMap, luvio, resourceParams, response) {
|
|
2364
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
2365
2365
|
}
|
|
2366
|
-
function ingestSuccess$
|
|
2366
|
+
function ingestSuccess$n(luvio, resourceParams, response) {
|
|
2367
2367
|
const { body } = response;
|
|
2368
|
-
const key = keyBuilderFromType$
|
|
2369
|
-
luvio.storeIngest(key, ingest$
|
|
2368
|
+
const key = keyBuilderFromType$9(luvio, body);
|
|
2369
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
2370
2370
|
const snapshot = luvio.storeLookup({
|
|
2371
2371
|
recordId: key,
|
|
2372
|
-
node: select$
|
|
2372
|
+
node: select$D(),
|
|
2373
2373
|
variables: {},
|
|
2374
2374
|
});
|
|
2375
2375
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2380,7 +2380,7 @@ function ingestSuccess$m(luvio, resourceParams, response) {
|
|
|
2380
2380
|
deepFreeze(snapshot.data);
|
|
2381
2381
|
return snapshot;
|
|
2382
2382
|
}
|
|
2383
|
-
function createResourceRequest$
|
|
2383
|
+
function createResourceRequest$s(config) {
|
|
2384
2384
|
const headers = {};
|
|
2385
2385
|
return {
|
|
2386
2386
|
baseUri: '/services/data/v62.0',
|
|
@@ -2394,7 +2394,7 @@ function createResourceRequest$r(config) {
|
|
|
2394
2394
|
};
|
|
2395
2395
|
}
|
|
2396
2396
|
|
|
2397
|
-
const adapterName$
|
|
2397
|
+
const adapterName$s = 'queryAssets';
|
|
2398
2398
|
const queryAssets_ConfigPropertyMetadata = [
|
|
2399
2399
|
generateParamConfigMetadata('filters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2400
2400
|
generateParamConfigMetadata('limit', false, 2 /* Body */, 3 /* Integer */),
|
|
@@ -2403,11 +2403,11 @@ const queryAssets_ConfigPropertyMetadata = [
|
|
|
2403
2403
|
generateParamConfigMetadata('searchTerm', true, 2 /* Body */, 0 /* String */),
|
|
2404
2404
|
generateParamConfigMetadata('sortDirection', false, 2 /* Body */, 0 /* String */),
|
|
2405
2405
|
];
|
|
2406
|
-
const queryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2407
|
-
const createResourceParams$
|
|
2408
|
-
function typeCheckConfig$
|
|
2406
|
+
const queryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$s, queryAssets_ConfigPropertyMetadata);
|
|
2407
|
+
const createResourceParams$s = /*#__PURE__*/ createResourceParams$w(queryAssets_ConfigPropertyMetadata);
|
|
2408
|
+
function typeCheckConfig$s(untrustedConfig) {
|
|
2409
2409
|
const config = {};
|
|
2410
|
-
typeCheckConfig$
|
|
2410
|
+
typeCheckConfig$w(untrustedConfig, config, queryAssets_ConfigPropertyMetadata);
|
|
2411
2411
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
2412
2412
|
if (untrustedIsObject(untrustedConfig_filters)) {
|
|
2413
2413
|
const untrustedConfig_filters_object = {};
|
|
@@ -2425,30 +2425,30 @@ function typeCheckConfig$r(untrustedConfig) {
|
|
|
2425
2425
|
}
|
|
2426
2426
|
return config;
|
|
2427
2427
|
}
|
|
2428
|
-
function validateAdapterConfig$
|
|
2428
|
+
function validateAdapterConfig$s(untrustedConfig, configPropertyNames) {
|
|
2429
2429
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2430
2430
|
return null;
|
|
2431
2431
|
}
|
|
2432
2432
|
if (process.env.NODE_ENV !== 'production') {
|
|
2433
2433
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2434
2434
|
}
|
|
2435
|
-
const config = typeCheckConfig$
|
|
2435
|
+
const config = typeCheckConfig$s(untrustedConfig);
|
|
2436
2436
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2437
2437
|
return null;
|
|
2438
2438
|
}
|
|
2439
2439
|
return config;
|
|
2440
2440
|
}
|
|
2441
|
-
function buildNetworkSnapshot$
|
|
2442
|
-
const resourceParams = createResourceParams$
|
|
2443
|
-
const request = createResourceRequest$
|
|
2441
|
+
function buildNetworkSnapshot$s(luvio, config, options) {
|
|
2442
|
+
const resourceParams = createResourceParams$s(config);
|
|
2443
|
+
const request = createResourceRequest$s(resourceParams);
|
|
2444
2444
|
return luvio.dispatchResourceRequest(request, options)
|
|
2445
2445
|
.then((response) => {
|
|
2446
2446
|
return luvio.handleSuccessResponse(() => {
|
|
2447
|
-
const snapshot = ingestSuccess$
|
|
2447
|
+
const snapshot = ingestSuccess$n(luvio, resourceParams, response);
|
|
2448
2448
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2449
2449
|
}, () => {
|
|
2450
2450
|
const cache = new StoreKeyMap();
|
|
2451
|
-
getResponseCacheKeys$
|
|
2451
|
+
getResponseCacheKeys$s(cache, luvio, resourceParams, response.body);
|
|
2452
2452
|
return cache;
|
|
2453
2453
|
});
|
|
2454
2454
|
}, (response) => {
|
|
@@ -2458,17 +2458,17 @@ function buildNetworkSnapshot$r(luvio, config, options) {
|
|
|
2458
2458
|
}
|
|
2459
2459
|
const queryAssetsAdapterFactory = (luvio) => {
|
|
2460
2460
|
return function queryAssets(untrustedConfig) {
|
|
2461
|
-
const config = validateAdapterConfig$
|
|
2461
|
+
const config = validateAdapterConfig$s(untrustedConfig, queryAssets_ConfigPropertyNames);
|
|
2462
2462
|
// Invalid or incomplete config
|
|
2463
2463
|
if (config === null) {
|
|
2464
2464
|
throw new Error('Invalid config for "queryAssets"');
|
|
2465
2465
|
}
|
|
2466
|
-
return buildNetworkSnapshot$
|
|
2466
|
+
return buildNetworkSnapshot$s(luvio, config);
|
|
2467
2467
|
};
|
|
2468
2468
|
};
|
|
2469
2469
|
|
|
2470
|
-
const VERSION$
|
|
2471
|
-
function validate$
|
|
2470
|
+
const VERSION$f = "d4e4a9f9b260b72ce8e09fac1746cd21";
|
|
2471
|
+
function validate$k(obj, path = 'DashboardRepresentation') {
|
|
2472
2472
|
const v_error = (() => {
|
|
2473
2473
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2474
2474
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2536,6 +2536,22 @@ function validate$j(obj, path = 'DashboardRepresentation') {
|
|
|
2536
2536
|
if (typeof obj_name !== 'string') {
|
|
2537
2537
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
2538
2538
|
}
|
|
2539
|
+
if (obj.style !== undefined) {
|
|
2540
|
+
const obj_style = obj.style;
|
|
2541
|
+
const path_style = path + '.style';
|
|
2542
|
+
if (typeof obj_style !== 'object' || ArrayIsArray(obj_style) || obj_style === null) {
|
|
2543
|
+
return new TypeError('Expected "object" but received "' + typeof obj_style + '" (at "' + path_style + '")');
|
|
2544
|
+
}
|
|
2545
|
+
const obj_style_keys = ObjectKeys(obj_style);
|
|
2546
|
+
for (let i = 0; i < obj_style_keys.length; i++) {
|
|
2547
|
+
const key = obj_style_keys[i];
|
|
2548
|
+
const obj_style_prop = obj_style[key];
|
|
2549
|
+
const path_style_prop = path_style + '["' + key + '"]';
|
|
2550
|
+
if (obj_style_prop === undefined) {
|
|
2551
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_style_prop + '" (at "' + path_style_prop + '")');
|
|
2552
|
+
}
|
|
2553
|
+
}
|
|
2554
|
+
}
|
|
2539
2555
|
const obj_url = obj.url;
|
|
2540
2556
|
const path_url = path + '.url';
|
|
2541
2557
|
if (typeof obj_url !== 'string') {
|
|
@@ -2565,57 +2581,57 @@ function validate$j(obj, path = 'DashboardRepresentation') {
|
|
|
2565
2581
|
})();
|
|
2566
2582
|
return v_error === undefined ? null : v_error;
|
|
2567
2583
|
}
|
|
2568
|
-
const RepresentationType$
|
|
2569
|
-
function keyBuilder$
|
|
2570
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2584
|
+
const RepresentationType$g = 'DashboardRepresentation';
|
|
2585
|
+
function keyBuilder$C(luvio, config) {
|
|
2586
|
+
return keyPrefix + '::' + RepresentationType$g + ':' + config.name;
|
|
2571
2587
|
}
|
|
2572
|
-
function keyBuilderFromType$
|
|
2588
|
+
function keyBuilderFromType$8(luvio, object) {
|
|
2573
2589
|
const keyParams = {
|
|
2574
2590
|
name: object.cacheableKey
|
|
2575
2591
|
};
|
|
2576
|
-
return keyBuilder$
|
|
2592
|
+
return keyBuilder$C(luvio, keyParams);
|
|
2577
2593
|
}
|
|
2578
|
-
function normalize$
|
|
2594
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
2579
2595
|
return input;
|
|
2580
2596
|
}
|
|
2581
|
-
const select$
|
|
2597
|
+
const select$C = function DashboardRepresentationSelect() {
|
|
2582
2598
|
return {
|
|
2583
2599
|
kind: 'Fragment',
|
|
2584
|
-
version: VERSION$
|
|
2600
|
+
version: VERSION$f,
|
|
2585
2601
|
private: [],
|
|
2586
2602
|
opaque: true
|
|
2587
2603
|
};
|
|
2588
2604
|
};
|
|
2589
|
-
function equals$
|
|
2605
|
+
function equals$f(existing, incoming) {
|
|
2590
2606
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2591
2607
|
return false;
|
|
2592
2608
|
}
|
|
2593
2609
|
return true;
|
|
2594
2610
|
}
|
|
2595
|
-
const ingest$
|
|
2611
|
+
const ingest$f = function DashboardRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2596
2612
|
if (process.env.NODE_ENV !== 'production') {
|
|
2597
|
-
const validateError = validate$
|
|
2613
|
+
const validateError = validate$k(input);
|
|
2598
2614
|
if (validateError !== null) {
|
|
2599
2615
|
throw validateError;
|
|
2600
2616
|
}
|
|
2601
2617
|
}
|
|
2602
|
-
const key = keyBuilderFromType$
|
|
2618
|
+
const key = keyBuilderFromType$8(luvio, input);
|
|
2603
2619
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2604
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2620
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "UnifiedAnalytics", VERSION$f, RepresentationType$g, equals$f);
|
|
2605
2621
|
return createLink(key);
|
|
2606
2622
|
};
|
|
2607
|
-
function getTypeCacheKeys$
|
|
2623
|
+
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
2608
2624
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2609
|
-
const rootKey = keyBuilderFromType$
|
|
2625
|
+
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
2610
2626
|
rootKeySet.set(rootKey, {
|
|
2611
2627
|
namespace: keyPrefix,
|
|
2612
|
-
representationName: RepresentationType$
|
|
2628
|
+
representationName: RepresentationType$g,
|
|
2613
2629
|
mergeable: false
|
|
2614
2630
|
});
|
|
2615
2631
|
}
|
|
2616
2632
|
|
|
2617
|
-
const VERSION$
|
|
2618
|
-
function validate$
|
|
2633
|
+
const VERSION$e = "962823130e6a9315240ef0e0f0c5f757";
|
|
2634
|
+
function validate$j(obj, path = 'DashboardCollectionRepresentation') {
|
|
2619
2635
|
const v_error = (() => {
|
|
2620
2636
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2621
2637
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2635,14 +2651,14 @@ function validate$i(obj, path = 'DashboardCollectionRepresentation') {
|
|
|
2635
2651
|
})();
|
|
2636
2652
|
return v_error === undefined ? null : v_error;
|
|
2637
2653
|
}
|
|
2638
|
-
const RepresentationType$
|
|
2639
|
-
function normalize$
|
|
2654
|
+
const RepresentationType$f = 'DashboardCollectionRepresentation';
|
|
2655
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
2640
2656
|
const input_dashboards = input.dashboards;
|
|
2641
2657
|
const input_dashboards_id = path.fullPath + '__dashboards';
|
|
2642
2658
|
for (let i = 0; i < input_dashboards.length; i++) {
|
|
2643
2659
|
const input_dashboards_item = input_dashboards[i];
|
|
2644
2660
|
let input_dashboards_item_id = input_dashboards_id + '__' + i;
|
|
2645
|
-
input_dashboards[i] = ingest$
|
|
2661
|
+
input_dashboards[i] = ingest$f(input_dashboards_item, {
|
|
2646
2662
|
fullPath: input_dashboards_item_id,
|
|
2647
2663
|
propertyName: i,
|
|
2648
2664
|
parent: {
|
|
@@ -2655,22 +2671,22 @@ function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
|
2655
2671
|
}
|
|
2656
2672
|
return input;
|
|
2657
2673
|
}
|
|
2658
|
-
const select$
|
|
2674
|
+
const select$B = function DashboardCollectionRepresentationSelect() {
|
|
2659
2675
|
return {
|
|
2660
2676
|
kind: 'Fragment',
|
|
2661
|
-
version: VERSION$
|
|
2677
|
+
version: VERSION$e,
|
|
2662
2678
|
private: [],
|
|
2663
2679
|
selections: [
|
|
2664
2680
|
{
|
|
2665
2681
|
name: 'dashboards',
|
|
2666
2682
|
kind: 'Link',
|
|
2667
2683
|
plural: true,
|
|
2668
|
-
fragment: select$
|
|
2684
|
+
fragment: select$C()
|
|
2669
2685
|
}
|
|
2670
2686
|
]
|
|
2671
2687
|
};
|
|
2672
2688
|
};
|
|
2673
|
-
function equals$
|
|
2689
|
+
function equals$e(existing, incoming) {
|
|
2674
2690
|
const existing_dashboards = existing.dashboards;
|
|
2675
2691
|
const incoming_dashboards = incoming.dashboards;
|
|
2676
2692
|
const equals_dashboards_items = equalsArray(existing_dashboards, incoming_dashboards, (existing_dashboards_item, incoming_dashboards_item) => {
|
|
@@ -2683,48 +2699,48 @@ function equals$d(existing, incoming) {
|
|
|
2683
2699
|
}
|
|
2684
2700
|
return true;
|
|
2685
2701
|
}
|
|
2686
|
-
const ingest$
|
|
2702
|
+
const ingest$e = function DashboardCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2687
2703
|
if (process.env.NODE_ENV !== 'production') {
|
|
2688
|
-
const validateError = validate$
|
|
2704
|
+
const validateError = validate$j(input);
|
|
2689
2705
|
if (validateError !== null) {
|
|
2690
2706
|
throw validateError;
|
|
2691
2707
|
}
|
|
2692
2708
|
}
|
|
2693
2709
|
const key = path.fullPath;
|
|
2694
2710
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2695
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2711
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "UnifiedAnalytics", VERSION$e, RepresentationType$f, equals$e);
|
|
2696
2712
|
return createLink(key);
|
|
2697
2713
|
};
|
|
2698
|
-
function getTypeCacheKeys$
|
|
2714
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
2699
2715
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2700
2716
|
const rootKey = fullPathFactory();
|
|
2701
2717
|
rootKeySet.set(rootKey, {
|
|
2702
2718
|
namespace: keyPrefix,
|
|
2703
|
-
representationName: RepresentationType$
|
|
2719
|
+
representationName: RepresentationType$f,
|
|
2704
2720
|
mergeable: false
|
|
2705
2721
|
});
|
|
2706
2722
|
const input_dashboards_length = input.dashboards.length;
|
|
2707
2723
|
for (let i = 0; i < input_dashboards_length; i++) {
|
|
2708
|
-
getTypeCacheKeys$
|
|
2724
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.dashboards[i]);
|
|
2709
2725
|
}
|
|
2710
2726
|
}
|
|
2711
2727
|
|
|
2712
|
-
function select$
|
|
2713
|
-
return select$
|
|
2728
|
+
function select$A(luvio, params) {
|
|
2729
|
+
return select$B();
|
|
2714
2730
|
}
|
|
2715
|
-
function keyBuilder$
|
|
2731
|
+
function keyBuilder$B(luvio, params) {
|
|
2716
2732
|
return keyPrefix + '::DashboardCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
2717
2733
|
}
|
|
2718
|
-
function getResponseCacheKeys$
|
|
2719
|
-
getTypeCacheKeys$
|
|
2734
|
+
function getResponseCacheKeys$r(storeKeyMap, luvio, resourceParams, response) {
|
|
2735
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response, () => keyBuilder$B(luvio, resourceParams));
|
|
2720
2736
|
}
|
|
2721
|
-
function ingestSuccess$
|
|
2737
|
+
function ingestSuccess$m(luvio, resourceParams, response, snapshotRefresh) {
|
|
2722
2738
|
const { body } = response;
|
|
2723
|
-
const key = keyBuilder$
|
|
2724
|
-
luvio.storeIngest(key, ingest$
|
|
2739
|
+
const key = keyBuilder$B(luvio, resourceParams);
|
|
2740
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
2725
2741
|
const snapshot = luvio.storeLookup({
|
|
2726
2742
|
recordId: key,
|
|
2727
|
-
node: select$
|
|
2743
|
+
node: select$A(),
|
|
2728
2744
|
variables: {},
|
|
2729
2745
|
}, snapshotRefresh);
|
|
2730
2746
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2736,12 +2752,12 @@ function ingestSuccess$l(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2736
2752
|
return snapshot;
|
|
2737
2753
|
}
|
|
2738
2754
|
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
2739
|
-
const key = keyBuilder$
|
|
2755
|
+
const key = keyBuilder$B(luvio, params);
|
|
2740
2756
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2741
2757
|
luvio.storeIngestError(key, errorSnapshot);
|
|
2742
2758
|
return errorSnapshot;
|
|
2743
2759
|
}
|
|
2744
|
-
function createResourceRequest$
|
|
2760
|
+
function createResourceRequest$r(config) {
|
|
2745
2761
|
const headers = {};
|
|
2746
2762
|
return {
|
|
2747
2763
|
baseUri: '/services/data/v62.0',
|
|
@@ -2755,61 +2771,61 @@ function createResourceRequest$q(config) {
|
|
|
2755
2771
|
};
|
|
2756
2772
|
}
|
|
2757
2773
|
|
|
2758
|
-
const adapterName$
|
|
2774
|
+
const adapterName$r = 'getDashboards';
|
|
2759
2775
|
const getDashboards_ConfigPropertyMetadata = [
|
|
2760
2776
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2761
2777
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2762
2778
|
];
|
|
2763
|
-
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2764
|
-
const createResourceParams$
|
|
2765
|
-
function keyBuilder$
|
|
2766
|
-
const resourceParams = createResourceParams$
|
|
2767
|
-
return keyBuilder$
|
|
2779
|
+
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$r, getDashboards_ConfigPropertyMetadata);
|
|
2780
|
+
const createResourceParams$r = /*#__PURE__*/ createResourceParams$w(getDashboards_ConfigPropertyMetadata);
|
|
2781
|
+
function keyBuilder$A(luvio, config) {
|
|
2782
|
+
const resourceParams = createResourceParams$r(config);
|
|
2783
|
+
return keyBuilder$B(luvio, resourceParams);
|
|
2768
2784
|
}
|
|
2769
|
-
function typeCheckConfig$
|
|
2785
|
+
function typeCheckConfig$r(untrustedConfig) {
|
|
2770
2786
|
const config = {};
|
|
2771
|
-
typeCheckConfig$
|
|
2787
|
+
typeCheckConfig$w(untrustedConfig, config, getDashboards_ConfigPropertyMetadata);
|
|
2772
2788
|
return config;
|
|
2773
2789
|
}
|
|
2774
|
-
function validateAdapterConfig$
|
|
2790
|
+
function validateAdapterConfig$r(untrustedConfig, configPropertyNames) {
|
|
2775
2791
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2776
2792
|
return null;
|
|
2777
2793
|
}
|
|
2778
2794
|
if (process.env.NODE_ENV !== 'production') {
|
|
2779
2795
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2780
2796
|
}
|
|
2781
|
-
const config = typeCheckConfig$
|
|
2797
|
+
const config = typeCheckConfig$r(untrustedConfig);
|
|
2782
2798
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2783
2799
|
return null;
|
|
2784
2800
|
}
|
|
2785
2801
|
return config;
|
|
2786
2802
|
}
|
|
2787
2803
|
function adapterFragment$b(luvio, config) {
|
|
2788
|
-
createResourceParams$
|
|
2789
|
-
return select$
|
|
2804
|
+
createResourceParams$r(config);
|
|
2805
|
+
return select$A();
|
|
2790
2806
|
}
|
|
2791
2807
|
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
2792
|
-
const snapshot = ingestSuccess$
|
|
2808
|
+
const snapshot = ingestSuccess$m(luvio, resourceParams, response, {
|
|
2793
2809
|
config,
|
|
2794
|
-
resolve: () => buildNetworkSnapshot$
|
|
2810
|
+
resolve: () => buildNetworkSnapshot$r(luvio, config, snapshotRefreshOptions)
|
|
2795
2811
|
});
|
|
2796
2812
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2797
2813
|
}
|
|
2798
2814
|
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
2799
2815
|
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
2800
2816
|
config,
|
|
2801
|
-
resolve: () => buildNetworkSnapshot$
|
|
2817
|
+
resolve: () => buildNetworkSnapshot$r(luvio, config, snapshotRefreshOptions)
|
|
2802
2818
|
});
|
|
2803
2819
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2804
2820
|
}
|
|
2805
|
-
function buildNetworkSnapshot$
|
|
2806
|
-
const resourceParams = createResourceParams$
|
|
2807
|
-
const request = createResourceRequest$
|
|
2821
|
+
function buildNetworkSnapshot$r(luvio, config, options) {
|
|
2822
|
+
const resourceParams = createResourceParams$r(config);
|
|
2823
|
+
const request = createResourceRequest$r(resourceParams);
|
|
2808
2824
|
return luvio.dispatchResourceRequest(request, options)
|
|
2809
2825
|
.then((response) => {
|
|
2810
2826
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
|
|
2811
2827
|
const cache = new StoreKeyMap();
|
|
2812
|
-
getResponseCacheKeys$
|
|
2828
|
+
getResponseCacheKeys$r(cache, luvio, resourceParams, response.body);
|
|
2813
2829
|
return cache;
|
|
2814
2830
|
});
|
|
2815
2831
|
}, (response) => {
|
|
@@ -2817,23 +2833,23 @@ function buildNetworkSnapshot$q(luvio, config, options) {
|
|
|
2817
2833
|
});
|
|
2818
2834
|
}
|
|
2819
2835
|
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
2820
|
-
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
2836
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$r, undefined, false);
|
|
2821
2837
|
}
|
|
2822
2838
|
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
2823
2839
|
const { luvio, config } = context;
|
|
2824
2840
|
const selector = {
|
|
2825
|
-
recordId: keyBuilder$
|
|
2841
|
+
recordId: keyBuilder$A(luvio, config),
|
|
2826
2842
|
node: adapterFragment$b(luvio, config),
|
|
2827
2843
|
variables: {},
|
|
2828
2844
|
};
|
|
2829
2845
|
const cacheSnapshot = storeLookup(selector, {
|
|
2830
2846
|
config,
|
|
2831
|
-
resolve: () => buildNetworkSnapshot$
|
|
2847
|
+
resolve: () => buildNetworkSnapshot$r(luvio, config, snapshotRefreshOptions)
|
|
2832
2848
|
});
|
|
2833
2849
|
return cacheSnapshot;
|
|
2834
2850
|
}
|
|
2835
2851
|
const getDashboardsAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboards(untrustedConfig, requestContext) {
|
|
2836
|
-
const config = validateAdapterConfig$
|
|
2852
|
+
const config = validateAdapterConfig$r(untrustedConfig, getDashboards_ConfigPropertyNames);
|
|
2837
2853
|
// Invalid or incomplete config
|
|
2838
2854
|
if (config === null) {
|
|
2839
2855
|
return null;
|
|
@@ -2842,19 +2858,19 @@ const getDashboardsAdapterFactory = (luvio) => function UnifiedAnalytics__getDas
|
|
|
2842
2858
|
buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
|
|
2843
2859
|
};
|
|
2844
2860
|
|
|
2845
|
-
function select$
|
|
2846
|
-
return select$
|
|
2861
|
+
function select$z(luvio, params) {
|
|
2862
|
+
return select$C();
|
|
2847
2863
|
}
|
|
2848
|
-
function getResponseCacheKeys$
|
|
2849
|
-
getTypeCacheKeys$
|
|
2864
|
+
function getResponseCacheKeys$q(storeKeyMap, luvio, resourceParams, response) {
|
|
2865
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
2850
2866
|
}
|
|
2851
|
-
function ingestSuccess$
|
|
2867
|
+
function ingestSuccess$l(luvio, resourceParams, response) {
|
|
2852
2868
|
const { body } = response;
|
|
2853
|
-
const key = keyBuilderFromType$
|
|
2854
|
-
luvio.storeIngest(key, ingest$
|
|
2869
|
+
const key = keyBuilderFromType$8(luvio, body);
|
|
2870
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
2855
2871
|
const snapshot = luvio.storeLookup({
|
|
2856
2872
|
recordId: key,
|
|
2857
|
-
node: select$
|
|
2873
|
+
node: select$z(),
|
|
2858
2874
|
variables: {},
|
|
2859
2875
|
});
|
|
2860
2876
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2865,7 +2881,7 @@ function ingestSuccess$k(luvio, resourceParams, response) {
|
|
|
2865
2881
|
deepFreeze(snapshot.data);
|
|
2866
2882
|
return snapshot;
|
|
2867
2883
|
}
|
|
2868
|
-
function createResourceRequest$
|
|
2884
|
+
function createResourceRequest$q(config) {
|
|
2869
2885
|
const headers = {};
|
|
2870
2886
|
return {
|
|
2871
2887
|
baseUri: '/services/data/v62.0',
|
|
@@ -2879,7 +2895,7 @@ function createResourceRequest$p(config) {
|
|
|
2879
2895
|
};
|
|
2880
2896
|
}
|
|
2881
2897
|
|
|
2882
|
-
const adapterName$
|
|
2898
|
+
const adapterName$q = 'createDashboard';
|
|
2883
2899
|
const createDashboard_ConfigPropertyMetadata = [
|
|
2884
2900
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
2885
2901
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
@@ -2888,12 +2904,13 @@ const createDashboard_ConfigPropertyMetadata = [
|
|
|
2888
2904
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
2889
2905
|
generateParamConfigMetadata('layouts', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2890
2906
|
generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2907
|
+
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2891
2908
|
];
|
|
2892
|
-
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2893
|
-
const createResourceParams$
|
|
2894
|
-
function typeCheckConfig$
|
|
2909
|
+
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$q, createDashboard_ConfigPropertyMetadata);
|
|
2910
|
+
const createResourceParams$q = /*#__PURE__*/ createResourceParams$w(createDashboard_ConfigPropertyMetadata);
|
|
2911
|
+
function typeCheckConfig$q(untrustedConfig) {
|
|
2895
2912
|
const config = {};
|
|
2896
|
-
typeCheckConfig$
|
|
2913
|
+
typeCheckConfig$w(untrustedConfig, config, createDashboard_ConfigPropertyMetadata);
|
|
2897
2914
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
2898
2915
|
if (ArrayIsArray$1(untrustedConfig_layouts)) {
|
|
2899
2916
|
const untrustedConfig_layouts_array = [];
|
|
@@ -2918,32 +2935,47 @@ function typeCheckConfig$p(untrustedConfig) {
|
|
|
2918
2935
|
config.widgets = untrustedConfig_widgets_object;
|
|
2919
2936
|
}
|
|
2920
2937
|
}
|
|
2938
|
+
const untrustedConfig_style = untrustedConfig.style;
|
|
2939
|
+
if (untrustedIsObject(untrustedConfig_style)) {
|
|
2940
|
+
const untrustedConfig_style_object = {};
|
|
2941
|
+
const untrustedConfig_style_keys = Object.keys(untrustedConfig_style);
|
|
2942
|
+
for (let i = 0, arrayLength = untrustedConfig_style_keys.length; i < arrayLength; i++) {
|
|
2943
|
+
const key = untrustedConfig_style_keys[i];
|
|
2944
|
+
const untrustedConfig_style_prop = untrustedConfig_style[key];
|
|
2945
|
+
if (untrustedConfig_style_object !== undefined) {
|
|
2946
|
+
untrustedConfig_style_object[key] = untrustedConfig_style_prop;
|
|
2947
|
+
}
|
|
2948
|
+
}
|
|
2949
|
+
if (untrustedConfig_style_object !== undefined && Object.keys(untrustedConfig_style_object).length >= 0) {
|
|
2950
|
+
config.style = untrustedConfig_style_object;
|
|
2951
|
+
}
|
|
2952
|
+
}
|
|
2921
2953
|
return config;
|
|
2922
2954
|
}
|
|
2923
|
-
function validateAdapterConfig$
|
|
2955
|
+
function validateAdapterConfig$q(untrustedConfig, configPropertyNames) {
|
|
2924
2956
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2925
2957
|
return null;
|
|
2926
2958
|
}
|
|
2927
2959
|
if (process.env.NODE_ENV !== 'production') {
|
|
2928
2960
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2929
2961
|
}
|
|
2930
|
-
const config = typeCheckConfig$
|
|
2962
|
+
const config = typeCheckConfig$q(untrustedConfig);
|
|
2931
2963
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2932
2964
|
return null;
|
|
2933
2965
|
}
|
|
2934
2966
|
return config;
|
|
2935
2967
|
}
|
|
2936
|
-
function buildNetworkSnapshot$
|
|
2937
|
-
const resourceParams = createResourceParams$
|
|
2938
|
-
const request = createResourceRequest$
|
|
2968
|
+
function buildNetworkSnapshot$q(luvio, config, options) {
|
|
2969
|
+
const resourceParams = createResourceParams$q(config);
|
|
2970
|
+
const request = createResourceRequest$q(resourceParams);
|
|
2939
2971
|
return luvio.dispatchResourceRequest(request, options)
|
|
2940
2972
|
.then((response) => {
|
|
2941
2973
|
return luvio.handleSuccessResponse(() => {
|
|
2942
|
-
const snapshot = ingestSuccess$
|
|
2974
|
+
const snapshot = ingestSuccess$l(luvio, resourceParams, response);
|
|
2943
2975
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2944
2976
|
}, () => {
|
|
2945
2977
|
const cache = new StoreKeyMap();
|
|
2946
|
-
getResponseCacheKeys$
|
|
2978
|
+
getResponseCacheKeys$q(cache, luvio, resourceParams, response.body);
|
|
2947
2979
|
return cache;
|
|
2948
2980
|
});
|
|
2949
2981
|
}, (response) => {
|
|
@@ -2953,33 +2985,33 @@ function buildNetworkSnapshot$p(luvio, config, options) {
|
|
|
2953
2985
|
}
|
|
2954
2986
|
const createDashboardAdapterFactory = (luvio) => {
|
|
2955
2987
|
return function createDashboard(untrustedConfig) {
|
|
2956
|
-
const config = validateAdapterConfig$
|
|
2988
|
+
const config = validateAdapterConfig$q(untrustedConfig, createDashboard_ConfigPropertyNames);
|
|
2957
2989
|
// Invalid or incomplete config
|
|
2958
2990
|
if (config === null) {
|
|
2959
2991
|
throw new Error('Invalid config for "createDashboard"');
|
|
2960
2992
|
}
|
|
2961
|
-
return buildNetworkSnapshot$
|
|
2993
|
+
return buildNetworkSnapshot$q(luvio, config);
|
|
2962
2994
|
};
|
|
2963
2995
|
};
|
|
2964
2996
|
|
|
2965
|
-
function keyBuilder$
|
|
2966
|
-
return keyBuilder$
|
|
2997
|
+
function keyBuilder$z(luvio, params) {
|
|
2998
|
+
return keyBuilder$C(luvio, {
|
|
2967
2999
|
name: params.urlParams.dashboardIdOrApiName
|
|
2968
3000
|
});
|
|
2969
3001
|
}
|
|
2970
|
-
function getResponseCacheKeys$
|
|
2971
|
-
const key = keyBuilder$
|
|
3002
|
+
function getResponseCacheKeys$p(cacheKeyMap, luvio, resourceParams) {
|
|
3003
|
+
const key = keyBuilder$z(luvio, resourceParams);
|
|
2972
3004
|
cacheKeyMap.set(key, {
|
|
2973
3005
|
namespace: keyPrefix,
|
|
2974
|
-
representationName: RepresentationType$
|
|
3006
|
+
representationName: RepresentationType$g,
|
|
2975
3007
|
mergeable: false
|
|
2976
3008
|
});
|
|
2977
3009
|
}
|
|
2978
3010
|
function evictSuccess$4(luvio, resourceParams) {
|
|
2979
|
-
const key = keyBuilder$
|
|
3011
|
+
const key = keyBuilder$z(luvio, resourceParams);
|
|
2980
3012
|
luvio.storeEvict(key);
|
|
2981
3013
|
}
|
|
2982
|
-
function createResourceRequest$
|
|
3014
|
+
function createResourceRequest$p(config) {
|
|
2983
3015
|
const headers = {};
|
|
2984
3016
|
return {
|
|
2985
3017
|
baseUri: '/services/data/v62.0',
|
|
@@ -2993,33 +3025,33 @@ function createResourceRequest$o(config) {
|
|
|
2993
3025
|
};
|
|
2994
3026
|
}
|
|
2995
3027
|
|
|
2996
|
-
const adapterName$
|
|
3028
|
+
const adapterName$p = 'deleteDashboard';
|
|
2997
3029
|
const deleteDashboard_ConfigPropertyMetadata = [
|
|
2998
3030
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2999
3031
|
];
|
|
3000
|
-
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3001
|
-
const createResourceParams$
|
|
3002
|
-
function typeCheckConfig$
|
|
3032
|
+
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$p, deleteDashboard_ConfigPropertyMetadata);
|
|
3033
|
+
const createResourceParams$p = /*#__PURE__*/ createResourceParams$w(deleteDashboard_ConfigPropertyMetadata);
|
|
3034
|
+
function typeCheckConfig$p(untrustedConfig) {
|
|
3003
3035
|
const config = {};
|
|
3004
|
-
typeCheckConfig$
|
|
3036
|
+
typeCheckConfig$w(untrustedConfig, config, deleteDashboard_ConfigPropertyMetadata);
|
|
3005
3037
|
return config;
|
|
3006
3038
|
}
|
|
3007
|
-
function validateAdapterConfig$
|
|
3039
|
+
function validateAdapterConfig$p(untrustedConfig, configPropertyNames) {
|
|
3008
3040
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3009
3041
|
return null;
|
|
3010
3042
|
}
|
|
3011
3043
|
if (process.env.NODE_ENV !== 'production') {
|
|
3012
3044
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3013
3045
|
}
|
|
3014
|
-
const config = typeCheckConfig$
|
|
3046
|
+
const config = typeCheckConfig$p(untrustedConfig);
|
|
3015
3047
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3016
3048
|
return null;
|
|
3017
3049
|
}
|
|
3018
3050
|
return config;
|
|
3019
3051
|
}
|
|
3020
|
-
function buildNetworkSnapshot$
|
|
3021
|
-
const resourceParams = createResourceParams$
|
|
3022
|
-
const request = createResourceRequest$
|
|
3052
|
+
function buildNetworkSnapshot$p(luvio, config, options) {
|
|
3053
|
+
const resourceParams = createResourceParams$p(config);
|
|
3054
|
+
const request = createResourceRequest$p(resourceParams);
|
|
3023
3055
|
return luvio.dispatchResourceRequest(request, options)
|
|
3024
3056
|
.then(() => {
|
|
3025
3057
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -3027,7 +3059,7 @@ function buildNetworkSnapshot$o(luvio, config, options) {
|
|
|
3027
3059
|
return luvio.storeBroadcast();
|
|
3028
3060
|
}, () => {
|
|
3029
3061
|
const cache = new StoreKeyMap();
|
|
3030
|
-
getResponseCacheKeys$
|
|
3062
|
+
getResponseCacheKeys$p(cache, luvio, resourceParams);
|
|
3031
3063
|
return cache;
|
|
3032
3064
|
});
|
|
3033
3065
|
}, (response) => {
|
|
@@ -3037,33 +3069,33 @@ function buildNetworkSnapshot$o(luvio, config, options) {
|
|
|
3037
3069
|
}
|
|
3038
3070
|
const deleteDashboardAdapterFactory = (luvio) => {
|
|
3039
3071
|
return function UnifiedAnalyticsdeleteDashboard(untrustedConfig) {
|
|
3040
|
-
const config = validateAdapterConfig$
|
|
3072
|
+
const config = validateAdapterConfig$p(untrustedConfig, deleteDashboard_ConfigPropertyNames);
|
|
3041
3073
|
// Invalid or incomplete config
|
|
3042
3074
|
if (config === null) {
|
|
3043
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
3075
|
+
throw new Error(`Invalid config for "${adapterName$p}"`);
|
|
3044
3076
|
}
|
|
3045
|
-
return buildNetworkSnapshot$
|
|
3077
|
+
return buildNetworkSnapshot$p(luvio, config);
|
|
3046
3078
|
};
|
|
3047
3079
|
};
|
|
3048
3080
|
|
|
3049
|
-
function select$
|
|
3050
|
-
return select$
|
|
3081
|
+
function select$y(luvio, params) {
|
|
3082
|
+
return select$C();
|
|
3051
3083
|
}
|
|
3052
|
-
function keyBuilder$
|
|
3053
|
-
return keyBuilder$
|
|
3084
|
+
function keyBuilder$y(luvio, params) {
|
|
3085
|
+
return keyBuilder$C(luvio, {
|
|
3054
3086
|
name: params.urlParams.dashboardIdOrApiName
|
|
3055
3087
|
});
|
|
3056
3088
|
}
|
|
3057
|
-
function getResponseCacheKeys$
|
|
3058
|
-
getTypeCacheKeys$
|
|
3089
|
+
function getResponseCacheKeys$o(storeKeyMap, luvio, resourceParams, response) {
|
|
3090
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
3059
3091
|
}
|
|
3060
|
-
function ingestSuccess$
|
|
3092
|
+
function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
|
|
3061
3093
|
const { body } = response;
|
|
3062
|
-
const key = keyBuilder$
|
|
3063
|
-
luvio.storeIngest(key, ingest$
|
|
3094
|
+
const key = keyBuilder$y(luvio, resourceParams);
|
|
3095
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
3064
3096
|
const snapshot = luvio.storeLookup({
|
|
3065
3097
|
recordId: key,
|
|
3066
|
-
node: select$
|
|
3098
|
+
node: select$y(),
|
|
3067
3099
|
variables: {},
|
|
3068
3100
|
}, snapshotRefresh);
|
|
3069
3101
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3075,12 +3107,12 @@ function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3075
3107
|
return snapshot;
|
|
3076
3108
|
}
|
|
3077
3109
|
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
3078
|
-
const key = keyBuilder$
|
|
3110
|
+
const key = keyBuilder$y(luvio, params);
|
|
3079
3111
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3080
3112
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3081
3113
|
return errorSnapshot;
|
|
3082
3114
|
}
|
|
3083
|
-
function createResourceRequest$
|
|
3115
|
+
function createResourceRequest$o(config) {
|
|
3084
3116
|
const headers = {};
|
|
3085
3117
|
return {
|
|
3086
3118
|
baseUri: '/services/data/v62.0',
|
|
@@ -3094,60 +3126,60 @@ function createResourceRequest$n(config) {
|
|
|
3094
3126
|
};
|
|
3095
3127
|
}
|
|
3096
3128
|
|
|
3097
|
-
const adapterName$
|
|
3129
|
+
const adapterName$o = 'getDashboardByName';
|
|
3098
3130
|
const getDashboardByName_ConfigPropertyMetadata = [
|
|
3099
3131
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3100
3132
|
];
|
|
3101
|
-
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3102
|
-
const createResourceParams$
|
|
3103
|
-
function keyBuilder$
|
|
3104
|
-
const resourceParams = createResourceParams$
|
|
3105
|
-
return keyBuilder$
|
|
3133
|
+
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, getDashboardByName_ConfigPropertyMetadata);
|
|
3134
|
+
const createResourceParams$o = /*#__PURE__*/ createResourceParams$w(getDashboardByName_ConfigPropertyMetadata);
|
|
3135
|
+
function keyBuilder$x(luvio, config) {
|
|
3136
|
+
const resourceParams = createResourceParams$o(config);
|
|
3137
|
+
return keyBuilder$y(luvio, resourceParams);
|
|
3106
3138
|
}
|
|
3107
|
-
function typeCheckConfig$
|
|
3139
|
+
function typeCheckConfig$o(untrustedConfig) {
|
|
3108
3140
|
const config = {};
|
|
3109
|
-
typeCheckConfig$
|
|
3141
|
+
typeCheckConfig$w(untrustedConfig, config, getDashboardByName_ConfigPropertyMetadata);
|
|
3110
3142
|
return config;
|
|
3111
3143
|
}
|
|
3112
|
-
function validateAdapterConfig$
|
|
3144
|
+
function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
|
|
3113
3145
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3114
3146
|
return null;
|
|
3115
3147
|
}
|
|
3116
3148
|
if (process.env.NODE_ENV !== 'production') {
|
|
3117
3149
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3118
3150
|
}
|
|
3119
|
-
const config = typeCheckConfig$
|
|
3151
|
+
const config = typeCheckConfig$o(untrustedConfig);
|
|
3120
3152
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3121
3153
|
return null;
|
|
3122
3154
|
}
|
|
3123
3155
|
return config;
|
|
3124
3156
|
}
|
|
3125
3157
|
function adapterFragment$a(luvio, config) {
|
|
3126
|
-
createResourceParams$
|
|
3127
|
-
return select$
|
|
3158
|
+
createResourceParams$o(config);
|
|
3159
|
+
return select$y();
|
|
3128
3160
|
}
|
|
3129
3161
|
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
3130
|
-
const snapshot = ingestSuccess$
|
|
3162
|
+
const snapshot = ingestSuccess$k(luvio, resourceParams, response, {
|
|
3131
3163
|
config,
|
|
3132
|
-
resolve: () => buildNetworkSnapshot$
|
|
3164
|
+
resolve: () => buildNetworkSnapshot$o(luvio, config, snapshotRefreshOptions)
|
|
3133
3165
|
});
|
|
3134
3166
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3135
3167
|
}
|
|
3136
3168
|
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
3137
3169
|
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
3138
3170
|
config,
|
|
3139
|
-
resolve: () => buildNetworkSnapshot$
|
|
3171
|
+
resolve: () => buildNetworkSnapshot$o(luvio, config, snapshotRefreshOptions)
|
|
3140
3172
|
});
|
|
3141
3173
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3142
3174
|
}
|
|
3143
|
-
function buildNetworkSnapshot$
|
|
3144
|
-
const resourceParams = createResourceParams$
|
|
3145
|
-
const request = createResourceRequest$
|
|
3175
|
+
function buildNetworkSnapshot$o(luvio, config, options) {
|
|
3176
|
+
const resourceParams = createResourceParams$o(config);
|
|
3177
|
+
const request = createResourceRequest$o(resourceParams);
|
|
3146
3178
|
return luvio.dispatchResourceRequest(request, options)
|
|
3147
3179
|
.then((response) => {
|
|
3148
3180
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
3149
3181
|
const cache = new StoreKeyMap();
|
|
3150
|
-
getResponseCacheKeys$
|
|
3182
|
+
getResponseCacheKeys$o(cache, luvio, resourceParams, response.body);
|
|
3151
3183
|
return cache;
|
|
3152
3184
|
});
|
|
3153
3185
|
}, (response) => {
|
|
@@ -3155,23 +3187,23 @@ function buildNetworkSnapshot$n(luvio, config, options) {
|
|
|
3155
3187
|
});
|
|
3156
3188
|
}
|
|
3157
3189
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
3158
|
-
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
3190
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$o, undefined, false);
|
|
3159
3191
|
}
|
|
3160
3192
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
3161
3193
|
const { luvio, config } = context;
|
|
3162
3194
|
const selector = {
|
|
3163
|
-
recordId: keyBuilder$
|
|
3195
|
+
recordId: keyBuilder$x(luvio, config),
|
|
3164
3196
|
node: adapterFragment$a(luvio, config),
|
|
3165
3197
|
variables: {},
|
|
3166
3198
|
};
|
|
3167
3199
|
const cacheSnapshot = storeLookup(selector, {
|
|
3168
3200
|
config,
|
|
3169
|
-
resolve: () => buildNetworkSnapshot$
|
|
3201
|
+
resolve: () => buildNetworkSnapshot$o(luvio, config, snapshotRefreshOptions)
|
|
3170
3202
|
});
|
|
3171
3203
|
return cacheSnapshot;
|
|
3172
3204
|
}
|
|
3173
3205
|
const getDashboardByNameAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboardByName(untrustedConfig, requestContext) {
|
|
3174
|
-
const config = validateAdapterConfig$
|
|
3206
|
+
const config = validateAdapterConfig$o(untrustedConfig, getDashboardByName_ConfigPropertyNames);
|
|
3175
3207
|
// Invalid or incomplete config
|
|
3176
3208
|
if (config === null) {
|
|
3177
3209
|
return null;
|
|
@@ -3180,19 +3212,19 @@ const getDashboardByNameAdapterFactory = (luvio) => function UnifiedAnalytics__g
|
|
|
3180
3212
|
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
3181
3213
|
};
|
|
3182
3214
|
|
|
3183
|
-
function select$
|
|
3184
|
-
return select$
|
|
3215
|
+
function select$x(luvio, params) {
|
|
3216
|
+
return select$C();
|
|
3185
3217
|
}
|
|
3186
|
-
function getResponseCacheKeys$
|
|
3187
|
-
getTypeCacheKeys$
|
|
3218
|
+
function getResponseCacheKeys$n(storeKeyMap, luvio, resourceParams, response) {
|
|
3219
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
3188
3220
|
}
|
|
3189
|
-
function ingestSuccess$
|
|
3221
|
+
function ingestSuccess$j(luvio, resourceParams, response) {
|
|
3190
3222
|
const { body } = response;
|
|
3191
|
-
const key = keyBuilderFromType$
|
|
3192
|
-
luvio.storeIngest(key, ingest$
|
|
3223
|
+
const key = keyBuilderFromType$8(luvio, body);
|
|
3224
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
3193
3225
|
const snapshot = luvio.storeLookup({
|
|
3194
3226
|
recordId: key,
|
|
3195
|
-
node: select$
|
|
3227
|
+
node: select$x(),
|
|
3196
3228
|
variables: {},
|
|
3197
3229
|
});
|
|
3198
3230
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3203,7 +3235,7 @@ function ingestSuccess$i(luvio, resourceParams, response) {
|
|
|
3203
3235
|
deepFreeze(snapshot.data);
|
|
3204
3236
|
return snapshot;
|
|
3205
3237
|
}
|
|
3206
|
-
function createResourceRequest$
|
|
3238
|
+
function createResourceRequest$n(config) {
|
|
3207
3239
|
const headers = {};
|
|
3208
3240
|
return {
|
|
3209
3241
|
baseUri: '/services/data/v62.0',
|
|
@@ -3217,7 +3249,7 @@ function createResourceRequest$m(config) {
|
|
|
3217
3249
|
};
|
|
3218
3250
|
}
|
|
3219
3251
|
|
|
3220
|
-
const adapterName$
|
|
3252
|
+
const adapterName$n = 'updateDashboard';
|
|
3221
3253
|
const updateDashboard_ConfigPropertyMetadata = [
|
|
3222
3254
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3223
3255
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -3227,12 +3259,13 @@ const updateDashboard_ConfigPropertyMetadata = [
|
|
|
3227
3259
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
3228
3260
|
generateParamConfigMetadata('layouts', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
3229
3261
|
generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3262
|
+
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3230
3263
|
];
|
|
3231
|
-
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3232
|
-
const createResourceParams$
|
|
3233
|
-
function typeCheckConfig$
|
|
3264
|
+
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, updateDashboard_ConfigPropertyMetadata);
|
|
3265
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$w(updateDashboard_ConfigPropertyMetadata);
|
|
3266
|
+
function typeCheckConfig$n(untrustedConfig) {
|
|
3234
3267
|
const config = {};
|
|
3235
|
-
typeCheckConfig$
|
|
3268
|
+
typeCheckConfig$w(untrustedConfig, config, updateDashboard_ConfigPropertyMetadata);
|
|
3236
3269
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
3237
3270
|
if (ArrayIsArray$1(untrustedConfig_layouts)) {
|
|
3238
3271
|
const untrustedConfig_layouts_array = [];
|
|
@@ -3257,32 +3290,47 @@ function typeCheckConfig$m(untrustedConfig) {
|
|
|
3257
3290
|
config.widgets = untrustedConfig_widgets_object;
|
|
3258
3291
|
}
|
|
3259
3292
|
}
|
|
3293
|
+
const untrustedConfig_style = untrustedConfig.style;
|
|
3294
|
+
if (untrustedIsObject(untrustedConfig_style)) {
|
|
3295
|
+
const untrustedConfig_style_object = {};
|
|
3296
|
+
const untrustedConfig_style_keys = Object.keys(untrustedConfig_style);
|
|
3297
|
+
for (let i = 0, arrayLength = untrustedConfig_style_keys.length; i < arrayLength; i++) {
|
|
3298
|
+
const key = untrustedConfig_style_keys[i];
|
|
3299
|
+
const untrustedConfig_style_prop = untrustedConfig_style[key];
|
|
3300
|
+
if (untrustedConfig_style_object !== undefined) {
|
|
3301
|
+
untrustedConfig_style_object[key] = untrustedConfig_style_prop;
|
|
3302
|
+
}
|
|
3303
|
+
}
|
|
3304
|
+
if (untrustedConfig_style_object !== undefined && Object.keys(untrustedConfig_style_object).length >= 0) {
|
|
3305
|
+
config.style = untrustedConfig_style_object;
|
|
3306
|
+
}
|
|
3307
|
+
}
|
|
3260
3308
|
return config;
|
|
3261
3309
|
}
|
|
3262
|
-
function validateAdapterConfig$
|
|
3310
|
+
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
3263
3311
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3264
3312
|
return null;
|
|
3265
3313
|
}
|
|
3266
3314
|
if (process.env.NODE_ENV !== 'production') {
|
|
3267
3315
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3268
3316
|
}
|
|
3269
|
-
const config = typeCheckConfig$
|
|
3317
|
+
const config = typeCheckConfig$n(untrustedConfig);
|
|
3270
3318
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3271
3319
|
return null;
|
|
3272
3320
|
}
|
|
3273
3321
|
return config;
|
|
3274
3322
|
}
|
|
3275
|
-
function buildNetworkSnapshot$
|
|
3276
|
-
const resourceParams = createResourceParams$
|
|
3277
|
-
const request = createResourceRequest$
|
|
3323
|
+
function buildNetworkSnapshot$n(luvio, config, options) {
|
|
3324
|
+
const resourceParams = createResourceParams$n(config);
|
|
3325
|
+
const request = createResourceRequest$n(resourceParams);
|
|
3278
3326
|
return luvio.dispatchResourceRequest(request, options)
|
|
3279
3327
|
.then((response) => {
|
|
3280
3328
|
return luvio.handleSuccessResponse(() => {
|
|
3281
|
-
const snapshot = ingestSuccess$
|
|
3329
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response);
|
|
3282
3330
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3283
3331
|
}, () => {
|
|
3284
3332
|
const cache = new StoreKeyMap();
|
|
3285
|
-
getResponseCacheKeys$
|
|
3333
|
+
getResponseCacheKeys$n(cache, luvio, resourceParams, response.body);
|
|
3286
3334
|
return cache;
|
|
3287
3335
|
});
|
|
3288
3336
|
}, (response) => {
|
|
@@ -3292,17 +3340,17 @@ function buildNetworkSnapshot$m(luvio, config, options) {
|
|
|
3292
3340
|
}
|
|
3293
3341
|
const updateDashboardAdapterFactory = (luvio) => {
|
|
3294
3342
|
return function updateDashboard(untrustedConfig) {
|
|
3295
|
-
const config = validateAdapterConfig$
|
|
3343
|
+
const config = validateAdapterConfig$n(untrustedConfig, updateDashboard_ConfigPropertyNames);
|
|
3296
3344
|
// Invalid or incomplete config
|
|
3297
3345
|
if (config === null) {
|
|
3298
3346
|
throw new Error('Invalid config for "updateDashboard"');
|
|
3299
3347
|
}
|
|
3300
|
-
return buildNetworkSnapshot$
|
|
3348
|
+
return buildNetworkSnapshot$n(luvio, config);
|
|
3301
3349
|
};
|
|
3302
3350
|
};
|
|
3303
3351
|
|
|
3304
|
-
function validate$
|
|
3305
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
3352
|
+
function validate$i(obj, path = 'AnalyticsUserRepresentation') {
|
|
3353
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$o(obj, path);
|
|
3306
3354
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
3307
3355
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
3308
3356
|
}
|
|
@@ -3342,16 +3390,16 @@ function validate$h(obj, path = 'AnalyticsUserRepresentation') {
|
|
|
3342
3390
|
return v_error === undefined ? null : v_error;
|
|
3343
3391
|
}
|
|
3344
3392
|
|
|
3345
|
-
const TTL$
|
|
3346
|
-
const VERSION$
|
|
3347
|
-
function validate$
|
|
3393
|
+
const TTL$5 = 500;
|
|
3394
|
+
const VERSION$d = "9a4f1166e92aab266ef84b910ef0c322";
|
|
3395
|
+
function validate$h(obj, path = 'FollowerAssetRepresentation') {
|
|
3348
3396
|
const v_error = (() => {
|
|
3349
3397
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3350
3398
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3351
3399
|
}
|
|
3352
3400
|
const obj_createdBy = obj.createdBy;
|
|
3353
3401
|
const path_createdBy = path + '.createdBy';
|
|
3354
|
-
const referencepath_createdByValidationError = validate$
|
|
3402
|
+
const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
|
|
3355
3403
|
if (referencepath_createdByValidationError !== null) {
|
|
3356
3404
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
3357
3405
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3385,68 +3433,68 @@ function validate$g(obj, path = 'FollowerAssetRepresentation') {
|
|
|
3385
3433
|
})();
|
|
3386
3434
|
return v_error === undefined ? null : v_error;
|
|
3387
3435
|
}
|
|
3388
|
-
const RepresentationType$
|
|
3389
|
-
function keyBuilder$
|
|
3390
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3436
|
+
const RepresentationType$e = 'FollowerAssetRepresentation';
|
|
3437
|
+
function keyBuilder$w(luvio, config) {
|
|
3438
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + config.followerId;
|
|
3391
3439
|
}
|
|
3392
|
-
function keyBuilderFromType$
|
|
3440
|
+
function keyBuilderFromType$7(luvio, object) {
|
|
3393
3441
|
const keyParams = {
|
|
3394
3442
|
followerId: object.followerId
|
|
3395
3443
|
};
|
|
3396
|
-
return keyBuilder$
|
|
3444
|
+
return keyBuilder$w(luvio, keyParams);
|
|
3397
3445
|
}
|
|
3398
|
-
function normalize$
|
|
3446
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
3399
3447
|
return input;
|
|
3400
3448
|
}
|
|
3401
|
-
const select$
|
|
3449
|
+
const select$w = function FollowerAssetRepresentationSelect() {
|
|
3402
3450
|
return {
|
|
3403
3451
|
kind: 'Fragment',
|
|
3404
|
-
version: VERSION$
|
|
3452
|
+
version: VERSION$d,
|
|
3405
3453
|
private: [],
|
|
3406
3454
|
opaque: true
|
|
3407
3455
|
};
|
|
3408
3456
|
};
|
|
3409
|
-
function equals$
|
|
3457
|
+
function equals$d(existing, incoming) {
|
|
3410
3458
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3411
3459
|
return false;
|
|
3412
3460
|
}
|
|
3413
3461
|
return true;
|
|
3414
3462
|
}
|
|
3415
|
-
const ingest$
|
|
3463
|
+
const ingest$d = function FollowerAssetRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3416
3464
|
if (process.env.NODE_ENV !== 'production') {
|
|
3417
|
-
const validateError = validate$
|
|
3465
|
+
const validateError = validate$h(input);
|
|
3418
3466
|
if (validateError !== null) {
|
|
3419
3467
|
throw validateError;
|
|
3420
3468
|
}
|
|
3421
3469
|
}
|
|
3422
|
-
const key = keyBuilderFromType$
|
|
3423
|
-
const ttlToUse = TTL$
|
|
3424
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3470
|
+
const key = keyBuilderFromType$7(luvio, input);
|
|
3471
|
+
const ttlToUse = TTL$5;
|
|
3472
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "UnifiedAnalytics", VERSION$d, RepresentationType$e, equals$d);
|
|
3425
3473
|
return createLink(key);
|
|
3426
3474
|
};
|
|
3427
|
-
function getTypeCacheKeys$
|
|
3475
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
3428
3476
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3429
|
-
const rootKey = keyBuilderFromType$
|
|
3477
|
+
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
3430
3478
|
rootKeySet.set(rootKey, {
|
|
3431
3479
|
namespace: keyPrefix,
|
|
3432
|
-
representationName: RepresentationType$
|
|
3480
|
+
representationName: RepresentationType$e,
|
|
3433
3481
|
mergeable: false
|
|
3434
3482
|
});
|
|
3435
3483
|
}
|
|
3436
3484
|
|
|
3437
|
-
function select$
|
|
3438
|
-
return select$
|
|
3485
|
+
function select$v(luvio, params) {
|
|
3486
|
+
return select$w();
|
|
3439
3487
|
}
|
|
3440
|
-
function getResponseCacheKeys$
|
|
3441
|
-
getTypeCacheKeys$
|
|
3488
|
+
function getResponseCacheKeys$m(storeKeyMap, luvio, resourceParams, response) {
|
|
3489
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
3442
3490
|
}
|
|
3443
|
-
function ingestSuccess$
|
|
3491
|
+
function ingestSuccess$i(luvio, resourceParams, response) {
|
|
3444
3492
|
const { body } = response;
|
|
3445
|
-
const key = keyBuilderFromType$
|
|
3446
|
-
luvio.storeIngest(key, ingest$
|
|
3493
|
+
const key = keyBuilderFromType$7(luvio, body);
|
|
3494
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
3447
3495
|
const snapshot = luvio.storeLookup({
|
|
3448
3496
|
recordId: key,
|
|
3449
|
-
node: select$
|
|
3497
|
+
node: select$v(),
|
|
3450
3498
|
variables: {},
|
|
3451
3499
|
});
|
|
3452
3500
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3457,7 +3505,7 @@ function ingestSuccess$h(luvio, resourceParams, response) {
|
|
|
3457
3505
|
deepFreeze(snapshot.data);
|
|
3458
3506
|
return snapshot;
|
|
3459
3507
|
}
|
|
3460
|
-
function createResourceRequest$
|
|
3508
|
+
function createResourceRequest$m(config) {
|
|
3461
3509
|
const headers = {};
|
|
3462
3510
|
return {
|
|
3463
3511
|
baseUri: '/services/data/v62.0',
|
|
@@ -3471,44 +3519,44 @@ function createResourceRequest$l(config) {
|
|
|
3471
3519
|
};
|
|
3472
3520
|
}
|
|
3473
3521
|
|
|
3474
|
-
const adapterName$
|
|
3522
|
+
const adapterName$m = 'follow';
|
|
3475
3523
|
const follow_ConfigPropertyMetadata = [
|
|
3476
3524
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3477
3525
|
generateParamConfigMetadata('assetId', true, 2 /* Body */, 0 /* String */),
|
|
3478
3526
|
generateParamConfigMetadata('assetType', true, 2 /* Body */, 0 /* String */),
|
|
3479
3527
|
generateParamConfigMetadata('followerType', true, 2 /* Body */, 0 /* String */),
|
|
3480
3528
|
];
|
|
3481
|
-
const follow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3482
|
-
const createResourceParams$
|
|
3483
|
-
function typeCheckConfig$
|
|
3529
|
+
const follow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, follow_ConfigPropertyMetadata);
|
|
3530
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$w(follow_ConfigPropertyMetadata);
|
|
3531
|
+
function typeCheckConfig$m(untrustedConfig) {
|
|
3484
3532
|
const config = {};
|
|
3485
|
-
typeCheckConfig$
|
|
3533
|
+
typeCheckConfig$w(untrustedConfig, config, follow_ConfigPropertyMetadata);
|
|
3486
3534
|
return config;
|
|
3487
3535
|
}
|
|
3488
|
-
function validateAdapterConfig$
|
|
3536
|
+
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
3489
3537
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3490
3538
|
return null;
|
|
3491
3539
|
}
|
|
3492
3540
|
if (process.env.NODE_ENV !== 'production') {
|
|
3493
3541
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3494
3542
|
}
|
|
3495
|
-
const config = typeCheckConfig$
|
|
3543
|
+
const config = typeCheckConfig$m(untrustedConfig);
|
|
3496
3544
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3497
3545
|
return null;
|
|
3498
3546
|
}
|
|
3499
3547
|
return config;
|
|
3500
3548
|
}
|
|
3501
|
-
function buildNetworkSnapshot$
|
|
3502
|
-
const resourceParams = createResourceParams$
|
|
3503
|
-
const request = createResourceRequest$
|
|
3549
|
+
function buildNetworkSnapshot$m(luvio, config, options) {
|
|
3550
|
+
const resourceParams = createResourceParams$m(config);
|
|
3551
|
+
const request = createResourceRequest$m(resourceParams);
|
|
3504
3552
|
return luvio.dispatchResourceRequest(request, options)
|
|
3505
3553
|
.then((response) => {
|
|
3506
3554
|
return luvio.handleSuccessResponse(() => {
|
|
3507
|
-
const snapshot = ingestSuccess$
|
|
3555
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response);
|
|
3508
3556
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3509
3557
|
}, () => {
|
|
3510
3558
|
const cache = new StoreKeyMap();
|
|
3511
|
-
getResponseCacheKeys$
|
|
3559
|
+
getResponseCacheKeys$m(cache, luvio, resourceParams, response.body);
|
|
3512
3560
|
return cache;
|
|
3513
3561
|
});
|
|
3514
3562
|
}, (response) => {
|
|
@@ -3518,16 +3566,16 @@ function buildNetworkSnapshot$l(luvio, config, options) {
|
|
|
3518
3566
|
}
|
|
3519
3567
|
const followAdapterFactory = (luvio) => {
|
|
3520
3568
|
return function follow(untrustedConfig) {
|
|
3521
|
-
const config = validateAdapterConfig$
|
|
3569
|
+
const config = validateAdapterConfig$m(untrustedConfig, follow_ConfigPropertyNames);
|
|
3522
3570
|
// Invalid or incomplete config
|
|
3523
3571
|
if (config === null) {
|
|
3524
3572
|
throw new Error('Invalid config for "follow"');
|
|
3525
3573
|
}
|
|
3526
|
-
return buildNetworkSnapshot$
|
|
3574
|
+
return buildNetworkSnapshot$m(luvio, config);
|
|
3527
3575
|
};
|
|
3528
3576
|
};
|
|
3529
3577
|
|
|
3530
|
-
function validate$
|
|
3578
|
+
function validate$g(obj, path = 'FollowedAssetRepresentation') {
|
|
3531
3579
|
const v_error = (() => {
|
|
3532
3580
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3533
3581
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3586,29 +3634,29 @@ function validate$f(obj, path = 'FollowedAssetRepresentation') {
|
|
|
3586
3634
|
})();
|
|
3587
3635
|
return v_error === undefined ? null : v_error;
|
|
3588
3636
|
}
|
|
3589
|
-
const RepresentationType$
|
|
3590
|
-
function keyBuilder$
|
|
3591
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3637
|
+
const RepresentationType$d = 'FollowedAssetRepresentation';
|
|
3638
|
+
function keyBuilder$v(luvio, config) {
|
|
3639
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.followedAssetId;
|
|
3592
3640
|
}
|
|
3593
3641
|
|
|
3594
|
-
function keyBuilder$
|
|
3595
|
-
return keyBuilder$
|
|
3642
|
+
function keyBuilder$u(luvio, params) {
|
|
3643
|
+
return keyBuilder$v(luvio, {
|
|
3596
3644
|
followedAssetId: params.urlParams.followedAssetId
|
|
3597
3645
|
});
|
|
3598
3646
|
}
|
|
3599
|
-
function getResponseCacheKeys$
|
|
3600
|
-
const key = keyBuilder$
|
|
3647
|
+
function getResponseCacheKeys$l(cacheKeyMap, luvio, resourceParams) {
|
|
3648
|
+
const key = keyBuilder$u(luvio, resourceParams);
|
|
3601
3649
|
cacheKeyMap.set(key, {
|
|
3602
3650
|
namespace: keyPrefix,
|
|
3603
|
-
representationName: RepresentationType$
|
|
3651
|
+
representationName: RepresentationType$d,
|
|
3604
3652
|
mergeable: false
|
|
3605
3653
|
});
|
|
3606
3654
|
}
|
|
3607
3655
|
function evictSuccess$3(luvio, resourceParams) {
|
|
3608
|
-
const key = keyBuilder$
|
|
3656
|
+
const key = keyBuilder$u(luvio, resourceParams);
|
|
3609
3657
|
luvio.storeEvict(key);
|
|
3610
3658
|
}
|
|
3611
|
-
function createResourceRequest$
|
|
3659
|
+
function createResourceRequest$l(config) {
|
|
3612
3660
|
const headers = {};
|
|
3613
3661
|
return {
|
|
3614
3662
|
baseUri: '/services/data/v62.0',
|
|
@@ -3622,34 +3670,34 @@ function createResourceRequest$k(config) {
|
|
|
3622
3670
|
};
|
|
3623
3671
|
}
|
|
3624
3672
|
|
|
3625
|
-
const adapterName$
|
|
3673
|
+
const adapterName$l = 'unfollow';
|
|
3626
3674
|
const unfollow_ConfigPropertyMetadata = [
|
|
3627
3675
|
generateParamConfigMetadata('followedAssetId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3628
3676
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3629
3677
|
];
|
|
3630
|
-
const unfollow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3631
|
-
const createResourceParams$
|
|
3632
|
-
function typeCheckConfig$
|
|
3678
|
+
const unfollow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, unfollow_ConfigPropertyMetadata);
|
|
3679
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$w(unfollow_ConfigPropertyMetadata);
|
|
3680
|
+
function typeCheckConfig$l(untrustedConfig) {
|
|
3633
3681
|
const config = {};
|
|
3634
|
-
typeCheckConfig$
|
|
3682
|
+
typeCheckConfig$w(untrustedConfig, config, unfollow_ConfigPropertyMetadata);
|
|
3635
3683
|
return config;
|
|
3636
3684
|
}
|
|
3637
|
-
function validateAdapterConfig$
|
|
3685
|
+
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
3638
3686
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3639
3687
|
return null;
|
|
3640
3688
|
}
|
|
3641
3689
|
if (process.env.NODE_ENV !== 'production') {
|
|
3642
3690
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3643
3691
|
}
|
|
3644
|
-
const config = typeCheckConfig$
|
|
3692
|
+
const config = typeCheckConfig$l(untrustedConfig);
|
|
3645
3693
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3646
3694
|
return null;
|
|
3647
3695
|
}
|
|
3648
3696
|
return config;
|
|
3649
3697
|
}
|
|
3650
|
-
function buildNetworkSnapshot$
|
|
3651
|
-
const resourceParams = createResourceParams$
|
|
3652
|
-
const request = createResourceRequest$
|
|
3698
|
+
function buildNetworkSnapshot$l(luvio, config, options) {
|
|
3699
|
+
const resourceParams = createResourceParams$l(config);
|
|
3700
|
+
const request = createResourceRequest$l(resourceParams);
|
|
3653
3701
|
return luvio.dispatchResourceRequest(request, options)
|
|
3654
3702
|
.then(() => {
|
|
3655
3703
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -3657,7 +3705,7 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
3657
3705
|
return luvio.storeBroadcast();
|
|
3658
3706
|
}, () => {
|
|
3659
3707
|
const cache = new StoreKeyMap();
|
|
3660
|
-
getResponseCacheKeys$
|
|
3708
|
+
getResponseCacheKeys$l(cache, luvio, resourceParams);
|
|
3661
3709
|
return cache;
|
|
3662
3710
|
});
|
|
3663
3711
|
}, (response) => {
|
|
@@ -3667,18 +3715,18 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
3667
3715
|
}
|
|
3668
3716
|
const unfollowAdapterFactory = (luvio) => {
|
|
3669
3717
|
return function UnifiedAnalyticsunfollow(untrustedConfig) {
|
|
3670
|
-
const config = validateAdapterConfig$
|
|
3718
|
+
const config = validateAdapterConfig$l(untrustedConfig, unfollow_ConfigPropertyNames);
|
|
3671
3719
|
// Invalid or incomplete config
|
|
3672
3720
|
if (config === null) {
|
|
3673
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
3721
|
+
throw new Error(`Invalid config for "${adapterName$l}"`);
|
|
3674
3722
|
}
|
|
3675
|
-
return buildNetworkSnapshot$
|
|
3723
|
+
return buildNetworkSnapshot$l(luvio, config);
|
|
3676
3724
|
};
|
|
3677
3725
|
};
|
|
3678
3726
|
|
|
3679
|
-
const TTL$
|
|
3680
|
-
const VERSION$
|
|
3681
|
-
function validate$
|
|
3727
|
+
const TTL$4 = 500;
|
|
3728
|
+
const VERSION$c = "1fd0770995d332e49822d6bbabe35e87";
|
|
3729
|
+
function validate$f(obj, path = 'FollowerCollectionRepresentation') {
|
|
3682
3730
|
const v_error = (() => {
|
|
3683
3731
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3684
3732
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3691,7 +3739,7 @@ function validate$e(obj, path = 'FollowerCollectionRepresentation') {
|
|
|
3691
3739
|
for (let i = 0; i < obj_followers.length; i++) {
|
|
3692
3740
|
const obj_followers_item = obj_followers[i];
|
|
3693
3741
|
const path_followers_item = path_followers + '[' + i + ']';
|
|
3694
|
-
const referencepath_followers_itemValidationError = validate$
|
|
3742
|
+
const referencepath_followers_itemValidationError = validate$i(obj_followers_item, path_followers_item);
|
|
3695
3743
|
if (referencepath_followers_itemValidationError !== null) {
|
|
3696
3744
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_followers_item + '")\n';
|
|
3697
3745
|
message += referencepath_followers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3701,62 +3749,62 @@ function validate$e(obj, path = 'FollowerCollectionRepresentation') {
|
|
|
3701
3749
|
})();
|
|
3702
3750
|
return v_error === undefined ? null : v_error;
|
|
3703
3751
|
}
|
|
3704
|
-
const RepresentationType$
|
|
3705
|
-
function normalize$
|
|
3752
|
+
const RepresentationType$c = 'FollowerCollectionRepresentation';
|
|
3753
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
3706
3754
|
return input;
|
|
3707
3755
|
}
|
|
3708
|
-
const select$
|
|
3756
|
+
const select$u = function FollowerCollectionRepresentationSelect() {
|
|
3709
3757
|
return {
|
|
3710
3758
|
kind: 'Fragment',
|
|
3711
|
-
version: VERSION$
|
|
3759
|
+
version: VERSION$c,
|
|
3712
3760
|
private: [],
|
|
3713
3761
|
opaque: true
|
|
3714
3762
|
};
|
|
3715
3763
|
};
|
|
3716
|
-
function equals$
|
|
3764
|
+
function equals$c(existing, incoming) {
|
|
3717
3765
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3718
3766
|
return false;
|
|
3719
3767
|
}
|
|
3720
3768
|
return true;
|
|
3721
3769
|
}
|
|
3722
|
-
const ingest$
|
|
3770
|
+
const ingest$c = function FollowerCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3723
3771
|
if (process.env.NODE_ENV !== 'production') {
|
|
3724
|
-
const validateError = validate$
|
|
3772
|
+
const validateError = validate$f(input);
|
|
3725
3773
|
if (validateError !== null) {
|
|
3726
3774
|
throw validateError;
|
|
3727
3775
|
}
|
|
3728
3776
|
}
|
|
3729
3777
|
const key = path.fullPath;
|
|
3730
|
-
const ttlToUse = TTL$
|
|
3731
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3778
|
+
const ttlToUse = TTL$4;
|
|
3779
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "UnifiedAnalytics", VERSION$c, RepresentationType$c, equals$c);
|
|
3732
3780
|
return createLink(key);
|
|
3733
3781
|
};
|
|
3734
|
-
function getTypeCacheKeys$
|
|
3782
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
3735
3783
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3736
3784
|
const rootKey = fullPathFactory();
|
|
3737
3785
|
rootKeySet.set(rootKey, {
|
|
3738
3786
|
namespace: keyPrefix,
|
|
3739
|
-
representationName: RepresentationType$
|
|
3787
|
+
representationName: RepresentationType$c,
|
|
3740
3788
|
mergeable: false
|
|
3741
3789
|
});
|
|
3742
3790
|
}
|
|
3743
3791
|
|
|
3744
|
-
function select$
|
|
3745
|
-
return select$
|
|
3792
|
+
function select$t(luvio, params) {
|
|
3793
|
+
return select$u();
|
|
3746
3794
|
}
|
|
3747
|
-
function keyBuilder$
|
|
3795
|
+
function keyBuilder$t(luvio, params) {
|
|
3748
3796
|
return keyPrefix + '::FollowerCollectionRepresentation:(' + 'followerId:' + params.queryParams.followerId + ',' + 'followerType:' + params.queryParams.followerType + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'followedAssetId:' + params.urlParams.followedAssetId + ')';
|
|
3749
3797
|
}
|
|
3750
|
-
function getResponseCacheKeys$
|
|
3751
|
-
getTypeCacheKeys$
|
|
3798
|
+
function getResponseCacheKeys$k(storeKeyMap, luvio, resourceParams, response) {
|
|
3799
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response, () => keyBuilder$t(luvio, resourceParams));
|
|
3752
3800
|
}
|
|
3753
|
-
function ingestSuccess$
|
|
3801
|
+
function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
3754
3802
|
const { body } = response;
|
|
3755
|
-
const key = keyBuilder$
|
|
3756
|
-
luvio.storeIngest(key, ingest$
|
|
3803
|
+
const key = keyBuilder$t(luvio, resourceParams);
|
|
3804
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
3757
3805
|
const snapshot = luvio.storeLookup({
|
|
3758
3806
|
recordId: key,
|
|
3759
|
-
node: select$
|
|
3807
|
+
node: select$t(),
|
|
3760
3808
|
variables: {},
|
|
3761
3809
|
}, snapshotRefresh);
|
|
3762
3810
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3768,18 +3816,18 @@ function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3768
3816
|
return snapshot;
|
|
3769
3817
|
}
|
|
3770
3818
|
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
3771
|
-
const key = keyBuilder$
|
|
3819
|
+
const key = keyBuilder$t(luvio, params);
|
|
3772
3820
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3773
3821
|
const storeMetadataParams = {
|
|
3774
|
-
ttl: TTL$
|
|
3822
|
+
ttl: TTL$4,
|
|
3775
3823
|
namespace: keyPrefix,
|
|
3776
|
-
version: VERSION$
|
|
3777
|
-
representationName: RepresentationType$
|
|
3824
|
+
version: VERSION$c,
|
|
3825
|
+
representationName: RepresentationType$c
|
|
3778
3826
|
};
|
|
3779
3827
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
3780
3828
|
return errorSnapshot;
|
|
3781
3829
|
}
|
|
3782
|
-
function createResourceRequest$
|
|
3830
|
+
function createResourceRequest$k(config) {
|
|
3783
3831
|
const headers = {};
|
|
3784
3832
|
return {
|
|
3785
3833
|
baseUri: '/services/data/v62.0',
|
|
@@ -3793,7 +3841,7 @@ function createResourceRequest$j(config) {
|
|
|
3793
3841
|
};
|
|
3794
3842
|
}
|
|
3795
3843
|
|
|
3796
|
-
const adapterName$
|
|
3844
|
+
const adapterName$k = 'getFollowers';
|
|
3797
3845
|
const getFollowers_ConfigPropertyMetadata = [
|
|
3798
3846
|
generateParamConfigMetadata('followedAssetId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3799
3847
|
generateParamConfigMetadata('followerId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -3801,56 +3849,56 @@ const getFollowers_ConfigPropertyMetadata = [
|
|
|
3801
3849
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3802
3850
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3803
3851
|
];
|
|
3804
|
-
const getFollowers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3805
|
-
const createResourceParams$
|
|
3806
|
-
function keyBuilder$
|
|
3807
|
-
const resourceParams = createResourceParams$
|
|
3808
|
-
return keyBuilder$
|
|
3852
|
+
const getFollowers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getFollowers_ConfigPropertyMetadata);
|
|
3853
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$w(getFollowers_ConfigPropertyMetadata);
|
|
3854
|
+
function keyBuilder$s(luvio, config) {
|
|
3855
|
+
const resourceParams = createResourceParams$k(config);
|
|
3856
|
+
return keyBuilder$t(luvio, resourceParams);
|
|
3809
3857
|
}
|
|
3810
|
-
function typeCheckConfig$
|
|
3858
|
+
function typeCheckConfig$k(untrustedConfig) {
|
|
3811
3859
|
const config = {};
|
|
3812
|
-
typeCheckConfig$
|
|
3860
|
+
typeCheckConfig$w(untrustedConfig, config, getFollowers_ConfigPropertyMetadata);
|
|
3813
3861
|
return config;
|
|
3814
3862
|
}
|
|
3815
|
-
function validateAdapterConfig$
|
|
3863
|
+
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
3816
3864
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3817
3865
|
return null;
|
|
3818
3866
|
}
|
|
3819
3867
|
if (process.env.NODE_ENV !== 'production') {
|
|
3820
3868
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3821
3869
|
}
|
|
3822
|
-
const config = typeCheckConfig$
|
|
3870
|
+
const config = typeCheckConfig$k(untrustedConfig);
|
|
3823
3871
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3824
3872
|
return null;
|
|
3825
3873
|
}
|
|
3826
3874
|
return config;
|
|
3827
3875
|
}
|
|
3828
3876
|
function adapterFragment$9(luvio, config) {
|
|
3829
|
-
createResourceParams$
|
|
3830
|
-
return select$
|
|
3877
|
+
createResourceParams$k(config);
|
|
3878
|
+
return select$t();
|
|
3831
3879
|
}
|
|
3832
3880
|
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
3833
|
-
const snapshot = ingestSuccess$
|
|
3881
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
|
|
3834
3882
|
config,
|
|
3835
|
-
resolve: () => buildNetworkSnapshot$
|
|
3883
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
3836
3884
|
});
|
|
3837
3885
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3838
3886
|
}
|
|
3839
3887
|
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
3840
3888
|
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
3841
3889
|
config,
|
|
3842
|
-
resolve: () => buildNetworkSnapshot$
|
|
3890
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
3843
3891
|
});
|
|
3844
3892
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3845
3893
|
}
|
|
3846
|
-
function buildNetworkSnapshot$
|
|
3847
|
-
const resourceParams = createResourceParams$
|
|
3848
|
-
const request = createResourceRequest$
|
|
3894
|
+
function buildNetworkSnapshot$k(luvio, config, options) {
|
|
3895
|
+
const resourceParams = createResourceParams$k(config);
|
|
3896
|
+
const request = createResourceRequest$k(resourceParams);
|
|
3849
3897
|
return luvio.dispatchResourceRequest(request, options)
|
|
3850
3898
|
.then((response) => {
|
|
3851
3899
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
3852
3900
|
const cache = new StoreKeyMap();
|
|
3853
|
-
getResponseCacheKeys$
|
|
3901
|
+
getResponseCacheKeys$k(cache, luvio, resourceParams, response.body);
|
|
3854
3902
|
return cache;
|
|
3855
3903
|
});
|
|
3856
3904
|
}, (response) => {
|
|
@@ -3858,23 +3906,23 @@ function buildNetworkSnapshot$j(luvio, config, options) {
|
|
|
3858
3906
|
});
|
|
3859
3907
|
}
|
|
3860
3908
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
3861
|
-
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
3909
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
3862
3910
|
}
|
|
3863
3911
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
3864
3912
|
const { luvio, config } = context;
|
|
3865
3913
|
const selector = {
|
|
3866
|
-
recordId: keyBuilder$
|
|
3914
|
+
recordId: keyBuilder$s(luvio, config),
|
|
3867
3915
|
node: adapterFragment$9(luvio, config),
|
|
3868
3916
|
variables: {},
|
|
3869
3917
|
};
|
|
3870
3918
|
const cacheSnapshot = storeLookup(selector, {
|
|
3871
3919
|
config,
|
|
3872
|
-
resolve: () => buildNetworkSnapshot$
|
|
3920
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
3873
3921
|
});
|
|
3874
3922
|
return cacheSnapshot;
|
|
3875
3923
|
}
|
|
3876
3924
|
const getFollowersAdapterFactory = (luvio) => function UnifiedAnalytics__getFollowers(untrustedConfig, requestContext) {
|
|
3877
|
-
const config = validateAdapterConfig$
|
|
3925
|
+
const config = validateAdapterConfig$k(untrustedConfig, getFollowers_ConfigPropertyNames);
|
|
3878
3926
|
// Invalid or incomplete config
|
|
3879
3927
|
if (config === null) {
|
|
3880
3928
|
return null;
|
|
@@ -3883,9 +3931,9 @@ const getFollowersAdapterFactory = (luvio) => function UnifiedAnalytics__getFoll
|
|
|
3883
3931
|
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
3884
3932
|
};
|
|
3885
3933
|
|
|
3886
|
-
const TTL$
|
|
3887
|
-
const VERSION$
|
|
3888
|
-
function validate$
|
|
3934
|
+
const TTL$3 = 500;
|
|
3935
|
+
const VERSION$b = "1f44696f5314fa2f963688e14067a00c";
|
|
3936
|
+
function validate$e(obj, path = 'FollowedAssetCollectionRepresentation') {
|
|
3889
3937
|
const v_error = (() => {
|
|
3890
3938
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3891
3939
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3898,7 +3946,7 @@ function validate$d(obj, path = 'FollowedAssetCollectionRepresentation') {
|
|
|
3898
3946
|
for (let i = 0; i < obj_followedAssets.length; i++) {
|
|
3899
3947
|
const obj_followedAssets_item = obj_followedAssets[i];
|
|
3900
3948
|
const path_followedAssets_item = path_followedAssets + '[' + i + ']';
|
|
3901
|
-
const referencepath_followedAssets_itemValidationError = validate$
|
|
3949
|
+
const referencepath_followedAssets_itemValidationError = validate$g(obj_followedAssets_item, path_followedAssets_item);
|
|
3902
3950
|
if (referencepath_followedAssets_itemValidationError !== null) {
|
|
3903
3951
|
let message = 'Object doesn\'t match FollowedAssetRepresentation (at "' + path_followedAssets_item + '")\n';
|
|
3904
3952
|
message += referencepath_followedAssets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3908,62 +3956,62 @@ function validate$d(obj, path = 'FollowedAssetCollectionRepresentation') {
|
|
|
3908
3956
|
})();
|
|
3909
3957
|
return v_error === undefined ? null : v_error;
|
|
3910
3958
|
}
|
|
3911
|
-
const RepresentationType$
|
|
3912
|
-
function normalize$
|
|
3959
|
+
const RepresentationType$b = 'FollowedAssetCollectionRepresentation';
|
|
3960
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
3913
3961
|
return input;
|
|
3914
3962
|
}
|
|
3915
|
-
const select$
|
|
3963
|
+
const select$s = function FollowedAssetCollectionRepresentationSelect() {
|
|
3916
3964
|
return {
|
|
3917
3965
|
kind: 'Fragment',
|
|
3918
|
-
version: VERSION$
|
|
3966
|
+
version: VERSION$b,
|
|
3919
3967
|
private: [],
|
|
3920
3968
|
opaque: true
|
|
3921
3969
|
};
|
|
3922
3970
|
};
|
|
3923
|
-
function equals$
|
|
3971
|
+
function equals$b(existing, incoming) {
|
|
3924
3972
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3925
3973
|
return false;
|
|
3926
3974
|
}
|
|
3927
3975
|
return true;
|
|
3928
3976
|
}
|
|
3929
|
-
const ingest$
|
|
3977
|
+
const ingest$b = function FollowedAssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3930
3978
|
if (process.env.NODE_ENV !== 'production') {
|
|
3931
|
-
const validateError = validate$
|
|
3979
|
+
const validateError = validate$e(input);
|
|
3932
3980
|
if (validateError !== null) {
|
|
3933
3981
|
throw validateError;
|
|
3934
3982
|
}
|
|
3935
3983
|
}
|
|
3936
3984
|
const key = path.fullPath;
|
|
3937
|
-
const ttlToUse = TTL$
|
|
3938
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3985
|
+
const ttlToUse = TTL$3;
|
|
3986
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "UnifiedAnalytics", VERSION$b, RepresentationType$b, equals$b);
|
|
3939
3987
|
return createLink(key);
|
|
3940
3988
|
};
|
|
3941
|
-
function getTypeCacheKeys$
|
|
3989
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
3942
3990
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3943
3991
|
const rootKey = fullPathFactory();
|
|
3944
3992
|
rootKeySet.set(rootKey, {
|
|
3945
3993
|
namespace: keyPrefix,
|
|
3946
|
-
representationName: RepresentationType$
|
|
3994
|
+
representationName: RepresentationType$b,
|
|
3947
3995
|
mergeable: false
|
|
3948
3996
|
});
|
|
3949
3997
|
}
|
|
3950
3998
|
|
|
3951
|
-
function select$
|
|
3952
|
-
return select$
|
|
3999
|
+
function select$r(luvio, params) {
|
|
4000
|
+
return select$s();
|
|
3953
4001
|
}
|
|
3954
|
-
function keyBuilder$
|
|
4002
|
+
function keyBuilder$r(luvio, params) {
|
|
3955
4003
|
return keyPrefix + '::FollowedAssetCollectionRepresentation:(' + 'followedAssetType:' + params.queryParams.followedAssetType + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'followerId:' + params.urlParams.followerId + ')';
|
|
3956
4004
|
}
|
|
3957
|
-
function getResponseCacheKeys$
|
|
3958
|
-
getTypeCacheKeys$
|
|
4005
|
+
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
4006
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$r(luvio, resourceParams));
|
|
3959
4007
|
}
|
|
3960
|
-
function ingestSuccess$
|
|
4008
|
+
function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
3961
4009
|
const { body } = response;
|
|
3962
|
-
const key = keyBuilder$
|
|
3963
|
-
luvio.storeIngest(key, ingest$
|
|
4010
|
+
const key = keyBuilder$r(luvio, resourceParams);
|
|
4011
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
3964
4012
|
const snapshot = luvio.storeLookup({
|
|
3965
4013
|
recordId: key,
|
|
3966
|
-
node: select$
|
|
4014
|
+
node: select$r(),
|
|
3967
4015
|
variables: {},
|
|
3968
4016
|
}, snapshotRefresh);
|
|
3969
4017
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3975,18 +4023,18 @@ function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3975
4023
|
return snapshot;
|
|
3976
4024
|
}
|
|
3977
4025
|
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
3978
|
-
const key = keyBuilder$
|
|
4026
|
+
const key = keyBuilder$r(luvio, params);
|
|
3979
4027
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3980
4028
|
const storeMetadataParams = {
|
|
3981
|
-
ttl: TTL$
|
|
4029
|
+
ttl: TTL$3,
|
|
3982
4030
|
namespace: keyPrefix,
|
|
3983
|
-
version: VERSION$
|
|
3984
|
-
representationName: RepresentationType$
|
|
4031
|
+
version: VERSION$b,
|
|
4032
|
+
representationName: RepresentationType$b
|
|
3985
4033
|
};
|
|
3986
4034
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
3987
4035
|
return errorSnapshot;
|
|
3988
4036
|
}
|
|
3989
|
-
function createResourceRequest$
|
|
4037
|
+
function createResourceRequest$j(config) {
|
|
3990
4038
|
const headers = {};
|
|
3991
4039
|
return {
|
|
3992
4040
|
baseUri: '/services/data/v62.0',
|
|
@@ -4000,63 +4048,63 @@ function createResourceRequest$i(config) {
|
|
|
4000
4048
|
};
|
|
4001
4049
|
}
|
|
4002
4050
|
|
|
4003
|
-
const adapterName$
|
|
4051
|
+
const adapterName$j = 'getFollowedAssets';
|
|
4004
4052
|
const getFollowedAssets_ConfigPropertyMetadata = [
|
|
4005
4053
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4006
4054
|
generateParamConfigMetadata('followedAssetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4007
4055
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4008
4056
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4009
4057
|
];
|
|
4010
|
-
const getFollowedAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4011
|
-
const createResourceParams$
|
|
4012
|
-
function keyBuilder$
|
|
4013
|
-
const resourceParams = createResourceParams$
|
|
4014
|
-
return keyBuilder$
|
|
4058
|
+
const getFollowedAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, getFollowedAssets_ConfigPropertyMetadata);
|
|
4059
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$w(getFollowedAssets_ConfigPropertyMetadata);
|
|
4060
|
+
function keyBuilder$q(luvio, config) {
|
|
4061
|
+
const resourceParams = createResourceParams$j(config);
|
|
4062
|
+
return keyBuilder$r(luvio, resourceParams);
|
|
4015
4063
|
}
|
|
4016
|
-
function typeCheckConfig$
|
|
4064
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
4017
4065
|
const config = {};
|
|
4018
|
-
typeCheckConfig$
|
|
4066
|
+
typeCheckConfig$w(untrustedConfig, config, getFollowedAssets_ConfigPropertyMetadata);
|
|
4019
4067
|
return config;
|
|
4020
4068
|
}
|
|
4021
|
-
function validateAdapterConfig$
|
|
4069
|
+
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
4022
4070
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4023
4071
|
return null;
|
|
4024
4072
|
}
|
|
4025
4073
|
if (process.env.NODE_ENV !== 'production') {
|
|
4026
4074
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4027
4075
|
}
|
|
4028
|
-
const config = typeCheckConfig$
|
|
4076
|
+
const config = typeCheckConfig$j(untrustedConfig);
|
|
4029
4077
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4030
4078
|
return null;
|
|
4031
4079
|
}
|
|
4032
4080
|
return config;
|
|
4033
4081
|
}
|
|
4034
4082
|
function adapterFragment$8(luvio, config) {
|
|
4035
|
-
createResourceParams$
|
|
4036
|
-
return select$
|
|
4083
|
+
createResourceParams$j(config);
|
|
4084
|
+
return select$r();
|
|
4037
4085
|
}
|
|
4038
4086
|
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
4039
|
-
const snapshot = ingestSuccess$
|
|
4087
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
4040
4088
|
config,
|
|
4041
|
-
resolve: () => buildNetworkSnapshot$
|
|
4089
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4042
4090
|
});
|
|
4043
4091
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4044
4092
|
}
|
|
4045
4093
|
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
4046
4094
|
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
4047
4095
|
config,
|
|
4048
|
-
resolve: () => buildNetworkSnapshot$
|
|
4096
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4049
4097
|
});
|
|
4050
4098
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4051
4099
|
}
|
|
4052
|
-
function buildNetworkSnapshot$
|
|
4053
|
-
const resourceParams = createResourceParams$
|
|
4054
|
-
const request = createResourceRequest$
|
|
4100
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
4101
|
+
const resourceParams = createResourceParams$j(config);
|
|
4102
|
+
const request = createResourceRequest$j(resourceParams);
|
|
4055
4103
|
return luvio.dispatchResourceRequest(request, options)
|
|
4056
4104
|
.then((response) => {
|
|
4057
4105
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
4058
4106
|
const cache = new StoreKeyMap();
|
|
4059
|
-
getResponseCacheKeys$
|
|
4107
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
4060
4108
|
return cache;
|
|
4061
4109
|
});
|
|
4062
4110
|
}, (response) => {
|
|
@@ -4064,23 +4112,23 @@ function buildNetworkSnapshot$i(luvio, config, options) {
|
|
|
4064
4112
|
});
|
|
4065
4113
|
}
|
|
4066
4114
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
4067
|
-
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
4115
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$j, undefined, false);
|
|
4068
4116
|
}
|
|
4069
4117
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
4070
4118
|
const { luvio, config } = context;
|
|
4071
4119
|
const selector = {
|
|
4072
|
-
recordId: keyBuilder$
|
|
4120
|
+
recordId: keyBuilder$q(luvio, config),
|
|
4073
4121
|
node: adapterFragment$8(luvio, config),
|
|
4074
4122
|
variables: {},
|
|
4075
4123
|
};
|
|
4076
4124
|
const cacheSnapshot = storeLookup(selector, {
|
|
4077
4125
|
config,
|
|
4078
|
-
resolve: () => buildNetworkSnapshot$
|
|
4126
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4079
4127
|
});
|
|
4080
4128
|
return cacheSnapshot;
|
|
4081
4129
|
}
|
|
4082
4130
|
const getFollowedAssetsAdapterFactory = (luvio) => function UnifiedAnalytics__getFollowedAssets(untrustedConfig, requestContext) {
|
|
4083
|
-
const config = validateAdapterConfig$
|
|
4131
|
+
const config = validateAdapterConfig$j(untrustedConfig, getFollowedAssets_ConfigPropertyNames);
|
|
4084
4132
|
// Invalid or incomplete config
|
|
4085
4133
|
if (config === null) {
|
|
4086
4134
|
return null;
|
|
@@ -4089,31 +4137,195 @@ const getFollowedAssetsAdapterFactory = (luvio) => function UnifiedAnalytics__ge
|
|
|
4089
4137
|
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
4090
4138
|
};
|
|
4091
4139
|
|
|
4092
|
-
const
|
|
4093
|
-
|
|
4140
|
+
const TTL$2 = 500;
|
|
4141
|
+
const VERSION$a = "dd70f39f5c2671b1304275bf4b21c372";
|
|
4142
|
+
function validate$d(obj, path = 'AnalyticsUsersQueryResultsRepresentation') {
|
|
4094
4143
|
const v_error = (() => {
|
|
4095
4144
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4096
4145
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4097
4146
|
}
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
const
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
}
|
|
4147
|
+
const obj_items = obj.items;
|
|
4148
|
+
const path_items = path + '.items';
|
|
4149
|
+
if (!ArrayIsArray(obj_items)) {
|
|
4150
|
+
return new TypeError('Expected "array" but received "' + typeof obj_items + '" (at "' + path_items + '")');
|
|
4151
|
+
}
|
|
4152
|
+
for (let i = 0; i < obj_items.length; i++) {
|
|
4153
|
+
const obj_items_item = obj_items[i];
|
|
4154
|
+
const path_items_item = path_items + '[' + i + ']';
|
|
4155
|
+
const referencepath_items_itemValidationError = validate$i(obj_items_item, path_items_item);
|
|
4156
|
+
if (referencepath_items_itemValidationError !== null) {
|
|
4157
|
+
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_items_item + '")\n';
|
|
4158
|
+
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4159
|
+
return new TypeError(message);
|
|
4112
4160
|
}
|
|
4113
4161
|
}
|
|
4162
|
+
const obj_nextOffset = obj.nextOffset;
|
|
4163
|
+
const path_nextOffset = path + '.nextOffset';
|
|
4164
|
+
if (typeof obj_nextOffset !== 'number' || (typeof obj_nextOffset === 'number' && Math.floor(obj_nextOffset) !== obj_nextOffset)) {
|
|
4165
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_nextOffset + '" (at "' + path_nextOffset + '")');
|
|
4166
|
+
}
|
|
4167
|
+
const obj_queryKey = obj.queryKey;
|
|
4168
|
+
const path_queryKey = path + '.queryKey';
|
|
4169
|
+
if (typeof obj_queryKey !== 'string') {
|
|
4170
|
+
return new TypeError('Expected "string" but received "' + typeof obj_queryKey + '" (at "' + path_queryKey + '")');
|
|
4171
|
+
}
|
|
4172
|
+
const obj_size = obj.size;
|
|
4173
|
+
const path_size = path + '.size';
|
|
4174
|
+
if (typeof obj_size !== 'number' || (typeof obj_size === 'number' && Math.floor(obj_size) !== obj_size)) {
|
|
4175
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_size + '" (at "' + path_size + '")');
|
|
4176
|
+
}
|
|
4177
|
+
})();
|
|
4178
|
+
return v_error === undefined ? null : v_error;
|
|
4179
|
+
}
|
|
4180
|
+
const RepresentationType$a = 'AnalyticsUsersQueryResultsRepresentation';
|
|
4181
|
+
function keyBuilder$p(luvio, config) {
|
|
4182
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.searchId;
|
|
4183
|
+
}
|
|
4184
|
+
function keyBuilderFromType$6(luvio, object) {
|
|
4185
|
+
const keyParams = {
|
|
4186
|
+
searchId: object.queryKey
|
|
4187
|
+
};
|
|
4188
|
+
return keyBuilder$p(luvio, keyParams);
|
|
4189
|
+
}
|
|
4190
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
4191
|
+
return input;
|
|
4192
|
+
}
|
|
4193
|
+
const select$q = function AnalyticsUsersQueryResultsRepresentationSelect() {
|
|
4194
|
+
return {
|
|
4195
|
+
kind: 'Fragment',
|
|
4196
|
+
version: VERSION$a,
|
|
4197
|
+
private: [],
|
|
4198
|
+
opaque: true
|
|
4199
|
+
};
|
|
4200
|
+
};
|
|
4201
|
+
function equals$a(existing, incoming) {
|
|
4202
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4203
|
+
return false;
|
|
4204
|
+
}
|
|
4205
|
+
return true;
|
|
4206
|
+
}
|
|
4207
|
+
const ingest$a = function AnalyticsUsersQueryResultsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4208
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4209
|
+
const validateError = validate$d(input);
|
|
4210
|
+
if (validateError !== null) {
|
|
4211
|
+
throw validateError;
|
|
4212
|
+
}
|
|
4213
|
+
}
|
|
4214
|
+
const key = keyBuilderFromType$6(luvio, input);
|
|
4215
|
+
const ttlToUse = TTL$2;
|
|
4216
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "UnifiedAnalytics", VERSION$a, RepresentationType$a, equals$a);
|
|
4217
|
+
return createLink(key);
|
|
4218
|
+
};
|
|
4219
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
4220
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4221
|
+
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
4222
|
+
rootKeySet.set(rootKey, {
|
|
4223
|
+
namespace: keyPrefix,
|
|
4224
|
+
representationName: RepresentationType$a,
|
|
4225
|
+
mergeable: false
|
|
4226
|
+
});
|
|
4227
|
+
}
|
|
4228
|
+
|
|
4229
|
+
function select$p(luvio, params) {
|
|
4230
|
+
return select$q();
|
|
4231
|
+
}
|
|
4232
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
4233
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
4234
|
+
}
|
|
4235
|
+
function ingestSuccess$f(luvio, resourceParams, response) {
|
|
4236
|
+
const { body } = response;
|
|
4237
|
+
const key = keyBuilderFromType$6(luvio, body);
|
|
4238
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
4239
|
+
const snapshot = luvio.storeLookup({
|
|
4240
|
+
recordId: key,
|
|
4241
|
+
node: select$p(),
|
|
4242
|
+
variables: {},
|
|
4243
|
+
});
|
|
4244
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4245
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4246
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4247
|
+
}
|
|
4248
|
+
}
|
|
4249
|
+
deepFreeze(snapshot.data);
|
|
4250
|
+
return snapshot;
|
|
4251
|
+
}
|
|
4252
|
+
function createResourceRequest$i(config) {
|
|
4253
|
+
const headers = {};
|
|
4254
|
+
return {
|
|
4255
|
+
baseUri: '/services/data/v62.0',
|
|
4256
|
+
basePath: '/unified-analytics/users/query',
|
|
4257
|
+
method: 'post',
|
|
4258
|
+
body: config.body,
|
|
4259
|
+
urlParams: {},
|
|
4260
|
+
queryParams: {},
|
|
4261
|
+
headers,
|
|
4262
|
+
priority: 'normal',
|
|
4263
|
+
};
|
|
4264
|
+
}
|
|
4265
|
+
|
|
4266
|
+
const adapterName$i = 'queryUsers';
|
|
4267
|
+
const queryUsers_ConfigPropertyMetadata = [
|
|
4268
|
+
generateParamConfigMetadata('searchTerm', true, 2 /* Body */, 0 /* String */),
|
|
4269
|
+
generateParamConfigMetadata('useAutoSuggest', true, 2 /* Body */, 1 /* Boolean */),
|
|
4270
|
+
];
|
|
4271
|
+
const queryUsers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, queryUsers_ConfigPropertyMetadata);
|
|
4272
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$w(queryUsers_ConfigPropertyMetadata);
|
|
4273
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
4274
|
+
const config = {};
|
|
4275
|
+
typeCheckConfig$w(untrustedConfig, config, queryUsers_ConfigPropertyMetadata);
|
|
4276
|
+
return config;
|
|
4277
|
+
}
|
|
4278
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
4279
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4280
|
+
return null;
|
|
4281
|
+
}
|
|
4282
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4283
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4284
|
+
}
|
|
4285
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
4286
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4287
|
+
return null;
|
|
4288
|
+
}
|
|
4289
|
+
return config;
|
|
4290
|
+
}
|
|
4291
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
4292
|
+
const resourceParams = createResourceParams$i(config);
|
|
4293
|
+
const request = createResourceRequest$i(resourceParams);
|
|
4294
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4295
|
+
.then((response) => {
|
|
4296
|
+
return luvio.handleSuccessResponse(() => {
|
|
4297
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response);
|
|
4298
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4299
|
+
}, () => {
|
|
4300
|
+
const cache = new StoreKeyMap();
|
|
4301
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
4302
|
+
return cache;
|
|
4303
|
+
});
|
|
4304
|
+
}, (response) => {
|
|
4305
|
+
deepFreeze(response);
|
|
4306
|
+
throw response;
|
|
4307
|
+
});
|
|
4308
|
+
}
|
|
4309
|
+
const queryUsersAdapterFactory = (luvio) => {
|
|
4310
|
+
return function queryUsers(untrustedConfig) {
|
|
4311
|
+
const config = validateAdapterConfig$i(untrustedConfig, queryUsers_ConfigPropertyNames);
|
|
4312
|
+
// Invalid or incomplete config
|
|
4313
|
+
if (config === null) {
|
|
4314
|
+
throw new Error('Invalid config for "queryUsers"');
|
|
4315
|
+
}
|
|
4316
|
+
return buildNetworkSnapshot$i(luvio, config);
|
|
4317
|
+
};
|
|
4318
|
+
};
|
|
4319
|
+
|
|
4320
|
+
const VERSION$9 = "50a6ca06910ae9b59fcac99883bb393f";
|
|
4321
|
+
function validate$c(obj, path = 'VisualizationRepresentation') {
|
|
4322
|
+
const v_error = (() => {
|
|
4323
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4324
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4325
|
+
}
|
|
4114
4326
|
const obj_createdBy = obj.createdBy;
|
|
4115
4327
|
const path_createdBy = path + '.createdBy';
|
|
4116
|
-
const referencepath_createdByValidationError = validate$
|
|
4328
|
+
const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
|
|
4117
4329
|
if (referencepath_createdByValidationError !== null) {
|
|
4118
4330
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
4119
4331
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4166,6 +4378,22 @@ function validate$c(obj, path = 'VisualizationRepresentation') {
|
|
|
4166
4378
|
if (typeof obj_id !== 'string') {
|
|
4167
4379
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
4168
4380
|
}
|
|
4381
|
+
if (obj.interactions !== undefined) {
|
|
4382
|
+
const obj_interactions = obj.interactions;
|
|
4383
|
+
const path_interactions = path + '.interactions';
|
|
4384
|
+
if (typeof obj_interactions !== 'object' || ArrayIsArray(obj_interactions) || obj_interactions === null) {
|
|
4385
|
+
return new TypeError('Expected "object" but received "' + typeof obj_interactions + '" (at "' + path_interactions + '")');
|
|
4386
|
+
}
|
|
4387
|
+
const obj_interactions_keys = ObjectKeys(obj_interactions);
|
|
4388
|
+
for (let i = 0; i < obj_interactions_keys.length; i++) {
|
|
4389
|
+
const key = obj_interactions_keys[i];
|
|
4390
|
+
const obj_interactions_prop = obj_interactions[key];
|
|
4391
|
+
const path_interactions_prop = path_interactions + '["' + key + '"]';
|
|
4392
|
+
if (obj_interactions_prop === undefined) {
|
|
4393
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_interactions_prop + '" (at "' + path_interactions_prop + '")');
|
|
4394
|
+
}
|
|
4395
|
+
}
|
|
4396
|
+
}
|
|
4169
4397
|
const obj_label = obj.label;
|
|
4170
4398
|
const path_label = path + '.label';
|
|
4171
4399
|
if (typeof obj_label !== 'string') {
|
|
@@ -4174,7 +4402,7 @@ function validate$c(obj, path = 'VisualizationRepresentation') {
|
|
|
4174
4402
|
if (obj.lastModifiedBy !== undefined) {
|
|
4175
4403
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
4176
4404
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
4177
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
4405
|
+
const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
|
|
4178
4406
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
4179
4407
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
4180
4408
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4436,14 +4664,14 @@ const getVisualizations_ConfigPropertyMetadata = [
|
|
|
4436
4664
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4437
4665
|
];
|
|
4438
4666
|
const getVisualizations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getVisualizations_ConfigPropertyMetadata);
|
|
4439
|
-
const createResourceParams$h = /*#__PURE__*/ createResourceParams$
|
|
4667
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$w(getVisualizations_ConfigPropertyMetadata);
|
|
4440
4668
|
function keyBuilder$m(luvio, config) {
|
|
4441
4669
|
const resourceParams = createResourceParams$h(config);
|
|
4442
4670
|
return keyBuilder$n(luvio, resourceParams);
|
|
4443
4671
|
}
|
|
4444
4672
|
function typeCheckConfig$h(untrustedConfig) {
|
|
4445
4673
|
const config = {};
|
|
4446
|
-
typeCheckConfig$
|
|
4674
|
+
typeCheckConfig$w(untrustedConfig, config, getVisualizations_ConfigPropertyMetadata);
|
|
4447
4675
|
return config;
|
|
4448
4676
|
}
|
|
4449
4677
|
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
@@ -4565,13 +4793,13 @@ const createVisualization_ConfigPropertyMetadata = [
|
|
|
4565
4793
|
generateParamConfigMetadata('visualSpecification', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4566
4794
|
generateParamConfigMetadata('fields', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4567
4795
|
generateParamConfigMetadata('view', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4568
|
-
generateParamConfigMetadata('
|
|
4796
|
+
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4569
4797
|
];
|
|
4570
4798
|
const createVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, createVisualization_ConfigPropertyMetadata);
|
|
4571
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
4799
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$w(createVisualization_ConfigPropertyMetadata);
|
|
4572
4800
|
function typeCheckConfig$g(untrustedConfig) {
|
|
4573
4801
|
const config = {};
|
|
4574
|
-
typeCheckConfig$
|
|
4802
|
+
typeCheckConfig$w(untrustedConfig, config, createVisualization_ConfigPropertyMetadata);
|
|
4575
4803
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
4576
4804
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
4577
4805
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -4647,19 +4875,19 @@ function typeCheckConfig$g(untrustedConfig) {
|
|
|
4647
4875
|
config.view = untrustedConfig_view_object;
|
|
4648
4876
|
}
|
|
4649
4877
|
}
|
|
4650
|
-
const
|
|
4651
|
-
if (untrustedIsObject(
|
|
4652
|
-
const
|
|
4653
|
-
const
|
|
4654
|
-
for (let i = 0, arrayLength =
|
|
4655
|
-
const key =
|
|
4656
|
-
const
|
|
4657
|
-
if (
|
|
4658
|
-
|
|
4878
|
+
const untrustedConfig_interactions = untrustedConfig.interactions;
|
|
4879
|
+
if (untrustedIsObject(untrustedConfig_interactions)) {
|
|
4880
|
+
const untrustedConfig_interactions_object = {};
|
|
4881
|
+
const untrustedConfig_interactions_keys = Object.keys(untrustedConfig_interactions);
|
|
4882
|
+
for (let i = 0, arrayLength = untrustedConfig_interactions_keys.length; i < arrayLength; i++) {
|
|
4883
|
+
const key = untrustedConfig_interactions_keys[i];
|
|
4884
|
+
const untrustedConfig_interactions_prop = untrustedConfig_interactions[key];
|
|
4885
|
+
if (untrustedConfig_interactions_object !== undefined) {
|
|
4886
|
+
untrustedConfig_interactions_object[key] = untrustedConfig_interactions_prop;
|
|
4659
4887
|
}
|
|
4660
4888
|
}
|
|
4661
|
-
if (
|
|
4662
|
-
config.
|
|
4889
|
+
if (untrustedConfig_interactions_object !== undefined && Object.keys(untrustedConfig_interactions_object).length >= 0) {
|
|
4890
|
+
config.interactions = untrustedConfig_interactions_object;
|
|
4663
4891
|
}
|
|
4664
4892
|
}
|
|
4665
4893
|
return config;
|
|
@@ -4742,10 +4970,10 @@ const deleteVisualization_ConfigPropertyMetadata = [
|
|
|
4742
4970
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4743
4971
|
];
|
|
4744
4972
|
const deleteVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, deleteVisualization_ConfigPropertyMetadata);
|
|
4745
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
4973
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$w(deleteVisualization_ConfigPropertyMetadata);
|
|
4746
4974
|
function typeCheckConfig$f(untrustedConfig) {
|
|
4747
4975
|
const config = {};
|
|
4748
|
-
typeCheckConfig$
|
|
4976
|
+
typeCheckConfig$w(untrustedConfig, config, deleteVisualization_ConfigPropertyMetadata);
|
|
4749
4977
|
return config;
|
|
4750
4978
|
}
|
|
4751
4979
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -4843,14 +5071,14 @@ const getVisualization_ConfigPropertyMetadata = [
|
|
|
4843
5071
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4844
5072
|
];
|
|
4845
5073
|
const getVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getVisualization_ConfigPropertyMetadata);
|
|
4846
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
5074
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$w(getVisualization_ConfigPropertyMetadata);
|
|
4847
5075
|
function keyBuilder$j(luvio, config) {
|
|
4848
5076
|
const resourceParams = createResourceParams$e(config);
|
|
4849
5077
|
return keyBuilder$k(luvio, resourceParams);
|
|
4850
5078
|
}
|
|
4851
5079
|
function typeCheckConfig$e(untrustedConfig) {
|
|
4852
5080
|
const config = {};
|
|
4853
|
-
typeCheckConfig$
|
|
5081
|
+
typeCheckConfig$w(untrustedConfig, config, getVisualization_ConfigPropertyMetadata);
|
|
4854
5082
|
return config;
|
|
4855
5083
|
}
|
|
4856
5084
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -4973,13 +5201,13 @@ const updateVisualization_ConfigPropertyMetadata = [
|
|
|
4973
5201
|
generateParamConfigMetadata('visualSpecification', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4974
5202
|
generateParamConfigMetadata('fields', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4975
5203
|
generateParamConfigMetadata('view', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4976
|
-
generateParamConfigMetadata('
|
|
5204
|
+
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4977
5205
|
];
|
|
4978
5206
|
const updateVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, updateVisualization_ConfigPropertyMetadata);
|
|
4979
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
5207
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$w(updateVisualization_ConfigPropertyMetadata);
|
|
4980
5208
|
function typeCheckConfig$d(untrustedConfig) {
|
|
4981
5209
|
const config = {};
|
|
4982
|
-
typeCheckConfig$
|
|
5210
|
+
typeCheckConfig$w(untrustedConfig, config, updateVisualization_ConfigPropertyMetadata);
|
|
4983
5211
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
4984
5212
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
4985
5213
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -5055,19 +5283,19 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
5055
5283
|
config.view = untrustedConfig_view_object;
|
|
5056
5284
|
}
|
|
5057
5285
|
}
|
|
5058
|
-
const
|
|
5059
|
-
if (untrustedIsObject(
|
|
5060
|
-
const
|
|
5061
|
-
const
|
|
5062
|
-
for (let i = 0, arrayLength =
|
|
5063
|
-
const key =
|
|
5064
|
-
const
|
|
5065
|
-
if (
|
|
5066
|
-
|
|
5286
|
+
const untrustedConfig_interactions = untrustedConfig.interactions;
|
|
5287
|
+
if (untrustedIsObject(untrustedConfig_interactions)) {
|
|
5288
|
+
const untrustedConfig_interactions_object = {};
|
|
5289
|
+
const untrustedConfig_interactions_keys = Object.keys(untrustedConfig_interactions);
|
|
5290
|
+
for (let i = 0, arrayLength = untrustedConfig_interactions_keys.length; i < arrayLength; i++) {
|
|
5291
|
+
const key = untrustedConfig_interactions_keys[i];
|
|
5292
|
+
const untrustedConfig_interactions_prop = untrustedConfig_interactions[key];
|
|
5293
|
+
if (untrustedConfig_interactions_object !== undefined) {
|
|
5294
|
+
untrustedConfig_interactions_object[key] = untrustedConfig_interactions_prop;
|
|
5067
5295
|
}
|
|
5068
5296
|
}
|
|
5069
|
-
if (
|
|
5070
|
-
config.
|
|
5297
|
+
if (untrustedConfig_interactions_object !== undefined && Object.keys(untrustedConfig_interactions_object).length >= 0) {
|
|
5298
|
+
config.interactions = untrustedConfig_interactions_object;
|
|
5071
5299
|
}
|
|
5072
5300
|
}
|
|
5073
5301
|
return config;
|
|
@@ -5114,25 +5342,25 @@ const updateVisualizationAdapterFactory = (luvio) => {
|
|
|
5114
5342
|
};
|
|
5115
5343
|
};
|
|
5116
5344
|
|
|
5117
|
-
const VERSION$7 = "
|
|
5345
|
+
const VERSION$7 = "416df01ab969e33f3e6ff69f058b2a52";
|
|
5118
5346
|
function validate$a(obj, path = 'VisualizationBundleRepresentation') {
|
|
5119
5347
|
const v_error = (() => {
|
|
5120
5348
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5121
5349
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5122
5350
|
}
|
|
5123
|
-
if (obj.
|
|
5124
|
-
const
|
|
5125
|
-
const
|
|
5126
|
-
if (typeof
|
|
5127
|
-
return new TypeError('Expected "object" but received "' + typeof
|
|
5128
|
-
}
|
|
5129
|
-
const
|
|
5130
|
-
for (let i = 0; i <
|
|
5131
|
-
const key =
|
|
5132
|
-
const
|
|
5133
|
-
const
|
|
5134
|
-
if (
|
|
5135
|
-
return new TypeError('Expected "defined" but received "' + typeof
|
|
5351
|
+
if (obj.dataSource !== undefined) {
|
|
5352
|
+
const obj_dataSource = obj.dataSource;
|
|
5353
|
+
const path_dataSource = path + '.dataSource';
|
|
5354
|
+
if (typeof obj_dataSource !== 'object' || ArrayIsArray(obj_dataSource) || obj_dataSource === null) {
|
|
5355
|
+
return new TypeError('Expected "object" but received "' + typeof obj_dataSource + '" (at "' + path_dataSource + '")');
|
|
5356
|
+
}
|
|
5357
|
+
const obj_dataSource_keys = ObjectKeys(obj_dataSource);
|
|
5358
|
+
for (let i = 0; i < obj_dataSource_keys.length; i++) {
|
|
5359
|
+
const key = obj_dataSource_keys[i];
|
|
5360
|
+
const obj_dataSource_prop = obj_dataSource[key];
|
|
5361
|
+
const path_dataSource_prop = path_dataSource + '["' + key + '"]';
|
|
5362
|
+
if (obj_dataSource_prop === undefined) {
|
|
5363
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_dataSource_prop + '" (at "' + path_dataSource_prop + '")');
|
|
5136
5364
|
}
|
|
5137
5365
|
}
|
|
5138
5366
|
}
|
|
@@ -5249,14 +5477,14 @@ const getVisualizationBundle_ConfigPropertyMetadata = [
|
|
|
5249
5477
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5250
5478
|
];
|
|
5251
5479
|
const getVisualizationBundle_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getVisualizationBundle_ConfigPropertyMetadata);
|
|
5252
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
5480
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$w(getVisualizationBundle_ConfigPropertyMetadata);
|
|
5253
5481
|
function keyBuilder$g(luvio, config) {
|
|
5254
5482
|
const resourceParams = createResourceParams$c(config);
|
|
5255
5483
|
return keyBuilder$h(luvio, resourceParams);
|
|
5256
5484
|
}
|
|
5257
5485
|
function typeCheckConfig$c(untrustedConfig) {
|
|
5258
5486
|
const config = {};
|
|
5259
|
-
typeCheckConfig$
|
|
5487
|
+
typeCheckConfig$w(untrustedConfig, config, getVisualizationBundle_ConfigPropertyMetadata);
|
|
5260
5488
|
return config;
|
|
5261
5489
|
}
|
|
5262
5490
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -5343,7 +5571,7 @@ function validate$9(obj, path = 'WorkspaceRepresentation') {
|
|
|
5343
5571
|
}
|
|
5344
5572
|
const obj_createdBy = obj.createdBy;
|
|
5345
5573
|
const path_createdBy = path + '.createdBy';
|
|
5346
|
-
const referencepath_createdByValidationError = validate$
|
|
5574
|
+
const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
|
|
5347
5575
|
if (referencepath_createdByValidationError !== null) {
|
|
5348
5576
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
5349
5577
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5592,14 +5820,14 @@ const getWorkspaces_ConfigPropertyMetadata = [
|
|
|
5592
5820
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5593
5821
|
];
|
|
5594
5822
|
const getWorkspaces_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getWorkspaces_ConfigPropertyMetadata);
|
|
5595
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
5823
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$w(getWorkspaces_ConfigPropertyMetadata);
|
|
5596
5824
|
function keyBuilder$d(luvio, config) {
|
|
5597
5825
|
const resourceParams = createResourceParams$b(config);
|
|
5598
5826
|
return keyBuilder$e(luvio, resourceParams);
|
|
5599
5827
|
}
|
|
5600
5828
|
function typeCheckConfig$b(untrustedConfig) {
|
|
5601
5829
|
const config = {};
|
|
5602
|
-
typeCheckConfig$
|
|
5830
|
+
typeCheckConfig$w(untrustedConfig, config, getWorkspaces_ConfigPropertyMetadata);
|
|
5603
5831
|
return config;
|
|
5604
5832
|
}
|
|
5605
5833
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -5718,10 +5946,10 @@ const createWorkspace_ConfigPropertyMetadata = [
|
|
|
5718
5946
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
5719
5947
|
];
|
|
5720
5948
|
const createWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createWorkspace_ConfigPropertyMetadata);
|
|
5721
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
5949
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$w(createWorkspace_ConfigPropertyMetadata);
|
|
5722
5950
|
function typeCheckConfig$a(untrustedConfig) {
|
|
5723
5951
|
const config = {};
|
|
5724
|
-
typeCheckConfig$
|
|
5952
|
+
typeCheckConfig$w(untrustedConfig, config, createWorkspace_ConfigPropertyMetadata);
|
|
5725
5953
|
return config;
|
|
5726
5954
|
}
|
|
5727
5955
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -5802,10 +6030,10 @@ const deleteWorkspace_ConfigPropertyMetadata = [
|
|
|
5802
6030
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5803
6031
|
];
|
|
5804
6032
|
const deleteWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, deleteWorkspace_ConfigPropertyMetadata);
|
|
5805
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
6033
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$w(deleteWorkspace_ConfigPropertyMetadata);
|
|
5806
6034
|
function typeCheckConfig$9(untrustedConfig) {
|
|
5807
6035
|
const config = {};
|
|
5808
|
-
typeCheckConfig$
|
|
6036
|
+
typeCheckConfig$w(untrustedConfig, config, deleteWorkspace_ConfigPropertyMetadata);
|
|
5809
6037
|
return config;
|
|
5810
6038
|
}
|
|
5811
6039
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -5903,14 +6131,14 @@ const getWorkspaceByIdOrName_ConfigPropertyMetadata = [
|
|
|
5903
6131
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5904
6132
|
];
|
|
5905
6133
|
const getWorkspaceByIdOrName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
5906
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
6134
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$w(getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
5907
6135
|
function keyBuilder$a(luvio, config) {
|
|
5908
6136
|
const resourceParams = createResourceParams$8(config);
|
|
5909
6137
|
return keyBuilder$b(luvio, resourceParams);
|
|
5910
6138
|
}
|
|
5911
6139
|
function typeCheckConfig$8(untrustedConfig) {
|
|
5912
6140
|
const config = {};
|
|
5913
|
-
typeCheckConfig$
|
|
6141
|
+
typeCheckConfig$w(untrustedConfig, config, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
5914
6142
|
return config;
|
|
5915
6143
|
}
|
|
5916
6144
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -6030,10 +6258,10 @@ const updateWorkspace_ConfigPropertyMetadata = [
|
|
|
6030
6258
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
6031
6259
|
];
|
|
6032
6260
|
const updateWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, updateWorkspace_ConfigPropertyMetadata);
|
|
6033
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
6261
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$w(updateWorkspace_ConfigPropertyMetadata);
|
|
6034
6262
|
function typeCheckConfig$7(untrustedConfig) {
|
|
6035
6263
|
const config = {};
|
|
6036
|
-
typeCheckConfig$
|
|
6264
|
+
typeCheckConfig$w(untrustedConfig, config, updateWorkspace_ConfigPropertyMetadata);
|
|
6037
6265
|
return config;
|
|
6038
6266
|
}
|
|
6039
6267
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -6101,7 +6329,7 @@ function validate$7(obj, path = 'WorkspaceAssetRepresentation') {
|
|
|
6101
6329
|
}
|
|
6102
6330
|
const obj_createdBy = obj.createdBy;
|
|
6103
6331
|
const path_createdBy = path + '.createdBy';
|
|
6104
|
-
const referencepath_createdByValidationError = validate$
|
|
6332
|
+
const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
|
|
6105
6333
|
if (referencepath_createdByValidationError !== null) {
|
|
6106
6334
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
6107
6335
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6214,10 +6442,10 @@ const createWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
6214
6442
|
generateParamConfigMetadata('assetUsageType', true, 2 /* Body */, 0 /* String */),
|
|
6215
6443
|
];
|
|
6216
6444
|
const createWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
6217
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
6445
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$w(createWorkspaceAsset_ConfigPropertyMetadata);
|
|
6218
6446
|
function typeCheckConfig$6(untrustedConfig) {
|
|
6219
6447
|
const config = {};
|
|
6220
|
-
typeCheckConfig$
|
|
6448
|
+
typeCheckConfig$w(untrustedConfig, config, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
6221
6449
|
return config;
|
|
6222
6450
|
}
|
|
6223
6451
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -6299,10 +6527,10 @@ const deleteWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
6299
6527
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6300
6528
|
];
|
|
6301
6529
|
const deleteWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
6302
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
6530
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$w(deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
6303
6531
|
function typeCheckConfig$5(untrustedConfig) {
|
|
6304
6532
|
const config = {};
|
|
6305
|
-
typeCheckConfig$
|
|
6533
|
+
typeCheckConfig$w(untrustedConfig, config, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
6306
6534
|
return config;
|
|
6307
6535
|
}
|
|
6308
6536
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -6686,14 +6914,14 @@ const getFlows_ConfigPropertyMetadata = [
|
|
|
6686
6914
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
6687
6915
|
];
|
|
6688
6916
|
const getFlows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getFlows_ConfigPropertyMetadata);
|
|
6689
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
6917
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$w(getFlows_ConfigPropertyMetadata);
|
|
6690
6918
|
function keyBuilder$6(luvio, config) {
|
|
6691
6919
|
const resourceParams = createResourceParams$4(config);
|
|
6692
6920
|
return keyBuilder$7(luvio, resourceParams);
|
|
6693
6921
|
}
|
|
6694
6922
|
function typeCheckConfig$4(untrustedConfig) {
|
|
6695
6923
|
const config = {};
|
|
6696
|
-
typeCheckConfig$
|
|
6924
|
+
typeCheckConfig$w(untrustedConfig, config, getFlows_ConfigPropertyMetadata);
|
|
6697
6925
|
return config;
|
|
6698
6926
|
}
|
|
6699
6927
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -6818,14 +7046,14 @@ const getFlowByName_ConfigPropertyMetadata = [
|
|
|
6818
7046
|
generateParamConfigMetadata('flowApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6819
7047
|
];
|
|
6820
7048
|
const getFlowByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getFlowByName_ConfigPropertyMetadata);
|
|
6821
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
7049
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$w(getFlowByName_ConfigPropertyMetadata);
|
|
6822
7050
|
function keyBuilder$4(luvio, config) {
|
|
6823
7051
|
const resourceParams = createResourceParams$3(config);
|
|
6824
7052
|
return keyBuilder$5(luvio, resourceParams);
|
|
6825
7053
|
}
|
|
6826
7054
|
function typeCheckConfig$3(untrustedConfig) {
|
|
6827
7055
|
const config = {};
|
|
6828
|
-
typeCheckConfig$
|
|
7056
|
+
typeCheckConfig$w(untrustedConfig, config, getFlowByName_ConfigPropertyMetadata);
|
|
6829
7057
|
return config;
|
|
6830
7058
|
}
|
|
6831
7059
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -7032,14 +7260,14 @@ const getSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
7032
7260
|
generateParamConfigMetadata('digestConfigOwner', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7033
7261
|
];
|
|
7034
7262
|
const getSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
7035
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
7263
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$w(getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
7036
7264
|
function keyBuilder$1(luvio, config) {
|
|
7037
7265
|
const resourceParams = createResourceParams$2(config);
|
|
7038
7266
|
return keyBuilder$2(luvio, resourceParams);
|
|
7039
7267
|
}
|
|
7040
7268
|
function typeCheckConfig$2(untrustedConfig) {
|
|
7041
7269
|
const config = {};
|
|
7042
|
-
typeCheckConfig$
|
|
7270
|
+
typeCheckConfig$w(untrustedConfig, config, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
7043
7271
|
return config;
|
|
7044
7272
|
}
|
|
7045
7273
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -7157,10 +7385,10 @@ const updateSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
7157
7385
|
generateParamConfigMetadata('scheduleType', true, 2 /* Body */, 0 /* String */),
|
|
7158
7386
|
];
|
|
7159
7387
|
const updateSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
7160
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
7388
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$w(updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
7161
7389
|
function typeCheckConfig$1(untrustedConfig) {
|
|
7162
7390
|
const config = {};
|
|
7163
|
-
typeCheckConfig$
|
|
7391
|
+
typeCheckConfig$w(untrustedConfig, config, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
7164
7392
|
return config;
|
|
7165
7393
|
}
|
|
7166
7394
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -7390,7 +7618,7 @@ const getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata = [
|
|
|
7390
7618
|
generateParamConfigMetadata('searchToken', false, 2 /* Body */, 4 /* Unsupported */),
|
|
7391
7619
|
];
|
|
7392
7620
|
const getUnifiedAnalyticsLibraryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
7393
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
7621
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$w(getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
7394
7622
|
function typeCheckConfig(untrustedConfig) {
|
|
7395
7623
|
const config = {};
|
|
7396
7624
|
const untrustedConfig_assetTypes = untrustedConfig.assetTypes;
|
|
@@ -7499,4 +7727,4 @@ const getUnifiedAnalyticsLibraryAssetsAdapterFactory = (luvio) => {
|
|
|
7499
7727
|
};
|
|
7500
7728
|
};
|
|
7501
7729
|
|
|
7502
|
-
export { createAnnotationAdapterFactory, createDashboardAdapterFactory, createVisualizationAdapterFactory, createWorkspaceAdapterFactory, createWorkspaceAssetAdapterFactory, deleteDashboardAdapterFactory, deleteVisualizationAdapterFactory, deleteWorkspaceAdapterFactory, deleteWorkspaceAssetAdapterFactory, followAdapterFactory, getAnnotationsAdapterFactory, getDashboardByNameAdapterFactory, getDashboardsAdapterFactory, getFlowByNameAdapterFactory, getFlowsAdapterFactory, getFollowedAssetsAdapterFactory, getFollowersAdapterFactory, getSlackAppInfoAdapterFactory, getSubscriptionDigestConfigAdapterFactory, getUnifiedAnalyticsLibraryAssetsAdapterFactory, getVisualizationAdapterFactory, getVisualizationBundleAdapterFactory, getVisualizationsAdapterFactory, getWorkspaceByIdOrNameAdapterFactory, getWorkspacesAdapterFactory, queryAssetsAdapterFactory, unfollowAdapterFactory, updateDashboardAdapterFactory, updateSubscriptionDigestConfigAdapterFactory, updateVisualizationAdapterFactory, updateWorkspaceAdapterFactory };
|
|
7730
|
+
export { createAnnotationAdapterFactory, createDashboardAdapterFactory, createVisualizationAdapterFactory, createWorkspaceAdapterFactory, createWorkspaceAssetAdapterFactory, deleteDashboardAdapterFactory, deleteVisualizationAdapterFactory, deleteWorkspaceAdapterFactory, deleteWorkspaceAssetAdapterFactory, followAdapterFactory, getAnnotationsAdapterFactory, getDashboardByNameAdapterFactory, getDashboardsAdapterFactory, getFlowByNameAdapterFactory, getFlowsAdapterFactory, getFollowedAssetsAdapterFactory, getFollowersAdapterFactory, getSlackAppInfoAdapterFactory, getSubscriptionDigestConfigAdapterFactory, getUnifiedAnalyticsLibraryAssetsAdapterFactory, getVisualizationAdapterFactory, getVisualizationBundleAdapterFactory, getVisualizationsAdapterFactory, getWorkspaceByIdOrNameAdapterFactory, getWorkspacesAdapterFactory, queryAssetsAdapterFactory, queryUsersAdapterFactory, unfollowAdapterFactory, updateDashboardAdapterFactory, updateSubscriptionDigestConfigAdapterFactory, updateVisualizationAdapterFactory, updateWorkspaceAdapterFactory };
|