@salesforce/lds-adapters-platform-slack-bridge 1.354.0-dev1 → 1.354.0-dev2
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$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
495
495
|
}
|
|
496
496
|
|
|
497
497
|
const TTL$2 = 600000;
|
|
498
|
-
const VERSION$m = "
|
|
498
|
+
const VERSION$m = "2871ae193ac5e60b5cc0d6c4111e8615";
|
|
499
499
|
function validate$m(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
500
500
|
const v_error = (() => {
|
|
501
501
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -867,8 +867,29 @@ function validate$m(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$m(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
901
922
|
}
|
|
902
923
|
const RepresentationType$h = 'SlackBridgeUserInfoOutputRepresentation';
|
|
903
924
|
function keyBuilder$C(luvio, config) {
|
|
904
|
-
return keyPrefix + '::' + RepresentationType$h + ':' + config.
|
|
925
|
+
return keyPrefix + '::' + RepresentationType$h + ':' + 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$C(luvio, keyParams);
|
|
@@ -1046,11 +1066,6 @@ function equals$m(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$m(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)) {
|
|
@@ -7599,8 +7619,7 @@ function select(luvio, params) {
|
|
|
7599
7619
|
}
|
|
7600
7620
|
function keyBuilder$1(luvio, params) {
|
|
7601
7621
|
return keyBuilder$C(luvio, {
|
|
7602
|
-
slackUserId: params.urlParams.slackUserId
|
|
7603
|
-
teamId: params.urlParams.teamId
|
|
7622
|
+
slackUserId: params.urlParams.slackUserId
|
|
7604
7623
|
});
|
|
7605
7624
|
}
|
|
7606
7625
|
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.354.0-
|
|
3
|
+
"version": "1.354.0-dev2",
|
|
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.354.0-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.354.0-dev2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.354.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.354.0-dev2"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -3323,7 +3323,7 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3323
3323
|
}
|
|
3324
3324
|
|
|
3325
3325
|
const TTL$1 = 600000;
|
|
3326
|
-
const VERSION$b = "
|
|
3326
|
+
const VERSION$b = "2871ae193ac5e60b5cc0d6c4111e8615";
|
|
3327
3327
|
function validate$b(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
3328
3328
|
const v_error = (() => {
|
|
3329
3329
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3695,8 +3695,29 @@ function validate$b(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$b(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
3729
3750
|
}
|
|
3730
3751
|
const RepresentationType$a = 'SlackBridgeUserInfoOutputRepresentation';
|
|
3731
3752
|
function keyBuilder$s(luvio, config) {
|
|
3732
|
-
return keyPrefix + '::' + RepresentationType$a + ':' + config.
|
|
3753
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + 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$s(luvio, keyParams);
|
|
@@ -3874,11 +3894,6 @@ function equals$b(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$b(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)) {
|
|
@@ -6934,8 +6954,7 @@ function select$9(luvio, params) {
|
|
|
6934
6954
|
}
|
|
6935
6955
|
function keyBuilder$3(luvio, params) {
|
|
6936
6956
|
return keyBuilder$s(luvio, {
|
|
6937
|
-
slackUserId: params.urlParams.slackUserId
|
|
6938
|
-
teamId: params.urlParams.teamId
|
|
6957
|
+
slackUserId: params.urlParams.slackUserId
|
|
6939
6958
|
});
|
|
6940
6959
|
}
|
|
6941
6960
|
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -6988,7 +7007,6 @@ function createResourceRequestFromRepresentation(representation) {
|
|
|
6988
7007
|
urlParams: {},
|
|
6989
7008
|
};
|
|
6990
7009
|
config.urlParams.slackUserId = representation.slackUserId;
|
|
6991
|
-
config.urlParams.teamId = representation.teamId;
|
|
6992
7010
|
return createResourceRequest$7(config);
|
|
6993
7011
|
}
|
|
6994
7012
|
|
|
@@ -8160,4 +8178,4 @@ withDefaultLuvio((luvio) => {
|
|
|
8160
8178
|
});
|
|
8161
8179
|
|
|
8162
8180
|
export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getRelatedThreads, getRelatedThreads_imperative, getSlackConversation, 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, getSlackSearchUser, getSlackSearchUser_imperative, getSlackUser, getSlackUserNotifyChange, getSlackUser_imperative, patchSlackMessage, postSlackConversation, postSlackConversationMark, postSlackConversationMembers, postSlackFile, postSlackMessageReactions, postSlackRecordChannelInfos };
|
|
8163
|
-
// version: 1.354.0-
|
|
8181
|
+
// version: 1.354.0-dev2-493c24af5a
|
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):
|
|
@@ -161,7 +160,6 @@ types:
|
|
|
161
160
|
name: getSlackUser
|
|
162
161
|
(luvio.key):
|
|
163
162
|
slackUserId: urlParams.slackUserId
|
|
164
|
-
teamId: urlParams.teamId
|
|
165
163
|
/related_threads/entity/{entityId}:
|
|
166
164
|
get:
|
|
167
165
|
(luvio.adapter):
|