@salesforce/lds-adapters-platform-slack-bridge 1.380.0-dev17 → 1.380.0-dev19
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.
|
@@ -601,7 +601,7 @@ function getTypeCacheKeys$k(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
601
601
|
}
|
|
602
602
|
|
|
603
603
|
const TTL$6 = 900000;
|
|
604
|
-
const VERSION$s = "
|
|
604
|
+
const VERSION$s = "340b283b62f8c3f917012a6c8e120727";
|
|
605
605
|
function validate$s(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
606
606
|
const v_error = (() => {
|
|
607
607
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -612,6 +612,34 @@ function validate$s(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
612
612
|
if (typeof obj_bot !== 'boolean') {
|
|
613
613
|
return new TypeError('Expected "boolean" but received "' + typeof obj_bot + '" (at "' + path_bot + '")');
|
|
614
614
|
}
|
|
615
|
+
if (obj.deleted !== undefined) {
|
|
616
|
+
const obj_deleted = obj.deleted;
|
|
617
|
+
const path_deleted = path + '.deleted';
|
|
618
|
+
let obj_deleted_union0 = null;
|
|
619
|
+
const obj_deleted_union0_error = (() => {
|
|
620
|
+
if (typeof obj_deleted !== 'boolean') {
|
|
621
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_deleted + '" (at "' + path_deleted + '")');
|
|
622
|
+
}
|
|
623
|
+
})();
|
|
624
|
+
if (obj_deleted_union0_error != null) {
|
|
625
|
+
obj_deleted_union0 = obj_deleted_union0_error.message;
|
|
626
|
+
}
|
|
627
|
+
let obj_deleted_union1 = null;
|
|
628
|
+
const obj_deleted_union1_error = (() => {
|
|
629
|
+
if (obj_deleted !== null) {
|
|
630
|
+
return new TypeError('Expected "null" but received "' + typeof obj_deleted + '" (at "' + path_deleted + '")');
|
|
631
|
+
}
|
|
632
|
+
})();
|
|
633
|
+
if (obj_deleted_union1_error != null) {
|
|
634
|
+
obj_deleted_union1 = obj_deleted_union1_error.message;
|
|
635
|
+
}
|
|
636
|
+
if (obj_deleted_union0 && obj_deleted_union1) {
|
|
637
|
+
let message = 'Object doesn\'t match union (at "' + path_deleted + '")';
|
|
638
|
+
message += '\n' + obj_deleted_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
639
|
+
message += '\n' + obj_deleted_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
640
|
+
return new TypeError(message);
|
|
641
|
+
}
|
|
642
|
+
}
|
|
615
643
|
const obj_displayName = obj.displayName;
|
|
616
644
|
const path_displayName = path + '.displayName';
|
|
617
645
|
let obj_displayName_union0 = null;
|
|
@@ -695,6 +723,62 @@ function validate$s(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
695
723
|
return new TypeError(message);
|
|
696
724
|
}
|
|
697
725
|
}
|
|
726
|
+
if (obj.huddleState !== undefined) {
|
|
727
|
+
const obj_huddleState = obj.huddleState;
|
|
728
|
+
const path_huddleState = path + '.huddleState';
|
|
729
|
+
let obj_huddleState_union0 = null;
|
|
730
|
+
const obj_huddleState_union0_error = (() => {
|
|
731
|
+
if (typeof obj_huddleState !== 'string') {
|
|
732
|
+
return new TypeError('Expected "string" but received "' + typeof obj_huddleState + '" (at "' + path_huddleState + '")');
|
|
733
|
+
}
|
|
734
|
+
})();
|
|
735
|
+
if (obj_huddleState_union0_error != null) {
|
|
736
|
+
obj_huddleState_union0 = obj_huddleState_union0_error.message;
|
|
737
|
+
}
|
|
738
|
+
let obj_huddleState_union1 = null;
|
|
739
|
+
const obj_huddleState_union1_error = (() => {
|
|
740
|
+
if (obj_huddleState !== null) {
|
|
741
|
+
return new TypeError('Expected "null" but received "' + typeof obj_huddleState + '" (at "' + path_huddleState + '")');
|
|
742
|
+
}
|
|
743
|
+
})();
|
|
744
|
+
if (obj_huddleState_union1_error != null) {
|
|
745
|
+
obj_huddleState_union1 = obj_huddleState_union1_error.message;
|
|
746
|
+
}
|
|
747
|
+
if (obj_huddleState_union0 && obj_huddleState_union1) {
|
|
748
|
+
let message = 'Object doesn\'t match union (at "' + path_huddleState + '")';
|
|
749
|
+
message += '\n' + obj_huddleState_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
750
|
+
message += '\n' + obj_huddleState_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
751
|
+
return new TypeError(message);
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
if (obj.huddleStateExpirationTs !== undefined) {
|
|
755
|
+
const obj_huddleStateExpirationTs = obj.huddleStateExpirationTs;
|
|
756
|
+
const path_huddleStateExpirationTs = path + '.huddleStateExpirationTs';
|
|
757
|
+
let obj_huddleStateExpirationTs_union0 = null;
|
|
758
|
+
const obj_huddleStateExpirationTs_union0_error = (() => {
|
|
759
|
+
if (typeof obj_huddleStateExpirationTs !== 'number' || (typeof obj_huddleStateExpirationTs === 'number' && Math.floor(obj_huddleStateExpirationTs) !== obj_huddleStateExpirationTs)) {
|
|
760
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_huddleStateExpirationTs + '" (at "' + path_huddleStateExpirationTs + '")');
|
|
761
|
+
}
|
|
762
|
+
})();
|
|
763
|
+
if (obj_huddleStateExpirationTs_union0_error != null) {
|
|
764
|
+
obj_huddleStateExpirationTs_union0 = obj_huddleStateExpirationTs_union0_error.message;
|
|
765
|
+
}
|
|
766
|
+
let obj_huddleStateExpirationTs_union1 = null;
|
|
767
|
+
const obj_huddleStateExpirationTs_union1_error = (() => {
|
|
768
|
+
if (obj_huddleStateExpirationTs !== null) {
|
|
769
|
+
return new TypeError('Expected "null" but received "' + typeof obj_huddleStateExpirationTs + '" (at "' + path_huddleStateExpirationTs + '")');
|
|
770
|
+
}
|
|
771
|
+
})();
|
|
772
|
+
if (obj_huddleStateExpirationTs_union1_error != null) {
|
|
773
|
+
obj_huddleStateExpirationTs_union1 = obj_huddleStateExpirationTs_union1_error.message;
|
|
774
|
+
}
|
|
775
|
+
if (obj_huddleStateExpirationTs_union0 && obj_huddleStateExpirationTs_union1) {
|
|
776
|
+
let message = 'Object doesn\'t match union (at "' + path_huddleStateExpirationTs + '")';
|
|
777
|
+
message += '\n' + obj_huddleStateExpirationTs_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
778
|
+
message += '\n' + obj_huddleStateExpirationTs_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
779
|
+
return new TypeError(message);
|
|
780
|
+
}
|
|
781
|
+
}
|
|
698
782
|
if (obj.image24 !== undefined) {
|
|
699
783
|
const obj_image24 = obj.image24;
|
|
700
784
|
const path_image24 = path + '.image24';
|
|
@@ -749,32 +833,6 @@ function validate$s(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
749
833
|
message += '\n' + obj_imageOriginal_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
750
834
|
return new TypeError(message);
|
|
751
835
|
}
|
|
752
|
-
const obj_inHuddle = obj.inHuddle;
|
|
753
|
-
const path_inHuddle = path + '.inHuddle';
|
|
754
|
-
let obj_inHuddle_union0 = null;
|
|
755
|
-
const obj_inHuddle_union0_error = (() => {
|
|
756
|
-
if (typeof obj_inHuddle !== 'boolean') {
|
|
757
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_inHuddle + '" (at "' + path_inHuddle + '")');
|
|
758
|
-
}
|
|
759
|
-
})();
|
|
760
|
-
if (obj_inHuddle_union0_error != null) {
|
|
761
|
-
obj_inHuddle_union0 = obj_inHuddle_union0_error.message;
|
|
762
|
-
}
|
|
763
|
-
let obj_inHuddle_union1 = null;
|
|
764
|
-
const obj_inHuddle_union1_error = (() => {
|
|
765
|
-
if (obj_inHuddle !== null) {
|
|
766
|
-
return new TypeError('Expected "null" but received "' + typeof obj_inHuddle + '" (at "' + path_inHuddle + '")');
|
|
767
|
-
}
|
|
768
|
-
})();
|
|
769
|
-
if (obj_inHuddle_union1_error != null) {
|
|
770
|
-
obj_inHuddle_union1 = obj_inHuddle_union1_error.message;
|
|
771
|
-
}
|
|
772
|
-
if (obj_inHuddle_union0 && obj_inHuddle_union1) {
|
|
773
|
-
let message = 'Object doesn\'t match union (at "' + path_inHuddle + '")';
|
|
774
|
-
message += '\n' + obj_inHuddle_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
775
|
-
message += '\n' + obj_inHuddle_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
776
|
-
return new TypeError(message);
|
|
777
|
-
}
|
|
778
836
|
const obj_isActive = obj.isActive;
|
|
779
837
|
const path_isActive = path + '.isActive';
|
|
780
838
|
let obj_isActive_union0 = null;
|
|
@@ -1181,6 +1239,11 @@ const select$Q = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1181
1239
|
name: 'bot',
|
|
1182
1240
|
kind: 'Scalar'
|
|
1183
1241
|
},
|
|
1242
|
+
{
|
|
1243
|
+
name: 'deleted',
|
|
1244
|
+
kind: 'Scalar',
|
|
1245
|
+
required: false
|
|
1246
|
+
},
|
|
1184
1247
|
{
|
|
1185
1248
|
name: 'displayName',
|
|
1186
1249
|
kind: 'Scalar'
|
|
@@ -1197,16 +1260,22 @@ const select$Q = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1197
1260
|
required: false
|
|
1198
1261
|
},
|
|
1199
1262
|
{
|
|
1200
|
-
name: '
|
|
1263
|
+
name: 'huddleState',
|
|
1201
1264
|
kind: 'Scalar',
|
|
1202
1265
|
required: false
|
|
1203
1266
|
},
|
|
1204
1267
|
{
|
|
1205
|
-
name: '
|
|
1206
|
-
kind: 'Scalar'
|
|
1268
|
+
name: 'huddleStateExpirationTs',
|
|
1269
|
+
kind: 'Scalar',
|
|
1270
|
+
required: false
|
|
1207
1271
|
},
|
|
1208
1272
|
{
|
|
1209
|
-
name: '
|
|
1273
|
+
name: 'image24',
|
|
1274
|
+
kind: 'Scalar',
|
|
1275
|
+
required: false
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
name: 'imageOriginal',
|
|
1210
1279
|
kind: 'Scalar'
|
|
1211
1280
|
},
|
|
1212
1281
|
{
|
|
@@ -1361,6 +1430,19 @@ function equals$s(existing, incoming) {
|
|
|
1361
1430
|
if (!(existing_slackUserId === incoming_slackUserId)) {
|
|
1362
1431
|
return false;
|
|
1363
1432
|
}
|
|
1433
|
+
const existing_deleted = existing.deleted;
|
|
1434
|
+
const incoming_deleted = incoming.deleted;
|
|
1435
|
+
// if at least one of these optionals is defined
|
|
1436
|
+
if (existing_deleted !== undefined || incoming_deleted !== undefined) {
|
|
1437
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1438
|
+
// not equal
|
|
1439
|
+
if (existing_deleted === undefined || incoming_deleted === undefined) {
|
|
1440
|
+
return false;
|
|
1441
|
+
}
|
|
1442
|
+
if (!(existing_deleted === incoming_deleted)) {
|
|
1443
|
+
return false;
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1364
1446
|
const existing_displayName = existing.displayName;
|
|
1365
1447
|
const incoming_displayName = incoming.displayName;
|
|
1366
1448
|
if (!(existing_displayName === incoming_displayName)) {
|
|
@@ -1387,6 +1469,32 @@ function equals$s(existing, incoming) {
|
|
|
1387
1469
|
return false;
|
|
1388
1470
|
}
|
|
1389
1471
|
}
|
|
1472
|
+
const existing_huddleState = existing.huddleState;
|
|
1473
|
+
const incoming_huddleState = incoming.huddleState;
|
|
1474
|
+
// if at least one of these optionals is defined
|
|
1475
|
+
if (existing_huddleState !== undefined || incoming_huddleState !== undefined) {
|
|
1476
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1477
|
+
// not equal
|
|
1478
|
+
if (existing_huddleState === undefined || incoming_huddleState === undefined) {
|
|
1479
|
+
return false;
|
|
1480
|
+
}
|
|
1481
|
+
if (!(existing_huddleState === incoming_huddleState)) {
|
|
1482
|
+
return false;
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
const existing_huddleStateExpirationTs = existing.huddleStateExpirationTs;
|
|
1486
|
+
const incoming_huddleStateExpirationTs = incoming.huddleStateExpirationTs;
|
|
1487
|
+
// if at least one of these optionals is defined
|
|
1488
|
+
if (existing_huddleStateExpirationTs !== undefined || incoming_huddleStateExpirationTs !== undefined) {
|
|
1489
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1490
|
+
// not equal
|
|
1491
|
+
if (existing_huddleStateExpirationTs === undefined || incoming_huddleStateExpirationTs === undefined) {
|
|
1492
|
+
return false;
|
|
1493
|
+
}
|
|
1494
|
+
if (!(existing_huddleStateExpirationTs === incoming_huddleStateExpirationTs)) {
|
|
1495
|
+
return false;
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1390
1498
|
const existing_image24 = existing.image24;
|
|
1391
1499
|
const incoming_image24 = incoming.image24;
|
|
1392
1500
|
// if at least one of these optionals is defined
|
|
@@ -1405,11 +1513,6 @@ function equals$s(existing, incoming) {
|
|
|
1405
1513
|
if (!(existing_imageOriginal === incoming_imageOriginal)) {
|
|
1406
1514
|
return false;
|
|
1407
1515
|
}
|
|
1408
|
-
const existing_inHuddle = existing.inHuddle;
|
|
1409
|
-
const incoming_inHuddle = incoming.inHuddle;
|
|
1410
|
-
if (!(existing_inHuddle === incoming_inHuddle)) {
|
|
1411
|
-
return false;
|
|
1412
|
-
}
|
|
1413
1516
|
const existing_isActive = existing.isActive;
|
|
1414
1517
|
const incoming_isActive = incoming.isActive;
|
|
1415
1518
|
if (!(existing_isActive === incoming_isActive)) {
|
package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { SlackBridgeEnterpriseUserInfoOutputRepresentation as SlackBridgeEnterpr
|
|
|
2
2
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
3
3
|
import { SlackBridgeEmojiOutputRepresentation as SlackBridgeEmojiOutputRepresentation_SlackBridgeEmojiOutputRepresentation } from './SlackBridgeEmojiOutputRepresentation';
|
|
4
4
|
export declare const TTL = 900000;
|
|
5
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "340b283b62f8c3f917012a6c8e120727";
|
|
6
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
7
|
export declare const RepresentationType: string;
|
|
8
8
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -37,18 +37,22 @@ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$lu
|
|
|
37
37
|
export interface SlackBridgeUserInfoOutputRepresentationNormalized {
|
|
38
38
|
/** Is this a Bot User? */
|
|
39
39
|
bot: boolean;
|
|
40
|
+
/** Is this Slack User deleted? */
|
|
41
|
+
deleted?: boolean | null;
|
|
40
42
|
/** Display Name of the Slack User */
|
|
41
43
|
displayName: string | null;
|
|
42
44
|
/** Email of the Slack User */
|
|
43
45
|
email: string | null;
|
|
44
46
|
/** The enterprise user mapping */
|
|
45
47
|
enterpriseUser?: SlackBridgeEnterpriseUserInfoOutputRepresentation_SlackBridgeEnterpriseUserInfoOutputRepresentation | null;
|
|
48
|
+
/** Huddle state of the Slack User, i.e., in_a_huddle, default_unset */
|
|
49
|
+
huddleState?: string | null;
|
|
50
|
+
/** Huddle state expiration timestamp */
|
|
51
|
+
huddleStateExpirationTs?: number | null;
|
|
46
52
|
/** 24x24 version of the Slack User image */
|
|
47
53
|
image24?: string | null;
|
|
48
54
|
/** Original version of the Slack User image */
|
|
49
55
|
imageOriginal: string | null;
|
|
50
|
-
/** Is this Slack User currently in a Huddle? */
|
|
51
|
-
inHuddle: boolean | null;
|
|
52
56
|
/** Is this Slack User currently active? */
|
|
53
57
|
isActive: boolean | null;
|
|
54
58
|
/** Is Slack User an admin? */
|
|
@@ -100,12 +104,14 @@ export interface SlackBridgeUserInfoOutputRepresentationNormalized {
|
|
|
100
104
|
*/
|
|
101
105
|
export interface SlackBridgeUserInfoOutputRepresentation {
|
|
102
106
|
bot: boolean;
|
|
107
|
+
deleted?: boolean | null;
|
|
103
108
|
displayName: string | null;
|
|
104
109
|
email: string | null;
|
|
105
110
|
enterpriseUser?: SlackBridgeEnterpriseUserInfoOutputRepresentation_SlackBridgeEnterpriseUserInfoOutputRepresentation | null;
|
|
111
|
+
huddleState?: string | null;
|
|
112
|
+
huddleStateExpirationTs?: number | null;
|
|
106
113
|
image24?: string | null;
|
|
107
114
|
imageOriginal: string | null;
|
|
108
|
-
inHuddle: boolean | null;
|
|
109
115
|
isActive: boolean | null;
|
|
110
116
|
isAdmin: boolean;
|
|
111
117
|
isAgentforceBot?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-slack-bridge",
|
|
3
|
-
"version": "1.380.0-
|
|
3
|
+
"version": "1.380.0-dev19",
|
|
4
4
|
"description": "API for bridging over to Slack from Salesforce Core",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/platform-slack-bridge.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.380.0-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.380.0-dev19"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.380.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.380.0-dev19"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -5527,7 +5527,7 @@ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5527
5527
|
}
|
|
5528
5528
|
|
|
5529
5529
|
const TTL$4 = 900000;
|
|
5530
|
-
const VERSION$e = "
|
|
5530
|
+
const VERSION$e = "340b283b62f8c3f917012a6c8e120727";
|
|
5531
5531
|
function validate$e(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
5532
5532
|
const v_error = (() => {
|
|
5533
5533
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5538,6 +5538,34 @@ function validate$e(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
5538
5538
|
if (typeof obj_bot !== 'boolean') {
|
|
5539
5539
|
return new TypeError('Expected "boolean" but received "' + typeof obj_bot + '" (at "' + path_bot + '")');
|
|
5540
5540
|
}
|
|
5541
|
+
if (obj.deleted !== undefined) {
|
|
5542
|
+
const obj_deleted = obj.deleted;
|
|
5543
|
+
const path_deleted = path + '.deleted';
|
|
5544
|
+
let obj_deleted_union0 = null;
|
|
5545
|
+
const obj_deleted_union0_error = (() => {
|
|
5546
|
+
if (typeof obj_deleted !== 'boolean') {
|
|
5547
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_deleted + '" (at "' + path_deleted + '")');
|
|
5548
|
+
}
|
|
5549
|
+
})();
|
|
5550
|
+
if (obj_deleted_union0_error != null) {
|
|
5551
|
+
obj_deleted_union0 = obj_deleted_union0_error.message;
|
|
5552
|
+
}
|
|
5553
|
+
let obj_deleted_union1 = null;
|
|
5554
|
+
const obj_deleted_union1_error = (() => {
|
|
5555
|
+
if (obj_deleted !== null) {
|
|
5556
|
+
return new TypeError('Expected "null" but received "' + typeof obj_deleted + '" (at "' + path_deleted + '")');
|
|
5557
|
+
}
|
|
5558
|
+
})();
|
|
5559
|
+
if (obj_deleted_union1_error != null) {
|
|
5560
|
+
obj_deleted_union1 = obj_deleted_union1_error.message;
|
|
5561
|
+
}
|
|
5562
|
+
if (obj_deleted_union0 && obj_deleted_union1) {
|
|
5563
|
+
let message = 'Object doesn\'t match union (at "' + path_deleted + '")';
|
|
5564
|
+
message += '\n' + obj_deleted_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5565
|
+
message += '\n' + obj_deleted_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5566
|
+
return new TypeError(message);
|
|
5567
|
+
}
|
|
5568
|
+
}
|
|
5541
5569
|
const obj_displayName = obj.displayName;
|
|
5542
5570
|
const path_displayName = path + '.displayName';
|
|
5543
5571
|
let obj_displayName_union0 = null;
|
|
@@ -5621,6 +5649,62 @@ function validate$e(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
5621
5649
|
return new TypeError(message);
|
|
5622
5650
|
}
|
|
5623
5651
|
}
|
|
5652
|
+
if (obj.huddleState !== undefined) {
|
|
5653
|
+
const obj_huddleState = obj.huddleState;
|
|
5654
|
+
const path_huddleState = path + '.huddleState';
|
|
5655
|
+
let obj_huddleState_union0 = null;
|
|
5656
|
+
const obj_huddleState_union0_error = (() => {
|
|
5657
|
+
if (typeof obj_huddleState !== 'string') {
|
|
5658
|
+
return new TypeError('Expected "string" but received "' + typeof obj_huddleState + '" (at "' + path_huddleState + '")');
|
|
5659
|
+
}
|
|
5660
|
+
})();
|
|
5661
|
+
if (obj_huddleState_union0_error != null) {
|
|
5662
|
+
obj_huddleState_union0 = obj_huddleState_union0_error.message;
|
|
5663
|
+
}
|
|
5664
|
+
let obj_huddleState_union1 = null;
|
|
5665
|
+
const obj_huddleState_union1_error = (() => {
|
|
5666
|
+
if (obj_huddleState !== null) {
|
|
5667
|
+
return new TypeError('Expected "null" but received "' + typeof obj_huddleState + '" (at "' + path_huddleState + '")');
|
|
5668
|
+
}
|
|
5669
|
+
})();
|
|
5670
|
+
if (obj_huddleState_union1_error != null) {
|
|
5671
|
+
obj_huddleState_union1 = obj_huddleState_union1_error.message;
|
|
5672
|
+
}
|
|
5673
|
+
if (obj_huddleState_union0 && obj_huddleState_union1) {
|
|
5674
|
+
let message = 'Object doesn\'t match union (at "' + path_huddleState + '")';
|
|
5675
|
+
message += '\n' + obj_huddleState_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5676
|
+
message += '\n' + obj_huddleState_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5677
|
+
return new TypeError(message);
|
|
5678
|
+
}
|
|
5679
|
+
}
|
|
5680
|
+
if (obj.huddleStateExpirationTs !== undefined) {
|
|
5681
|
+
const obj_huddleStateExpirationTs = obj.huddleStateExpirationTs;
|
|
5682
|
+
const path_huddleStateExpirationTs = path + '.huddleStateExpirationTs';
|
|
5683
|
+
let obj_huddleStateExpirationTs_union0 = null;
|
|
5684
|
+
const obj_huddleStateExpirationTs_union0_error = (() => {
|
|
5685
|
+
if (typeof obj_huddleStateExpirationTs !== 'number' || (typeof obj_huddleStateExpirationTs === 'number' && Math.floor(obj_huddleStateExpirationTs) !== obj_huddleStateExpirationTs)) {
|
|
5686
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_huddleStateExpirationTs + '" (at "' + path_huddleStateExpirationTs + '")');
|
|
5687
|
+
}
|
|
5688
|
+
})();
|
|
5689
|
+
if (obj_huddleStateExpirationTs_union0_error != null) {
|
|
5690
|
+
obj_huddleStateExpirationTs_union0 = obj_huddleStateExpirationTs_union0_error.message;
|
|
5691
|
+
}
|
|
5692
|
+
let obj_huddleStateExpirationTs_union1 = null;
|
|
5693
|
+
const obj_huddleStateExpirationTs_union1_error = (() => {
|
|
5694
|
+
if (obj_huddleStateExpirationTs !== null) {
|
|
5695
|
+
return new TypeError('Expected "null" but received "' + typeof obj_huddleStateExpirationTs + '" (at "' + path_huddleStateExpirationTs + '")');
|
|
5696
|
+
}
|
|
5697
|
+
})();
|
|
5698
|
+
if (obj_huddleStateExpirationTs_union1_error != null) {
|
|
5699
|
+
obj_huddleStateExpirationTs_union1 = obj_huddleStateExpirationTs_union1_error.message;
|
|
5700
|
+
}
|
|
5701
|
+
if (obj_huddleStateExpirationTs_union0 && obj_huddleStateExpirationTs_union1) {
|
|
5702
|
+
let message = 'Object doesn\'t match union (at "' + path_huddleStateExpirationTs + '")';
|
|
5703
|
+
message += '\n' + obj_huddleStateExpirationTs_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5704
|
+
message += '\n' + obj_huddleStateExpirationTs_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5705
|
+
return new TypeError(message);
|
|
5706
|
+
}
|
|
5707
|
+
}
|
|
5624
5708
|
if (obj.image24 !== undefined) {
|
|
5625
5709
|
const obj_image24 = obj.image24;
|
|
5626
5710
|
const path_image24 = path + '.image24';
|
|
@@ -5675,32 +5759,6 @@ function validate$e(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
5675
5759
|
message += '\n' + obj_imageOriginal_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5676
5760
|
return new TypeError(message);
|
|
5677
5761
|
}
|
|
5678
|
-
const obj_inHuddle = obj.inHuddle;
|
|
5679
|
-
const path_inHuddle = path + '.inHuddle';
|
|
5680
|
-
let obj_inHuddle_union0 = null;
|
|
5681
|
-
const obj_inHuddle_union0_error = (() => {
|
|
5682
|
-
if (typeof obj_inHuddle !== 'boolean') {
|
|
5683
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_inHuddle + '" (at "' + path_inHuddle + '")');
|
|
5684
|
-
}
|
|
5685
|
-
})();
|
|
5686
|
-
if (obj_inHuddle_union0_error != null) {
|
|
5687
|
-
obj_inHuddle_union0 = obj_inHuddle_union0_error.message;
|
|
5688
|
-
}
|
|
5689
|
-
let obj_inHuddle_union1 = null;
|
|
5690
|
-
const obj_inHuddle_union1_error = (() => {
|
|
5691
|
-
if (obj_inHuddle !== null) {
|
|
5692
|
-
return new TypeError('Expected "null" but received "' + typeof obj_inHuddle + '" (at "' + path_inHuddle + '")');
|
|
5693
|
-
}
|
|
5694
|
-
})();
|
|
5695
|
-
if (obj_inHuddle_union1_error != null) {
|
|
5696
|
-
obj_inHuddle_union1 = obj_inHuddle_union1_error.message;
|
|
5697
|
-
}
|
|
5698
|
-
if (obj_inHuddle_union0 && obj_inHuddle_union1) {
|
|
5699
|
-
let message = 'Object doesn\'t match union (at "' + path_inHuddle + '")';
|
|
5700
|
-
message += '\n' + obj_inHuddle_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5701
|
-
message += '\n' + obj_inHuddle_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5702
|
-
return new TypeError(message);
|
|
5703
|
-
}
|
|
5704
5762
|
const obj_isActive = obj.isActive;
|
|
5705
5763
|
const path_isActive = path + '.isActive';
|
|
5706
5764
|
let obj_isActive_union0 = null;
|
|
@@ -6107,6 +6165,11 @@ const select$B = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
6107
6165
|
name: 'bot',
|
|
6108
6166
|
kind: 'Scalar'
|
|
6109
6167
|
},
|
|
6168
|
+
{
|
|
6169
|
+
name: 'deleted',
|
|
6170
|
+
kind: 'Scalar',
|
|
6171
|
+
required: false
|
|
6172
|
+
},
|
|
6110
6173
|
{
|
|
6111
6174
|
name: 'displayName',
|
|
6112
6175
|
kind: 'Scalar'
|
|
@@ -6123,16 +6186,22 @@ const select$B = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
6123
6186
|
required: false
|
|
6124
6187
|
},
|
|
6125
6188
|
{
|
|
6126
|
-
name: '
|
|
6189
|
+
name: 'huddleState',
|
|
6127
6190
|
kind: 'Scalar',
|
|
6128
6191
|
required: false
|
|
6129
6192
|
},
|
|
6130
6193
|
{
|
|
6131
|
-
name: '
|
|
6132
|
-
kind: 'Scalar'
|
|
6194
|
+
name: 'huddleStateExpirationTs',
|
|
6195
|
+
kind: 'Scalar',
|
|
6196
|
+
required: false
|
|
6133
6197
|
},
|
|
6134
6198
|
{
|
|
6135
|
-
name: '
|
|
6199
|
+
name: 'image24',
|
|
6200
|
+
kind: 'Scalar',
|
|
6201
|
+
required: false
|
|
6202
|
+
},
|
|
6203
|
+
{
|
|
6204
|
+
name: 'imageOriginal',
|
|
6136
6205
|
kind: 'Scalar'
|
|
6137
6206
|
},
|
|
6138
6207
|
{
|
|
@@ -6287,6 +6356,19 @@ function equals$e(existing, incoming) {
|
|
|
6287
6356
|
if (!(existing_slackUserId === incoming_slackUserId)) {
|
|
6288
6357
|
return false;
|
|
6289
6358
|
}
|
|
6359
|
+
const existing_deleted = existing.deleted;
|
|
6360
|
+
const incoming_deleted = incoming.deleted;
|
|
6361
|
+
// if at least one of these optionals is defined
|
|
6362
|
+
if (existing_deleted !== undefined || incoming_deleted !== undefined) {
|
|
6363
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
6364
|
+
// not equal
|
|
6365
|
+
if (existing_deleted === undefined || incoming_deleted === undefined) {
|
|
6366
|
+
return false;
|
|
6367
|
+
}
|
|
6368
|
+
if (!(existing_deleted === incoming_deleted)) {
|
|
6369
|
+
return false;
|
|
6370
|
+
}
|
|
6371
|
+
}
|
|
6290
6372
|
const existing_displayName = existing.displayName;
|
|
6291
6373
|
const incoming_displayName = incoming.displayName;
|
|
6292
6374
|
if (!(existing_displayName === incoming_displayName)) {
|
|
@@ -6313,6 +6395,32 @@ function equals$e(existing, incoming) {
|
|
|
6313
6395
|
return false;
|
|
6314
6396
|
}
|
|
6315
6397
|
}
|
|
6398
|
+
const existing_huddleState = existing.huddleState;
|
|
6399
|
+
const incoming_huddleState = incoming.huddleState;
|
|
6400
|
+
// if at least one of these optionals is defined
|
|
6401
|
+
if (existing_huddleState !== undefined || incoming_huddleState !== undefined) {
|
|
6402
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
6403
|
+
// not equal
|
|
6404
|
+
if (existing_huddleState === undefined || incoming_huddleState === undefined) {
|
|
6405
|
+
return false;
|
|
6406
|
+
}
|
|
6407
|
+
if (!(existing_huddleState === incoming_huddleState)) {
|
|
6408
|
+
return false;
|
|
6409
|
+
}
|
|
6410
|
+
}
|
|
6411
|
+
const existing_huddleStateExpirationTs = existing.huddleStateExpirationTs;
|
|
6412
|
+
const incoming_huddleStateExpirationTs = incoming.huddleStateExpirationTs;
|
|
6413
|
+
// if at least one of these optionals is defined
|
|
6414
|
+
if (existing_huddleStateExpirationTs !== undefined || incoming_huddleStateExpirationTs !== undefined) {
|
|
6415
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
6416
|
+
// not equal
|
|
6417
|
+
if (existing_huddleStateExpirationTs === undefined || incoming_huddleStateExpirationTs === undefined) {
|
|
6418
|
+
return false;
|
|
6419
|
+
}
|
|
6420
|
+
if (!(existing_huddleStateExpirationTs === incoming_huddleStateExpirationTs)) {
|
|
6421
|
+
return false;
|
|
6422
|
+
}
|
|
6423
|
+
}
|
|
6316
6424
|
const existing_image24 = existing.image24;
|
|
6317
6425
|
const incoming_image24 = incoming.image24;
|
|
6318
6426
|
// if at least one of these optionals is defined
|
|
@@ -6331,11 +6439,6 @@ function equals$e(existing, incoming) {
|
|
|
6331
6439
|
if (!(existing_imageOriginal === incoming_imageOriginal)) {
|
|
6332
6440
|
return false;
|
|
6333
6441
|
}
|
|
6334
|
-
const existing_inHuddle = existing.inHuddle;
|
|
6335
|
-
const incoming_inHuddle = incoming.inHuddle;
|
|
6336
|
-
if (!(existing_inHuddle === incoming_inHuddle)) {
|
|
6337
|
-
return false;
|
|
6338
|
-
}
|
|
6339
6442
|
const existing_isActive = existing.isActive;
|
|
6340
6443
|
const incoming_isActive = incoming.isActive;
|
|
6341
6444
|
if (!(existing_isActive === incoming_isActive)) {
|
|
@@ -11793,4 +11896,4 @@ withDefaultLuvio((luvio) => {
|
|
|
11793
11896
|
});
|
|
11794
11897
|
|
|
11795
11898
|
export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getRelatedThreads, getRelatedThreads_imperative, getSlackConversation, getSlackConversationInfo, getSlackConversationInfoNotifyChange, getSlackConversationInfo_imperative, getSlackConversationInfos, getSlackConversationInfos_imperative, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMember_imperative, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackConversationMembers_imperative, getSlackConversation_imperative, getSlackDisplayLogin, getSlackDisplayLogin_imperative, getSlackEmoji, getSlackEmojiNotifyChange, getSlackEmoji_imperative, getSlackEmojis, getSlackEmojis_imperative, getSlackMessage, getSlackMessageNotifyChange, getSlackMessage_imperative, getSlackRecordChannelInfo, getSlackRecordChannelInfoNotifyChange, getSlackRecordChannelInfo_imperative, getSlackSearchConversation, getSlackSearchConversation_imperative, getSlackSearchEmoji, getSlackSearchEmoji_imperative, getSlackSearchMPIMs, getSlackSearchMPIMs_imperative, getSlackSearchUser, getSlackSearchUser_imperative, getSlackUser, getSlackUserNotifyChange, getSlackUser_imperative, openSlackConversation, patchSlackMessage, postSlackConversation, postSlackConversationMark, postSlackConversationMembers, postSlackFile, postSlackMessageReactions, postSlackRecordChannelInfos };
|
|
11796
|
-
// version: 1.380.0-
|
|
11899
|
+
// version: 1.380.0-dev19-7a60ade74d
|
package/src/raml/api.raml
CHANGED
|
@@ -930,6 +930,14 @@ types:
|
|
|
930
930
|
description: The enterprise user mapping
|
|
931
931
|
required: false
|
|
932
932
|
type: SlackBridgeEnterpriseUserInfoOutputRepresentation | nil
|
|
933
|
+
huddleState:
|
|
934
|
+
description: Huddle state of the Slack User, i.e., in_a_huddle, default_unset
|
|
935
|
+
required: false
|
|
936
|
+
type: string | nil
|
|
937
|
+
huddleStateExpirationTs:
|
|
938
|
+
description: Huddle state expiration timestamp
|
|
939
|
+
required: false
|
|
940
|
+
type: integer | nil
|
|
933
941
|
image24:
|
|
934
942
|
description: 24x24 version of the Slack User image
|
|
935
943
|
required: false
|
|
@@ -941,9 +949,6 @@ types:
|
|
|
941
949
|
description: Profile image used for this Slack user
|
|
942
950
|
required: false
|
|
943
951
|
type: string | nil
|
|
944
|
-
inHuddle:
|
|
945
|
-
description: Is this Slack User currently in a Huddle?
|
|
946
|
-
type: boolean | nil
|
|
947
952
|
isActive:
|
|
948
953
|
description: Is this Slack User currently active?
|
|
949
954
|
type: boolean | nil
|
|
@@ -1007,6 +1012,10 @@ types:
|
|
|
1007
1012
|
description: Time zone label of the Slack user, ie. Eastern Daylight Time
|
|
1008
1013
|
required: false
|
|
1009
1014
|
type: string | nil
|
|
1015
|
+
deleted:
|
|
1016
|
+
description: Is this Slack User deleted?
|
|
1017
|
+
required: false
|
|
1018
|
+
type: boolean | nil
|
|
1010
1019
|
SlackBridgeUserInfosOutputRepresentation:
|
|
1011
1020
|
description: Contains the list of Slack User Information
|
|
1012
1021
|
type: object
|