@salesforce/lds-adapters-analytics-unifiedanalytics 1.308.0-dev6 → 1.308.0-dev7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1317,8 +1317,29 @@ function validate$A(obj, path = 'SlackMessageOutputRepresentation') {
1317
1317
  }
1318
1318
  const obj_isBroadcast = obj.isBroadcast;
1319
1319
  const path_isBroadcast = path + '.isBroadcast';
1320
- if (typeof obj_isBroadcast !== 'boolean') {
1321
- return new TypeError('Expected "boolean" but received "' + typeof obj_isBroadcast + '" (at "' + path_isBroadcast + '")');
1320
+ let obj_isBroadcast_union0 = null;
1321
+ const obj_isBroadcast_union0_error = (() => {
1322
+ if (typeof obj_isBroadcast !== 'boolean') {
1323
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isBroadcast + '" (at "' + path_isBroadcast + '")');
1324
+ }
1325
+ })();
1326
+ if (obj_isBroadcast_union0_error != null) {
1327
+ obj_isBroadcast_union0 = obj_isBroadcast_union0_error.message;
1328
+ }
1329
+ let obj_isBroadcast_union1 = null;
1330
+ const obj_isBroadcast_union1_error = (() => {
1331
+ if (obj_isBroadcast !== null) {
1332
+ return new TypeError('Expected "null" but received "' + typeof obj_isBroadcast + '" (at "' + path_isBroadcast + '")');
1333
+ }
1334
+ })();
1335
+ if (obj_isBroadcast_union1_error != null) {
1336
+ obj_isBroadcast_union1 = obj_isBroadcast_union1_error.message;
1337
+ }
1338
+ if (obj_isBroadcast_union0 && obj_isBroadcast_union1) {
1339
+ let message = 'Object doesn\'t match union (at "' + path_isBroadcast + '")';
1340
+ message += '\n' + obj_isBroadcast_union0.split('\n').map((line) => '\t' + line).join('\n');
1341
+ message += '\n' + obj_isBroadcast_union1.split('\n').map((line) => '\t' + line).join('\n');
1342
+ return new TypeError(message);
1322
1343
  }
1323
1344
  const obj_isEditable = obj.isEditable;
1324
1345
  const path_isEditable = path + '.isEditable';
@@ -1327,13 +1348,55 @@ function validate$A(obj, path = 'SlackMessageOutputRepresentation') {
1327
1348
  }
1328
1349
  const obj_isEdited = obj.isEdited;
1329
1350
  const path_isEdited = path + '.isEdited';
1330
- if (typeof obj_isEdited !== 'boolean') {
1331
- return new TypeError('Expected "boolean" but received "' + typeof obj_isEdited + '" (at "' + path_isEdited + '")');
1351
+ let obj_isEdited_union0 = null;
1352
+ const obj_isEdited_union0_error = (() => {
1353
+ if (typeof obj_isEdited !== 'boolean') {
1354
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isEdited + '" (at "' + path_isEdited + '")');
1355
+ }
1356
+ })();
1357
+ if (obj_isEdited_union0_error != null) {
1358
+ obj_isEdited_union0 = obj_isEdited_union0_error.message;
1359
+ }
1360
+ let obj_isEdited_union1 = null;
1361
+ const obj_isEdited_union1_error = (() => {
1362
+ if (obj_isEdited !== null) {
1363
+ return new TypeError('Expected "null" but received "' + typeof obj_isEdited + '" (at "' + path_isEdited + '")');
1364
+ }
1365
+ })();
1366
+ if (obj_isEdited_union1_error != null) {
1367
+ obj_isEdited_union1 = obj_isEdited_union1_error.message;
1368
+ }
1369
+ if (obj_isEdited_union0 && obj_isEdited_union1) {
1370
+ let message = 'Object doesn\'t match union (at "' + path_isEdited + '")';
1371
+ message += '\n' + obj_isEdited_union0.split('\n').map((line) => '\t' + line).join('\n');
1372
+ message += '\n' + obj_isEdited_union1.split('\n').map((line) => '\t' + line).join('\n');
1373
+ return new TypeError(message);
1332
1374
  }
1333
1375
  const obj_isFileReadAllowed = obj.isFileReadAllowed;
1334
1376
  const path_isFileReadAllowed = path + '.isFileReadAllowed';
1335
- if (typeof obj_isFileReadAllowed !== 'boolean') {
1336
- return new TypeError('Expected "boolean" but received "' + typeof obj_isFileReadAllowed + '" (at "' + path_isFileReadAllowed + '")');
1377
+ let obj_isFileReadAllowed_union0 = null;
1378
+ const obj_isFileReadAllowed_union0_error = (() => {
1379
+ if (typeof obj_isFileReadAllowed !== 'boolean') {
1380
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isFileReadAllowed + '" (at "' + path_isFileReadAllowed + '")');
1381
+ }
1382
+ })();
1383
+ if (obj_isFileReadAllowed_union0_error != null) {
1384
+ obj_isFileReadAllowed_union0 = obj_isFileReadAllowed_union0_error.message;
1385
+ }
1386
+ let obj_isFileReadAllowed_union1 = null;
1387
+ const obj_isFileReadAllowed_union1_error = (() => {
1388
+ if (obj_isFileReadAllowed !== null) {
1389
+ return new TypeError('Expected "null" but received "' + typeof obj_isFileReadAllowed + '" (at "' + path_isFileReadAllowed + '")');
1390
+ }
1391
+ })();
1392
+ if (obj_isFileReadAllowed_union1_error != null) {
1393
+ obj_isFileReadAllowed_union1 = obj_isFileReadAllowed_union1_error.message;
1394
+ }
1395
+ if (obj_isFileReadAllowed_union0 && obj_isFileReadAllowed_union1) {
1396
+ let message = 'Object doesn\'t match union (at "' + path_isFileReadAllowed + '")';
1397
+ message += '\n' + obj_isFileReadAllowed_union0.split('\n').map((line) => '\t' + line).join('\n');
1398
+ message += '\n' + obj_isFileReadAllowed_union1.split('\n').map((line) => '\t' + line).join('\n');
1399
+ return new TypeError(message);
1337
1400
  }
1338
1401
  const obj_latestReplyTimestamp = obj.latestReplyTimestamp;
1339
1402
  const path_latestReplyTimestamp = path + '.latestReplyTimestamp';
@@ -1518,8 +1581,29 @@ function validate$A(obj, path = 'SlackMessageOutputRepresentation') {
1518
1581
  }
1519
1582
  const obj_type = obj.type;
1520
1583
  const path_type = path + '.type';
1521
- if (typeof obj_type !== 'string') {
1522
- return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
1584
+ let obj_type_union0 = null;
1585
+ const obj_type_union0_error = (() => {
1586
+ if (typeof obj_type !== 'string') {
1587
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
1588
+ }
1589
+ })();
1590
+ if (obj_type_union0_error != null) {
1591
+ obj_type_union0 = obj_type_union0_error.message;
1592
+ }
1593
+ let obj_type_union1 = null;
1594
+ const obj_type_union1_error = (() => {
1595
+ if (obj_type !== null) {
1596
+ return new TypeError('Expected "null" but received "' + typeof obj_type + '" (at "' + path_type + '")');
1597
+ }
1598
+ })();
1599
+ if (obj_type_union1_error != null) {
1600
+ obj_type_union1 = obj_type_union1_error.message;
1601
+ }
1602
+ if (obj_type_union0 && obj_type_union1) {
1603
+ let message = 'Object doesn\'t match union (at "' + path_type + '")';
1604
+ message += '\n' + obj_type_union0.split('\n').map((line) => '\t' + line).join('\n');
1605
+ message += '\n' + obj_type_union1.split('\n').map((line) => '\t' + line).join('\n');
1606
+ return new TypeError(message);
1523
1607
  }
1524
1608
  const obj_uniqueKey = obj.uniqueKey;
1525
1609
  const path_uniqueKey = path + '.uniqueKey';
@@ -2,7 +2,7 @@ import { SlackFileOutputRepresentation as SlackFileOutputRepresentation_SlackFil
2
2
  import { SlackReactionOutputRepresentation as SlackReactionOutputRepresentation_SlackReactionOutputRepresentation } from './SlackReactionOutputRepresentation';
3
3
  import { SlackUserInfoOutputRepresentation as SlackUserInfoOutputRepresentation_SlackUserInfoOutputRepresentation } from './SlackUserInfoOutputRepresentation';
4
4
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
5
- export declare const VERSION = "bf44c34011c44c4b0988918964ef8bd3";
5
+ export declare const VERSION = "36fdb9a2ab130f2771d0992f2e9734ea";
6
6
  export declare function validate(obj: any, path?: string): TypeError | null;
7
7
  export declare const RepresentationType: string;
8
8
  export declare function normalize(input: SlackMessageOutputRepresentation, existing: SlackMessageOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackMessageOutputRepresentationNormalized;
@@ -28,13 +28,13 @@ export interface SlackMessageOutputRepresentationNormalized {
28
28
  /** Does this message includes Custom emoji? */
29
29
  includesCustomEmoji: boolean | null;
30
30
  /** Is this a reply also sent to the Channel? */
31
- isBroadcast: boolean;
31
+ isBroadcast: boolean | null;
32
32
  /** Can this message be edited? */
33
33
  isEditable: boolean;
34
34
  /** Is this an edited message? */
35
- isEdited: boolean;
35
+ isEdited: boolean | null;
36
36
  /** Does the App contains required scopes to read Slack files? */
37
- isFileReadAllowed: boolean;
37
+ isFileReadAllowed: boolean | null;
38
38
  /** Latest Reply timestamp */
39
39
  latestReplyTimestamp: string | null;
40
40
  /** Content of the Message */
@@ -60,7 +60,7 @@ export interface SlackMessageOutputRepresentationNormalized {
60
60
  /** Timestamp of the thread to which this message belong to */
61
61
  threadTs: string | null;
62
62
  /** Type of Message */
63
- type: string;
63
+ type: string | null;
64
64
  /** Unique Key for this message */
65
65
  uniqueKey: string;
66
66
  /** Url for this message */
@@ -79,10 +79,10 @@ export interface SlackMessageOutputRepresentation {
79
79
  channelId: string;
80
80
  files: Array<SlackFileOutputRepresentation_SlackFileOutputRepresentation>;
81
81
  includesCustomEmoji: boolean | null;
82
- isBroadcast: boolean;
82
+ isBroadcast: boolean | null;
83
83
  isEditable: boolean;
84
- isEdited: boolean;
85
- isFileReadAllowed: boolean;
84
+ isEdited: boolean | null;
85
+ isFileReadAllowed: boolean | null;
86
86
  latestReplyTimestamp: string | null;
87
87
  message: string;
88
88
  messageEpochMillisecond: number;
@@ -95,7 +95,7 @@ export interface SlackMessageOutputRepresentation {
95
95
  subtype: string | null;
96
96
  teamId: string;
97
97
  threadTs: string | null;
98
- type: string;
98
+ type: string | null;
99
99
  uniqueKey: string;
100
100
  url: string;
101
101
  userInfo: SlackUserInfoOutputRepresentation_SlackUserInfoOutputRepresentation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-analytics-unifiedanalytics",
3
- "version": "1.308.0-dev6",
3
+ "version": "1.308.0-dev7",
4
4
  "description": "Tableau Unified Analytics Platform",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/analytics-unifiedanalytics.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.308.0-dev6"
43
+ "@salesforce/lds-bindings": "^1.308.0-dev7"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.308.0-dev6"
46
+ "@salesforce/lds-compiler-plugins": "^1.308.0-dev7"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -1155,8 +1155,29 @@ function validate$B(obj, path = 'SlackMessageOutputRepresentation') {
1155
1155
  }
1156
1156
  const obj_isBroadcast = obj.isBroadcast;
1157
1157
  const path_isBroadcast = path + '.isBroadcast';
1158
- if (typeof obj_isBroadcast !== 'boolean') {
1159
- return new TypeError('Expected "boolean" but received "' + typeof obj_isBroadcast + '" (at "' + path_isBroadcast + '")');
1158
+ let obj_isBroadcast_union0 = null;
1159
+ const obj_isBroadcast_union0_error = (() => {
1160
+ if (typeof obj_isBroadcast !== 'boolean') {
1161
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isBroadcast + '" (at "' + path_isBroadcast + '")');
1162
+ }
1163
+ })();
1164
+ if (obj_isBroadcast_union0_error != null) {
1165
+ obj_isBroadcast_union0 = obj_isBroadcast_union0_error.message;
1166
+ }
1167
+ let obj_isBroadcast_union1 = null;
1168
+ const obj_isBroadcast_union1_error = (() => {
1169
+ if (obj_isBroadcast !== null) {
1170
+ return new TypeError('Expected "null" but received "' + typeof obj_isBroadcast + '" (at "' + path_isBroadcast + '")');
1171
+ }
1172
+ })();
1173
+ if (obj_isBroadcast_union1_error != null) {
1174
+ obj_isBroadcast_union1 = obj_isBroadcast_union1_error.message;
1175
+ }
1176
+ if (obj_isBroadcast_union0 && obj_isBroadcast_union1) {
1177
+ let message = 'Object doesn\'t match union (at "' + path_isBroadcast + '")';
1178
+ message += '\n' + obj_isBroadcast_union0.split('\n').map((line) => '\t' + line).join('\n');
1179
+ message += '\n' + obj_isBroadcast_union1.split('\n').map((line) => '\t' + line).join('\n');
1180
+ return new TypeError(message);
1160
1181
  }
1161
1182
  const obj_isEditable = obj.isEditable;
1162
1183
  const path_isEditable = path + '.isEditable';
@@ -1165,13 +1186,55 @@ function validate$B(obj, path = 'SlackMessageOutputRepresentation') {
1165
1186
  }
1166
1187
  const obj_isEdited = obj.isEdited;
1167
1188
  const path_isEdited = path + '.isEdited';
1168
- if (typeof obj_isEdited !== 'boolean') {
1169
- return new TypeError('Expected "boolean" but received "' + typeof obj_isEdited + '" (at "' + path_isEdited + '")');
1189
+ let obj_isEdited_union0 = null;
1190
+ const obj_isEdited_union0_error = (() => {
1191
+ if (typeof obj_isEdited !== 'boolean') {
1192
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isEdited + '" (at "' + path_isEdited + '")');
1193
+ }
1194
+ })();
1195
+ if (obj_isEdited_union0_error != null) {
1196
+ obj_isEdited_union0 = obj_isEdited_union0_error.message;
1197
+ }
1198
+ let obj_isEdited_union1 = null;
1199
+ const obj_isEdited_union1_error = (() => {
1200
+ if (obj_isEdited !== null) {
1201
+ return new TypeError('Expected "null" but received "' + typeof obj_isEdited + '" (at "' + path_isEdited + '")');
1202
+ }
1203
+ })();
1204
+ if (obj_isEdited_union1_error != null) {
1205
+ obj_isEdited_union1 = obj_isEdited_union1_error.message;
1206
+ }
1207
+ if (obj_isEdited_union0 && obj_isEdited_union1) {
1208
+ let message = 'Object doesn\'t match union (at "' + path_isEdited + '")';
1209
+ message += '\n' + obj_isEdited_union0.split('\n').map((line) => '\t' + line).join('\n');
1210
+ message += '\n' + obj_isEdited_union1.split('\n').map((line) => '\t' + line).join('\n');
1211
+ return new TypeError(message);
1170
1212
  }
1171
1213
  const obj_isFileReadAllowed = obj.isFileReadAllowed;
1172
1214
  const path_isFileReadAllowed = path + '.isFileReadAllowed';
1173
- if (typeof obj_isFileReadAllowed !== 'boolean') {
1174
- return new TypeError('Expected "boolean" but received "' + typeof obj_isFileReadAllowed + '" (at "' + path_isFileReadAllowed + '")');
1215
+ let obj_isFileReadAllowed_union0 = null;
1216
+ const obj_isFileReadAllowed_union0_error = (() => {
1217
+ if (typeof obj_isFileReadAllowed !== 'boolean') {
1218
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isFileReadAllowed + '" (at "' + path_isFileReadAllowed + '")');
1219
+ }
1220
+ })();
1221
+ if (obj_isFileReadAllowed_union0_error != null) {
1222
+ obj_isFileReadAllowed_union0 = obj_isFileReadAllowed_union0_error.message;
1223
+ }
1224
+ let obj_isFileReadAllowed_union1 = null;
1225
+ const obj_isFileReadAllowed_union1_error = (() => {
1226
+ if (obj_isFileReadAllowed !== null) {
1227
+ return new TypeError('Expected "null" but received "' + typeof obj_isFileReadAllowed + '" (at "' + path_isFileReadAllowed + '")');
1228
+ }
1229
+ })();
1230
+ if (obj_isFileReadAllowed_union1_error != null) {
1231
+ obj_isFileReadAllowed_union1 = obj_isFileReadAllowed_union1_error.message;
1232
+ }
1233
+ if (obj_isFileReadAllowed_union0 && obj_isFileReadAllowed_union1) {
1234
+ let message = 'Object doesn\'t match union (at "' + path_isFileReadAllowed + '")';
1235
+ message += '\n' + obj_isFileReadAllowed_union0.split('\n').map((line) => '\t' + line).join('\n');
1236
+ message += '\n' + obj_isFileReadAllowed_union1.split('\n').map((line) => '\t' + line).join('\n');
1237
+ return new TypeError(message);
1175
1238
  }
1176
1239
  const obj_latestReplyTimestamp = obj.latestReplyTimestamp;
1177
1240
  const path_latestReplyTimestamp = path + '.latestReplyTimestamp';
@@ -1356,8 +1419,29 @@ function validate$B(obj, path = 'SlackMessageOutputRepresentation') {
1356
1419
  }
1357
1420
  const obj_type = obj.type;
1358
1421
  const path_type = path + '.type';
1359
- if (typeof obj_type !== 'string') {
1360
- return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
1422
+ let obj_type_union0 = null;
1423
+ const obj_type_union0_error = (() => {
1424
+ if (typeof obj_type !== 'string') {
1425
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
1426
+ }
1427
+ })();
1428
+ if (obj_type_union0_error != null) {
1429
+ obj_type_union0 = obj_type_union0_error.message;
1430
+ }
1431
+ let obj_type_union1 = null;
1432
+ const obj_type_union1_error = (() => {
1433
+ if (obj_type !== null) {
1434
+ return new TypeError('Expected "null" but received "' + typeof obj_type + '" (at "' + path_type + '")');
1435
+ }
1436
+ })();
1437
+ if (obj_type_union1_error != null) {
1438
+ obj_type_union1 = obj_type_union1_error.message;
1439
+ }
1440
+ if (obj_type_union0 && obj_type_union1) {
1441
+ let message = 'Object doesn\'t match union (at "' + path_type + '")';
1442
+ message += '\n' + obj_type_union0.split('\n').map((line) => '\t' + line).join('\n');
1443
+ message += '\n' + obj_type_union1.split('\n').map((line) => '\t' + line).join('\n');
1444
+ return new TypeError(message);
1361
1445
  }
1362
1446
  const obj_uniqueKey = obj.uniqueKey;
1363
1447
  const path_uniqueKey = path + '.uniqueKey';
@@ -9571,4 +9655,4 @@ withDefaultLuvio((luvio) => {
9571
9655
  });
9572
9656
 
9573
9657
  export { createAnnotation, createAssetSlackChannel, createDashboard, createLoglines, createVisualization, createWorkspace, createWorkspaceAsset, deleteDashboard, deleteVisualization, deleteWorkspace, deleteWorkspaceAsset, follow, generateSFDriveCredentials, getAnnotations, getAnnotations_imperative, getAssetSlackChannels, getAssetSlackChannels_imperative, getDashboardByName, getDashboardByNameNotifyChange, getDashboardByName_imperative, getDashboards, getDashboards_imperative, getFlowByName, getFlowByName_imperative, getFlows, getFlows_imperative, getFollowedAssets, getFollowedAssets_imperative, getFollowers, getFollowers_imperative, getOrg, getOrg_imperative, getSlackAppInfo, getSlackAppInfo_imperative, getSubscriptionDigestConfig, getSubscriptionDigestConfigNotifyChange, getSubscriptionDigestConfig_imperative, getUnifiedAnalyticsLibraryAssets, getUniqueFollowerCount, getUniqueFollowerCount_imperative, getVisualization, getVisualizationBundle, getVisualizationBundleNotifyChange, getVisualizationBundle_imperative, getVisualizationNotifyChange, getVisualization_imperative, getVisualizations, getVisualizations_imperative, getWorkspaceByIdOrName, getWorkspaceByIdOrNameNotifyChange, getWorkspaceByIdOrName_imperative, getWorkspaces, getWorkspaces_imperative, publish, queryAssets, queryUsers, unfollow, updateDashboard, updateSubscriptionDigestConfig, updateVisualization, updateWorkspace };
9574
- // version: 1.308.0-dev6-76d7a63e29
9658
+ // version: 1.308.0-dev7-8ae69a25e5
package/src/raml/api.raml CHANGED
@@ -955,16 +955,16 @@ types:
955
955
  type: boolean | nil
956
956
  isBroadcast:
957
957
  description: Is this a reply also sent to the Channel?
958
- type: boolean
958
+ type: boolean | nil
959
959
  isEditable:
960
960
  description: Can this message be edited?
961
961
  type: boolean
962
962
  isEdited:
963
963
  description: Is this an edited message?
964
- type: boolean
964
+ type: boolean | nil
965
965
  isFileReadAllowed:
966
966
  description: Does the App contains required scopes to read Slack files?
967
- type: boolean
967
+ type: boolean | nil
968
968
  latestReplyTimestamp:
969
969
  description: Latest Reply timestamp
970
970
  type: string | nil
@@ -1008,7 +1008,7 @@ types:
1008
1008
  type: string | nil
1009
1009
  type:
1010
1010
  description: Type of Message
1011
- type: string
1011
+ type: string | nil
1012
1012
  uniqueKey:
1013
1013
  description: Unique Key for this message
1014
1014
  type: string