@salesforce/lds-adapters-analytics-unifiedanalytics 1.306.0 → 1.308.0-dev1
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 +1258 -817
- package/dist/es/es2018/types/src/generated/adapters/createAssetSlackChannel.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/adapters/createVisualization.d.ts +1 -3
- package/dist/es/es2018/types/src/generated/adapters/getAssetSlackChannels.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/updateVisualization.d.ts +1 -3
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/resources/getUnifiedAnalyticsSlackChannels.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/patchUnifiedAnalyticsVisualizationsByVisualizationIdOrApiName.d.ts +1 -3
- package/dist/es/es2018/types/src/generated/resources/postUnifiedAnalyticsSlackChannels.d.ts +14 -0
- package/dist/es/es2018/types/src/generated/resources/postUnifiedAnalyticsVisualizations.d.ts +1 -3
- package/dist/es/es2018/types/src/generated/types/AssetSlackChannelCollectionRepresentation.d.ts +39 -0
- package/dist/es/es2018/types/src/generated/types/AssetSlackChannelInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/AssetSlackChannelRepresentation.d.ts +50 -0
- package/dist/es/es2018/types/src/generated/types/VisualizationInputRepresentation.d.ts +3 -7
- package/dist/es/es2018/types/src/generated/types/VisualizationRepresentation.d.ts +3 -7
- package/dist/es/es2018/types/src/generated/types/WorkspaceRepresentation.d.ts +3 -3
- package/package.json +3 -3
- package/sfdc/index.js +1028 -572
- package/src/raml/api.raml +75 -8
- package/src/raml/luvio.raml +14 -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$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$f, typeCheckConfig as typeCheckConfig$y, StoreKeyMap, createResourceParams as createResourceParams$y } 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$E(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$C(obj, path = 'DashboardAnnotationAnchorRepresentation') {
|
|
|
107
107
|
return v_error === undefined ? null : v_error;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
function validate$
|
|
110
|
+
function validate$D(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$B(obj, path = 'AnnotationAssetRepresentation') {
|
|
|
126
126
|
return v_error === undefined ? null : v_error;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
function validate$
|
|
129
|
+
function validate$C(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$A(obj, path = 'FileTypeOutputRepresentation') {
|
|
|
145
145
|
return v_error === undefined ? null : v_error;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
function validate$
|
|
148
|
+
function validate$B(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$z(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$C(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$z(obj, path = 'ContentVersionOutputRepresentation') {
|
|
|
229
229
|
return v_error === undefined ? null : v_error;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
function validate$
|
|
232
|
+
function validate$A(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$C(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$y(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$B(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$y(obj, path = 'ContentDocumentOutputRepresentation') {
|
|
|
269
269
|
return v_error === undefined ? null : v_error;
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
function validate$
|
|
272
|
+
function validate$z(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$x(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$A(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$x(obj, path = 'SlackFileOutputRepresentation') {
|
|
|
378
378
|
return v_error === undefined ? null : v_error;
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
function validate$
|
|
381
|
+
function validate$y(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$w(obj, path = 'SlackEmojiOutputRepresentation') {
|
|
|
502
502
|
return v_error === undefined ? null : v_error;
|
|
503
503
|
}
|
|
504
504
|
|
|
505
|
-
function validate$
|
|
505
|
+
function validate$x(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$v(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$y(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$v(obj, path = 'SlackUserInfoOutputRepresentation') {
|
|
|
892
892
|
return v_error === undefined ? null : v_error;
|
|
893
893
|
}
|
|
894
894
|
|
|
895
|
-
function validate$
|
|
895
|
+
function validate$w(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$u(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$x(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$u(obj, path = 'SlackReactionOutputRepresentation') {
|
|
|
1061
1061
|
return v_error === undefined ? null : v_error;
|
|
1062
1062
|
}
|
|
1063
1063
|
|
|
1064
|
-
function validate$
|
|
1064
|
+
function validate$v(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$t(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$z(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$t(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$w(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$t(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$x(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$t(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$x(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$t(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1371
1371
|
return v_error === undefined ? null : v_error;
|
|
1372
1372
|
}
|
|
1373
1373
|
|
|
1374
|
-
function validate$
|
|
1374
|
+
function validate$u(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$s(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$v(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$s(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$b = 1000;
|
|
1435
|
+
const VERSION$l = "bacc25da56cffff8126d9bdafc471a37";
|
|
1436
|
+
function validate$t(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$r(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$E(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$r(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$D(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$r(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$u(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$r(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$m = 'AnnotationRepresentation';
|
|
1486
|
+
function keyBuilder$L(luvio, config) {
|
|
1487
|
+
return keyPrefix + '::' + RepresentationType$m + ':' + config.id;
|
|
1488
1488
|
}
|
|
1489
|
-
function keyBuilderFromType$
|
|
1489
|
+
function keyBuilderFromType$b(luvio, object) {
|
|
1490
1490
|
const keyParams = {
|
|
1491
1491
|
id: object.id
|
|
1492
1492
|
};
|
|
1493
|
-
return keyBuilder$
|
|
1493
|
+
return keyBuilder$L(luvio, keyParams);
|
|
1494
1494
|
}
|
|
1495
|
-
function normalize$
|
|
1495
|
+
function normalize$l(input, existing, path, luvio, store, timestamp) {
|
|
1496
1496
|
return input;
|
|
1497
1497
|
}
|
|
1498
|
-
const select$
|
|
1498
|
+
const select$O = function AnnotationRepresentationSelect() {
|
|
1499
1499
|
return {
|
|
1500
1500
|
kind: 'Fragment',
|
|
1501
|
-
version: VERSION$
|
|
1501
|
+
version: VERSION$l,
|
|
1502
1502
|
private: [],
|
|
1503
1503
|
opaque: true
|
|
1504
1504
|
};
|
|
1505
1505
|
};
|
|
1506
|
-
function equals$
|
|
1506
|
+
function equals$l(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$l = function AnnotationRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1513
1513
|
if (process.env.NODE_ENV !== 'production') {
|
|
1514
|
-
const validateError = validate$
|
|
1514
|
+
const validateError = validate$t(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$b(luvio, input);
|
|
1520
|
+
const ttlToUse = TTL$b;
|
|
1521
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$l, "UnifiedAnalytics", VERSION$l, RepresentationType$m, equals$l);
|
|
1522
1522
|
return createLink(key);
|
|
1523
1523
|
};
|
|
1524
|
-
function getTypeCacheKeys$
|
|
1524
|
+
function getTypeCacheKeys$l(rootKeySet, luvio, input, fullPathFactory) {
|
|
1525
1525
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1526
|
-
const rootKey = keyBuilderFromType$
|
|
1526
|
+
const rootKey = keyBuilderFromType$b(luvio, input);
|
|
1527
1527
|
rootKeySet.set(rootKey, {
|
|
1528
1528
|
namespace: keyPrefix,
|
|
1529
|
-
representationName: RepresentationType$
|
|
1529
|
+
representationName: RepresentationType$m,
|
|
1530
1530
|
mergeable: false
|
|
1531
1531
|
});
|
|
1532
1532
|
}
|
|
1533
1533
|
|
|
1534
|
-
const TTL$
|
|
1535
|
-
const VERSION$
|
|
1536
|
-
function validate$
|
|
1534
|
+
const TTL$a = 1000;
|
|
1535
|
+
const VERSION$k = "a80c8e970184cc7789e13f69392d6203";
|
|
1536
|
+
function validate$s(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$q(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$l = 'AnnotationCollectionRepresentation';
|
|
1562
|
+
function normalize$k(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$l(input_annotations_item, {
|
|
1569
1569
|
fullPath: input_annotations_item_id,
|
|
1570
1570
|
propertyName: i,
|
|
1571
1571
|
parent: {
|
|
@@ -1578,17 +1578,17 @@ function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
|
1578
1578
|
}
|
|
1579
1579
|
return input;
|
|
1580
1580
|
}
|
|
1581
|
-
const select$
|
|
1581
|
+
const select$N = function AnnotationCollectionRepresentationSelect() {
|
|
1582
1582
|
return {
|
|
1583
1583
|
kind: 'Fragment',
|
|
1584
|
-
version: VERSION$
|
|
1584
|
+
version: VERSION$k,
|
|
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$O()
|
|
1592
1592
|
},
|
|
1593
1593
|
{
|
|
1594
1594
|
name: 'total',
|
|
@@ -1597,7 +1597,7 @@ const select$J = function AnnotationCollectionRepresentationSelect() {
|
|
|
1597
1597
|
]
|
|
1598
1598
|
};
|
|
1599
1599
|
};
|
|
1600
|
-
function equals$
|
|
1600
|
+
function equals$k(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$i(existing, incoming) {
|
|
|
1615
1615
|
}
|
|
1616
1616
|
return true;
|
|
1617
1617
|
}
|
|
1618
|
-
const ingest$
|
|
1618
|
+
const ingest$k = function AnnotationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1619
1619
|
if (process.env.NODE_ENV !== 'production') {
|
|
1620
|
-
const validateError = validate$
|
|
1620
|
+
const validateError = validate$s(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$a;
|
|
1627
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$k, "UnifiedAnalytics", VERSION$k, RepresentationType$l, equals$k);
|
|
1628
1628
|
return createLink(key);
|
|
1629
1629
|
};
|
|
1630
|
-
function getTypeCacheKeys$
|
|
1630
|
+
function getTypeCacheKeys$k(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$l,
|
|
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$l(rootKeySet, luvio, input.annotations[i]);
|
|
1641
1641
|
}
|
|
1642
1642
|
}
|
|
1643
1643
|
|
|
1644
|
-
function select$
|
|
1645
|
-
return select$
|
|
1644
|
+
function select$M(luvio, params) {
|
|
1645
|
+
return select$N();
|
|
1646
1646
|
}
|
|
1647
|
-
function keyBuilder$
|
|
1647
|
+
function keyBuilder$K(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$x(storeKeyMap, luvio, resourceParams, response) {
|
|
1651
|
+
getTypeCacheKeys$k(storeKeyMap, luvio, response, () => keyBuilder$K(luvio, resourceParams));
|
|
1652
1652
|
}
|
|
1653
|
-
function ingestSuccess$
|
|
1653
|
+
function ingestSuccess$s(luvio, resourceParams, response, snapshotRefresh) {
|
|
1654
1654
|
const { body } = response;
|
|
1655
|
-
const key = keyBuilder$
|
|
1656
|
-
luvio.storeIngest(key, ingest$
|
|
1655
|
+
const key = keyBuilder$K(luvio, resourceParams);
|
|
1656
|
+
luvio.storeIngest(key, ingest$k, body);
|
|
1657
1657
|
const snapshot = luvio.storeLookup({
|
|
1658
1658
|
recordId: key,
|
|
1659
|
-
node: select$
|
|
1659
|
+
node: select$M(),
|
|
1660
1660
|
variables: {},
|
|
1661
1661
|
}, snapshotRefresh);
|
|
1662
1662
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1667,19 +1667,19 @@ function ingestSuccess$q(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1667
1667
|
deepFreeze(snapshot.data);
|
|
1668
1668
|
return snapshot;
|
|
1669
1669
|
}
|
|
1670
|
-
function ingestError$
|
|
1671
|
-
const key = keyBuilder$
|
|
1670
|
+
function ingestError$e(luvio, params, error, snapshotRefresh) {
|
|
1671
|
+
const key = keyBuilder$K(luvio, params);
|
|
1672
1672
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1673
1673
|
const storeMetadataParams = {
|
|
1674
|
-
ttl: TTL$
|
|
1674
|
+
ttl: TTL$a,
|
|
1675
1675
|
namespace: keyPrefix,
|
|
1676
|
-
version: VERSION$
|
|
1677
|
-
representationName: RepresentationType$
|
|
1676
|
+
version: VERSION$k,
|
|
1677
|
+
representationName: RepresentationType$l
|
|
1678
1678
|
};
|
|
1679
1679
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1680
1680
|
return errorSnapshot;
|
|
1681
1681
|
}
|
|
1682
|
-
function createResourceRequest$
|
|
1682
|
+
function createResourceRequest$x(config) {
|
|
1683
1683
|
const headers = {};
|
|
1684
1684
|
return {
|
|
1685
1685
|
baseUri: '/services/data/v62.0',
|
|
@@ -1693,7 +1693,7 @@ function createResourceRequest$v(config) {
|
|
|
1693
1693
|
};
|
|
1694
1694
|
}
|
|
1695
1695
|
|
|
1696
|
-
const adapterName$
|
|
1696
|
+
const adapterName$x = '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,101 +1701,101 @@ 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$x, getAnnotations_ConfigPropertyMetadata);
|
|
1705
|
+
const createResourceParams$x = /*#__PURE__*/ createResourceParams$y(getAnnotations_ConfigPropertyMetadata);
|
|
1706
|
+
function keyBuilder$J(luvio, config) {
|
|
1707
|
+
const resourceParams = createResourceParams$x(config);
|
|
1708
|
+
return keyBuilder$K(luvio, resourceParams);
|
|
1709
1709
|
}
|
|
1710
|
-
function typeCheckConfig$
|
|
1710
|
+
function typeCheckConfig$x(untrustedConfig) {
|
|
1711
1711
|
const config = {};
|
|
1712
|
-
typeCheckConfig$
|
|
1712
|
+
typeCheckConfig$y(untrustedConfig, config, getAnnotations_ConfigPropertyMetadata);
|
|
1713
1713
|
return config;
|
|
1714
1714
|
}
|
|
1715
|
-
function validateAdapterConfig$
|
|
1715
|
+
function validateAdapterConfig$x(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$x(untrustedConfig);
|
|
1723
1723
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1724
1724
|
return null;
|
|
1725
1725
|
}
|
|
1726
1726
|
return config;
|
|
1727
1727
|
}
|
|
1728
|
-
function adapterFragment$
|
|
1729
|
-
createResourceParams$
|
|
1730
|
-
return select$
|
|
1728
|
+
function adapterFragment$e(luvio, config) {
|
|
1729
|
+
createResourceParams$x(config);
|
|
1730
|
+
return select$M();
|
|
1731
1731
|
}
|
|
1732
|
-
function onFetchResponseSuccess$
|
|
1733
|
-
const snapshot = ingestSuccess$
|
|
1732
|
+
function onFetchResponseSuccess$e(luvio, config, resourceParams, response) {
|
|
1733
|
+
const snapshot = ingestSuccess$s(luvio, resourceParams, response, {
|
|
1734
1734
|
config,
|
|
1735
|
-
resolve: () => buildNetworkSnapshot$
|
|
1735
|
+
resolve: () => buildNetworkSnapshot$x(luvio, config, snapshotRefreshOptions)
|
|
1736
1736
|
});
|
|
1737
1737
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1738
1738
|
}
|
|
1739
|
-
function onFetchResponseError$
|
|
1740
|
-
const snapshot = ingestError$
|
|
1739
|
+
function onFetchResponseError$e(luvio, config, resourceParams, response) {
|
|
1740
|
+
const snapshot = ingestError$e(luvio, resourceParams, response, {
|
|
1741
1741
|
config,
|
|
1742
|
-
resolve: () => buildNetworkSnapshot$
|
|
1742
|
+
resolve: () => buildNetworkSnapshot$x(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$x(luvio, config, options) {
|
|
1747
|
+
const resourceParams = createResourceParams$x(config);
|
|
1748
|
+
const request = createResourceRequest$x(resourceParams);
|
|
1749
1749
|
return luvio.dispatchResourceRequest(request, options)
|
|
1750
1750
|
.then((response) => {
|
|
1751
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1751
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$e(luvio, config, resourceParams, response), () => {
|
|
1752
1752
|
const cache = new StoreKeyMap();
|
|
1753
|
-
getResponseCacheKeys$
|
|
1753
|
+
getResponseCacheKeys$x(cache, luvio, resourceParams, response.body);
|
|
1754
1754
|
return cache;
|
|
1755
1755
|
});
|
|
1756
1756
|
}, (response) => {
|
|
1757
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1757
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$e(luvio, config, resourceParams, response));
|
|
1758
1758
|
});
|
|
1759
1759
|
}
|
|
1760
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1761
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1760
|
+
function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
|
|
1761
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$x, undefined, false);
|
|
1762
1762
|
}
|
|
1763
|
-
function buildCachedSnapshotCachePolicy$
|
|
1763
|
+
function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
|
|
1764
1764
|
const { luvio, config } = context;
|
|
1765
1765
|
const selector = {
|
|
1766
|
-
recordId: keyBuilder$
|
|
1767
|
-
node: adapterFragment$
|
|
1766
|
+
recordId: keyBuilder$J(luvio, config),
|
|
1767
|
+
node: adapterFragment$e(luvio, config),
|
|
1768
1768
|
variables: {},
|
|
1769
1769
|
};
|
|
1770
1770
|
const cacheSnapshot = storeLookup(selector, {
|
|
1771
1771
|
config,
|
|
1772
|
-
resolve: () => buildNetworkSnapshot$
|
|
1772
|
+
resolve: () => buildNetworkSnapshot$x(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$x(untrustedConfig, getAnnotations_ConfigPropertyNames);
|
|
1778
1778
|
// Invalid or incomplete config
|
|
1779
1779
|
if (config === null) {
|
|
1780
1780
|
return null;
|
|
1781
1781
|
}
|
|
1782
1782
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1783
|
-
buildCachedSnapshotCachePolicy$
|
|
1783
|
+
buildCachedSnapshotCachePolicy$e, buildNetworkSnapshotCachePolicy$e);
|
|
1784
1784
|
};
|
|
1785
1785
|
|
|
1786
|
-
function select$
|
|
1787
|
-
return select$
|
|
1786
|
+
function select$L(luvio, params) {
|
|
1787
|
+
return select$O();
|
|
1788
1788
|
}
|
|
1789
|
-
function getResponseCacheKeys$
|
|
1790
|
-
getTypeCacheKeys$
|
|
1789
|
+
function getResponseCacheKeys$w(storeKeyMap, luvio, resourceParams, response) {
|
|
1790
|
+
getTypeCacheKeys$l(storeKeyMap, luvio, response);
|
|
1791
1791
|
}
|
|
1792
|
-
function ingestSuccess$
|
|
1792
|
+
function ingestSuccess$r(luvio, resourceParams, response) {
|
|
1793
1793
|
const { body } = response;
|
|
1794
|
-
const key = keyBuilderFromType$
|
|
1795
|
-
luvio.storeIngest(key, ingest$
|
|
1794
|
+
const key = keyBuilderFromType$b(luvio, body);
|
|
1795
|
+
luvio.storeIngest(key, ingest$l, body);
|
|
1796
1796
|
const snapshot = luvio.storeLookup({
|
|
1797
1797
|
recordId: key,
|
|
1798
|
-
node: select$
|
|
1798
|
+
node: select$L(),
|
|
1799
1799
|
variables: {},
|
|
1800
1800
|
});
|
|
1801
1801
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1806,7 +1806,7 @@ function ingestSuccess$p(luvio, resourceParams, response) {
|
|
|
1806
1806
|
deepFreeze(snapshot.data);
|
|
1807
1807
|
return snapshot;
|
|
1808
1808
|
}
|
|
1809
|
-
function createResourceRequest$
|
|
1809
|
+
function createResourceRequest$w(config) {
|
|
1810
1810
|
const headers = {};
|
|
1811
1811
|
return {
|
|
1812
1812
|
baseUri: '/services/data/v62.0',
|
|
@@ -1820,7 +1820,7 @@ function createResourceRequest$u(config) {
|
|
|
1820
1820
|
};
|
|
1821
1821
|
}
|
|
1822
1822
|
|
|
1823
|
-
const adapterName$
|
|
1823
|
+
const adapterName$w = '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$w, createAnnotation_ConfigPropertyMetadata);
|
|
1833
|
+
const createResourceParams$w = /*#__PURE__*/ createResourceParams$y(createAnnotation_ConfigPropertyMetadata);
|
|
1834
|
+
function typeCheckConfig$w(untrustedConfig) {
|
|
1835
1835
|
const config = {};
|
|
1836
|
-
typeCheckConfig$
|
|
1836
|
+
typeCheckConfig$y(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$w(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$w(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$w(luvio, config, options) {
|
|
1857
|
+
const resourceParams = createResourceParams$w(config);
|
|
1858
|
+
const request = createResourceRequest$w(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$r(luvio, resourceParams, response);
|
|
1863
1863
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1864
1864
|
}, () => {
|
|
1865
1865
|
const cache = new StoreKeyMap();
|
|
1866
|
-
getResponseCacheKeys$
|
|
1866
|
+
getResponseCacheKeys$w(cache, luvio, resourceParams, response.body);
|
|
1867
1867
|
return cache;
|
|
1868
1868
|
});
|
|
1869
1869
|
}, (response) => {
|
|
@@ -1873,18 +1873,18 @@ function buildNetworkSnapshot$u(luvio, config, options) {
|
|
|
1873
1873
|
}
|
|
1874
1874
|
const createAnnotationAdapterFactory = (luvio) => {
|
|
1875
1875
|
return function createAnnotation(untrustedConfig) {
|
|
1876
|
-
const config = validateAdapterConfig$
|
|
1876
|
+
const config = validateAdapterConfig$w(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$w(luvio, config);
|
|
1882
1882
|
};
|
|
1883
1883
|
};
|
|
1884
1884
|
|
|
1885
|
-
const TTL$
|
|
1886
|
-
const VERSION$
|
|
1887
|
-
function validate$
|
|
1885
|
+
const TTL$9 = 5000;
|
|
1886
|
+
const VERSION$j = "505a83d97fefa7ce68ec6512264b0543";
|
|
1887
|
+
function validate$r(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$p(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$k = 'SlackAppInfoRepresentation';
|
|
1928
|
+
function normalize$j(input, existing, path, luvio, store, timestamp) {
|
|
1929
1929
|
return input;
|
|
1930
1930
|
}
|
|
1931
|
-
const select$
|
|
1931
|
+
const select$K = function SlackAppInfoRepresentationSelect() {
|
|
1932
1932
|
return {
|
|
1933
1933
|
kind: 'Fragment',
|
|
1934
|
-
version: VERSION$
|
|
1934
|
+
version: VERSION$j,
|
|
1935
1935
|
private: [],
|
|
1936
1936
|
selections: [
|
|
1937
1937
|
{
|
|
@@ -1958,7 +1958,7 @@ const select$G = function SlackAppInfoRepresentationSelect() {
|
|
|
1958
1958
|
]
|
|
1959
1959
|
};
|
|
1960
1960
|
};
|
|
1961
|
-
function equals$
|
|
1961
|
+
function equals$j(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$h(existing, incoming) {
|
|
|
1991
1991
|
}
|
|
1992
1992
|
return true;
|
|
1993
1993
|
}
|
|
1994
|
-
const ingest$
|
|
1994
|
+
const ingest$j = function SlackAppInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1995
1995
|
if (process.env.NODE_ENV !== 'production') {
|
|
1996
|
-
const validateError = validate$
|
|
1996
|
+
const validateError = validate$r(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$9;
|
|
2003
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$j, "UnifiedAnalytics", VERSION$j, RepresentationType$k, equals$j);
|
|
2004
2004
|
return createLink(key);
|
|
2005
2005
|
};
|
|
2006
|
-
function getTypeCacheKeys$
|
|
2006
|
+
function getTypeCacheKeys$j(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$k,
|
|
2012
2012
|
mergeable: false
|
|
2013
2013
|
});
|
|
2014
2014
|
}
|
|
2015
2015
|
|
|
2016
|
-
function select$
|
|
2017
|
-
return select$
|
|
2016
|
+
function select$J(luvio, params) {
|
|
2017
|
+
return select$K();
|
|
2018
2018
|
}
|
|
2019
|
-
function keyBuilder$
|
|
2019
|
+
function keyBuilder$I(luvio, params) {
|
|
2020
2020
|
return keyPrefix + '::SlackAppInfoRepresentation:(' + ')';
|
|
2021
2021
|
}
|
|
2022
|
-
function getResponseCacheKeys$
|
|
2023
|
-
getTypeCacheKeys$
|
|
2022
|
+
function getResponseCacheKeys$v(storeKeyMap, luvio, resourceParams, response) {
|
|
2023
|
+
getTypeCacheKeys$j(storeKeyMap, luvio, response, () => keyBuilder$I());
|
|
2024
2024
|
}
|
|
2025
|
-
function ingestSuccess$
|
|
2025
|
+
function ingestSuccess$q(luvio, resourceParams, response, snapshotRefresh) {
|
|
2026
2026
|
const { body } = response;
|
|
2027
|
-
const key = keyBuilder$
|
|
2028
|
-
luvio.storeIngest(key, ingest$
|
|
2027
|
+
const key = keyBuilder$I();
|
|
2028
|
+
luvio.storeIngest(key, ingest$j, body);
|
|
2029
2029
|
const snapshot = luvio.storeLookup({
|
|
2030
2030
|
recordId: key,
|
|
2031
|
-
node: select$
|
|
2031
|
+
node: select$J(),
|
|
2032
2032
|
variables: {},
|
|
2033
2033
|
}, snapshotRefresh);
|
|
2034
2034
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2039,19 +2039,19 @@ function ingestSuccess$o(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2039
2039
|
deepFreeze(snapshot.data);
|
|
2040
2040
|
return snapshot;
|
|
2041
2041
|
}
|
|
2042
|
-
function ingestError$
|
|
2043
|
-
const key = keyBuilder$
|
|
2042
|
+
function ingestError$d(luvio, params, error, snapshotRefresh) {
|
|
2043
|
+
const key = keyBuilder$I();
|
|
2044
2044
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2045
2045
|
const storeMetadataParams = {
|
|
2046
|
-
ttl: TTL$
|
|
2046
|
+
ttl: TTL$9,
|
|
2047
2047
|
namespace: keyPrefix,
|
|
2048
|
-
version: VERSION$
|
|
2049
|
-
representationName: RepresentationType$
|
|
2048
|
+
version: VERSION$j,
|
|
2049
|
+
representationName: RepresentationType$k
|
|
2050
2050
|
};
|
|
2051
2051
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2052
2052
|
return errorSnapshot;
|
|
2053
2053
|
}
|
|
2054
|
-
function createResourceRequest$
|
|
2054
|
+
function createResourceRequest$v(config) {
|
|
2055
2055
|
const headers = {};
|
|
2056
2056
|
return {
|
|
2057
2057
|
baseUri: '/services/data/v62.0',
|
|
@@ -2065,90 +2065,90 @@ function createResourceRequest$t(config) {
|
|
|
2065
2065
|
};
|
|
2066
2066
|
}
|
|
2067
2067
|
|
|
2068
|
-
const adapterName$
|
|
2068
|
+
const adapterName$v = '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$v, getSlackAppInfo_ConfigPropertyMetadata);
|
|
2071
|
+
const createResourceParams$v = /*#__PURE__*/ createResourceParams$y(getSlackAppInfo_ConfigPropertyMetadata);
|
|
2072
|
+
function keyBuilder$H(luvio, config) {
|
|
2073
|
+
createResourceParams$v(config);
|
|
2074
|
+
return keyBuilder$I();
|
|
2075
2075
|
}
|
|
2076
|
-
function typeCheckConfig$
|
|
2076
|
+
function typeCheckConfig$v(untrustedConfig) {
|
|
2077
2077
|
const config = {};
|
|
2078
2078
|
return config;
|
|
2079
2079
|
}
|
|
2080
|
-
function validateAdapterConfig$
|
|
2080
|
+
function validateAdapterConfig$v(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$v();
|
|
2088
2088
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2089
2089
|
return null;
|
|
2090
2090
|
}
|
|
2091
2091
|
return config;
|
|
2092
2092
|
}
|
|
2093
|
-
function adapterFragment$
|
|
2094
|
-
createResourceParams$
|
|
2095
|
-
return select$
|
|
2093
|
+
function adapterFragment$d(luvio, config) {
|
|
2094
|
+
createResourceParams$v(config);
|
|
2095
|
+
return select$J();
|
|
2096
2096
|
}
|
|
2097
|
-
function onFetchResponseSuccess$
|
|
2098
|
-
const snapshot = ingestSuccess$
|
|
2097
|
+
function onFetchResponseSuccess$d(luvio, config, resourceParams, response) {
|
|
2098
|
+
const snapshot = ingestSuccess$q(luvio, resourceParams, response, {
|
|
2099
2099
|
config,
|
|
2100
|
-
resolve: () => buildNetworkSnapshot$
|
|
2100
|
+
resolve: () => buildNetworkSnapshot$v(luvio, config, snapshotRefreshOptions)
|
|
2101
2101
|
});
|
|
2102
2102
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2103
2103
|
}
|
|
2104
|
-
function onFetchResponseError$
|
|
2105
|
-
const snapshot = ingestError$
|
|
2104
|
+
function onFetchResponseError$d(luvio, config, resourceParams, response) {
|
|
2105
|
+
const snapshot = ingestError$d(luvio, resourceParams, response, {
|
|
2106
2106
|
config,
|
|
2107
|
-
resolve: () => buildNetworkSnapshot$
|
|
2107
|
+
resolve: () => buildNetworkSnapshot$v(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$v(luvio, config, options) {
|
|
2112
|
+
const resourceParams = createResourceParams$v(config);
|
|
2113
|
+
const request = createResourceRequest$v();
|
|
2114
2114
|
return luvio.dispatchResourceRequest(request, options)
|
|
2115
2115
|
.then((response) => {
|
|
2116
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2116
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$d(luvio, config, resourceParams, response), () => {
|
|
2117
2117
|
const cache = new StoreKeyMap();
|
|
2118
|
-
getResponseCacheKeys$
|
|
2118
|
+
getResponseCacheKeys$v(cache, luvio, resourceParams, response.body);
|
|
2119
2119
|
return cache;
|
|
2120
2120
|
});
|
|
2121
2121
|
}, (response) => {
|
|
2122
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2122
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$d(luvio, config, resourceParams, response));
|
|
2123
2123
|
});
|
|
2124
2124
|
}
|
|
2125
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2126
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2125
|
+
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
2126
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$v, undefined, false);
|
|
2127
2127
|
}
|
|
2128
|
-
function buildCachedSnapshotCachePolicy$
|
|
2128
|
+
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
2129
2129
|
const { luvio, config } = context;
|
|
2130
2130
|
const selector = {
|
|
2131
|
-
recordId: keyBuilder$
|
|
2132
|
-
node: adapterFragment$
|
|
2131
|
+
recordId: keyBuilder$H(luvio, config),
|
|
2132
|
+
node: adapterFragment$d(luvio, config),
|
|
2133
2133
|
variables: {},
|
|
2134
2134
|
};
|
|
2135
2135
|
const cacheSnapshot = storeLookup(selector, {
|
|
2136
2136
|
config,
|
|
2137
|
-
resolve: () => buildNetworkSnapshot$
|
|
2137
|
+
resolve: () => buildNetworkSnapshot$v(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$v(untrustedConfig, getSlackAppInfo_ConfigPropertyNames);
|
|
2143
2143
|
// Invalid or incomplete config
|
|
2144
2144
|
if (config === null) {
|
|
2145
2145
|
return null;
|
|
2146
2146
|
}
|
|
2147
2147
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2148
|
-
buildCachedSnapshotCachePolicy$
|
|
2148
|
+
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
|
|
2149
2149
|
};
|
|
2150
2150
|
|
|
2151
|
-
function validate$
|
|
2151
|
+
function validate$q(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$o(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$p(obj, path = 'AnalyticsAssetsQueryResultsWorkspaceRepresentation') {
|
|
2187
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$q(obj, path);
|
|
2188
2188
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
2189
2189
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
2190
2190
|
}
|
|
@@ -2196,8 +2196,8 @@ function validate$n(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$o(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation') {
|
|
2200
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$q(obj, path);
|
|
2201
2201
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
2202
2202
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
2203
2203
|
}
|
|
@@ -2238,7 +2238,7 @@ function validate$m(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$p(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$m(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$8 = 500;
|
|
2272
|
+
const VERSION$i = "ed60d9cca169a3e5ed897c67d11a23db";
|
|
2273
|
+
function validate$n(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$l(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$o(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$l(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$j = 'AnalyticsAssetsQueryResultsRepresentation';
|
|
2312
|
+
function keyBuilder$G(luvio, config) {
|
|
2313
|
+
return keyPrefix + '::' + RepresentationType$j + ':' + config.searchId;
|
|
2314
2314
|
}
|
|
2315
|
-
function keyBuilderFromType$
|
|
2315
|
+
function keyBuilderFromType$a(luvio, object) {
|
|
2316
2316
|
const keyParams = {
|
|
2317
2317
|
searchId: object.queryKey
|
|
2318
2318
|
};
|
|
2319
|
-
return keyBuilder$
|
|
2319
|
+
return keyBuilder$G(luvio, keyParams);
|
|
2320
2320
|
}
|
|
2321
|
-
function normalize$
|
|
2321
|
+
function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
2322
2322
|
return input;
|
|
2323
2323
|
}
|
|
2324
|
-
const select$
|
|
2324
|
+
const select$I = function AnalyticsAssetsQueryResultsRepresentationSelect() {
|
|
2325
2325
|
return {
|
|
2326
2326
|
kind: 'Fragment',
|
|
2327
|
-
version: VERSION$
|
|
2327
|
+
version: VERSION$i,
|
|
2328
2328
|
private: [],
|
|
2329
2329
|
opaque: true
|
|
2330
2330
|
};
|
|
2331
2331
|
};
|
|
2332
|
-
function equals$
|
|
2332
|
+
function equals$i(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$i = function AnalyticsAssetsQueryResultsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2339
2339
|
if (process.env.NODE_ENV !== 'production') {
|
|
2340
|
-
const validateError = validate$
|
|
2340
|
+
const validateError = validate$n(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$a(luvio, input);
|
|
2346
|
+
const ttlToUse = TTL$8;
|
|
2347
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "UnifiedAnalytics", VERSION$i, RepresentationType$j, equals$i);
|
|
2348
2348
|
return createLink(key);
|
|
2349
2349
|
};
|
|
2350
|
-
function getTypeCacheKeys$
|
|
2350
|
+
function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
2351
2351
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2352
|
-
const rootKey = keyBuilderFromType$
|
|
2352
|
+
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
2353
2353
|
rootKeySet.set(rootKey, {
|
|
2354
2354
|
namespace: keyPrefix,
|
|
2355
|
-
representationName: RepresentationType$
|
|
2355
|
+
representationName: RepresentationType$j,
|
|
2356
2356
|
mergeable: false
|
|
2357
2357
|
});
|
|
2358
2358
|
}
|
|
2359
2359
|
|
|
2360
|
-
function select$
|
|
2361
|
-
return select$
|
|
2360
|
+
function select$H(luvio, params) {
|
|
2361
|
+
return select$I();
|
|
2362
2362
|
}
|
|
2363
|
-
function getResponseCacheKeys$
|
|
2364
|
-
getTypeCacheKeys$
|
|
2363
|
+
function getResponseCacheKeys$u(storeKeyMap, luvio, resourceParams, response) {
|
|
2364
|
+
getTypeCacheKeys$i(storeKeyMap, luvio, response);
|
|
2365
2365
|
}
|
|
2366
|
-
function ingestSuccess$
|
|
2366
|
+
function ingestSuccess$p(luvio, resourceParams, response) {
|
|
2367
2367
|
const { body } = response;
|
|
2368
|
-
const key = keyBuilderFromType$
|
|
2369
|
-
luvio.storeIngest(key, ingest$
|
|
2368
|
+
const key = keyBuilderFromType$a(luvio, body);
|
|
2369
|
+
luvio.storeIngest(key, ingest$i, body);
|
|
2370
2370
|
const snapshot = luvio.storeLookup({
|
|
2371
2371
|
recordId: key,
|
|
2372
|
-
node: select$
|
|
2372
|
+
node: select$H(),
|
|
2373
2373
|
variables: {},
|
|
2374
2374
|
});
|
|
2375
2375
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2380,7 +2380,7 @@ function ingestSuccess$n(luvio, resourceParams, response) {
|
|
|
2380
2380
|
deepFreeze(snapshot.data);
|
|
2381
2381
|
return snapshot;
|
|
2382
2382
|
}
|
|
2383
|
-
function createResourceRequest$
|
|
2383
|
+
function createResourceRequest$u(config) {
|
|
2384
2384
|
const headers = {};
|
|
2385
2385
|
return {
|
|
2386
2386
|
baseUri: '/services/data/v62.0',
|
|
@@ -2394,7 +2394,7 @@ function createResourceRequest$s(config) {
|
|
|
2394
2394
|
};
|
|
2395
2395
|
}
|
|
2396
2396
|
|
|
2397
|
-
const adapterName$
|
|
2397
|
+
const adapterName$u = '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$u, queryAssets_ConfigPropertyMetadata);
|
|
2407
|
+
const createResourceParams$u = /*#__PURE__*/ createResourceParams$y(queryAssets_ConfigPropertyMetadata);
|
|
2408
|
+
function typeCheckConfig$u(untrustedConfig) {
|
|
2409
2409
|
const config = {};
|
|
2410
|
-
typeCheckConfig$
|
|
2410
|
+
typeCheckConfig$y(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$s(untrustedConfig) {
|
|
|
2425
2425
|
}
|
|
2426
2426
|
return config;
|
|
2427
2427
|
}
|
|
2428
|
-
function validateAdapterConfig$
|
|
2428
|
+
function validateAdapterConfig$u(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$u(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$u(luvio, config, options) {
|
|
2442
|
+
const resourceParams = createResourceParams$u(config);
|
|
2443
|
+
const request = createResourceRequest$u(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$p(luvio, resourceParams, response);
|
|
2448
2448
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2449
2449
|
}, () => {
|
|
2450
2450
|
const cache = new StoreKeyMap();
|
|
2451
|
-
getResponseCacheKeys$
|
|
2451
|
+
getResponseCacheKeys$u(cache, luvio, resourceParams, response.body);
|
|
2452
2452
|
return cache;
|
|
2453
2453
|
});
|
|
2454
2454
|
}, (response) => {
|
|
@@ -2458,17 +2458,17 @@ function buildNetworkSnapshot$s(luvio, config, options) {
|
|
|
2458
2458
|
}
|
|
2459
2459
|
const queryAssetsAdapterFactory = (luvio) => {
|
|
2460
2460
|
return function queryAssets(untrustedConfig) {
|
|
2461
|
-
const config = validateAdapterConfig$
|
|
2461
|
+
const config = validateAdapterConfig$u(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$u(luvio, config);
|
|
2467
2467
|
};
|
|
2468
2468
|
};
|
|
2469
2469
|
|
|
2470
|
-
const VERSION$
|
|
2471
|
-
function validate$
|
|
2470
|
+
const VERSION$h = "d4e4a9f9b260b72ce8e09fac1746cd21";
|
|
2471
|
+
function validate$m(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 + '")');
|
|
@@ -2581,57 +2581,57 @@ function validate$k(obj, path = 'DashboardRepresentation') {
|
|
|
2581
2581
|
})();
|
|
2582
2582
|
return v_error === undefined ? null : v_error;
|
|
2583
2583
|
}
|
|
2584
|
-
const RepresentationType$
|
|
2585
|
-
function keyBuilder$
|
|
2586
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2584
|
+
const RepresentationType$i = 'DashboardRepresentation';
|
|
2585
|
+
function keyBuilder$F(luvio, config) {
|
|
2586
|
+
return keyPrefix + '::' + RepresentationType$i + ':' + config.name;
|
|
2587
2587
|
}
|
|
2588
|
-
function keyBuilderFromType$
|
|
2588
|
+
function keyBuilderFromType$9(luvio, object) {
|
|
2589
2589
|
const keyParams = {
|
|
2590
2590
|
name: object.cacheableKey
|
|
2591
2591
|
};
|
|
2592
|
-
return keyBuilder$
|
|
2592
|
+
return keyBuilder$F(luvio, keyParams);
|
|
2593
2593
|
}
|
|
2594
|
-
function normalize$
|
|
2594
|
+
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
2595
2595
|
return input;
|
|
2596
2596
|
}
|
|
2597
|
-
const select$
|
|
2597
|
+
const select$G = function DashboardRepresentationSelect() {
|
|
2598
2598
|
return {
|
|
2599
2599
|
kind: 'Fragment',
|
|
2600
|
-
version: VERSION$
|
|
2600
|
+
version: VERSION$h,
|
|
2601
2601
|
private: [],
|
|
2602
2602
|
opaque: true
|
|
2603
2603
|
};
|
|
2604
2604
|
};
|
|
2605
|
-
function equals$
|
|
2605
|
+
function equals$h(existing, incoming) {
|
|
2606
2606
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2607
2607
|
return false;
|
|
2608
2608
|
}
|
|
2609
2609
|
return true;
|
|
2610
2610
|
}
|
|
2611
|
-
const ingest$
|
|
2611
|
+
const ingest$h = function DashboardRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2612
2612
|
if (process.env.NODE_ENV !== 'production') {
|
|
2613
|
-
const validateError = validate$
|
|
2613
|
+
const validateError = validate$m(input);
|
|
2614
2614
|
if (validateError !== null) {
|
|
2615
2615
|
throw validateError;
|
|
2616
2616
|
}
|
|
2617
2617
|
}
|
|
2618
|
-
const key = keyBuilderFromType$
|
|
2618
|
+
const key = keyBuilderFromType$9(luvio, input);
|
|
2619
2619
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2620
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2620
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "UnifiedAnalytics", VERSION$h, RepresentationType$i, equals$h);
|
|
2621
2621
|
return createLink(key);
|
|
2622
2622
|
};
|
|
2623
|
-
function getTypeCacheKeys$
|
|
2623
|
+
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
2624
2624
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2625
|
-
const rootKey = keyBuilderFromType$
|
|
2625
|
+
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
2626
2626
|
rootKeySet.set(rootKey, {
|
|
2627
2627
|
namespace: keyPrefix,
|
|
2628
|
-
representationName: RepresentationType$
|
|
2628
|
+
representationName: RepresentationType$i,
|
|
2629
2629
|
mergeable: false
|
|
2630
2630
|
});
|
|
2631
2631
|
}
|
|
2632
2632
|
|
|
2633
|
-
const VERSION$
|
|
2634
|
-
function validate$
|
|
2633
|
+
const VERSION$g = "962823130e6a9315240ef0e0f0c5f757";
|
|
2634
|
+
function validate$l(obj, path = 'DashboardCollectionRepresentation') {
|
|
2635
2635
|
const v_error = (() => {
|
|
2636
2636
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2637
2637
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2651,14 +2651,14 @@ function validate$j(obj, path = 'DashboardCollectionRepresentation') {
|
|
|
2651
2651
|
})();
|
|
2652
2652
|
return v_error === undefined ? null : v_error;
|
|
2653
2653
|
}
|
|
2654
|
-
const RepresentationType$
|
|
2655
|
-
function normalize$
|
|
2654
|
+
const RepresentationType$h = 'DashboardCollectionRepresentation';
|
|
2655
|
+
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
2656
2656
|
const input_dashboards = input.dashboards;
|
|
2657
2657
|
const input_dashboards_id = path.fullPath + '__dashboards';
|
|
2658
2658
|
for (let i = 0; i < input_dashboards.length; i++) {
|
|
2659
2659
|
const input_dashboards_item = input_dashboards[i];
|
|
2660
2660
|
let input_dashboards_item_id = input_dashboards_id + '__' + i;
|
|
2661
|
-
input_dashboards[i] = ingest$
|
|
2661
|
+
input_dashboards[i] = ingest$h(input_dashboards_item, {
|
|
2662
2662
|
fullPath: input_dashboards_item_id,
|
|
2663
2663
|
propertyName: i,
|
|
2664
2664
|
parent: {
|
|
@@ -2671,22 +2671,22 @@ function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
|
2671
2671
|
}
|
|
2672
2672
|
return input;
|
|
2673
2673
|
}
|
|
2674
|
-
const select$
|
|
2674
|
+
const select$F = function DashboardCollectionRepresentationSelect() {
|
|
2675
2675
|
return {
|
|
2676
2676
|
kind: 'Fragment',
|
|
2677
|
-
version: VERSION$
|
|
2677
|
+
version: VERSION$g,
|
|
2678
2678
|
private: [],
|
|
2679
2679
|
selections: [
|
|
2680
2680
|
{
|
|
2681
2681
|
name: 'dashboards',
|
|
2682
2682
|
kind: 'Link',
|
|
2683
2683
|
plural: true,
|
|
2684
|
-
fragment: select$
|
|
2684
|
+
fragment: select$G()
|
|
2685
2685
|
}
|
|
2686
2686
|
]
|
|
2687
2687
|
};
|
|
2688
2688
|
};
|
|
2689
|
-
function equals$
|
|
2689
|
+
function equals$g(existing, incoming) {
|
|
2690
2690
|
const existing_dashboards = existing.dashboards;
|
|
2691
2691
|
const incoming_dashboards = incoming.dashboards;
|
|
2692
2692
|
const equals_dashboards_items = equalsArray(existing_dashboards, incoming_dashboards, (existing_dashboards_item, incoming_dashboards_item) => {
|
|
@@ -2699,48 +2699,48 @@ function equals$e(existing, incoming) {
|
|
|
2699
2699
|
}
|
|
2700
2700
|
return true;
|
|
2701
2701
|
}
|
|
2702
|
-
const ingest$
|
|
2702
|
+
const ingest$g = function DashboardCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2703
2703
|
if (process.env.NODE_ENV !== 'production') {
|
|
2704
|
-
const validateError = validate$
|
|
2704
|
+
const validateError = validate$l(input);
|
|
2705
2705
|
if (validateError !== null) {
|
|
2706
2706
|
throw validateError;
|
|
2707
2707
|
}
|
|
2708
2708
|
}
|
|
2709
2709
|
const key = path.fullPath;
|
|
2710
2710
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2711
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2711
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "UnifiedAnalytics", VERSION$g, RepresentationType$h, equals$g);
|
|
2712
2712
|
return createLink(key);
|
|
2713
2713
|
};
|
|
2714
|
-
function getTypeCacheKeys$
|
|
2714
|
+
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
2715
2715
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2716
2716
|
const rootKey = fullPathFactory();
|
|
2717
2717
|
rootKeySet.set(rootKey, {
|
|
2718
2718
|
namespace: keyPrefix,
|
|
2719
|
-
representationName: RepresentationType$
|
|
2719
|
+
representationName: RepresentationType$h,
|
|
2720
2720
|
mergeable: false
|
|
2721
2721
|
});
|
|
2722
2722
|
const input_dashboards_length = input.dashboards.length;
|
|
2723
2723
|
for (let i = 0; i < input_dashboards_length; i++) {
|
|
2724
|
-
getTypeCacheKeys$
|
|
2724
|
+
getTypeCacheKeys$h(rootKeySet, luvio, input.dashboards[i]);
|
|
2725
2725
|
}
|
|
2726
2726
|
}
|
|
2727
2727
|
|
|
2728
|
-
function select$
|
|
2729
|
-
return select$
|
|
2728
|
+
function select$E(luvio, params) {
|
|
2729
|
+
return select$F();
|
|
2730
2730
|
}
|
|
2731
|
-
function keyBuilder$
|
|
2731
|
+
function keyBuilder$E(luvio, params) {
|
|
2732
2732
|
return keyPrefix + '::DashboardCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
2733
2733
|
}
|
|
2734
|
-
function getResponseCacheKeys$
|
|
2735
|
-
getTypeCacheKeys$
|
|
2734
|
+
function getResponseCacheKeys$t(storeKeyMap, luvio, resourceParams, response) {
|
|
2735
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response, () => keyBuilder$E(luvio, resourceParams));
|
|
2736
2736
|
}
|
|
2737
|
-
function ingestSuccess$
|
|
2737
|
+
function ingestSuccess$o(luvio, resourceParams, response, snapshotRefresh) {
|
|
2738
2738
|
const { body } = response;
|
|
2739
|
-
const key = keyBuilder$
|
|
2740
|
-
luvio.storeIngest(key, ingest$
|
|
2739
|
+
const key = keyBuilder$E(luvio, resourceParams);
|
|
2740
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
2741
2741
|
const snapshot = luvio.storeLookup({
|
|
2742
2742
|
recordId: key,
|
|
2743
|
-
node: select$
|
|
2743
|
+
node: select$E(),
|
|
2744
2744
|
variables: {},
|
|
2745
2745
|
}, snapshotRefresh);
|
|
2746
2746
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2751,13 +2751,13 @@ function ingestSuccess$m(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2751
2751
|
deepFreeze(snapshot.data);
|
|
2752
2752
|
return snapshot;
|
|
2753
2753
|
}
|
|
2754
|
-
function ingestError$
|
|
2755
|
-
const key = keyBuilder$
|
|
2754
|
+
function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
2755
|
+
const key = keyBuilder$E(luvio, params);
|
|
2756
2756
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2757
2757
|
luvio.storeIngestError(key, errorSnapshot);
|
|
2758
2758
|
return errorSnapshot;
|
|
2759
2759
|
}
|
|
2760
|
-
function createResourceRequest$
|
|
2760
|
+
function createResourceRequest$t(config) {
|
|
2761
2761
|
const headers = {};
|
|
2762
2762
|
return {
|
|
2763
2763
|
baseUri: '/services/data/v62.0',
|
|
@@ -2771,106 +2771,106 @@ function createResourceRequest$r(config) {
|
|
|
2771
2771
|
};
|
|
2772
2772
|
}
|
|
2773
2773
|
|
|
2774
|
-
const adapterName$
|
|
2774
|
+
const adapterName$t = 'getDashboards';
|
|
2775
2775
|
const getDashboards_ConfigPropertyMetadata = [
|
|
2776
2776
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2777
2777
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2778
2778
|
];
|
|
2779
|
-
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2780
|
-
const createResourceParams$
|
|
2781
|
-
function keyBuilder$
|
|
2782
|
-
const resourceParams = createResourceParams$
|
|
2783
|
-
return keyBuilder$
|
|
2779
|
+
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, getDashboards_ConfigPropertyMetadata);
|
|
2780
|
+
const createResourceParams$t = /*#__PURE__*/ createResourceParams$y(getDashboards_ConfigPropertyMetadata);
|
|
2781
|
+
function keyBuilder$D(luvio, config) {
|
|
2782
|
+
const resourceParams = createResourceParams$t(config);
|
|
2783
|
+
return keyBuilder$E(luvio, resourceParams);
|
|
2784
2784
|
}
|
|
2785
|
-
function typeCheckConfig$
|
|
2785
|
+
function typeCheckConfig$t(untrustedConfig) {
|
|
2786
2786
|
const config = {};
|
|
2787
|
-
typeCheckConfig$
|
|
2787
|
+
typeCheckConfig$y(untrustedConfig, config, getDashboards_ConfigPropertyMetadata);
|
|
2788
2788
|
return config;
|
|
2789
2789
|
}
|
|
2790
|
-
function validateAdapterConfig$
|
|
2790
|
+
function validateAdapterConfig$t(untrustedConfig, configPropertyNames) {
|
|
2791
2791
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2792
2792
|
return null;
|
|
2793
2793
|
}
|
|
2794
2794
|
if (process.env.NODE_ENV !== 'production') {
|
|
2795
2795
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2796
2796
|
}
|
|
2797
|
-
const config = typeCheckConfig$
|
|
2797
|
+
const config = typeCheckConfig$t(untrustedConfig);
|
|
2798
2798
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2799
2799
|
return null;
|
|
2800
2800
|
}
|
|
2801
2801
|
return config;
|
|
2802
2802
|
}
|
|
2803
|
-
function adapterFragment$
|
|
2804
|
-
createResourceParams$
|
|
2805
|
-
return select$
|
|
2803
|
+
function adapterFragment$c(luvio, config) {
|
|
2804
|
+
createResourceParams$t(config);
|
|
2805
|
+
return select$E();
|
|
2806
2806
|
}
|
|
2807
|
-
function onFetchResponseSuccess$
|
|
2808
|
-
const snapshot = ingestSuccess$
|
|
2807
|
+
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
2808
|
+
const snapshot = ingestSuccess$o(luvio, resourceParams, response, {
|
|
2809
2809
|
config,
|
|
2810
|
-
resolve: () => buildNetworkSnapshot$
|
|
2810
|
+
resolve: () => buildNetworkSnapshot$t(luvio, config, snapshotRefreshOptions)
|
|
2811
2811
|
});
|
|
2812
2812
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2813
2813
|
}
|
|
2814
|
-
function onFetchResponseError$
|
|
2815
|
-
const snapshot = ingestError$
|
|
2814
|
+
function onFetchResponseError$c(luvio, config, resourceParams, response) {
|
|
2815
|
+
const snapshot = ingestError$c(luvio, resourceParams, response, {
|
|
2816
2816
|
config,
|
|
2817
|
-
resolve: () => buildNetworkSnapshot$
|
|
2817
|
+
resolve: () => buildNetworkSnapshot$t(luvio, config, snapshotRefreshOptions)
|
|
2818
2818
|
});
|
|
2819
2819
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2820
2820
|
}
|
|
2821
|
-
function buildNetworkSnapshot$
|
|
2822
|
-
const resourceParams = createResourceParams$
|
|
2823
|
-
const request = createResourceRequest$
|
|
2821
|
+
function buildNetworkSnapshot$t(luvio, config, options) {
|
|
2822
|
+
const resourceParams = createResourceParams$t(config);
|
|
2823
|
+
const request = createResourceRequest$t(resourceParams);
|
|
2824
2824
|
return luvio.dispatchResourceRequest(request, options)
|
|
2825
2825
|
.then((response) => {
|
|
2826
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2826
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => {
|
|
2827
2827
|
const cache = new StoreKeyMap();
|
|
2828
|
-
getResponseCacheKeys$
|
|
2828
|
+
getResponseCacheKeys$t(cache, luvio, resourceParams, response.body);
|
|
2829
2829
|
return cache;
|
|
2830
2830
|
});
|
|
2831
2831
|
}, (response) => {
|
|
2832
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2832
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$c(luvio, config, resourceParams, response));
|
|
2833
2833
|
});
|
|
2834
2834
|
}
|
|
2835
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2836
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2835
|
+
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
2836
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$t, undefined, false);
|
|
2837
2837
|
}
|
|
2838
|
-
function buildCachedSnapshotCachePolicy$
|
|
2838
|
+
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
2839
2839
|
const { luvio, config } = context;
|
|
2840
2840
|
const selector = {
|
|
2841
|
-
recordId: keyBuilder$
|
|
2842
|
-
node: adapterFragment$
|
|
2841
|
+
recordId: keyBuilder$D(luvio, config),
|
|
2842
|
+
node: adapterFragment$c(luvio, config),
|
|
2843
2843
|
variables: {},
|
|
2844
2844
|
};
|
|
2845
2845
|
const cacheSnapshot = storeLookup(selector, {
|
|
2846
2846
|
config,
|
|
2847
|
-
resolve: () => buildNetworkSnapshot$
|
|
2847
|
+
resolve: () => buildNetworkSnapshot$t(luvio, config, snapshotRefreshOptions)
|
|
2848
2848
|
});
|
|
2849
2849
|
return cacheSnapshot;
|
|
2850
2850
|
}
|
|
2851
2851
|
const getDashboardsAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboards(untrustedConfig, requestContext) {
|
|
2852
|
-
const config = validateAdapterConfig$
|
|
2852
|
+
const config = validateAdapterConfig$t(untrustedConfig, getDashboards_ConfigPropertyNames);
|
|
2853
2853
|
// Invalid or incomplete config
|
|
2854
2854
|
if (config === null) {
|
|
2855
2855
|
return null;
|
|
2856
2856
|
}
|
|
2857
2857
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2858
|
-
buildCachedSnapshotCachePolicy$
|
|
2858
|
+
buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
|
|
2859
2859
|
};
|
|
2860
2860
|
|
|
2861
|
-
function select$
|
|
2862
|
-
return select$
|
|
2861
|
+
function select$D(luvio, params) {
|
|
2862
|
+
return select$G();
|
|
2863
2863
|
}
|
|
2864
|
-
function getResponseCacheKeys$
|
|
2865
|
-
getTypeCacheKeys$
|
|
2864
|
+
function getResponseCacheKeys$s(storeKeyMap, luvio, resourceParams, response) {
|
|
2865
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response);
|
|
2866
2866
|
}
|
|
2867
|
-
function ingestSuccess$
|
|
2867
|
+
function ingestSuccess$n(luvio, resourceParams, response) {
|
|
2868
2868
|
const { body } = response;
|
|
2869
|
-
const key = keyBuilderFromType$
|
|
2870
|
-
luvio.storeIngest(key, ingest$
|
|
2869
|
+
const key = keyBuilderFromType$9(luvio, body);
|
|
2870
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
2871
2871
|
const snapshot = luvio.storeLookup({
|
|
2872
2872
|
recordId: key,
|
|
2873
|
-
node: select$
|
|
2873
|
+
node: select$D(),
|
|
2874
2874
|
variables: {},
|
|
2875
2875
|
});
|
|
2876
2876
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2881,7 +2881,7 @@ function ingestSuccess$l(luvio, resourceParams, response) {
|
|
|
2881
2881
|
deepFreeze(snapshot.data);
|
|
2882
2882
|
return snapshot;
|
|
2883
2883
|
}
|
|
2884
|
-
function createResourceRequest$
|
|
2884
|
+
function createResourceRequest$s(config) {
|
|
2885
2885
|
const headers = {};
|
|
2886
2886
|
return {
|
|
2887
2887
|
baseUri: '/services/data/v62.0',
|
|
@@ -2895,7 +2895,7 @@ function createResourceRequest$q(config) {
|
|
|
2895
2895
|
};
|
|
2896
2896
|
}
|
|
2897
2897
|
|
|
2898
|
-
const adapterName$
|
|
2898
|
+
const adapterName$s = 'createDashboard';
|
|
2899
2899
|
const createDashboard_ConfigPropertyMetadata = [
|
|
2900
2900
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
2901
2901
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
@@ -2906,11 +2906,11 @@ const createDashboard_ConfigPropertyMetadata = [
|
|
|
2906
2906
|
generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2907
2907
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2908
2908
|
];
|
|
2909
|
-
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2910
|
-
const createResourceParams$
|
|
2911
|
-
function typeCheckConfig$
|
|
2909
|
+
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$s, createDashboard_ConfigPropertyMetadata);
|
|
2910
|
+
const createResourceParams$s = /*#__PURE__*/ createResourceParams$y(createDashboard_ConfigPropertyMetadata);
|
|
2911
|
+
function typeCheckConfig$s(untrustedConfig) {
|
|
2912
2912
|
const config = {};
|
|
2913
|
-
typeCheckConfig$
|
|
2913
|
+
typeCheckConfig$y(untrustedConfig, config, createDashboard_ConfigPropertyMetadata);
|
|
2914
2914
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
2915
2915
|
if (ArrayIsArray$1(untrustedConfig_layouts)) {
|
|
2916
2916
|
const untrustedConfig_layouts_array = [];
|
|
@@ -2952,30 +2952,30 @@ function typeCheckConfig$q(untrustedConfig) {
|
|
|
2952
2952
|
}
|
|
2953
2953
|
return config;
|
|
2954
2954
|
}
|
|
2955
|
-
function validateAdapterConfig$
|
|
2955
|
+
function validateAdapterConfig$s(untrustedConfig, configPropertyNames) {
|
|
2956
2956
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2957
2957
|
return null;
|
|
2958
2958
|
}
|
|
2959
2959
|
if (process.env.NODE_ENV !== 'production') {
|
|
2960
2960
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2961
2961
|
}
|
|
2962
|
-
const config = typeCheckConfig$
|
|
2962
|
+
const config = typeCheckConfig$s(untrustedConfig);
|
|
2963
2963
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2964
2964
|
return null;
|
|
2965
2965
|
}
|
|
2966
2966
|
return config;
|
|
2967
2967
|
}
|
|
2968
|
-
function buildNetworkSnapshot$
|
|
2969
|
-
const resourceParams = createResourceParams$
|
|
2970
|
-
const request = createResourceRequest$
|
|
2968
|
+
function buildNetworkSnapshot$s(luvio, config, options) {
|
|
2969
|
+
const resourceParams = createResourceParams$s(config);
|
|
2970
|
+
const request = createResourceRequest$s(resourceParams);
|
|
2971
2971
|
return luvio.dispatchResourceRequest(request, options)
|
|
2972
2972
|
.then((response) => {
|
|
2973
2973
|
return luvio.handleSuccessResponse(() => {
|
|
2974
|
-
const snapshot = ingestSuccess$
|
|
2974
|
+
const snapshot = ingestSuccess$n(luvio, resourceParams, response);
|
|
2975
2975
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2976
2976
|
}, () => {
|
|
2977
2977
|
const cache = new StoreKeyMap();
|
|
2978
|
-
getResponseCacheKeys$
|
|
2978
|
+
getResponseCacheKeys$s(cache, luvio, resourceParams, response.body);
|
|
2979
2979
|
return cache;
|
|
2980
2980
|
});
|
|
2981
2981
|
}, (response) => {
|
|
@@ -2985,33 +2985,33 @@ function buildNetworkSnapshot$q(luvio, config, options) {
|
|
|
2985
2985
|
}
|
|
2986
2986
|
const createDashboardAdapterFactory = (luvio) => {
|
|
2987
2987
|
return function createDashboard(untrustedConfig) {
|
|
2988
|
-
const config = validateAdapterConfig$
|
|
2988
|
+
const config = validateAdapterConfig$s(untrustedConfig, createDashboard_ConfigPropertyNames);
|
|
2989
2989
|
// Invalid or incomplete config
|
|
2990
2990
|
if (config === null) {
|
|
2991
2991
|
throw new Error('Invalid config for "createDashboard"');
|
|
2992
2992
|
}
|
|
2993
|
-
return buildNetworkSnapshot$
|
|
2993
|
+
return buildNetworkSnapshot$s(luvio, config);
|
|
2994
2994
|
};
|
|
2995
2995
|
};
|
|
2996
2996
|
|
|
2997
|
-
function keyBuilder$
|
|
2998
|
-
return keyBuilder$
|
|
2997
|
+
function keyBuilder$C(luvio, params) {
|
|
2998
|
+
return keyBuilder$F(luvio, {
|
|
2999
2999
|
name: params.urlParams.dashboardIdOrApiName
|
|
3000
3000
|
});
|
|
3001
3001
|
}
|
|
3002
|
-
function getResponseCacheKeys$
|
|
3003
|
-
const key = keyBuilder$
|
|
3002
|
+
function getResponseCacheKeys$r(cacheKeyMap, luvio, resourceParams) {
|
|
3003
|
+
const key = keyBuilder$C(luvio, resourceParams);
|
|
3004
3004
|
cacheKeyMap.set(key, {
|
|
3005
3005
|
namespace: keyPrefix,
|
|
3006
|
-
representationName: RepresentationType$
|
|
3006
|
+
representationName: RepresentationType$i,
|
|
3007
3007
|
mergeable: false
|
|
3008
3008
|
});
|
|
3009
3009
|
}
|
|
3010
3010
|
function evictSuccess$4(luvio, resourceParams) {
|
|
3011
|
-
const key = keyBuilder$
|
|
3011
|
+
const key = keyBuilder$C(luvio, resourceParams);
|
|
3012
3012
|
luvio.storeEvict(key);
|
|
3013
3013
|
}
|
|
3014
|
-
function createResourceRequest$
|
|
3014
|
+
function createResourceRequest$r(config) {
|
|
3015
3015
|
const headers = {};
|
|
3016
3016
|
return {
|
|
3017
3017
|
baseUri: '/services/data/v62.0',
|
|
@@ -3025,33 +3025,33 @@ function createResourceRequest$p(config) {
|
|
|
3025
3025
|
};
|
|
3026
3026
|
}
|
|
3027
3027
|
|
|
3028
|
-
const adapterName$
|
|
3028
|
+
const adapterName$r = 'deleteDashboard';
|
|
3029
3029
|
const deleteDashboard_ConfigPropertyMetadata = [
|
|
3030
3030
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3031
3031
|
];
|
|
3032
|
-
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3033
|
-
const createResourceParams$
|
|
3034
|
-
function typeCheckConfig$
|
|
3032
|
+
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$r, deleteDashboard_ConfigPropertyMetadata);
|
|
3033
|
+
const createResourceParams$r = /*#__PURE__*/ createResourceParams$y(deleteDashboard_ConfigPropertyMetadata);
|
|
3034
|
+
function typeCheckConfig$r(untrustedConfig) {
|
|
3035
3035
|
const config = {};
|
|
3036
|
-
typeCheckConfig$
|
|
3036
|
+
typeCheckConfig$y(untrustedConfig, config, deleteDashboard_ConfigPropertyMetadata);
|
|
3037
3037
|
return config;
|
|
3038
3038
|
}
|
|
3039
|
-
function validateAdapterConfig$
|
|
3039
|
+
function validateAdapterConfig$r(untrustedConfig, configPropertyNames) {
|
|
3040
3040
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3041
3041
|
return null;
|
|
3042
3042
|
}
|
|
3043
3043
|
if (process.env.NODE_ENV !== 'production') {
|
|
3044
3044
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3045
3045
|
}
|
|
3046
|
-
const config = typeCheckConfig$
|
|
3046
|
+
const config = typeCheckConfig$r(untrustedConfig);
|
|
3047
3047
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3048
3048
|
return null;
|
|
3049
3049
|
}
|
|
3050
3050
|
return config;
|
|
3051
3051
|
}
|
|
3052
|
-
function buildNetworkSnapshot$
|
|
3053
|
-
const resourceParams = createResourceParams$
|
|
3054
|
-
const request = createResourceRequest$
|
|
3052
|
+
function buildNetworkSnapshot$r(luvio, config, options) {
|
|
3053
|
+
const resourceParams = createResourceParams$r(config);
|
|
3054
|
+
const request = createResourceRequest$r(resourceParams);
|
|
3055
3055
|
return luvio.dispatchResourceRequest(request, options)
|
|
3056
3056
|
.then(() => {
|
|
3057
3057
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -3059,7 +3059,7 @@ function buildNetworkSnapshot$p(luvio, config, options) {
|
|
|
3059
3059
|
return luvio.storeBroadcast();
|
|
3060
3060
|
}, () => {
|
|
3061
3061
|
const cache = new StoreKeyMap();
|
|
3062
|
-
getResponseCacheKeys$
|
|
3062
|
+
getResponseCacheKeys$r(cache, luvio, resourceParams);
|
|
3063
3063
|
return cache;
|
|
3064
3064
|
});
|
|
3065
3065
|
}, (response) => {
|
|
@@ -3069,33 +3069,33 @@ function buildNetworkSnapshot$p(luvio, config, options) {
|
|
|
3069
3069
|
}
|
|
3070
3070
|
const deleteDashboardAdapterFactory = (luvio) => {
|
|
3071
3071
|
return function UnifiedAnalyticsdeleteDashboard(untrustedConfig) {
|
|
3072
|
-
const config = validateAdapterConfig$
|
|
3072
|
+
const config = validateAdapterConfig$r(untrustedConfig, deleteDashboard_ConfigPropertyNames);
|
|
3073
3073
|
// Invalid or incomplete config
|
|
3074
3074
|
if (config === null) {
|
|
3075
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
3075
|
+
throw new Error(`Invalid config for "${adapterName$r}"`);
|
|
3076
3076
|
}
|
|
3077
|
-
return buildNetworkSnapshot$
|
|
3077
|
+
return buildNetworkSnapshot$r(luvio, config);
|
|
3078
3078
|
};
|
|
3079
3079
|
};
|
|
3080
3080
|
|
|
3081
|
-
function select$
|
|
3082
|
-
return select$
|
|
3081
|
+
function select$C(luvio, params) {
|
|
3082
|
+
return select$G();
|
|
3083
3083
|
}
|
|
3084
|
-
function keyBuilder$
|
|
3085
|
-
return keyBuilder$
|
|
3084
|
+
function keyBuilder$B(luvio, params) {
|
|
3085
|
+
return keyBuilder$F(luvio, {
|
|
3086
3086
|
name: params.urlParams.dashboardIdOrApiName
|
|
3087
3087
|
});
|
|
3088
3088
|
}
|
|
3089
|
-
function getResponseCacheKeys$
|
|
3090
|
-
getTypeCacheKeys$
|
|
3089
|
+
function getResponseCacheKeys$q(storeKeyMap, luvio, resourceParams, response) {
|
|
3090
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response);
|
|
3091
3091
|
}
|
|
3092
|
-
function ingestSuccess$
|
|
3092
|
+
function ingestSuccess$m(luvio, resourceParams, response, snapshotRefresh) {
|
|
3093
3093
|
const { body } = response;
|
|
3094
|
-
const key = keyBuilder$
|
|
3095
|
-
luvio.storeIngest(key, ingest$
|
|
3094
|
+
const key = keyBuilder$B(luvio, resourceParams);
|
|
3095
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
3096
3096
|
const snapshot = luvio.storeLookup({
|
|
3097
3097
|
recordId: key,
|
|
3098
|
-
node: select$
|
|
3098
|
+
node: select$C(),
|
|
3099
3099
|
variables: {},
|
|
3100
3100
|
}, snapshotRefresh);
|
|
3101
3101
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3106,13 +3106,13 @@ function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3106
3106
|
deepFreeze(snapshot.data);
|
|
3107
3107
|
return snapshot;
|
|
3108
3108
|
}
|
|
3109
|
-
function ingestError$
|
|
3110
|
-
const key = keyBuilder$
|
|
3109
|
+
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
3110
|
+
const key = keyBuilder$B(luvio, params);
|
|
3111
3111
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3112
3112
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3113
3113
|
return errorSnapshot;
|
|
3114
3114
|
}
|
|
3115
|
-
function createResourceRequest$
|
|
3115
|
+
function createResourceRequest$q(config) {
|
|
3116
3116
|
const headers = {};
|
|
3117
3117
|
return {
|
|
3118
3118
|
baseUri: '/services/data/v62.0',
|
|
@@ -3126,105 +3126,105 @@ function createResourceRequest$o(config) {
|
|
|
3126
3126
|
};
|
|
3127
3127
|
}
|
|
3128
3128
|
|
|
3129
|
-
const adapterName$
|
|
3129
|
+
const adapterName$q = 'getDashboardByName';
|
|
3130
3130
|
const getDashboardByName_ConfigPropertyMetadata = [
|
|
3131
3131
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3132
3132
|
];
|
|
3133
|
-
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3134
|
-
const createResourceParams$
|
|
3135
|
-
function keyBuilder$
|
|
3136
|
-
const resourceParams = createResourceParams$
|
|
3137
|
-
return keyBuilder$
|
|
3133
|
+
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$q, getDashboardByName_ConfigPropertyMetadata);
|
|
3134
|
+
const createResourceParams$q = /*#__PURE__*/ createResourceParams$y(getDashboardByName_ConfigPropertyMetadata);
|
|
3135
|
+
function keyBuilder$A(luvio, config) {
|
|
3136
|
+
const resourceParams = createResourceParams$q(config);
|
|
3137
|
+
return keyBuilder$B(luvio, resourceParams);
|
|
3138
3138
|
}
|
|
3139
|
-
function typeCheckConfig$
|
|
3139
|
+
function typeCheckConfig$q(untrustedConfig) {
|
|
3140
3140
|
const config = {};
|
|
3141
|
-
typeCheckConfig$
|
|
3141
|
+
typeCheckConfig$y(untrustedConfig, config, getDashboardByName_ConfigPropertyMetadata);
|
|
3142
3142
|
return config;
|
|
3143
3143
|
}
|
|
3144
|
-
function validateAdapterConfig$
|
|
3144
|
+
function validateAdapterConfig$q(untrustedConfig, configPropertyNames) {
|
|
3145
3145
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3146
3146
|
return null;
|
|
3147
3147
|
}
|
|
3148
3148
|
if (process.env.NODE_ENV !== 'production') {
|
|
3149
3149
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3150
3150
|
}
|
|
3151
|
-
const config = typeCheckConfig$
|
|
3151
|
+
const config = typeCheckConfig$q(untrustedConfig);
|
|
3152
3152
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3153
3153
|
return null;
|
|
3154
3154
|
}
|
|
3155
3155
|
return config;
|
|
3156
3156
|
}
|
|
3157
|
-
function adapterFragment$
|
|
3158
|
-
createResourceParams$
|
|
3159
|
-
return select$
|
|
3157
|
+
function adapterFragment$b(luvio, config) {
|
|
3158
|
+
createResourceParams$q(config);
|
|
3159
|
+
return select$C();
|
|
3160
3160
|
}
|
|
3161
|
-
function onFetchResponseSuccess$
|
|
3162
|
-
const snapshot = ingestSuccess$
|
|
3161
|
+
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
3162
|
+
const snapshot = ingestSuccess$m(luvio, resourceParams, response, {
|
|
3163
3163
|
config,
|
|
3164
|
-
resolve: () => buildNetworkSnapshot$
|
|
3164
|
+
resolve: () => buildNetworkSnapshot$q(luvio, config, snapshotRefreshOptions)
|
|
3165
3165
|
});
|
|
3166
3166
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3167
3167
|
}
|
|
3168
|
-
function onFetchResponseError$
|
|
3169
|
-
const snapshot = ingestError$
|
|
3168
|
+
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
3169
|
+
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
3170
3170
|
config,
|
|
3171
|
-
resolve: () => buildNetworkSnapshot$
|
|
3171
|
+
resolve: () => buildNetworkSnapshot$q(luvio, config, snapshotRefreshOptions)
|
|
3172
3172
|
});
|
|
3173
3173
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3174
3174
|
}
|
|
3175
|
-
function buildNetworkSnapshot$
|
|
3176
|
-
const resourceParams = createResourceParams$
|
|
3177
|
-
const request = createResourceRequest$
|
|
3175
|
+
function buildNetworkSnapshot$q(luvio, config, options) {
|
|
3176
|
+
const resourceParams = createResourceParams$q(config);
|
|
3177
|
+
const request = createResourceRequest$q(resourceParams);
|
|
3178
3178
|
return luvio.dispatchResourceRequest(request, options)
|
|
3179
3179
|
.then((response) => {
|
|
3180
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3180
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
|
|
3181
3181
|
const cache = new StoreKeyMap();
|
|
3182
|
-
getResponseCacheKeys$
|
|
3182
|
+
getResponseCacheKeys$q(cache, luvio, resourceParams, response.body);
|
|
3183
3183
|
return cache;
|
|
3184
3184
|
});
|
|
3185
3185
|
}, (response) => {
|
|
3186
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3186
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$b(luvio, config, resourceParams, response));
|
|
3187
3187
|
});
|
|
3188
3188
|
}
|
|
3189
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3190
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3189
|
+
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
3190
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$q, undefined, false);
|
|
3191
3191
|
}
|
|
3192
|
-
function buildCachedSnapshotCachePolicy$
|
|
3192
|
+
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
3193
3193
|
const { luvio, config } = context;
|
|
3194
3194
|
const selector = {
|
|
3195
|
-
recordId: keyBuilder$
|
|
3196
|
-
node: adapterFragment$
|
|
3195
|
+
recordId: keyBuilder$A(luvio, config),
|
|
3196
|
+
node: adapterFragment$b(luvio, config),
|
|
3197
3197
|
variables: {},
|
|
3198
3198
|
};
|
|
3199
3199
|
const cacheSnapshot = storeLookup(selector, {
|
|
3200
3200
|
config,
|
|
3201
|
-
resolve: () => buildNetworkSnapshot$
|
|
3201
|
+
resolve: () => buildNetworkSnapshot$q(luvio, config, snapshotRefreshOptions)
|
|
3202
3202
|
});
|
|
3203
3203
|
return cacheSnapshot;
|
|
3204
3204
|
}
|
|
3205
3205
|
const getDashboardByNameAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboardByName(untrustedConfig, requestContext) {
|
|
3206
|
-
const config = validateAdapterConfig$
|
|
3206
|
+
const config = validateAdapterConfig$q(untrustedConfig, getDashboardByName_ConfigPropertyNames);
|
|
3207
3207
|
// Invalid or incomplete config
|
|
3208
3208
|
if (config === null) {
|
|
3209
3209
|
return null;
|
|
3210
3210
|
}
|
|
3211
3211
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3212
|
-
buildCachedSnapshotCachePolicy$
|
|
3212
|
+
buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
|
|
3213
3213
|
};
|
|
3214
3214
|
|
|
3215
|
-
function select$
|
|
3216
|
-
return select$
|
|
3215
|
+
function select$B(luvio, params) {
|
|
3216
|
+
return select$G();
|
|
3217
3217
|
}
|
|
3218
|
-
function getResponseCacheKeys$
|
|
3219
|
-
getTypeCacheKeys$
|
|
3218
|
+
function getResponseCacheKeys$p(storeKeyMap, luvio, resourceParams, response) {
|
|
3219
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response);
|
|
3220
3220
|
}
|
|
3221
|
-
function ingestSuccess$
|
|
3221
|
+
function ingestSuccess$l(luvio, resourceParams, response) {
|
|
3222
3222
|
const { body } = response;
|
|
3223
|
-
const key = keyBuilderFromType$
|
|
3224
|
-
luvio.storeIngest(key, ingest$
|
|
3223
|
+
const key = keyBuilderFromType$9(luvio, body);
|
|
3224
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
3225
3225
|
const snapshot = luvio.storeLookup({
|
|
3226
3226
|
recordId: key,
|
|
3227
|
-
node: select$
|
|
3227
|
+
node: select$B(),
|
|
3228
3228
|
variables: {},
|
|
3229
3229
|
});
|
|
3230
3230
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3235,7 +3235,7 @@ function ingestSuccess$j(luvio, resourceParams, response) {
|
|
|
3235
3235
|
deepFreeze(snapshot.data);
|
|
3236
3236
|
return snapshot;
|
|
3237
3237
|
}
|
|
3238
|
-
function createResourceRequest$
|
|
3238
|
+
function createResourceRequest$p(config) {
|
|
3239
3239
|
const headers = {};
|
|
3240
3240
|
return {
|
|
3241
3241
|
baseUri: '/services/data/v62.0',
|
|
@@ -3249,7 +3249,7 @@ function createResourceRequest$n(config) {
|
|
|
3249
3249
|
};
|
|
3250
3250
|
}
|
|
3251
3251
|
|
|
3252
|
-
const adapterName$
|
|
3252
|
+
const adapterName$p = 'updateDashboard';
|
|
3253
3253
|
const updateDashboard_ConfigPropertyMetadata = [
|
|
3254
3254
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3255
3255
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -3261,11 +3261,11 @@ const updateDashboard_ConfigPropertyMetadata = [
|
|
|
3261
3261
|
generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3262
3262
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3263
3263
|
];
|
|
3264
|
-
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3265
|
-
const createResourceParams$
|
|
3266
|
-
function typeCheckConfig$
|
|
3264
|
+
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$p, updateDashboard_ConfigPropertyMetadata);
|
|
3265
|
+
const createResourceParams$p = /*#__PURE__*/ createResourceParams$y(updateDashboard_ConfigPropertyMetadata);
|
|
3266
|
+
function typeCheckConfig$p(untrustedConfig) {
|
|
3267
3267
|
const config = {};
|
|
3268
|
-
typeCheckConfig$
|
|
3268
|
+
typeCheckConfig$y(untrustedConfig, config, updateDashboard_ConfigPropertyMetadata);
|
|
3269
3269
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
3270
3270
|
if (ArrayIsArray$1(untrustedConfig_layouts)) {
|
|
3271
3271
|
const untrustedConfig_layouts_array = [];
|
|
@@ -3307,30 +3307,30 @@ function typeCheckConfig$n(untrustedConfig) {
|
|
|
3307
3307
|
}
|
|
3308
3308
|
return config;
|
|
3309
3309
|
}
|
|
3310
|
-
function validateAdapterConfig$
|
|
3310
|
+
function validateAdapterConfig$p(untrustedConfig, configPropertyNames) {
|
|
3311
3311
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3312
3312
|
return null;
|
|
3313
3313
|
}
|
|
3314
3314
|
if (process.env.NODE_ENV !== 'production') {
|
|
3315
3315
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3316
3316
|
}
|
|
3317
|
-
const config = typeCheckConfig$
|
|
3317
|
+
const config = typeCheckConfig$p(untrustedConfig);
|
|
3318
3318
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3319
3319
|
return null;
|
|
3320
3320
|
}
|
|
3321
3321
|
return config;
|
|
3322
3322
|
}
|
|
3323
|
-
function buildNetworkSnapshot$
|
|
3324
|
-
const resourceParams = createResourceParams$
|
|
3325
|
-
const request = createResourceRequest$
|
|
3323
|
+
function buildNetworkSnapshot$p(luvio, config, options) {
|
|
3324
|
+
const resourceParams = createResourceParams$p(config);
|
|
3325
|
+
const request = createResourceRequest$p(resourceParams);
|
|
3326
3326
|
return luvio.dispatchResourceRequest(request, options)
|
|
3327
3327
|
.then((response) => {
|
|
3328
3328
|
return luvio.handleSuccessResponse(() => {
|
|
3329
|
-
const snapshot = ingestSuccess$
|
|
3329
|
+
const snapshot = ingestSuccess$l(luvio, resourceParams, response);
|
|
3330
3330
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3331
3331
|
}, () => {
|
|
3332
3332
|
const cache = new StoreKeyMap();
|
|
3333
|
-
getResponseCacheKeys$
|
|
3333
|
+
getResponseCacheKeys$p(cache, luvio, resourceParams, response.body);
|
|
3334
3334
|
return cache;
|
|
3335
3335
|
});
|
|
3336
3336
|
}, (response) => {
|
|
@@ -3340,17 +3340,17 @@ function buildNetworkSnapshot$n(luvio, config, options) {
|
|
|
3340
3340
|
}
|
|
3341
3341
|
const updateDashboardAdapterFactory = (luvio) => {
|
|
3342
3342
|
return function updateDashboard(untrustedConfig) {
|
|
3343
|
-
const config = validateAdapterConfig$
|
|
3343
|
+
const config = validateAdapterConfig$p(untrustedConfig, updateDashboard_ConfigPropertyNames);
|
|
3344
3344
|
// Invalid or incomplete config
|
|
3345
3345
|
if (config === null) {
|
|
3346
3346
|
throw new Error('Invalid config for "updateDashboard"');
|
|
3347
3347
|
}
|
|
3348
|
-
return buildNetworkSnapshot$
|
|
3348
|
+
return buildNetworkSnapshot$p(luvio, config);
|
|
3349
3349
|
};
|
|
3350
3350
|
};
|
|
3351
3351
|
|
|
3352
|
-
function validate$
|
|
3353
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
3352
|
+
function validate$k(obj, path = 'AnalyticsUserRepresentation') {
|
|
3353
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$q(obj, path);
|
|
3354
3354
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
3355
3355
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
3356
3356
|
}
|
|
@@ -3390,16 +3390,16 @@ function validate$i(obj, path = 'AnalyticsUserRepresentation') {
|
|
|
3390
3390
|
return v_error === undefined ? null : v_error;
|
|
3391
3391
|
}
|
|
3392
3392
|
|
|
3393
|
-
const TTL$
|
|
3394
|
-
const VERSION$
|
|
3395
|
-
function validate$
|
|
3393
|
+
const TTL$7 = 500;
|
|
3394
|
+
const VERSION$f = "9a4f1166e92aab266ef84b910ef0c322";
|
|
3395
|
+
function validate$j(obj, path = 'FollowerAssetRepresentation') {
|
|
3396
3396
|
const v_error = (() => {
|
|
3397
3397
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3398
3398
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3399
3399
|
}
|
|
3400
3400
|
const obj_createdBy = obj.createdBy;
|
|
3401
3401
|
const path_createdBy = path + '.createdBy';
|
|
3402
|
-
const referencepath_createdByValidationError = validate$
|
|
3402
|
+
const referencepath_createdByValidationError = validate$k(obj_createdBy, path_createdBy);
|
|
3403
3403
|
if (referencepath_createdByValidationError !== null) {
|
|
3404
3404
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
3405
3405
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3433,68 +3433,68 @@ function validate$h(obj, path = 'FollowerAssetRepresentation') {
|
|
|
3433
3433
|
})();
|
|
3434
3434
|
return v_error === undefined ? null : v_error;
|
|
3435
3435
|
}
|
|
3436
|
-
const RepresentationType$
|
|
3437
|
-
function keyBuilder$
|
|
3438
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3436
|
+
const RepresentationType$g = 'FollowerAssetRepresentation';
|
|
3437
|
+
function keyBuilder$z(luvio, config) {
|
|
3438
|
+
return keyPrefix + '::' + RepresentationType$g + ':' + config.followerId;
|
|
3439
3439
|
}
|
|
3440
|
-
function keyBuilderFromType$
|
|
3440
|
+
function keyBuilderFromType$8(luvio, object) {
|
|
3441
3441
|
const keyParams = {
|
|
3442
3442
|
followerId: object.followerId
|
|
3443
3443
|
};
|
|
3444
|
-
return keyBuilder$
|
|
3444
|
+
return keyBuilder$z(luvio, keyParams);
|
|
3445
3445
|
}
|
|
3446
|
-
function normalize$
|
|
3446
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
3447
3447
|
return input;
|
|
3448
3448
|
}
|
|
3449
|
-
const select$
|
|
3449
|
+
const select$A = function FollowerAssetRepresentationSelect() {
|
|
3450
3450
|
return {
|
|
3451
3451
|
kind: 'Fragment',
|
|
3452
|
-
version: VERSION$
|
|
3452
|
+
version: VERSION$f,
|
|
3453
3453
|
private: [],
|
|
3454
3454
|
opaque: true
|
|
3455
3455
|
};
|
|
3456
3456
|
};
|
|
3457
|
-
function equals$
|
|
3457
|
+
function equals$f(existing, incoming) {
|
|
3458
3458
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3459
3459
|
return false;
|
|
3460
3460
|
}
|
|
3461
3461
|
return true;
|
|
3462
3462
|
}
|
|
3463
|
-
const ingest$
|
|
3463
|
+
const ingest$f = function FollowerAssetRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3464
3464
|
if (process.env.NODE_ENV !== 'production') {
|
|
3465
|
-
const validateError = validate$
|
|
3465
|
+
const validateError = validate$j(input);
|
|
3466
3466
|
if (validateError !== null) {
|
|
3467
3467
|
throw validateError;
|
|
3468
3468
|
}
|
|
3469
3469
|
}
|
|
3470
|
-
const key = keyBuilderFromType$
|
|
3471
|
-
const ttlToUse = TTL$
|
|
3472
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3470
|
+
const key = keyBuilderFromType$8(luvio, input);
|
|
3471
|
+
const ttlToUse = TTL$7;
|
|
3472
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "UnifiedAnalytics", VERSION$f, RepresentationType$g, equals$f);
|
|
3473
3473
|
return createLink(key);
|
|
3474
3474
|
};
|
|
3475
|
-
function getTypeCacheKeys$
|
|
3475
|
+
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
3476
3476
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3477
|
-
const rootKey = keyBuilderFromType$
|
|
3477
|
+
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
3478
3478
|
rootKeySet.set(rootKey, {
|
|
3479
3479
|
namespace: keyPrefix,
|
|
3480
|
-
representationName: RepresentationType$
|
|
3480
|
+
representationName: RepresentationType$g,
|
|
3481
3481
|
mergeable: false
|
|
3482
3482
|
});
|
|
3483
3483
|
}
|
|
3484
3484
|
|
|
3485
|
-
function select$
|
|
3486
|
-
return select$
|
|
3485
|
+
function select$z(luvio, params) {
|
|
3486
|
+
return select$A();
|
|
3487
3487
|
}
|
|
3488
|
-
function getResponseCacheKeys$
|
|
3489
|
-
getTypeCacheKeys$
|
|
3488
|
+
function getResponseCacheKeys$o(storeKeyMap, luvio, resourceParams, response) {
|
|
3489
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
3490
3490
|
}
|
|
3491
|
-
function ingestSuccess$
|
|
3491
|
+
function ingestSuccess$k(luvio, resourceParams, response) {
|
|
3492
3492
|
const { body } = response;
|
|
3493
|
-
const key = keyBuilderFromType$
|
|
3494
|
-
luvio.storeIngest(key, ingest$
|
|
3493
|
+
const key = keyBuilderFromType$8(luvio, body);
|
|
3494
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
3495
3495
|
const snapshot = luvio.storeLookup({
|
|
3496
3496
|
recordId: key,
|
|
3497
|
-
node: select$
|
|
3497
|
+
node: select$z(),
|
|
3498
3498
|
variables: {},
|
|
3499
3499
|
});
|
|
3500
3500
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3505,7 +3505,7 @@ function ingestSuccess$i(luvio, resourceParams, response) {
|
|
|
3505
3505
|
deepFreeze(snapshot.data);
|
|
3506
3506
|
return snapshot;
|
|
3507
3507
|
}
|
|
3508
|
-
function createResourceRequest$
|
|
3508
|
+
function createResourceRequest$o(config) {
|
|
3509
3509
|
const headers = {};
|
|
3510
3510
|
return {
|
|
3511
3511
|
baseUri: '/services/data/v62.0',
|
|
@@ -3519,44 +3519,44 @@ function createResourceRequest$m(config) {
|
|
|
3519
3519
|
};
|
|
3520
3520
|
}
|
|
3521
3521
|
|
|
3522
|
-
const adapterName$
|
|
3522
|
+
const adapterName$o = 'follow';
|
|
3523
3523
|
const follow_ConfigPropertyMetadata = [
|
|
3524
3524
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3525
3525
|
generateParamConfigMetadata('assetId', true, 2 /* Body */, 0 /* String */),
|
|
3526
3526
|
generateParamConfigMetadata('assetType', true, 2 /* Body */, 0 /* String */),
|
|
3527
3527
|
generateParamConfigMetadata('followerType', true, 2 /* Body */, 0 /* String */),
|
|
3528
3528
|
];
|
|
3529
|
-
const follow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3530
|
-
const createResourceParams$
|
|
3531
|
-
function typeCheckConfig$
|
|
3529
|
+
const follow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, follow_ConfigPropertyMetadata);
|
|
3530
|
+
const createResourceParams$o = /*#__PURE__*/ createResourceParams$y(follow_ConfigPropertyMetadata);
|
|
3531
|
+
function typeCheckConfig$o(untrustedConfig) {
|
|
3532
3532
|
const config = {};
|
|
3533
|
-
typeCheckConfig$
|
|
3533
|
+
typeCheckConfig$y(untrustedConfig, config, follow_ConfigPropertyMetadata);
|
|
3534
3534
|
return config;
|
|
3535
3535
|
}
|
|
3536
|
-
function validateAdapterConfig$
|
|
3536
|
+
function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
|
|
3537
3537
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3538
3538
|
return null;
|
|
3539
3539
|
}
|
|
3540
3540
|
if (process.env.NODE_ENV !== 'production') {
|
|
3541
3541
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3542
3542
|
}
|
|
3543
|
-
const config = typeCheckConfig$
|
|
3543
|
+
const config = typeCheckConfig$o(untrustedConfig);
|
|
3544
3544
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3545
3545
|
return null;
|
|
3546
3546
|
}
|
|
3547
3547
|
return config;
|
|
3548
3548
|
}
|
|
3549
|
-
function buildNetworkSnapshot$
|
|
3550
|
-
const resourceParams = createResourceParams$
|
|
3551
|
-
const request = createResourceRequest$
|
|
3549
|
+
function buildNetworkSnapshot$o(luvio, config, options) {
|
|
3550
|
+
const resourceParams = createResourceParams$o(config);
|
|
3551
|
+
const request = createResourceRequest$o(resourceParams);
|
|
3552
3552
|
return luvio.dispatchResourceRequest(request, options)
|
|
3553
3553
|
.then((response) => {
|
|
3554
3554
|
return luvio.handleSuccessResponse(() => {
|
|
3555
|
-
const snapshot = ingestSuccess$
|
|
3555
|
+
const snapshot = ingestSuccess$k(luvio, resourceParams, response);
|
|
3556
3556
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3557
3557
|
}, () => {
|
|
3558
3558
|
const cache = new StoreKeyMap();
|
|
3559
|
-
getResponseCacheKeys$
|
|
3559
|
+
getResponseCacheKeys$o(cache, luvio, resourceParams, response.body);
|
|
3560
3560
|
return cache;
|
|
3561
3561
|
});
|
|
3562
3562
|
}, (response) => {
|
|
@@ -3566,16 +3566,16 @@ function buildNetworkSnapshot$m(luvio, config, options) {
|
|
|
3566
3566
|
}
|
|
3567
3567
|
const followAdapterFactory = (luvio) => {
|
|
3568
3568
|
return function follow(untrustedConfig) {
|
|
3569
|
-
const config = validateAdapterConfig$
|
|
3569
|
+
const config = validateAdapterConfig$o(untrustedConfig, follow_ConfigPropertyNames);
|
|
3570
3570
|
// Invalid or incomplete config
|
|
3571
3571
|
if (config === null) {
|
|
3572
3572
|
throw new Error('Invalid config for "follow"');
|
|
3573
3573
|
}
|
|
3574
|
-
return buildNetworkSnapshot$
|
|
3574
|
+
return buildNetworkSnapshot$o(luvio, config);
|
|
3575
3575
|
};
|
|
3576
3576
|
};
|
|
3577
3577
|
|
|
3578
|
-
function validate$
|
|
3578
|
+
function validate$i(obj, path = 'FollowedAssetRepresentation') {
|
|
3579
3579
|
const v_error = (() => {
|
|
3580
3580
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3581
3581
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3634,29 +3634,29 @@ function validate$g(obj, path = 'FollowedAssetRepresentation') {
|
|
|
3634
3634
|
})();
|
|
3635
3635
|
return v_error === undefined ? null : v_error;
|
|
3636
3636
|
}
|
|
3637
|
-
const RepresentationType$
|
|
3638
|
-
function keyBuilder$
|
|
3639
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3637
|
+
const RepresentationType$f = 'FollowedAssetRepresentation';
|
|
3638
|
+
function keyBuilder$y(luvio, config) {
|
|
3639
|
+
return keyPrefix + '::' + RepresentationType$f + ':' + config.followedAssetId;
|
|
3640
3640
|
}
|
|
3641
3641
|
|
|
3642
|
-
function keyBuilder$
|
|
3643
|
-
return keyBuilder$
|
|
3642
|
+
function keyBuilder$x(luvio, params) {
|
|
3643
|
+
return keyBuilder$y(luvio, {
|
|
3644
3644
|
followedAssetId: params.urlParams.followedAssetId
|
|
3645
3645
|
});
|
|
3646
3646
|
}
|
|
3647
|
-
function getResponseCacheKeys$
|
|
3648
|
-
const key = keyBuilder$
|
|
3647
|
+
function getResponseCacheKeys$n(cacheKeyMap, luvio, resourceParams) {
|
|
3648
|
+
const key = keyBuilder$x(luvio, resourceParams);
|
|
3649
3649
|
cacheKeyMap.set(key, {
|
|
3650
3650
|
namespace: keyPrefix,
|
|
3651
|
-
representationName: RepresentationType$
|
|
3651
|
+
representationName: RepresentationType$f,
|
|
3652
3652
|
mergeable: false
|
|
3653
3653
|
});
|
|
3654
3654
|
}
|
|
3655
3655
|
function evictSuccess$3(luvio, resourceParams) {
|
|
3656
|
-
const key = keyBuilder$
|
|
3656
|
+
const key = keyBuilder$x(luvio, resourceParams);
|
|
3657
3657
|
luvio.storeEvict(key);
|
|
3658
3658
|
}
|
|
3659
|
-
function createResourceRequest$
|
|
3659
|
+
function createResourceRequest$n(config) {
|
|
3660
3660
|
const headers = {};
|
|
3661
3661
|
return {
|
|
3662
3662
|
baseUri: '/services/data/v62.0',
|
|
@@ -3670,34 +3670,34 @@ function createResourceRequest$l(config) {
|
|
|
3670
3670
|
};
|
|
3671
3671
|
}
|
|
3672
3672
|
|
|
3673
|
-
const adapterName$
|
|
3673
|
+
const adapterName$n = 'unfollow';
|
|
3674
3674
|
const unfollow_ConfigPropertyMetadata = [
|
|
3675
3675
|
generateParamConfigMetadata('followedAssetId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3676
3676
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3677
3677
|
];
|
|
3678
|
-
const unfollow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3679
|
-
const createResourceParams$
|
|
3680
|
-
function typeCheckConfig$
|
|
3678
|
+
const unfollow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, unfollow_ConfigPropertyMetadata);
|
|
3679
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$y(unfollow_ConfigPropertyMetadata);
|
|
3680
|
+
function typeCheckConfig$n(untrustedConfig) {
|
|
3681
3681
|
const config = {};
|
|
3682
|
-
typeCheckConfig$
|
|
3682
|
+
typeCheckConfig$y(untrustedConfig, config, unfollow_ConfigPropertyMetadata);
|
|
3683
3683
|
return config;
|
|
3684
3684
|
}
|
|
3685
|
-
function validateAdapterConfig$
|
|
3685
|
+
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
3686
3686
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3687
3687
|
return null;
|
|
3688
3688
|
}
|
|
3689
3689
|
if (process.env.NODE_ENV !== 'production') {
|
|
3690
3690
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3691
3691
|
}
|
|
3692
|
-
const config = typeCheckConfig$
|
|
3692
|
+
const config = typeCheckConfig$n(untrustedConfig);
|
|
3693
3693
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3694
3694
|
return null;
|
|
3695
3695
|
}
|
|
3696
3696
|
return config;
|
|
3697
3697
|
}
|
|
3698
|
-
function buildNetworkSnapshot$
|
|
3699
|
-
const resourceParams = createResourceParams$
|
|
3700
|
-
const request = createResourceRequest$
|
|
3698
|
+
function buildNetworkSnapshot$n(luvio, config, options) {
|
|
3699
|
+
const resourceParams = createResourceParams$n(config);
|
|
3700
|
+
const request = createResourceRequest$n(resourceParams);
|
|
3701
3701
|
return luvio.dispatchResourceRequest(request, options)
|
|
3702
3702
|
.then(() => {
|
|
3703
3703
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -3705,7 +3705,7 @@ function buildNetworkSnapshot$l(luvio, config, options) {
|
|
|
3705
3705
|
return luvio.storeBroadcast();
|
|
3706
3706
|
}, () => {
|
|
3707
3707
|
const cache = new StoreKeyMap();
|
|
3708
|
-
getResponseCacheKeys$
|
|
3708
|
+
getResponseCacheKeys$n(cache, luvio, resourceParams);
|
|
3709
3709
|
return cache;
|
|
3710
3710
|
});
|
|
3711
3711
|
}, (response) => {
|
|
@@ -3715,96 +3715,667 @@ function buildNetworkSnapshot$l(luvio, config, options) {
|
|
|
3715
3715
|
}
|
|
3716
3716
|
const unfollowAdapterFactory = (luvio) => {
|
|
3717
3717
|
return function UnifiedAnalyticsunfollow(untrustedConfig) {
|
|
3718
|
-
const config = validateAdapterConfig$
|
|
3718
|
+
const config = validateAdapterConfig$n(untrustedConfig, unfollow_ConfigPropertyNames);
|
|
3719
3719
|
// Invalid or incomplete config
|
|
3720
3720
|
if (config === null) {
|
|
3721
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
3721
|
+
throw new Error(`Invalid config for "${adapterName$n}"`);
|
|
3722
3722
|
}
|
|
3723
|
-
return buildNetworkSnapshot$
|
|
3723
|
+
return buildNetworkSnapshot$n(luvio, config);
|
|
3724
3724
|
};
|
|
3725
3725
|
};
|
|
3726
3726
|
|
|
3727
|
-
const TTL$
|
|
3728
|
-
const VERSION$
|
|
3729
|
-
function validate$
|
|
3727
|
+
const TTL$6 = 500;
|
|
3728
|
+
const VERSION$e = "1fd0770995d332e49822d6bbabe35e87";
|
|
3729
|
+
function validate$h(obj, path = 'FollowerCollectionRepresentation') {
|
|
3730
|
+
const v_error = (() => {
|
|
3731
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3732
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3733
|
+
}
|
|
3734
|
+
const obj_followers = obj.followers;
|
|
3735
|
+
const path_followers = path + '.followers';
|
|
3736
|
+
if (!ArrayIsArray(obj_followers)) {
|
|
3737
|
+
return new TypeError('Expected "array" but received "' + typeof obj_followers + '" (at "' + path_followers + '")');
|
|
3738
|
+
}
|
|
3739
|
+
for (let i = 0; i < obj_followers.length; i++) {
|
|
3740
|
+
const obj_followers_item = obj_followers[i];
|
|
3741
|
+
const path_followers_item = path_followers + '[' + i + ']';
|
|
3742
|
+
const referencepath_followers_itemValidationError = validate$k(obj_followers_item, path_followers_item);
|
|
3743
|
+
if (referencepath_followers_itemValidationError !== null) {
|
|
3744
|
+
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_followers_item + '")\n';
|
|
3745
|
+
message += referencepath_followers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3746
|
+
return new TypeError(message);
|
|
3747
|
+
}
|
|
3748
|
+
}
|
|
3749
|
+
})();
|
|
3750
|
+
return v_error === undefined ? null : v_error;
|
|
3751
|
+
}
|
|
3752
|
+
const RepresentationType$e = 'FollowerCollectionRepresentation';
|
|
3753
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
3754
|
+
return input;
|
|
3755
|
+
}
|
|
3756
|
+
const select$y = function FollowerCollectionRepresentationSelect() {
|
|
3757
|
+
return {
|
|
3758
|
+
kind: 'Fragment',
|
|
3759
|
+
version: VERSION$e,
|
|
3760
|
+
private: [],
|
|
3761
|
+
opaque: true
|
|
3762
|
+
};
|
|
3763
|
+
};
|
|
3764
|
+
function equals$e(existing, incoming) {
|
|
3765
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3766
|
+
return false;
|
|
3767
|
+
}
|
|
3768
|
+
return true;
|
|
3769
|
+
}
|
|
3770
|
+
const ingest$e = function FollowerCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3771
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3772
|
+
const validateError = validate$h(input);
|
|
3773
|
+
if (validateError !== null) {
|
|
3774
|
+
throw validateError;
|
|
3775
|
+
}
|
|
3776
|
+
}
|
|
3777
|
+
const key = path.fullPath;
|
|
3778
|
+
const ttlToUse = TTL$6;
|
|
3779
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "UnifiedAnalytics", VERSION$e, RepresentationType$e, equals$e);
|
|
3780
|
+
return createLink(key);
|
|
3781
|
+
};
|
|
3782
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
3783
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3784
|
+
const rootKey = fullPathFactory();
|
|
3785
|
+
rootKeySet.set(rootKey, {
|
|
3786
|
+
namespace: keyPrefix,
|
|
3787
|
+
representationName: RepresentationType$e,
|
|
3788
|
+
mergeable: false
|
|
3789
|
+
});
|
|
3790
|
+
}
|
|
3791
|
+
|
|
3792
|
+
function select$x(luvio, params) {
|
|
3793
|
+
return select$y();
|
|
3794
|
+
}
|
|
3795
|
+
function keyBuilder$w(luvio, params) {
|
|
3796
|
+
return keyPrefix + '::FollowerCollectionRepresentation:(' + 'followerId:' + params.queryParams.followerId + ',' + 'followerType:' + params.queryParams.followerType + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'followedAssetId:' + params.urlParams.followedAssetId + ')';
|
|
3797
|
+
}
|
|
3798
|
+
function getResponseCacheKeys$m(storeKeyMap, luvio, resourceParams, response) {
|
|
3799
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response, () => keyBuilder$w(luvio, resourceParams));
|
|
3800
|
+
}
|
|
3801
|
+
function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
3802
|
+
const { body } = response;
|
|
3803
|
+
const key = keyBuilder$w(luvio, resourceParams);
|
|
3804
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
3805
|
+
const snapshot = luvio.storeLookup({
|
|
3806
|
+
recordId: key,
|
|
3807
|
+
node: select$x(),
|
|
3808
|
+
variables: {},
|
|
3809
|
+
}, snapshotRefresh);
|
|
3810
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3811
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
3812
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3813
|
+
}
|
|
3814
|
+
}
|
|
3815
|
+
deepFreeze(snapshot.data);
|
|
3816
|
+
return snapshot;
|
|
3817
|
+
}
|
|
3818
|
+
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
3819
|
+
const key = keyBuilder$w(luvio, params);
|
|
3820
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3821
|
+
const storeMetadataParams = {
|
|
3822
|
+
ttl: TTL$6,
|
|
3823
|
+
namespace: keyPrefix,
|
|
3824
|
+
version: VERSION$e,
|
|
3825
|
+
representationName: RepresentationType$e
|
|
3826
|
+
};
|
|
3827
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
3828
|
+
return errorSnapshot;
|
|
3829
|
+
}
|
|
3830
|
+
function createResourceRequest$m(config) {
|
|
3831
|
+
const headers = {};
|
|
3832
|
+
return {
|
|
3833
|
+
baseUri: '/services/data/v62.0',
|
|
3834
|
+
basePath: '/unified-analytics/follow/assets/' + config.urlParams.followedAssetId + '/followers',
|
|
3835
|
+
method: 'get',
|
|
3836
|
+
body: null,
|
|
3837
|
+
urlParams: config.urlParams,
|
|
3838
|
+
queryParams: config.queryParams,
|
|
3839
|
+
headers,
|
|
3840
|
+
priority: 'normal',
|
|
3841
|
+
};
|
|
3842
|
+
}
|
|
3843
|
+
|
|
3844
|
+
const adapterName$m = 'getFollowers';
|
|
3845
|
+
const getFollowers_ConfigPropertyMetadata = [
|
|
3846
|
+
generateParamConfigMetadata('followedAssetId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3847
|
+
generateParamConfigMetadata('followerId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3848
|
+
generateParamConfigMetadata('followerType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3849
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3850
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3851
|
+
];
|
|
3852
|
+
const getFollowers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, getFollowers_ConfigPropertyMetadata);
|
|
3853
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$y(getFollowers_ConfigPropertyMetadata);
|
|
3854
|
+
function keyBuilder$v(luvio, config) {
|
|
3855
|
+
const resourceParams = createResourceParams$m(config);
|
|
3856
|
+
return keyBuilder$w(luvio, resourceParams);
|
|
3857
|
+
}
|
|
3858
|
+
function typeCheckConfig$m(untrustedConfig) {
|
|
3859
|
+
const config = {};
|
|
3860
|
+
typeCheckConfig$y(untrustedConfig, config, getFollowers_ConfigPropertyMetadata);
|
|
3861
|
+
return config;
|
|
3862
|
+
}
|
|
3863
|
+
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
3864
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
3865
|
+
return null;
|
|
3866
|
+
}
|
|
3867
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3868
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
3869
|
+
}
|
|
3870
|
+
const config = typeCheckConfig$m(untrustedConfig);
|
|
3871
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3872
|
+
return null;
|
|
3873
|
+
}
|
|
3874
|
+
return config;
|
|
3875
|
+
}
|
|
3876
|
+
function adapterFragment$a(luvio, config) {
|
|
3877
|
+
createResourceParams$m(config);
|
|
3878
|
+
return select$x();
|
|
3879
|
+
}
|
|
3880
|
+
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
3881
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
|
|
3882
|
+
config,
|
|
3883
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
3884
|
+
});
|
|
3885
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3886
|
+
}
|
|
3887
|
+
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
3888
|
+
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
3889
|
+
config,
|
|
3890
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
3891
|
+
});
|
|
3892
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3893
|
+
}
|
|
3894
|
+
function buildNetworkSnapshot$m(luvio, config, options) {
|
|
3895
|
+
const resourceParams = createResourceParams$m(config);
|
|
3896
|
+
const request = createResourceRequest$m(resourceParams);
|
|
3897
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
3898
|
+
.then((response) => {
|
|
3899
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
3900
|
+
const cache = new StoreKeyMap();
|
|
3901
|
+
getResponseCacheKeys$m(cache, luvio, resourceParams, response.body);
|
|
3902
|
+
return cache;
|
|
3903
|
+
});
|
|
3904
|
+
}, (response) => {
|
|
3905
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
|
|
3906
|
+
});
|
|
3907
|
+
}
|
|
3908
|
+
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
3909
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$m, undefined, false);
|
|
3910
|
+
}
|
|
3911
|
+
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
3912
|
+
const { luvio, config } = context;
|
|
3913
|
+
const selector = {
|
|
3914
|
+
recordId: keyBuilder$v(luvio, config),
|
|
3915
|
+
node: adapterFragment$a(luvio, config),
|
|
3916
|
+
variables: {},
|
|
3917
|
+
};
|
|
3918
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
3919
|
+
config,
|
|
3920
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
3921
|
+
});
|
|
3922
|
+
return cacheSnapshot;
|
|
3923
|
+
}
|
|
3924
|
+
const getFollowersAdapterFactory = (luvio) => function UnifiedAnalytics__getFollowers(untrustedConfig, requestContext) {
|
|
3925
|
+
const config = validateAdapterConfig$m(untrustedConfig, getFollowers_ConfigPropertyNames);
|
|
3926
|
+
// Invalid or incomplete config
|
|
3927
|
+
if (config === null) {
|
|
3928
|
+
return null;
|
|
3929
|
+
}
|
|
3930
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3931
|
+
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
3932
|
+
};
|
|
3933
|
+
|
|
3934
|
+
const TTL$5 = 500;
|
|
3935
|
+
const VERSION$d = "1f44696f5314fa2f963688e14067a00c";
|
|
3936
|
+
function validate$g(obj, path = 'FollowedAssetCollectionRepresentation') {
|
|
3937
|
+
const v_error = (() => {
|
|
3938
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3939
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3940
|
+
}
|
|
3941
|
+
const obj_followedAssets = obj.followedAssets;
|
|
3942
|
+
const path_followedAssets = path + '.followedAssets';
|
|
3943
|
+
if (!ArrayIsArray(obj_followedAssets)) {
|
|
3944
|
+
return new TypeError('Expected "array" but received "' + typeof obj_followedAssets + '" (at "' + path_followedAssets + '")');
|
|
3945
|
+
}
|
|
3946
|
+
for (let i = 0; i < obj_followedAssets.length; i++) {
|
|
3947
|
+
const obj_followedAssets_item = obj_followedAssets[i];
|
|
3948
|
+
const path_followedAssets_item = path_followedAssets + '[' + i + ']';
|
|
3949
|
+
const referencepath_followedAssets_itemValidationError = validate$i(obj_followedAssets_item, path_followedAssets_item);
|
|
3950
|
+
if (referencepath_followedAssets_itemValidationError !== null) {
|
|
3951
|
+
let message = 'Object doesn\'t match FollowedAssetRepresentation (at "' + path_followedAssets_item + '")\n';
|
|
3952
|
+
message += referencepath_followedAssets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3953
|
+
return new TypeError(message);
|
|
3954
|
+
}
|
|
3955
|
+
}
|
|
3956
|
+
})();
|
|
3957
|
+
return v_error === undefined ? null : v_error;
|
|
3958
|
+
}
|
|
3959
|
+
const RepresentationType$d = 'FollowedAssetCollectionRepresentation';
|
|
3960
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
3961
|
+
return input;
|
|
3962
|
+
}
|
|
3963
|
+
const select$w = function FollowedAssetCollectionRepresentationSelect() {
|
|
3964
|
+
return {
|
|
3965
|
+
kind: 'Fragment',
|
|
3966
|
+
version: VERSION$d,
|
|
3967
|
+
private: [],
|
|
3968
|
+
opaque: true
|
|
3969
|
+
};
|
|
3970
|
+
};
|
|
3971
|
+
function equals$d(existing, incoming) {
|
|
3972
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3973
|
+
return false;
|
|
3974
|
+
}
|
|
3975
|
+
return true;
|
|
3976
|
+
}
|
|
3977
|
+
const ingest$d = function FollowedAssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3978
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3979
|
+
const validateError = validate$g(input);
|
|
3980
|
+
if (validateError !== null) {
|
|
3981
|
+
throw validateError;
|
|
3982
|
+
}
|
|
3983
|
+
}
|
|
3984
|
+
const key = path.fullPath;
|
|
3985
|
+
const ttlToUse = TTL$5;
|
|
3986
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "UnifiedAnalytics", VERSION$d, RepresentationType$d, equals$d);
|
|
3987
|
+
return createLink(key);
|
|
3988
|
+
};
|
|
3989
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
3990
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3991
|
+
const rootKey = fullPathFactory();
|
|
3992
|
+
rootKeySet.set(rootKey, {
|
|
3993
|
+
namespace: keyPrefix,
|
|
3994
|
+
representationName: RepresentationType$d,
|
|
3995
|
+
mergeable: false
|
|
3996
|
+
});
|
|
3997
|
+
}
|
|
3998
|
+
|
|
3999
|
+
function select$v(luvio, params) {
|
|
4000
|
+
return select$w();
|
|
4001
|
+
}
|
|
4002
|
+
function keyBuilder$u(luvio, params) {
|
|
4003
|
+
return keyPrefix + '::FollowedAssetCollectionRepresentation:(' + 'followedAssetType:' + params.queryParams.followedAssetType + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'followerId:' + params.urlParams.followerId + ')';
|
|
4004
|
+
}
|
|
4005
|
+
function getResponseCacheKeys$l(storeKeyMap, luvio, resourceParams, response) {
|
|
4006
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response, () => keyBuilder$u(luvio, resourceParams));
|
|
4007
|
+
}
|
|
4008
|
+
function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
4009
|
+
const { body } = response;
|
|
4010
|
+
const key = keyBuilder$u(luvio, resourceParams);
|
|
4011
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
4012
|
+
const snapshot = luvio.storeLookup({
|
|
4013
|
+
recordId: key,
|
|
4014
|
+
node: select$v(),
|
|
4015
|
+
variables: {},
|
|
4016
|
+
}, snapshotRefresh);
|
|
4017
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4018
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4019
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4020
|
+
}
|
|
4021
|
+
}
|
|
4022
|
+
deepFreeze(snapshot.data);
|
|
4023
|
+
return snapshot;
|
|
4024
|
+
}
|
|
4025
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
4026
|
+
const key = keyBuilder$u(luvio, params);
|
|
4027
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4028
|
+
const storeMetadataParams = {
|
|
4029
|
+
ttl: TTL$5,
|
|
4030
|
+
namespace: keyPrefix,
|
|
4031
|
+
version: VERSION$d,
|
|
4032
|
+
representationName: RepresentationType$d
|
|
4033
|
+
};
|
|
4034
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4035
|
+
return errorSnapshot;
|
|
4036
|
+
}
|
|
4037
|
+
function createResourceRequest$l(config) {
|
|
4038
|
+
const headers = {};
|
|
4039
|
+
return {
|
|
4040
|
+
baseUri: '/services/data/v62.0',
|
|
4041
|
+
basePath: '/unified-analytics/follow/followers/' + config.urlParams.followerId + '/followed-assets',
|
|
4042
|
+
method: 'get',
|
|
4043
|
+
body: null,
|
|
4044
|
+
urlParams: config.urlParams,
|
|
4045
|
+
queryParams: config.queryParams,
|
|
4046
|
+
headers,
|
|
4047
|
+
priority: 'normal',
|
|
4048
|
+
};
|
|
4049
|
+
}
|
|
4050
|
+
|
|
4051
|
+
const adapterName$l = 'getFollowedAssets';
|
|
4052
|
+
const getFollowedAssets_ConfigPropertyMetadata = [
|
|
4053
|
+
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4054
|
+
generateParamConfigMetadata('followedAssetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4055
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4056
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4057
|
+
];
|
|
4058
|
+
const getFollowedAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, getFollowedAssets_ConfigPropertyMetadata);
|
|
4059
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$y(getFollowedAssets_ConfigPropertyMetadata);
|
|
4060
|
+
function keyBuilder$t(luvio, config) {
|
|
4061
|
+
const resourceParams = createResourceParams$l(config);
|
|
4062
|
+
return keyBuilder$u(luvio, resourceParams);
|
|
4063
|
+
}
|
|
4064
|
+
function typeCheckConfig$l(untrustedConfig) {
|
|
4065
|
+
const config = {};
|
|
4066
|
+
typeCheckConfig$y(untrustedConfig, config, getFollowedAssets_ConfigPropertyMetadata);
|
|
4067
|
+
return config;
|
|
4068
|
+
}
|
|
4069
|
+
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
4070
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4071
|
+
return null;
|
|
4072
|
+
}
|
|
4073
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4074
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4075
|
+
}
|
|
4076
|
+
const config = typeCheckConfig$l(untrustedConfig);
|
|
4077
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4078
|
+
return null;
|
|
4079
|
+
}
|
|
4080
|
+
return config;
|
|
4081
|
+
}
|
|
4082
|
+
function adapterFragment$9(luvio, config) {
|
|
4083
|
+
createResourceParams$l(config);
|
|
4084
|
+
return select$v();
|
|
4085
|
+
}
|
|
4086
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
4087
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
|
|
4088
|
+
config,
|
|
4089
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
4090
|
+
});
|
|
4091
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4092
|
+
}
|
|
4093
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
4094
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
4095
|
+
config,
|
|
4096
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
4097
|
+
});
|
|
4098
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4099
|
+
}
|
|
4100
|
+
function buildNetworkSnapshot$l(luvio, config, options) {
|
|
4101
|
+
const resourceParams = createResourceParams$l(config);
|
|
4102
|
+
const request = createResourceRequest$l(resourceParams);
|
|
4103
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4104
|
+
.then((response) => {
|
|
4105
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
4106
|
+
const cache = new StoreKeyMap();
|
|
4107
|
+
getResponseCacheKeys$l(cache, luvio, resourceParams, response.body);
|
|
4108
|
+
return cache;
|
|
4109
|
+
});
|
|
4110
|
+
}, (response) => {
|
|
4111
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
4112
|
+
});
|
|
4113
|
+
}
|
|
4114
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
4115
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$l, undefined, false);
|
|
4116
|
+
}
|
|
4117
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
4118
|
+
const { luvio, config } = context;
|
|
4119
|
+
const selector = {
|
|
4120
|
+
recordId: keyBuilder$t(luvio, config),
|
|
4121
|
+
node: adapterFragment$9(luvio, config),
|
|
4122
|
+
variables: {},
|
|
4123
|
+
};
|
|
4124
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4125
|
+
config,
|
|
4126
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
4127
|
+
});
|
|
4128
|
+
return cacheSnapshot;
|
|
4129
|
+
}
|
|
4130
|
+
const getFollowedAssetsAdapterFactory = (luvio) => function UnifiedAnalytics__getFollowedAssets(untrustedConfig, requestContext) {
|
|
4131
|
+
const config = validateAdapterConfig$l(untrustedConfig, getFollowedAssets_ConfigPropertyNames);
|
|
4132
|
+
// Invalid or incomplete config
|
|
4133
|
+
if (config === null) {
|
|
4134
|
+
return null;
|
|
4135
|
+
}
|
|
4136
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4137
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
4138
|
+
};
|
|
4139
|
+
|
|
4140
|
+
const TTL$4 = 1000;
|
|
4141
|
+
const VERSION$c = "06ddf1f43b6dbb759e6c6ec14f9d783f";
|
|
4142
|
+
function validate$f(obj, path = 'AssetSlackChannelRepresentation') {
|
|
4143
|
+
const v_error = (() => {
|
|
4144
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4145
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4146
|
+
}
|
|
4147
|
+
const obj_assetId = obj.assetId;
|
|
4148
|
+
const path_assetId = path + '.assetId';
|
|
4149
|
+
if (typeof obj_assetId !== 'string') {
|
|
4150
|
+
return new TypeError('Expected "string" but received "' + typeof obj_assetId + '" (at "' + path_assetId + '")');
|
|
4151
|
+
}
|
|
4152
|
+
const obj_channelId = obj.channelId;
|
|
4153
|
+
const path_channelId = path + '.channelId';
|
|
4154
|
+
if (typeof obj_channelId !== 'string') {
|
|
4155
|
+
return new TypeError('Expected "string" but received "' + typeof obj_channelId + '" (at "' + path_channelId + '")');
|
|
4156
|
+
}
|
|
4157
|
+
const obj_channelName = obj.channelName;
|
|
4158
|
+
const path_channelName = path + '.channelName';
|
|
4159
|
+
if (typeof obj_channelName !== 'string') {
|
|
4160
|
+
return new TypeError('Expected "string" but received "' + typeof obj_channelName + '" (at "' + path_channelName + '")');
|
|
4161
|
+
}
|
|
4162
|
+
const obj_id = obj.id;
|
|
4163
|
+
const path_id = path + '.id';
|
|
4164
|
+
if (typeof obj_id !== 'string') {
|
|
4165
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
4166
|
+
}
|
|
4167
|
+
const obj_teamId = obj.teamId;
|
|
4168
|
+
const path_teamId = path + '.teamId';
|
|
4169
|
+
if (typeof obj_teamId !== 'string') {
|
|
4170
|
+
return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
|
|
4171
|
+
}
|
|
4172
|
+
})();
|
|
4173
|
+
return v_error === undefined ? null : v_error;
|
|
4174
|
+
}
|
|
4175
|
+
const RepresentationType$c = 'AssetSlackChannelRepresentation';
|
|
4176
|
+
function keyBuilder$s(luvio, config) {
|
|
4177
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.id;
|
|
4178
|
+
}
|
|
4179
|
+
function keyBuilderFromType$7(luvio, object) {
|
|
4180
|
+
const keyParams = {
|
|
4181
|
+
id: object.id
|
|
4182
|
+
};
|
|
4183
|
+
return keyBuilder$s(luvio, keyParams);
|
|
4184
|
+
}
|
|
4185
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
4186
|
+
return input;
|
|
4187
|
+
}
|
|
4188
|
+
const select$u = function AssetSlackChannelRepresentationSelect() {
|
|
4189
|
+
return {
|
|
4190
|
+
kind: 'Fragment',
|
|
4191
|
+
version: VERSION$c,
|
|
4192
|
+
private: [],
|
|
4193
|
+
selections: [
|
|
4194
|
+
{
|
|
4195
|
+
name: 'assetId',
|
|
4196
|
+
kind: 'Scalar'
|
|
4197
|
+
},
|
|
4198
|
+
{
|
|
4199
|
+
name: 'channelId',
|
|
4200
|
+
kind: 'Scalar'
|
|
4201
|
+
},
|
|
4202
|
+
{
|
|
4203
|
+
name: 'channelName',
|
|
4204
|
+
kind: 'Scalar'
|
|
4205
|
+
},
|
|
4206
|
+
{
|
|
4207
|
+
name: 'id',
|
|
4208
|
+
kind: 'Scalar'
|
|
4209
|
+
},
|
|
4210
|
+
{
|
|
4211
|
+
name: 'teamId',
|
|
4212
|
+
kind: 'Scalar'
|
|
4213
|
+
}
|
|
4214
|
+
]
|
|
4215
|
+
};
|
|
4216
|
+
};
|
|
4217
|
+
function equals$c(existing, incoming) {
|
|
4218
|
+
const existing_assetId = existing.assetId;
|
|
4219
|
+
const incoming_assetId = incoming.assetId;
|
|
4220
|
+
if (!(existing_assetId === incoming_assetId)) {
|
|
4221
|
+
return false;
|
|
4222
|
+
}
|
|
4223
|
+
const existing_channelId = existing.channelId;
|
|
4224
|
+
const incoming_channelId = incoming.channelId;
|
|
4225
|
+
if (!(existing_channelId === incoming_channelId)) {
|
|
4226
|
+
return false;
|
|
4227
|
+
}
|
|
4228
|
+
const existing_channelName = existing.channelName;
|
|
4229
|
+
const incoming_channelName = incoming.channelName;
|
|
4230
|
+
if (!(existing_channelName === incoming_channelName)) {
|
|
4231
|
+
return false;
|
|
4232
|
+
}
|
|
4233
|
+
const existing_id = existing.id;
|
|
4234
|
+
const incoming_id = incoming.id;
|
|
4235
|
+
if (!(existing_id === incoming_id)) {
|
|
4236
|
+
return false;
|
|
4237
|
+
}
|
|
4238
|
+
const existing_teamId = existing.teamId;
|
|
4239
|
+
const incoming_teamId = incoming.teamId;
|
|
4240
|
+
if (!(existing_teamId === incoming_teamId)) {
|
|
4241
|
+
return false;
|
|
4242
|
+
}
|
|
4243
|
+
return true;
|
|
4244
|
+
}
|
|
4245
|
+
const ingest$c = function AssetSlackChannelRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4246
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4247
|
+
const validateError = validate$f(input);
|
|
4248
|
+
if (validateError !== null) {
|
|
4249
|
+
throw validateError;
|
|
4250
|
+
}
|
|
4251
|
+
}
|
|
4252
|
+
const key = keyBuilderFromType$7(luvio, input);
|
|
4253
|
+
const ttlToUse = TTL$4;
|
|
4254
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "UnifiedAnalytics", VERSION$c, RepresentationType$c, equals$c);
|
|
4255
|
+
return createLink(key);
|
|
4256
|
+
};
|
|
4257
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
4258
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4259
|
+
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
4260
|
+
rootKeySet.set(rootKey, {
|
|
4261
|
+
namespace: keyPrefix,
|
|
4262
|
+
representationName: RepresentationType$c,
|
|
4263
|
+
mergeable: false
|
|
4264
|
+
});
|
|
4265
|
+
}
|
|
4266
|
+
|
|
4267
|
+
const TTL$3 = 1000;
|
|
4268
|
+
const VERSION$b = "6feb7b300efb96968d0cd3ad28b1552d";
|
|
4269
|
+
function validate$e(obj, path = 'AssetSlackChannelCollectionRepresentation') {
|
|
3730
4270
|
const v_error = (() => {
|
|
3731
4271
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3732
4272
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3733
4273
|
}
|
|
3734
|
-
const
|
|
3735
|
-
const
|
|
3736
|
-
if (!ArrayIsArray(
|
|
3737
|
-
return new TypeError('Expected "array" but received "' + typeof
|
|
4274
|
+
const obj_assetSlackChannels = obj.assetSlackChannels;
|
|
4275
|
+
const path_assetSlackChannels = path + '.assetSlackChannels';
|
|
4276
|
+
if (!ArrayIsArray(obj_assetSlackChannels)) {
|
|
4277
|
+
return new TypeError('Expected "array" but received "' + typeof obj_assetSlackChannels + '" (at "' + path_assetSlackChannels + '")');
|
|
3738
4278
|
}
|
|
3739
|
-
for (let i = 0; i <
|
|
3740
|
-
const
|
|
3741
|
-
const
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_followers_item + '")\n';
|
|
3745
|
-
message += referencepath_followers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3746
|
-
return new TypeError(message);
|
|
4279
|
+
for (let i = 0; i < obj_assetSlackChannels.length; i++) {
|
|
4280
|
+
const obj_assetSlackChannels_item = obj_assetSlackChannels[i];
|
|
4281
|
+
const path_assetSlackChannels_item = path_assetSlackChannels + '[' + i + ']';
|
|
4282
|
+
if (typeof obj_assetSlackChannels_item !== 'object') {
|
|
4283
|
+
return new TypeError('Expected "object" but received "' + typeof obj_assetSlackChannels_item + '" (at "' + path_assetSlackChannels_item + '")');
|
|
3747
4284
|
}
|
|
3748
4285
|
}
|
|
3749
4286
|
})();
|
|
3750
4287
|
return v_error === undefined ? null : v_error;
|
|
3751
4288
|
}
|
|
3752
|
-
const RepresentationType$
|
|
3753
|
-
function normalize$
|
|
4289
|
+
const RepresentationType$b = 'AssetSlackChannelCollectionRepresentation';
|
|
4290
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
4291
|
+
const input_assetSlackChannels = input.assetSlackChannels;
|
|
4292
|
+
const input_assetSlackChannels_id = path.fullPath + '__assetSlackChannels';
|
|
4293
|
+
for (let i = 0; i < input_assetSlackChannels.length; i++) {
|
|
4294
|
+
const input_assetSlackChannels_item = input_assetSlackChannels[i];
|
|
4295
|
+
let input_assetSlackChannels_item_id = input_assetSlackChannels_id + '__' + i;
|
|
4296
|
+
input_assetSlackChannels[i] = ingest$c(input_assetSlackChannels_item, {
|
|
4297
|
+
fullPath: input_assetSlackChannels_item_id,
|
|
4298
|
+
propertyName: i,
|
|
4299
|
+
parent: {
|
|
4300
|
+
data: input,
|
|
4301
|
+
key: path.fullPath,
|
|
4302
|
+
existing: existing,
|
|
4303
|
+
},
|
|
4304
|
+
ttl: path.ttl
|
|
4305
|
+
}, luvio, store, timestamp);
|
|
4306
|
+
}
|
|
3754
4307
|
return input;
|
|
3755
4308
|
}
|
|
3756
|
-
const select$
|
|
4309
|
+
const select$t = function AssetSlackChannelCollectionRepresentationSelect() {
|
|
3757
4310
|
return {
|
|
3758
4311
|
kind: 'Fragment',
|
|
3759
|
-
version: VERSION$
|
|
4312
|
+
version: VERSION$b,
|
|
3760
4313
|
private: [],
|
|
3761
|
-
|
|
4314
|
+
selections: [
|
|
4315
|
+
{
|
|
4316
|
+
name: 'assetSlackChannels',
|
|
4317
|
+
kind: 'Link',
|
|
4318
|
+
plural: true,
|
|
4319
|
+
fragment: select$u()
|
|
4320
|
+
}
|
|
4321
|
+
]
|
|
3762
4322
|
};
|
|
3763
4323
|
};
|
|
3764
|
-
function equals$
|
|
3765
|
-
|
|
4324
|
+
function equals$b(existing, incoming) {
|
|
4325
|
+
const existing_assetSlackChannels = existing.assetSlackChannels;
|
|
4326
|
+
const incoming_assetSlackChannels = incoming.assetSlackChannels;
|
|
4327
|
+
const equals_assetSlackChannels_items = equalsArray(existing_assetSlackChannels, incoming_assetSlackChannels, (existing_assetSlackChannels_item, incoming_assetSlackChannels_item) => {
|
|
4328
|
+
if (!(existing_assetSlackChannels_item.__ref === incoming_assetSlackChannels_item.__ref)) {
|
|
4329
|
+
return false;
|
|
4330
|
+
}
|
|
4331
|
+
});
|
|
4332
|
+
if (equals_assetSlackChannels_items === false) {
|
|
3766
4333
|
return false;
|
|
3767
4334
|
}
|
|
3768
4335
|
return true;
|
|
3769
4336
|
}
|
|
3770
|
-
const ingest$
|
|
4337
|
+
const ingest$b = function AssetSlackChannelCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3771
4338
|
if (process.env.NODE_ENV !== 'production') {
|
|
3772
|
-
const validateError = validate$
|
|
4339
|
+
const validateError = validate$e(input);
|
|
3773
4340
|
if (validateError !== null) {
|
|
3774
4341
|
throw validateError;
|
|
3775
4342
|
}
|
|
3776
4343
|
}
|
|
3777
4344
|
const key = path.fullPath;
|
|
3778
|
-
const ttlToUse = TTL$
|
|
3779
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4345
|
+
const ttlToUse = TTL$3;
|
|
4346
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "UnifiedAnalytics", VERSION$b, RepresentationType$b, equals$b);
|
|
3780
4347
|
return createLink(key);
|
|
3781
4348
|
};
|
|
3782
|
-
function getTypeCacheKeys$
|
|
4349
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
3783
4350
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3784
4351
|
const rootKey = fullPathFactory();
|
|
3785
4352
|
rootKeySet.set(rootKey, {
|
|
3786
4353
|
namespace: keyPrefix,
|
|
3787
|
-
representationName: RepresentationType$
|
|
4354
|
+
representationName: RepresentationType$b,
|
|
3788
4355
|
mergeable: false
|
|
3789
4356
|
});
|
|
4357
|
+
const input_assetSlackChannels_length = input.assetSlackChannels.length;
|
|
4358
|
+
for (let i = 0; i < input_assetSlackChannels_length; i++) {
|
|
4359
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.assetSlackChannels[i]);
|
|
4360
|
+
}
|
|
3790
4361
|
}
|
|
3791
4362
|
|
|
3792
|
-
function select$
|
|
3793
|
-
return select$
|
|
4363
|
+
function select$s(luvio, params) {
|
|
4364
|
+
return select$t();
|
|
3794
4365
|
}
|
|
3795
|
-
function keyBuilder$
|
|
3796
|
-
return keyPrefix + '::
|
|
4366
|
+
function keyBuilder$r(luvio, params) {
|
|
4367
|
+
return keyPrefix + '::AssetSlackChannelCollectionRepresentation:(' + 'assetId:' + params.queryParams.assetId + ')';
|
|
3797
4368
|
}
|
|
3798
4369
|
function getResponseCacheKeys$k(storeKeyMap, luvio, resourceParams, response) {
|
|
3799
|
-
getTypeCacheKeys$
|
|
4370
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$r(luvio, resourceParams));
|
|
3800
4371
|
}
|
|
3801
4372
|
function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
3802
4373
|
const { body } = response;
|
|
3803
|
-
const key = keyBuilder$
|
|
3804
|
-
luvio.storeIngest(key, ingest$
|
|
4374
|
+
const key = keyBuilder$r(luvio, resourceParams);
|
|
4375
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
3805
4376
|
const snapshot = luvio.storeLookup({
|
|
3806
4377
|
recordId: key,
|
|
3807
|
-
node: select$
|
|
4378
|
+
node: select$s(),
|
|
3808
4379
|
variables: {},
|
|
3809
4380
|
}, snapshotRefresh);
|
|
3810
4381
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3815,14 +4386,14 @@ function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3815
4386
|
deepFreeze(snapshot.data);
|
|
3816
4387
|
return snapshot;
|
|
3817
4388
|
}
|
|
3818
|
-
function ingestError$
|
|
3819
|
-
const key = keyBuilder$
|
|
4389
|
+
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
4390
|
+
const key = keyBuilder$r(luvio, params);
|
|
3820
4391
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3821
4392
|
const storeMetadataParams = {
|
|
3822
|
-
ttl: TTL$
|
|
4393
|
+
ttl: TTL$3,
|
|
3823
4394
|
namespace: keyPrefix,
|
|
3824
|
-
version: VERSION$
|
|
3825
|
-
representationName: RepresentationType$
|
|
4395
|
+
version: VERSION$b,
|
|
4396
|
+
representationName: RepresentationType$b
|
|
3826
4397
|
};
|
|
3827
4398
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
3828
4399
|
return errorSnapshot;
|
|
@@ -3831,33 +4402,29 @@ function createResourceRequest$k(config) {
|
|
|
3831
4402
|
const headers = {};
|
|
3832
4403
|
return {
|
|
3833
4404
|
baseUri: '/services/data/v62.0',
|
|
3834
|
-
basePath: '/unified-analytics/
|
|
4405
|
+
basePath: '/unified-analytics/slack/channels',
|
|
3835
4406
|
method: 'get',
|
|
3836
4407
|
body: null,
|
|
3837
|
-
urlParams:
|
|
4408
|
+
urlParams: {},
|
|
3838
4409
|
queryParams: config.queryParams,
|
|
3839
4410
|
headers,
|
|
3840
4411
|
priority: 'normal',
|
|
3841
4412
|
};
|
|
3842
4413
|
}
|
|
3843
4414
|
|
|
3844
|
-
const adapterName$k = '
|
|
3845
|
-
const
|
|
3846
|
-
generateParamConfigMetadata('
|
|
3847
|
-
generateParamConfigMetadata('followerId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3848
|
-
generateParamConfigMetadata('followerType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3849
|
-
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3850
|
-
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4415
|
+
const adapterName$k = 'getAssetSlackChannels';
|
|
4416
|
+
const getAssetSlackChannels_ConfigPropertyMetadata = [
|
|
4417
|
+
generateParamConfigMetadata('assetId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
3851
4418
|
];
|
|
3852
|
-
const
|
|
3853
|
-
const createResourceParams$k = /*#__PURE__*/ createResourceParams$
|
|
3854
|
-
function keyBuilder$
|
|
4419
|
+
const getAssetSlackChannels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
4420
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$y(getAssetSlackChannels_ConfigPropertyMetadata);
|
|
4421
|
+
function keyBuilder$q(luvio, config) {
|
|
3855
4422
|
const resourceParams = createResourceParams$k(config);
|
|
3856
|
-
return keyBuilder$
|
|
4423
|
+
return keyBuilder$r(luvio, resourceParams);
|
|
3857
4424
|
}
|
|
3858
4425
|
function typeCheckConfig$k(untrustedConfig) {
|
|
3859
4426
|
const config = {};
|
|
3860
|
-
typeCheckConfig$
|
|
4427
|
+
typeCheckConfig$y(untrustedConfig, config, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
3861
4428
|
return config;
|
|
3862
4429
|
}
|
|
3863
4430
|
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
@@ -3873,19 +4440,19 @@ function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
|
3873
4440
|
}
|
|
3874
4441
|
return config;
|
|
3875
4442
|
}
|
|
3876
|
-
function adapterFragment$
|
|
4443
|
+
function adapterFragment$8(luvio, config) {
|
|
3877
4444
|
createResourceParams$k(config);
|
|
3878
|
-
return select$
|
|
4445
|
+
return select$s();
|
|
3879
4446
|
}
|
|
3880
|
-
function onFetchResponseSuccess$
|
|
4447
|
+
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
3881
4448
|
const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
|
|
3882
4449
|
config,
|
|
3883
4450
|
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
3884
4451
|
});
|
|
3885
4452
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3886
4453
|
}
|
|
3887
|
-
function onFetchResponseError$
|
|
3888
|
-
const snapshot = ingestError$
|
|
4454
|
+
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
4455
|
+
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
3889
4456
|
config,
|
|
3890
4457
|
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
3891
4458
|
});
|
|
@@ -3896,23 +4463,23 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
3896
4463
|
const request = createResourceRequest$k(resourceParams);
|
|
3897
4464
|
return luvio.dispatchResourceRequest(request, options)
|
|
3898
4465
|
.then((response) => {
|
|
3899
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4466
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
3900
4467
|
const cache = new StoreKeyMap();
|
|
3901
4468
|
getResponseCacheKeys$k(cache, luvio, resourceParams, response.body);
|
|
3902
4469
|
return cache;
|
|
3903
4470
|
});
|
|
3904
4471
|
}, (response) => {
|
|
3905
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4472
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
|
|
3906
4473
|
});
|
|
3907
4474
|
}
|
|
3908
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3909
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4475
|
+
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
4476
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
3910
4477
|
}
|
|
3911
|
-
function buildCachedSnapshotCachePolicy$
|
|
4478
|
+
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
3912
4479
|
const { luvio, config } = context;
|
|
3913
4480
|
const selector = {
|
|
3914
|
-
recordId: keyBuilder$
|
|
3915
|
-
node: adapterFragment$
|
|
4481
|
+
recordId: keyBuilder$q(luvio, config),
|
|
4482
|
+
node: adapterFragment$8(luvio, config),
|
|
3916
4483
|
variables: {},
|
|
3917
4484
|
};
|
|
3918
4485
|
const cacheSnapshot = storeLookup(selector, {
|
|
@@ -3921,99 +4488,31 @@ function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
|
3921
4488
|
});
|
|
3922
4489
|
return cacheSnapshot;
|
|
3923
4490
|
}
|
|
3924
|
-
const
|
|
3925
|
-
const config = validateAdapterConfig$k(untrustedConfig,
|
|
4491
|
+
const getAssetSlackChannelsAdapterFactory = (luvio) => function UnifiedAnalytics__getAssetSlackChannels(untrustedConfig, requestContext) {
|
|
4492
|
+
const config = validateAdapterConfig$k(untrustedConfig, getAssetSlackChannels_ConfigPropertyNames);
|
|
3926
4493
|
// Invalid or incomplete config
|
|
3927
4494
|
if (config === null) {
|
|
3928
4495
|
return null;
|
|
3929
4496
|
}
|
|
3930
4497
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3931
|
-
buildCachedSnapshotCachePolicy$
|
|
3932
|
-
};
|
|
3933
|
-
|
|
3934
|
-
const TTL$3 = 500;
|
|
3935
|
-
const VERSION$b = "1f44696f5314fa2f963688e14067a00c";
|
|
3936
|
-
function validate$e(obj, path = 'FollowedAssetCollectionRepresentation') {
|
|
3937
|
-
const v_error = (() => {
|
|
3938
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3939
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3940
|
-
}
|
|
3941
|
-
const obj_followedAssets = obj.followedAssets;
|
|
3942
|
-
const path_followedAssets = path + '.followedAssets';
|
|
3943
|
-
if (!ArrayIsArray(obj_followedAssets)) {
|
|
3944
|
-
return new TypeError('Expected "array" but received "' + typeof obj_followedAssets + '" (at "' + path_followedAssets + '")');
|
|
3945
|
-
}
|
|
3946
|
-
for (let i = 0; i < obj_followedAssets.length; i++) {
|
|
3947
|
-
const obj_followedAssets_item = obj_followedAssets[i];
|
|
3948
|
-
const path_followedAssets_item = path_followedAssets + '[' + i + ']';
|
|
3949
|
-
const referencepath_followedAssets_itemValidationError = validate$g(obj_followedAssets_item, path_followedAssets_item);
|
|
3950
|
-
if (referencepath_followedAssets_itemValidationError !== null) {
|
|
3951
|
-
let message = 'Object doesn\'t match FollowedAssetRepresentation (at "' + path_followedAssets_item + '")\n';
|
|
3952
|
-
message += referencepath_followedAssets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3953
|
-
return new TypeError(message);
|
|
3954
|
-
}
|
|
3955
|
-
}
|
|
3956
|
-
})();
|
|
3957
|
-
return v_error === undefined ? null : v_error;
|
|
3958
|
-
}
|
|
3959
|
-
const RepresentationType$b = 'FollowedAssetCollectionRepresentation';
|
|
3960
|
-
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
3961
|
-
return input;
|
|
3962
|
-
}
|
|
3963
|
-
const select$s = function FollowedAssetCollectionRepresentationSelect() {
|
|
3964
|
-
return {
|
|
3965
|
-
kind: 'Fragment',
|
|
3966
|
-
version: VERSION$b,
|
|
3967
|
-
private: [],
|
|
3968
|
-
opaque: true
|
|
3969
|
-
};
|
|
3970
|
-
};
|
|
3971
|
-
function equals$b(existing, incoming) {
|
|
3972
|
-
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3973
|
-
return false;
|
|
3974
|
-
}
|
|
3975
|
-
return true;
|
|
3976
|
-
}
|
|
3977
|
-
const ingest$b = function FollowedAssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3978
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
3979
|
-
const validateError = validate$e(input);
|
|
3980
|
-
if (validateError !== null) {
|
|
3981
|
-
throw validateError;
|
|
3982
|
-
}
|
|
3983
|
-
}
|
|
3984
|
-
const key = path.fullPath;
|
|
3985
|
-
const ttlToUse = TTL$3;
|
|
3986
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "UnifiedAnalytics", VERSION$b, RepresentationType$b, equals$b);
|
|
3987
|
-
return createLink(key);
|
|
4498
|
+
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
3988
4499
|
};
|
|
3989
|
-
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
3990
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3991
|
-
const rootKey = fullPathFactory();
|
|
3992
|
-
rootKeySet.set(rootKey, {
|
|
3993
|
-
namespace: keyPrefix,
|
|
3994
|
-
representationName: RepresentationType$b,
|
|
3995
|
-
mergeable: false
|
|
3996
|
-
});
|
|
3997
|
-
}
|
|
3998
4500
|
|
|
3999
4501
|
function select$r(luvio, params) {
|
|
4000
|
-
return select$
|
|
4001
|
-
}
|
|
4002
|
-
function keyBuilder$r(luvio, params) {
|
|
4003
|
-
return keyPrefix + '::FollowedAssetCollectionRepresentation:(' + 'followedAssetType:' + params.queryParams.followedAssetType + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'followerId:' + params.urlParams.followerId + ')';
|
|
4502
|
+
return select$u();
|
|
4004
4503
|
}
|
|
4005
4504
|
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
4006
|
-
getTypeCacheKeys$
|
|
4505
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
4007
4506
|
}
|
|
4008
|
-
function ingestSuccess$g(luvio, resourceParams, response
|
|
4507
|
+
function ingestSuccess$g(luvio, resourceParams, response) {
|
|
4009
4508
|
const { body } = response;
|
|
4010
|
-
const key =
|
|
4011
|
-
luvio.storeIngest(key, ingest$
|
|
4509
|
+
const key = keyBuilderFromType$7(luvio, body);
|
|
4510
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
4012
4511
|
const snapshot = luvio.storeLookup({
|
|
4013
4512
|
recordId: key,
|
|
4014
4513
|
node: select$r(),
|
|
4015
4514
|
variables: {},
|
|
4016
|
-
}
|
|
4515
|
+
});
|
|
4017
4516
|
if (process.env.NODE_ENV !== 'production') {
|
|
4018
4517
|
if (snapshot.state !== 'Fulfilled') {
|
|
4019
4518
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
@@ -4022,48 +4521,31 @@ function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4022
4521
|
deepFreeze(snapshot.data);
|
|
4023
4522
|
return snapshot;
|
|
4024
4523
|
}
|
|
4025
|
-
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
4026
|
-
const key = keyBuilder$r(luvio, params);
|
|
4027
|
-
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4028
|
-
const storeMetadataParams = {
|
|
4029
|
-
ttl: TTL$3,
|
|
4030
|
-
namespace: keyPrefix,
|
|
4031
|
-
version: VERSION$b,
|
|
4032
|
-
representationName: RepresentationType$b
|
|
4033
|
-
};
|
|
4034
|
-
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4035
|
-
return errorSnapshot;
|
|
4036
|
-
}
|
|
4037
4524
|
function createResourceRequest$j(config) {
|
|
4038
4525
|
const headers = {};
|
|
4039
4526
|
return {
|
|
4040
4527
|
baseUri: '/services/data/v62.0',
|
|
4041
|
-
basePath: '/unified-analytics/
|
|
4042
|
-
method: '
|
|
4043
|
-
body:
|
|
4044
|
-
urlParams:
|
|
4045
|
-
queryParams:
|
|
4528
|
+
basePath: '/unified-analytics/slack/channels',
|
|
4529
|
+
method: 'post',
|
|
4530
|
+
body: config.body,
|
|
4531
|
+
urlParams: {},
|
|
4532
|
+
queryParams: {},
|
|
4046
4533
|
headers,
|
|
4047
4534
|
priority: 'normal',
|
|
4048
4535
|
};
|
|
4049
4536
|
}
|
|
4050
4537
|
|
|
4051
|
-
const adapterName$j = '
|
|
4052
|
-
const
|
|
4053
|
-
generateParamConfigMetadata('
|
|
4054
|
-
generateParamConfigMetadata('
|
|
4055
|
-
generateParamConfigMetadata('
|
|
4056
|
-
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4538
|
+
const adapterName$j = 'createAssetSlackChannel';
|
|
4539
|
+
const createAssetSlackChannel_ConfigPropertyMetadata = [
|
|
4540
|
+
generateParamConfigMetadata('assetId', true, 2 /* Body */, 0 /* String */),
|
|
4541
|
+
generateParamConfigMetadata('channelName', true, 2 /* Body */, 0 /* String */),
|
|
4542
|
+
generateParamConfigMetadata('teamId', true, 2 /* Body */, 0 /* String */),
|
|
4057
4543
|
];
|
|
4058
|
-
const
|
|
4059
|
-
const createResourceParams$j = /*#__PURE__*/ createResourceParams$
|
|
4060
|
-
function keyBuilder$q(luvio, config) {
|
|
4061
|
-
const resourceParams = createResourceParams$j(config);
|
|
4062
|
-
return keyBuilder$r(luvio, resourceParams);
|
|
4063
|
-
}
|
|
4544
|
+
const createAssetSlackChannel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
4545
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$y(createAssetSlackChannel_ConfigPropertyMetadata);
|
|
4064
4546
|
function typeCheckConfig$j(untrustedConfig) {
|
|
4065
4547
|
const config = {};
|
|
4066
|
-
typeCheckConfig$
|
|
4548
|
+
typeCheckConfig$y(untrustedConfig, config, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
4067
4549
|
return config;
|
|
4068
4550
|
}
|
|
4069
4551
|
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
@@ -4079,62 +4561,33 @@ function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
|
4079
4561
|
}
|
|
4080
4562
|
return config;
|
|
4081
4563
|
}
|
|
4082
|
-
function adapterFragment$8(luvio, config) {
|
|
4083
|
-
createResourceParams$j(config);
|
|
4084
|
-
return select$r();
|
|
4085
|
-
}
|
|
4086
|
-
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
4087
|
-
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
4088
|
-
config,
|
|
4089
|
-
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4090
|
-
});
|
|
4091
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
4092
|
-
}
|
|
4093
|
-
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
4094
|
-
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
4095
|
-
config,
|
|
4096
|
-
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4097
|
-
});
|
|
4098
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
4099
|
-
}
|
|
4100
4564
|
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
4101
4565
|
const resourceParams = createResourceParams$j(config);
|
|
4102
4566
|
const request = createResourceRequest$j(resourceParams);
|
|
4103
4567
|
return luvio.dispatchResourceRequest(request, options)
|
|
4104
4568
|
.then((response) => {
|
|
4105
|
-
return luvio.handleSuccessResponse(() =>
|
|
4569
|
+
return luvio.handleSuccessResponse(() => {
|
|
4570
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response);
|
|
4571
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4572
|
+
}, () => {
|
|
4106
4573
|
const cache = new StoreKeyMap();
|
|
4107
4574
|
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
4108
4575
|
return cache;
|
|
4109
4576
|
});
|
|
4110
4577
|
}, (response) => {
|
|
4111
|
-
|
|
4578
|
+
deepFreeze(response);
|
|
4579
|
+
throw response;
|
|
4112
4580
|
});
|
|
4113
4581
|
}
|
|
4114
|
-
|
|
4115
|
-
return
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
variables: {},
|
|
4582
|
+
const createAssetSlackChannelAdapterFactory = (luvio) => {
|
|
4583
|
+
return function createAssetSlackChannel(untrustedConfig) {
|
|
4584
|
+
const config = validateAdapterConfig$j(untrustedConfig, createAssetSlackChannel_ConfigPropertyNames);
|
|
4585
|
+
// Invalid or incomplete config
|
|
4586
|
+
if (config === null) {
|
|
4587
|
+
throw new Error('Invalid config for "createAssetSlackChannel"');
|
|
4588
|
+
}
|
|
4589
|
+
return buildNetworkSnapshot$j(luvio, config);
|
|
4123
4590
|
};
|
|
4124
|
-
const cacheSnapshot = storeLookup(selector, {
|
|
4125
|
-
config,
|
|
4126
|
-
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4127
|
-
});
|
|
4128
|
-
return cacheSnapshot;
|
|
4129
|
-
}
|
|
4130
|
-
const getFollowedAssetsAdapterFactory = (luvio) => function UnifiedAnalytics__getFollowedAssets(untrustedConfig, requestContext) {
|
|
4131
|
-
const config = validateAdapterConfig$j(untrustedConfig, getFollowedAssets_ConfigPropertyNames);
|
|
4132
|
-
// Invalid or incomplete config
|
|
4133
|
-
if (config === null) {
|
|
4134
|
-
return null;
|
|
4135
|
-
}
|
|
4136
|
-
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4137
|
-
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
4138
4591
|
};
|
|
4139
4592
|
|
|
4140
4593
|
const TTL$2 = 500;
|
|
@@ -4152,7 +4605,7 @@ function validate$d(obj, path = 'AnalyticsUsersQueryResultsRepresentation') {
|
|
|
4152
4605
|
for (let i = 0; i < obj_items.length; i++) {
|
|
4153
4606
|
const obj_items_item = obj_items[i];
|
|
4154
4607
|
const path_items_item = path_items + '[' + i + ']';
|
|
4155
|
-
const referencepath_items_itemValidationError = validate$
|
|
4608
|
+
const referencepath_items_itemValidationError = validate$k(obj_items_item, path_items_item);
|
|
4156
4609
|
if (referencepath_items_itemValidationError !== null) {
|
|
4157
4610
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_items_item + '")\n';
|
|
4158
4611
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4269,10 +4722,10 @@ const queryUsers_ConfigPropertyMetadata = [
|
|
|
4269
4722
|
generateParamConfigMetadata('useAutoSuggest', true, 2 /* Body */, 1 /* Boolean */),
|
|
4270
4723
|
];
|
|
4271
4724
|
const queryUsers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, queryUsers_ConfigPropertyMetadata);
|
|
4272
|
-
const createResourceParams$i = /*#__PURE__*/ createResourceParams$
|
|
4725
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$y(queryUsers_ConfigPropertyMetadata);
|
|
4273
4726
|
function typeCheckConfig$i(untrustedConfig) {
|
|
4274
4727
|
const config = {};
|
|
4275
|
-
typeCheckConfig$
|
|
4728
|
+
typeCheckConfig$y(untrustedConfig, config, queryUsers_ConfigPropertyMetadata);
|
|
4276
4729
|
return config;
|
|
4277
4730
|
}
|
|
4278
4731
|
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
@@ -4317,7 +4770,7 @@ const queryUsersAdapterFactory = (luvio) => {
|
|
|
4317
4770
|
};
|
|
4318
4771
|
};
|
|
4319
4772
|
|
|
4320
|
-
const VERSION$9 = "
|
|
4773
|
+
const VERSION$9 = "1a13994f888cdbab1f3489b0a99c8449";
|
|
4321
4774
|
function validate$c(obj, path = 'VisualizationRepresentation') {
|
|
4322
4775
|
const v_error = (() => {
|
|
4323
4776
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4325,7 +4778,7 @@ function validate$c(obj, path = 'VisualizationRepresentation') {
|
|
|
4325
4778
|
}
|
|
4326
4779
|
const obj_createdBy = obj.createdBy;
|
|
4327
4780
|
const path_createdBy = path + '.createdBy';
|
|
4328
|
-
const referencepath_createdByValidationError = validate$
|
|
4781
|
+
const referencepath_createdByValidationError = validate$k(obj_createdBy, path_createdBy);
|
|
4329
4782
|
if (referencepath_createdByValidationError !== null) {
|
|
4330
4783
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
4331
4784
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4381,16 +4834,14 @@ function validate$c(obj, path = 'VisualizationRepresentation') {
|
|
|
4381
4834
|
if (obj.interactions !== undefined) {
|
|
4382
4835
|
const obj_interactions = obj.interactions;
|
|
4383
4836
|
const path_interactions = path + '.interactions';
|
|
4384
|
-
if (
|
|
4385
|
-
return new TypeError('Expected "
|
|
4386
|
-
}
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
const
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
if (obj_interactions_prop === undefined) {
|
|
4393
|
-
return new TypeError('Expected "defined" but received "' + typeof obj_interactions_prop + '" (at "' + path_interactions_prop + '")');
|
|
4837
|
+
if (!ArrayIsArray(obj_interactions)) {
|
|
4838
|
+
return new TypeError('Expected "array" but received "' + typeof obj_interactions + '" (at "' + path_interactions + '")');
|
|
4839
|
+
}
|
|
4840
|
+
for (let i = 0; i < obj_interactions.length; i++) {
|
|
4841
|
+
const obj_interactions_item = obj_interactions[i];
|
|
4842
|
+
const path_interactions_item = path_interactions + '[' + i + ']';
|
|
4843
|
+
if (obj_interactions_item === undefined) {
|
|
4844
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_interactions_item + '" (at "' + path_interactions_item + '")');
|
|
4394
4845
|
}
|
|
4395
4846
|
}
|
|
4396
4847
|
}
|
|
@@ -4402,7 +4853,7 @@ function validate$c(obj, path = 'VisualizationRepresentation') {
|
|
|
4402
4853
|
if (obj.lastModifiedBy !== undefined) {
|
|
4403
4854
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
4404
4855
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
4405
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
4856
|
+
const referencepath_lastModifiedByValidationError = validate$k(obj_lastModifiedBy, path_lastModifiedBy);
|
|
4406
4857
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
4407
4858
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
4408
4859
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4664,14 +5115,14 @@ const getVisualizations_ConfigPropertyMetadata = [
|
|
|
4664
5115
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4665
5116
|
];
|
|
4666
5117
|
const getVisualizations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getVisualizations_ConfigPropertyMetadata);
|
|
4667
|
-
const createResourceParams$h = /*#__PURE__*/ createResourceParams$
|
|
5118
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$y(getVisualizations_ConfigPropertyMetadata);
|
|
4668
5119
|
function keyBuilder$m(luvio, config) {
|
|
4669
5120
|
const resourceParams = createResourceParams$h(config);
|
|
4670
5121
|
return keyBuilder$n(luvio, resourceParams);
|
|
4671
5122
|
}
|
|
4672
5123
|
function typeCheckConfig$h(untrustedConfig) {
|
|
4673
5124
|
const config = {};
|
|
4674
|
-
typeCheckConfig$
|
|
5125
|
+
typeCheckConfig$y(untrustedConfig, config, getVisualizations_ConfigPropertyMetadata);
|
|
4675
5126
|
return config;
|
|
4676
5127
|
}
|
|
4677
5128
|
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
@@ -4720,7 +5171,7 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
4720
5171
|
});
|
|
4721
5172
|
}
|
|
4722
5173
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
4723
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5174
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
4724
5175
|
}
|
|
4725
5176
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
4726
5177
|
const { luvio, config } = context;
|
|
@@ -4793,13 +5244,13 @@ const createVisualization_ConfigPropertyMetadata = [
|
|
|
4793
5244
|
generateParamConfigMetadata('visualSpecification', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4794
5245
|
generateParamConfigMetadata('fields', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4795
5246
|
generateParamConfigMetadata('view', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4796
|
-
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported
|
|
5247
|
+
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4797
5248
|
];
|
|
4798
5249
|
const createVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, createVisualization_ConfigPropertyMetadata);
|
|
4799
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
5250
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$y(createVisualization_ConfigPropertyMetadata);
|
|
4800
5251
|
function typeCheckConfig$g(untrustedConfig) {
|
|
4801
5252
|
const config = {};
|
|
4802
|
-
typeCheckConfig$
|
|
5253
|
+
typeCheckConfig$y(untrustedConfig, config, createVisualization_ConfigPropertyMetadata);
|
|
4803
5254
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
4804
5255
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
4805
5256
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -4876,19 +5327,13 @@ function typeCheckConfig$g(untrustedConfig) {
|
|
|
4876
5327
|
}
|
|
4877
5328
|
}
|
|
4878
5329
|
const untrustedConfig_interactions = untrustedConfig.interactions;
|
|
4879
|
-
if (
|
|
4880
|
-
const
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
const untrustedConfig_interactions_prop = untrustedConfig_interactions[key];
|
|
4885
|
-
if (untrustedConfig_interactions_object !== undefined) {
|
|
4886
|
-
untrustedConfig_interactions_object[key] = untrustedConfig_interactions_prop;
|
|
4887
|
-
}
|
|
4888
|
-
}
|
|
4889
|
-
if (untrustedConfig_interactions_object !== undefined && Object.keys(untrustedConfig_interactions_object).length >= 0) {
|
|
4890
|
-
config.interactions = untrustedConfig_interactions_object;
|
|
5330
|
+
if (ArrayIsArray$1(untrustedConfig_interactions)) {
|
|
5331
|
+
const untrustedConfig_interactions_array = [];
|
|
5332
|
+
for (let i = 0, arrayLength = untrustedConfig_interactions.length; i < arrayLength; i++) {
|
|
5333
|
+
const untrustedConfig_interactions_item = untrustedConfig_interactions[i];
|
|
5334
|
+
untrustedConfig_interactions_array.push(untrustedConfig_interactions_item);
|
|
4891
5335
|
}
|
|
5336
|
+
config.interactions = untrustedConfig_interactions_array;
|
|
4892
5337
|
}
|
|
4893
5338
|
return config;
|
|
4894
5339
|
}
|
|
@@ -4970,10 +5415,10 @@ const deleteVisualization_ConfigPropertyMetadata = [
|
|
|
4970
5415
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4971
5416
|
];
|
|
4972
5417
|
const deleteVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, deleteVisualization_ConfigPropertyMetadata);
|
|
4973
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
5418
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$y(deleteVisualization_ConfigPropertyMetadata);
|
|
4974
5419
|
function typeCheckConfig$f(untrustedConfig) {
|
|
4975
5420
|
const config = {};
|
|
4976
|
-
typeCheckConfig$
|
|
5421
|
+
typeCheckConfig$y(untrustedConfig, config, deleteVisualization_ConfigPropertyMetadata);
|
|
4977
5422
|
return config;
|
|
4978
5423
|
}
|
|
4979
5424
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -5071,14 +5516,14 @@ const getVisualization_ConfigPropertyMetadata = [
|
|
|
5071
5516
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5072
5517
|
];
|
|
5073
5518
|
const getVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getVisualization_ConfigPropertyMetadata);
|
|
5074
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
5519
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$y(getVisualization_ConfigPropertyMetadata);
|
|
5075
5520
|
function keyBuilder$j(luvio, config) {
|
|
5076
5521
|
const resourceParams = createResourceParams$e(config);
|
|
5077
5522
|
return keyBuilder$k(luvio, resourceParams);
|
|
5078
5523
|
}
|
|
5079
5524
|
function typeCheckConfig$e(untrustedConfig) {
|
|
5080
5525
|
const config = {};
|
|
5081
|
-
typeCheckConfig$
|
|
5526
|
+
typeCheckConfig$y(untrustedConfig, config, getVisualization_ConfigPropertyMetadata);
|
|
5082
5527
|
return config;
|
|
5083
5528
|
}
|
|
5084
5529
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -5127,7 +5572,7 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
5127
5572
|
});
|
|
5128
5573
|
}
|
|
5129
5574
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
5130
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5575
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
5131
5576
|
}
|
|
5132
5577
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
5133
5578
|
const { luvio, config } = context;
|
|
@@ -5201,13 +5646,13 @@ const updateVisualization_ConfigPropertyMetadata = [
|
|
|
5201
5646
|
generateParamConfigMetadata('visualSpecification', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5202
5647
|
generateParamConfigMetadata('fields', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5203
5648
|
generateParamConfigMetadata('view', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5204
|
-
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported
|
|
5649
|
+
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5205
5650
|
];
|
|
5206
5651
|
const updateVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, updateVisualization_ConfigPropertyMetadata);
|
|
5207
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
5652
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$y(updateVisualization_ConfigPropertyMetadata);
|
|
5208
5653
|
function typeCheckConfig$d(untrustedConfig) {
|
|
5209
5654
|
const config = {};
|
|
5210
|
-
typeCheckConfig$
|
|
5655
|
+
typeCheckConfig$y(untrustedConfig, config, updateVisualization_ConfigPropertyMetadata);
|
|
5211
5656
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
5212
5657
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
5213
5658
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -5284,19 +5729,13 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
5284
5729
|
}
|
|
5285
5730
|
}
|
|
5286
5731
|
const untrustedConfig_interactions = untrustedConfig.interactions;
|
|
5287
|
-
if (
|
|
5288
|
-
const
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
const untrustedConfig_interactions_prop = untrustedConfig_interactions[key];
|
|
5293
|
-
if (untrustedConfig_interactions_object !== undefined) {
|
|
5294
|
-
untrustedConfig_interactions_object[key] = untrustedConfig_interactions_prop;
|
|
5295
|
-
}
|
|
5296
|
-
}
|
|
5297
|
-
if (untrustedConfig_interactions_object !== undefined && Object.keys(untrustedConfig_interactions_object).length >= 0) {
|
|
5298
|
-
config.interactions = untrustedConfig_interactions_object;
|
|
5732
|
+
if (ArrayIsArray$1(untrustedConfig_interactions)) {
|
|
5733
|
+
const untrustedConfig_interactions_array = [];
|
|
5734
|
+
for (let i = 0, arrayLength = untrustedConfig_interactions.length; i < arrayLength; i++) {
|
|
5735
|
+
const untrustedConfig_interactions_item = untrustedConfig_interactions[i];
|
|
5736
|
+
untrustedConfig_interactions_array.push(untrustedConfig_interactions_item);
|
|
5299
5737
|
}
|
|
5738
|
+
config.interactions = untrustedConfig_interactions_array;
|
|
5300
5739
|
}
|
|
5301
5740
|
return config;
|
|
5302
5741
|
}
|
|
@@ -5477,14 +5916,14 @@ const getVisualizationBundle_ConfigPropertyMetadata = [
|
|
|
5477
5916
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5478
5917
|
];
|
|
5479
5918
|
const getVisualizationBundle_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getVisualizationBundle_ConfigPropertyMetadata);
|
|
5480
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
5919
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$y(getVisualizationBundle_ConfigPropertyMetadata);
|
|
5481
5920
|
function keyBuilder$g(luvio, config) {
|
|
5482
5921
|
const resourceParams = createResourceParams$c(config);
|
|
5483
5922
|
return keyBuilder$h(luvio, resourceParams);
|
|
5484
5923
|
}
|
|
5485
5924
|
function typeCheckConfig$c(untrustedConfig) {
|
|
5486
5925
|
const config = {};
|
|
5487
|
-
typeCheckConfig$
|
|
5926
|
+
typeCheckConfig$y(untrustedConfig, config, getVisualizationBundle_ConfigPropertyMetadata);
|
|
5488
5927
|
return config;
|
|
5489
5928
|
}
|
|
5490
5929
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -5533,7 +5972,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
5533
5972
|
});
|
|
5534
5973
|
}
|
|
5535
5974
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
5536
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5975
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
5537
5976
|
}
|
|
5538
5977
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
5539
5978
|
const { luvio, config } = context;
|
|
@@ -5558,7 +5997,7 @@ const getVisualizationBundleAdapterFactory = (luvio) => function UnifiedAnalytic
|
|
|
5558
5997
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
5559
5998
|
};
|
|
5560
5999
|
|
|
5561
|
-
const VERSION$6 = "
|
|
6000
|
+
const VERSION$6 = "d30aa567784494839ce9c37e69190918";
|
|
5562
6001
|
function validate$9(obj, path = 'WorkspaceRepresentation') {
|
|
5563
6002
|
const v_error = (() => {
|
|
5564
6003
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5571,7 +6010,7 @@ function validate$9(obj, path = 'WorkspaceRepresentation') {
|
|
|
5571
6010
|
}
|
|
5572
6011
|
const obj_createdBy = obj.createdBy;
|
|
5573
6012
|
const path_createdBy = path + '.createdBy';
|
|
5574
|
-
const referencepath_createdByValidationError = validate$
|
|
6013
|
+
const referencepath_createdByValidationError = validate$k(obj_createdBy, path_createdBy);
|
|
5575
6014
|
if (referencepath_createdByValidationError !== null) {
|
|
5576
6015
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
5577
6016
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5582,10 +6021,12 @@ function validate$9(obj, path = 'WorkspaceRepresentation') {
|
|
|
5582
6021
|
if (typeof obj_createdDate !== 'string') {
|
|
5583
6022
|
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
5584
6023
|
}
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
6024
|
+
if (obj.description !== undefined) {
|
|
6025
|
+
const obj_description = obj.description;
|
|
6026
|
+
const path_description = path + '.description';
|
|
6027
|
+
if (typeof obj_description !== 'string') {
|
|
6028
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
6029
|
+
}
|
|
5589
6030
|
}
|
|
5590
6031
|
const obj_id = obj.id;
|
|
5591
6032
|
const path_id = path + '.id';
|
|
@@ -5820,14 +6261,14 @@ const getWorkspaces_ConfigPropertyMetadata = [
|
|
|
5820
6261
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5821
6262
|
];
|
|
5822
6263
|
const getWorkspaces_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getWorkspaces_ConfigPropertyMetadata);
|
|
5823
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
6264
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$y(getWorkspaces_ConfigPropertyMetadata);
|
|
5824
6265
|
function keyBuilder$d(luvio, config) {
|
|
5825
6266
|
const resourceParams = createResourceParams$b(config);
|
|
5826
6267
|
return keyBuilder$e(luvio, resourceParams);
|
|
5827
6268
|
}
|
|
5828
6269
|
function typeCheckConfig$b(untrustedConfig) {
|
|
5829
6270
|
const config = {};
|
|
5830
|
-
typeCheckConfig$
|
|
6271
|
+
typeCheckConfig$y(untrustedConfig, config, getWorkspaces_ConfigPropertyMetadata);
|
|
5831
6272
|
return config;
|
|
5832
6273
|
}
|
|
5833
6274
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -5876,7 +6317,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
5876
6317
|
});
|
|
5877
6318
|
}
|
|
5878
6319
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
5879
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6320
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
5880
6321
|
}
|
|
5881
6322
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
5882
6323
|
const { luvio, config } = context;
|
|
@@ -5946,10 +6387,10 @@ const createWorkspace_ConfigPropertyMetadata = [
|
|
|
5946
6387
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
5947
6388
|
];
|
|
5948
6389
|
const createWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createWorkspace_ConfigPropertyMetadata);
|
|
5949
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
6390
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$y(createWorkspace_ConfigPropertyMetadata);
|
|
5950
6391
|
function typeCheckConfig$a(untrustedConfig) {
|
|
5951
6392
|
const config = {};
|
|
5952
|
-
typeCheckConfig$
|
|
6393
|
+
typeCheckConfig$y(untrustedConfig, config, createWorkspace_ConfigPropertyMetadata);
|
|
5953
6394
|
return config;
|
|
5954
6395
|
}
|
|
5955
6396
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -6030,10 +6471,10 @@ const deleteWorkspace_ConfigPropertyMetadata = [
|
|
|
6030
6471
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6031
6472
|
];
|
|
6032
6473
|
const deleteWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, deleteWorkspace_ConfigPropertyMetadata);
|
|
6033
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
6474
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$y(deleteWorkspace_ConfigPropertyMetadata);
|
|
6034
6475
|
function typeCheckConfig$9(untrustedConfig) {
|
|
6035
6476
|
const config = {};
|
|
6036
|
-
typeCheckConfig$
|
|
6477
|
+
typeCheckConfig$y(untrustedConfig, config, deleteWorkspace_ConfigPropertyMetadata);
|
|
6037
6478
|
return config;
|
|
6038
6479
|
}
|
|
6039
6480
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -6131,14 +6572,14 @@ const getWorkspaceByIdOrName_ConfigPropertyMetadata = [
|
|
|
6131
6572
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6132
6573
|
];
|
|
6133
6574
|
const getWorkspaceByIdOrName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
6134
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
6575
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$y(getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
6135
6576
|
function keyBuilder$a(luvio, config) {
|
|
6136
6577
|
const resourceParams = createResourceParams$8(config);
|
|
6137
6578
|
return keyBuilder$b(luvio, resourceParams);
|
|
6138
6579
|
}
|
|
6139
6580
|
function typeCheckConfig$8(untrustedConfig) {
|
|
6140
6581
|
const config = {};
|
|
6141
|
-
typeCheckConfig$
|
|
6582
|
+
typeCheckConfig$y(untrustedConfig, config, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
6142
6583
|
return config;
|
|
6143
6584
|
}
|
|
6144
6585
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -6187,7 +6628,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
6187
6628
|
});
|
|
6188
6629
|
}
|
|
6189
6630
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
6190
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6631
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
6191
6632
|
}
|
|
6192
6633
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
6193
6634
|
const { luvio, config } = context;
|
|
@@ -6258,10 +6699,10 @@ const updateWorkspace_ConfigPropertyMetadata = [
|
|
|
6258
6699
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
6259
6700
|
];
|
|
6260
6701
|
const updateWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, updateWorkspace_ConfigPropertyMetadata);
|
|
6261
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
6702
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$y(updateWorkspace_ConfigPropertyMetadata);
|
|
6262
6703
|
function typeCheckConfig$7(untrustedConfig) {
|
|
6263
6704
|
const config = {};
|
|
6264
|
-
typeCheckConfig$
|
|
6705
|
+
typeCheckConfig$y(untrustedConfig, config, updateWorkspace_ConfigPropertyMetadata);
|
|
6265
6706
|
return config;
|
|
6266
6707
|
}
|
|
6267
6708
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -6329,7 +6770,7 @@ function validate$7(obj, path = 'WorkspaceAssetRepresentation') {
|
|
|
6329
6770
|
}
|
|
6330
6771
|
const obj_createdBy = obj.createdBy;
|
|
6331
6772
|
const path_createdBy = path + '.createdBy';
|
|
6332
|
-
const referencepath_createdByValidationError = validate$
|
|
6773
|
+
const referencepath_createdByValidationError = validate$k(obj_createdBy, path_createdBy);
|
|
6333
6774
|
if (referencepath_createdByValidationError !== null) {
|
|
6334
6775
|
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
6335
6776
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6442,10 +6883,10 @@ const createWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
6442
6883
|
generateParamConfigMetadata('assetUsageType', true, 2 /* Body */, 0 /* String */),
|
|
6443
6884
|
];
|
|
6444
6885
|
const createWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
6445
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
6886
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$y(createWorkspaceAsset_ConfigPropertyMetadata);
|
|
6446
6887
|
function typeCheckConfig$6(untrustedConfig) {
|
|
6447
6888
|
const config = {};
|
|
6448
|
-
typeCheckConfig$
|
|
6889
|
+
typeCheckConfig$y(untrustedConfig, config, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
6449
6890
|
return config;
|
|
6450
6891
|
}
|
|
6451
6892
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -6527,10 +6968,10 @@ const deleteWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
6527
6968
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6528
6969
|
];
|
|
6529
6970
|
const deleteWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
6530
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
6971
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$y(deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
6531
6972
|
function typeCheckConfig$5(untrustedConfig) {
|
|
6532
6973
|
const config = {};
|
|
6533
|
-
typeCheckConfig$
|
|
6974
|
+
typeCheckConfig$y(untrustedConfig, config, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
6534
6975
|
return config;
|
|
6535
6976
|
}
|
|
6536
6977
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -6914,14 +7355,14 @@ const getFlows_ConfigPropertyMetadata = [
|
|
|
6914
7355
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
6915
7356
|
];
|
|
6916
7357
|
const getFlows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getFlows_ConfigPropertyMetadata);
|
|
6917
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
7358
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$y(getFlows_ConfigPropertyMetadata);
|
|
6918
7359
|
function keyBuilder$6(luvio, config) {
|
|
6919
7360
|
const resourceParams = createResourceParams$4(config);
|
|
6920
7361
|
return keyBuilder$7(luvio, resourceParams);
|
|
6921
7362
|
}
|
|
6922
7363
|
function typeCheckConfig$4(untrustedConfig) {
|
|
6923
7364
|
const config = {};
|
|
6924
|
-
typeCheckConfig$
|
|
7365
|
+
typeCheckConfig$y(untrustedConfig, config, getFlows_ConfigPropertyMetadata);
|
|
6925
7366
|
return config;
|
|
6926
7367
|
}
|
|
6927
7368
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -6970,7 +7411,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
6970
7411
|
});
|
|
6971
7412
|
}
|
|
6972
7413
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
6973
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7414
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
6974
7415
|
}
|
|
6975
7416
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
6976
7417
|
const { luvio, config } = context;
|
|
@@ -7046,14 +7487,14 @@ const getFlowByName_ConfigPropertyMetadata = [
|
|
|
7046
7487
|
generateParamConfigMetadata('flowApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7047
7488
|
];
|
|
7048
7489
|
const getFlowByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getFlowByName_ConfigPropertyMetadata);
|
|
7049
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
7490
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$y(getFlowByName_ConfigPropertyMetadata);
|
|
7050
7491
|
function keyBuilder$4(luvio, config) {
|
|
7051
7492
|
const resourceParams = createResourceParams$3(config);
|
|
7052
7493
|
return keyBuilder$5(luvio, resourceParams);
|
|
7053
7494
|
}
|
|
7054
7495
|
function typeCheckConfig$3(untrustedConfig) {
|
|
7055
7496
|
const config = {};
|
|
7056
|
-
typeCheckConfig$
|
|
7497
|
+
typeCheckConfig$y(untrustedConfig, config, getFlowByName_ConfigPropertyMetadata);
|
|
7057
7498
|
return config;
|
|
7058
7499
|
}
|
|
7059
7500
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -7102,7 +7543,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
7102
7543
|
});
|
|
7103
7544
|
}
|
|
7104
7545
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
7105
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7546
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
7106
7547
|
}
|
|
7107
7548
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
7108
7549
|
const { luvio, config } = context;
|
|
@@ -7260,14 +7701,14 @@ const getSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
7260
7701
|
generateParamConfigMetadata('digestConfigOwner', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7261
7702
|
];
|
|
7262
7703
|
const getSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
7263
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
7704
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$y(getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
7264
7705
|
function keyBuilder$1(luvio, config) {
|
|
7265
7706
|
const resourceParams = createResourceParams$2(config);
|
|
7266
7707
|
return keyBuilder$2(luvio, resourceParams);
|
|
7267
7708
|
}
|
|
7268
7709
|
function typeCheckConfig$2(untrustedConfig) {
|
|
7269
7710
|
const config = {};
|
|
7270
|
-
typeCheckConfig$
|
|
7711
|
+
typeCheckConfig$y(untrustedConfig, config, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
7271
7712
|
return config;
|
|
7272
7713
|
}
|
|
7273
7714
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -7316,7 +7757,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
7316
7757
|
});
|
|
7317
7758
|
}
|
|
7318
7759
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
7319
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7760
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
7320
7761
|
}
|
|
7321
7762
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
7322
7763
|
const { luvio, config } = context;
|
|
@@ -7385,10 +7826,10 @@ const updateSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
7385
7826
|
generateParamConfigMetadata('scheduleType', true, 2 /* Body */, 0 /* String */),
|
|
7386
7827
|
];
|
|
7387
7828
|
const updateSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
7388
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
7829
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$y(updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
7389
7830
|
function typeCheckConfig$1(untrustedConfig) {
|
|
7390
7831
|
const config = {};
|
|
7391
|
-
typeCheckConfig$
|
|
7832
|
+
typeCheckConfig$y(untrustedConfig, config, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
7392
7833
|
return config;
|
|
7393
7834
|
}
|
|
7394
7835
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -7618,7 +8059,7 @@ const getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata = [
|
|
|
7618
8059
|
generateParamConfigMetadata('searchToken', false, 2 /* Body */, 4 /* Unsupported */),
|
|
7619
8060
|
];
|
|
7620
8061
|
const getUnifiedAnalyticsLibraryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
7621
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
8062
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$y(getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
7622
8063
|
function typeCheckConfig(untrustedConfig) {
|
|
7623
8064
|
const config = {};
|
|
7624
8065
|
const untrustedConfig_assetTypes = untrustedConfig.assetTypes;
|
|
@@ -7727,4 +8168,4 @@ const getUnifiedAnalyticsLibraryAssetsAdapterFactory = (luvio) => {
|
|
|
7727
8168
|
};
|
|
7728
8169
|
};
|
|
7729
8170
|
|
|
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 };
|
|
8171
|
+
export { createAnnotationAdapterFactory, createAssetSlackChannelAdapterFactory, createDashboardAdapterFactory, createVisualizationAdapterFactory, createWorkspaceAdapterFactory, createWorkspaceAssetAdapterFactory, deleteDashboardAdapterFactory, deleteVisualizationAdapterFactory, deleteWorkspaceAdapterFactory, deleteWorkspaceAssetAdapterFactory, followAdapterFactory, getAnnotationsAdapterFactory, getAssetSlackChannelsAdapterFactory, getDashboardByNameAdapterFactory, getDashboardsAdapterFactory, getFlowByNameAdapterFactory, getFlowsAdapterFactory, getFollowedAssetsAdapterFactory, getFollowersAdapterFactory, getSlackAppInfoAdapterFactory, getSubscriptionDigestConfigAdapterFactory, getUnifiedAnalyticsLibraryAssetsAdapterFactory, getVisualizationAdapterFactory, getVisualizationBundleAdapterFactory, getVisualizationsAdapterFactory, getWorkspaceByIdOrNameAdapterFactory, getWorkspacesAdapterFactory, queryAssetsAdapterFactory, queryUsersAdapterFactory, unfollowAdapterFactory, updateDashboardAdapterFactory, updateSubscriptionDigestConfigAdapterFactory, updateVisualizationAdapterFactory, updateWorkspaceAdapterFactory };
|