@salesforce/lds-adapters-platform-slack-bridge 1.380.0-dev18 → 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;
|
|
@@ -1211,6 +1239,11 @@ const select$Q = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1211
1239
|
name: 'bot',
|
|
1212
1240
|
kind: 'Scalar'
|
|
1213
1241
|
},
|
|
1242
|
+
{
|
|
1243
|
+
name: 'deleted',
|
|
1244
|
+
kind: 'Scalar',
|
|
1245
|
+
required: false
|
|
1246
|
+
},
|
|
1214
1247
|
{
|
|
1215
1248
|
name: 'displayName',
|
|
1216
1249
|
kind: 'Scalar'
|
|
@@ -1397,6 +1430,19 @@ function equals$s(existing, incoming) {
|
|
|
1397
1430
|
if (!(existing_slackUserId === incoming_slackUserId)) {
|
|
1398
1431
|
return false;
|
|
1399
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
|
+
}
|
|
1400
1446
|
const existing_displayName = existing.displayName;
|
|
1401
1447
|
const incoming_displayName = incoming.displayName;
|
|
1402
1448
|
if (!(existing_displayName === incoming_displayName)) {
|
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,6 +37,8 @@ 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 */
|
|
@@ -102,6 +104,7 @@ export interface SlackBridgeUserInfoOutputRepresentationNormalized {
|
|
|
102
104
|
*/
|
|
103
105
|
export interface SlackBridgeUserInfoOutputRepresentation {
|
|
104
106
|
bot: boolean;
|
|
107
|
+
deleted?: boolean | null;
|
|
105
108
|
displayName: string | null;
|
|
106
109
|
email: string | null;
|
|
107
110
|
enterpriseUser?: SlackBridgeEnterpriseUserInfoOutputRepresentation_SlackBridgeEnterpriseUserInfoOutputRepresentation | null;
|
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;
|
|
@@ -6137,6 +6165,11 @@ const select$B = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
6137
6165
|
name: 'bot',
|
|
6138
6166
|
kind: 'Scalar'
|
|
6139
6167
|
},
|
|
6168
|
+
{
|
|
6169
|
+
name: 'deleted',
|
|
6170
|
+
kind: 'Scalar',
|
|
6171
|
+
required: false
|
|
6172
|
+
},
|
|
6140
6173
|
{
|
|
6141
6174
|
name: 'displayName',
|
|
6142
6175
|
kind: 'Scalar'
|
|
@@ -6323,6 +6356,19 @@ function equals$e(existing, incoming) {
|
|
|
6323
6356
|
if (!(existing_slackUserId === incoming_slackUserId)) {
|
|
6324
6357
|
return false;
|
|
6325
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
|
+
}
|
|
6326
6372
|
const existing_displayName = existing.displayName;
|
|
6327
6373
|
const incoming_displayName = incoming.displayName;
|
|
6328
6374
|
if (!(existing_displayName === incoming_displayName)) {
|
|
@@ -11850,4 +11896,4 @@ withDefaultLuvio((luvio) => {
|
|
|
11850
11896
|
});
|
|
11851
11897
|
|
|
11852
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 };
|
|
11853
|
-
// version: 1.380.0-
|
|
11899
|
+
// version: 1.380.0-dev19-7a60ade74d
|
package/src/raml/api.raml
CHANGED
|
@@ -1012,6 +1012,10 @@ types:
|
|
|
1012
1012
|
description: Time zone label of the Slack user, ie. Eastern Daylight Time
|
|
1013
1013
|
required: false
|
|
1014
1014
|
type: string | nil
|
|
1015
|
+
deleted:
|
|
1016
|
+
description: Is this Slack User deleted?
|
|
1017
|
+
required: false
|
|
1018
|
+
type: boolean | nil
|
|
1015
1019
|
SlackBridgeUserInfosOutputRepresentation:
|
|
1016
1020
|
description: Contains the list of Slack User Information
|
|
1017
1021
|
type: object
|