@salesforce/lds-adapters-platform-slack-bridge 1.354.0 → 1.356.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -495,7 +495,7 @@ function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
495
495
|
}
|
|
496
496
|
|
|
497
497
|
const TTL$1 = 600000;
|
|
498
|
-
const VERSION$k = "
|
|
498
|
+
const VERSION$k = "2871ae193ac5e60b5cc0d6c4111e8615";
|
|
499
499
|
function validate$k(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
500
500
|
const v_error = (() => {
|
|
501
501
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -867,8 +867,29 @@ function validate$k(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
867
867
|
}
|
|
868
868
|
const obj_teamId = obj.teamId;
|
|
869
869
|
const path_teamId = path + '.teamId';
|
|
870
|
-
|
|
871
|
-
|
|
870
|
+
let obj_teamId_union0 = null;
|
|
871
|
+
const obj_teamId_union0_error = (() => {
|
|
872
|
+
if (typeof obj_teamId !== 'string') {
|
|
873
|
+
return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
|
|
874
|
+
}
|
|
875
|
+
})();
|
|
876
|
+
if (obj_teamId_union0_error != null) {
|
|
877
|
+
obj_teamId_union0 = obj_teamId_union0_error.message;
|
|
878
|
+
}
|
|
879
|
+
let obj_teamId_union1 = null;
|
|
880
|
+
const obj_teamId_union1_error = (() => {
|
|
881
|
+
if (obj_teamId !== null) {
|
|
882
|
+
return new TypeError('Expected "null" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
|
|
883
|
+
}
|
|
884
|
+
})();
|
|
885
|
+
if (obj_teamId_union1_error != null) {
|
|
886
|
+
obj_teamId_union1 = obj_teamId_union1_error.message;
|
|
887
|
+
}
|
|
888
|
+
if (obj_teamId_union0 && obj_teamId_union1) {
|
|
889
|
+
let message = 'Object doesn\'t match union (at "' + path_teamId + '")';
|
|
890
|
+
message += '\n' + obj_teamId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
891
|
+
message += '\n' + obj_teamId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
892
|
+
return new TypeError(message);
|
|
872
893
|
}
|
|
873
894
|
const obj_title = obj.title;
|
|
874
895
|
const path_title = path + '.title';
|
|
@@ -901,11 +922,10 @@ function validate$k(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
901
922
|
}
|
|
902
923
|
const RepresentationType$g = 'SlackBridgeUserInfoOutputRepresentation';
|
|
903
924
|
function keyBuilder$A(luvio, config) {
|
|
904
|
-
return keyPrefix + '::' + RepresentationType$g + ':' + config.
|
|
925
|
+
return keyPrefix + '::' + RepresentationType$g + ':' + config.slackUserId;
|
|
905
926
|
}
|
|
906
927
|
function keyBuilderFromType$9(luvio, object) {
|
|
907
928
|
const keyParams = {
|
|
908
|
-
teamId: object.teamId,
|
|
909
929
|
slackUserId: object.slackUserId
|
|
910
930
|
};
|
|
911
931
|
return keyBuilder$A(luvio, keyParams);
|
|
@@ -1046,11 +1066,6 @@ function equals$k(existing, incoming) {
|
|
|
1046
1066
|
if (!(existing_slackUserId === incoming_slackUserId)) {
|
|
1047
1067
|
return false;
|
|
1048
1068
|
}
|
|
1049
|
-
const existing_teamId = existing.teamId;
|
|
1050
|
-
const incoming_teamId = incoming.teamId;
|
|
1051
|
-
if (!(existing_teamId === incoming_teamId)) {
|
|
1052
|
-
return false;
|
|
1053
|
-
}
|
|
1054
1069
|
const existing_displayName = existing.displayName;
|
|
1055
1070
|
const incoming_displayName = incoming.displayName;
|
|
1056
1071
|
if (!(existing_displayName === incoming_displayName)) {
|
|
@@ -1137,6 +1152,11 @@ function equals$k(existing, incoming) {
|
|
|
1137
1152
|
if (!(existing_statusMessage === incoming_statusMessage)) {
|
|
1138
1153
|
return false;
|
|
1139
1154
|
}
|
|
1155
|
+
const existing_teamId = existing.teamId;
|
|
1156
|
+
const incoming_teamId = incoming.teamId;
|
|
1157
|
+
if (!(existing_teamId === incoming_teamId)) {
|
|
1158
|
+
return false;
|
|
1159
|
+
}
|
|
1140
1160
|
const existing_title = existing.title;
|
|
1141
1161
|
const incoming_title = incoming.title;
|
|
1142
1162
|
if (!(existing_title === incoming_title)) {
|
|
@@ -7305,8 +7325,7 @@ function select(luvio, params) {
|
|
|
7305
7325
|
}
|
|
7306
7326
|
function keyBuilder$1(luvio, params) {
|
|
7307
7327
|
return keyBuilder$A(luvio, {
|
|
7308
|
-
slackUserId: params.urlParams.slackUserId
|
|
7309
|
-
teamId: params.urlParams.teamId
|
|
7328
|
+
slackUserId: params.urlParams.slackUserId
|
|
7310
7329
|
});
|
|
7311
7330
|
}
|
|
7312
7331
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
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';
|
|
2
2
|
import { SlackBridgeEmojiOutputRepresentation as SlackBridgeEmojiOutputRepresentation_SlackBridgeEmojiOutputRepresentation } from './SlackBridgeEmojiOutputRepresentation';
|
|
3
3
|
export declare const TTL = 600000;
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "2871ae193ac5e60b5cc0d6c4111e8615";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
|
7
7
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
8
|
-
teamId: string;
|
|
9
8
|
slackUserId: string;
|
|
10
9
|
}
|
|
11
10
|
export type SlackBridgeUserInfoOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
@@ -32,7 +31,6 @@ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$lu
|
|
|
32
31
|
* Contains the details of Slack User
|
|
33
32
|
*
|
|
34
33
|
* Keys:
|
|
35
|
-
* teamId (string): teamId
|
|
36
34
|
* slackUserId (string): slackUserId
|
|
37
35
|
*/
|
|
38
36
|
export interface SlackBridgeUserInfoOutputRepresentationNormalized {
|
|
@@ -71,7 +69,7 @@ export interface SlackBridgeUserInfoOutputRepresentationNormalized {
|
|
|
71
69
|
/** Status message of the Slack User */
|
|
72
70
|
statusMessage: string | null;
|
|
73
71
|
/** Slack Workspace Id */
|
|
74
|
-
teamId: string;
|
|
72
|
+
teamId: string | null;
|
|
75
73
|
/** Title of the Slack User */
|
|
76
74
|
title: string | null;
|
|
77
75
|
}
|
|
@@ -79,7 +77,6 @@ export interface SlackBridgeUserInfoOutputRepresentationNormalized {
|
|
|
79
77
|
* Contains the details of Slack User
|
|
80
78
|
*
|
|
81
79
|
* Keys:
|
|
82
|
-
* teamId (string): teamId
|
|
83
80
|
* slackUserId (string): slackUserId
|
|
84
81
|
*/
|
|
85
82
|
export interface SlackBridgeUserInfoOutputRepresentation {
|
|
@@ -100,6 +97,6 @@ export interface SlackBridgeUserInfoOutputRepresentation {
|
|
|
100
97
|
slackUserId: string;
|
|
101
98
|
statusEmoji: SlackBridgeEmojiOutputRepresentation_SlackBridgeEmojiOutputRepresentation | null;
|
|
102
99
|
statusMessage: string | null;
|
|
103
|
-
teamId: string;
|
|
100
|
+
teamId: string | null;
|
|
104
101
|
title: string | null;
|
|
105
102
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-slack-bridge",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.356.0",
|
|
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.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.356.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.356.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -3323,7 +3323,7 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3323
3323
|
}
|
|
3324
3324
|
|
|
3325
3325
|
const TTL = 600000;
|
|
3326
|
-
const VERSION$9 = "
|
|
3326
|
+
const VERSION$9 = "2871ae193ac5e60b5cc0d6c4111e8615";
|
|
3327
3327
|
function validate$9(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
3328
3328
|
const v_error = (() => {
|
|
3329
3329
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3695,8 +3695,29 @@ function validate$9(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
3695
3695
|
}
|
|
3696
3696
|
const obj_teamId = obj.teamId;
|
|
3697
3697
|
const path_teamId = path + '.teamId';
|
|
3698
|
-
|
|
3699
|
-
|
|
3698
|
+
let obj_teamId_union0 = null;
|
|
3699
|
+
const obj_teamId_union0_error = (() => {
|
|
3700
|
+
if (typeof obj_teamId !== 'string') {
|
|
3701
|
+
return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
|
|
3702
|
+
}
|
|
3703
|
+
})();
|
|
3704
|
+
if (obj_teamId_union0_error != null) {
|
|
3705
|
+
obj_teamId_union0 = obj_teamId_union0_error.message;
|
|
3706
|
+
}
|
|
3707
|
+
let obj_teamId_union1 = null;
|
|
3708
|
+
const obj_teamId_union1_error = (() => {
|
|
3709
|
+
if (obj_teamId !== null) {
|
|
3710
|
+
return new TypeError('Expected "null" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
|
|
3711
|
+
}
|
|
3712
|
+
})();
|
|
3713
|
+
if (obj_teamId_union1_error != null) {
|
|
3714
|
+
obj_teamId_union1 = obj_teamId_union1_error.message;
|
|
3715
|
+
}
|
|
3716
|
+
if (obj_teamId_union0 && obj_teamId_union1) {
|
|
3717
|
+
let message = 'Object doesn\'t match union (at "' + path_teamId + '")';
|
|
3718
|
+
message += '\n' + obj_teamId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3719
|
+
message += '\n' + obj_teamId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3720
|
+
return new TypeError(message);
|
|
3700
3721
|
}
|
|
3701
3722
|
const obj_title = obj.title;
|
|
3702
3723
|
const path_title = path + '.title';
|
|
@@ -3729,11 +3750,10 @@ function validate$9(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
3729
3750
|
}
|
|
3730
3751
|
const RepresentationType$9 = 'SlackBridgeUserInfoOutputRepresentation';
|
|
3731
3752
|
function keyBuilder$q(luvio, config) {
|
|
3732
|
-
return keyPrefix + '::' + RepresentationType$9 + ':' + config.
|
|
3753
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.slackUserId;
|
|
3733
3754
|
}
|
|
3734
3755
|
function keyBuilderFromType$4(luvio, object) {
|
|
3735
3756
|
const keyParams = {
|
|
3736
|
-
teamId: object.teamId,
|
|
3737
3757
|
slackUserId: object.slackUserId
|
|
3738
3758
|
};
|
|
3739
3759
|
return keyBuilder$q(luvio, keyParams);
|
|
@@ -3874,11 +3894,6 @@ function equals$9(existing, incoming) {
|
|
|
3874
3894
|
if (!(existing_slackUserId === incoming_slackUserId)) {
|
|
3875
3895
|
return false;
|
|
3876
3896
|
}
|
|
3877
|
-
const existing_teamId = existing.teamId;
|
|
3878
|
-
const incoming_teamId = incoming.teamId;
|
|
3879
|
-
if (!(existing_teamId === incoming_teamId)) {
|
|
3880
|
-
return false;
|
|
3881
|
-
}
|
|
3882
3897
|
const existing_displayName = existing.displayName;
|
|
3883
3898
|
const incoming_displayName = incoming.displayName;
|
|
3884
3899
|
if (!(existing_displayName === incoming_displayName)) {
|
|
@@ -3965,6 +3980,11 @@ function equals$9(existing, incoming) {
|
|
|
3965
3980
|
if (!(existing_statusMessage === incoming_statusMessage)) {
|
|
3966
3981
|
return false;
|
|
3967
3982
|
}
|
|
3983
|
+
const existing_teamId = existing.teamId;
|
|
3984
|
+
const incoming_teamId = incoming.teamId;
|
|
3985
|
+
if (!(existing_teamId === incoming_teamId)) {
|
|
3986
|
+
return false;
|
|
3987
|
+
}
|
|
3968
3988
|
const existing_title = existing.title;
|
|
3969
3989
|
const incoming_title = incoming.title;
|
|
3970
3990
|
if (!(existing_title === incoming_title)) {
|
|
@@ -6640,8 +6660,7 @@ function select$9(luvio, params) {
|
|
|
6640
6660
|
}
|
|
6641
6661
|
function keyBuilder$3(luvio, params) {
|
|
6642
6662
|
return keyBuilder$q(luvio, {
|
|
6643
|
-
slackUserId: params.urlParams.slackUserId
|
|
6644
|
-
teamId: params.urlParams.teamId
|
|
6663
|
+
slackUserId: params.urlParams.slackUserId
|
|
6645
6664
|
});
|
|
6646
6665
|
}
|
|
6647
6666
|
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -6694,7 +6713,6 @@ function createResourceRequestFromRepresentation(representation) {
|
|
|
6694
6713
|
urlParams: {},
|
|
6695
6714
|
};
|
|
6696
6715
|
config.urlParams.slackUserId = representation.slackUserId;
|
|
6697
|
-
config.urlParams.teamId = representation.teamId;
|
|
6698
6716
|
return createResourceRequest$7(config);
|
|
6699
6717
|
}
|
|
6700
6718
|
|
|
@@ -7854,4 +7872,4 @@ withDefaultLuvio((luvio) => {
|
|
|
7854
7872
|
});
|
|
7855
7873
|
|
|
7856
7874
|
export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getRelatedThreads, getRelatedThreads_imperative, getSlackConversation, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMember_imperative, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackConversationMembers_imperative, getSlackConversation_imperative, getSlackEmoji, getSlackEmojiNotifyChange, getSlackEmoji_imperative, getSlackEmojis, getSlackEmojis_imperative, getSlackMessage, getSlackMessageNotifyChange, getSlackMessage_imperative, getSlackRecordChannelInfo, getSlackRecordChannelInfoNotifyChange, getSlackRecordChannelInfo_imperative, getSlackSearchConversation, getSlackSearchConversation_imperative, getSlackSearchEmoji, getSlackSearchEmoji_imperative, getSlackSearchUser, getSlackSearchUser_imperative, getSlackUser, getSlackUserNotifyChange, getSlackUser_imperative, patchSlackMessage, postSlackConversation, postSlackConversationMark, postSlackConversationMembers, postSlackFile, postSlackMessageReactions, postSlackRecordChannelInfos };
|
|
7857
|
-
// version: 1.
|
|
7875
|
+
// version: 1.356.0-d412b8de3d
|
package/src/raml/api.raml
CHANGED
package/src/raml/luvio.raml
CHANGED
|
@@ -14,7 +14,6 @@ types:
|
|
|
14
14
|
SlackBridgeUserInfoOutputRepresentation:
|
|
15
15
|
(luvio.ttl): 600000
|
|
16
16
|
(luvio.key):
|
|
17
|
-
teamId: teamId
|
|
18
17
|
slackUserId: slackUserId
|
|
19
18
|
SlackBridgePostMessageOutputRepresentation:
|
|
20
19
|
(luvio.key):
|
|
@@ -157,7 +156,6 @@ types:
|
|
|
157
156
|
name: getSlackUser
|
|
158
157
|
(luvio.key):
|
|
159
158
|
slackUserId: urlParams.slackUserId
|
|
160
|
-
teamId: urlParams.teamId
|
|
161
159
|
/related_threads/entity/{entityId}:
|
|
162
160
|
get:
|
|
163
161
|
(luvio.adapter):
|