@salesforce/lds-adapters-platform-slack-bridge 1.354.0-dev1 → 1.354.0-dev3
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.
- package/dist/es/es2018/platform-slack-bridge.js +1211 -786
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversationInfo.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversationInfos.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +6 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamChannelsByChannelIdAndTeamId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamChannelsByTeamId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfoOutputRepresentation.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationOutputRepresentation.d.ts +12 -1
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts +4 -7
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfosOutputRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +1003 -512
- package/src/raml/api.raml +56 -1
- package/src/raml/luvio.raml +12 -3
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$f, typeCheckConfig as typeCheckConfig$p, StoreKeyMap, createResourceParams as createResourceParams$p } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -199,7 +199,7 @@ function validate$o(obj, path = 'SlackBridgeEmojiValueOutputRepresentation') {
|
|
|
199
199
|
})();
|
|
200
200
|
return v_error === undefined ? null : v_error;
|
|
201
201
|
}
|
|
202
|
-
const select$
|
|
202
|
+
const select$K = function SlackBridgeEmojiValueOutputRepresentationSelect() {
|
|
203
203
|
return {
|
|
204
204
|
kind: 'Fragment',
|
|
205
205
|
version: VERSION$o,
|
|
@@ -239,7 +239,7 @@ function equals$o(existing, incoming) {
|
|
|
239
239
|
return true;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
const TTL$
|
|
242
|
+
const TTL$4 = 2592000000;
|
|
243
243
|
const VERSION$n = "a0e1530372a57d61a1264218124bbb5c";
|
|
244
244
|
function validate$n(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
245
245
|
const v_error = (() => {
|
|
@@ -388,20 +388,20 @@ function validate$n(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
|
388
388
|
return v_error === undefined ? null : v_error;
|
|
389
389
|
}
|
|
390
390
|
const RepresentationType$i = 'SlackBridgeEmojiOutputRepresentation';
|
|
391
|
-
function keyBuilder$
|
|
391
|
+
function keyBuilder$H(luvio, config) {
|
|
392
392
|
return keyPrefix + '::' + RepresentationType$i + ':' + config.name;
|
|
393
393
|
}
|
|
394
394
|
function keyBuilderFromType$a(luvio, object) {
|
|
395
395
|
const keyParams = {
|
|
396
396
|
name: object.name
|
|
397
397
|
};
|
|
398
|
-
return keyBuilder$
|
|
398
|
+
return keyBuilder$H(luvio, keyParams);
|
|
399
399
|
}
|
|
400
400
|
function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
401
401
|
return input;
|
|
402
402
|
}
|
|
403
|
-
const select$
|
|
404
|
-
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$
|
|
403
|
+
const select$J = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
404
|
+
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$K();
|
|
405
405
|
return {
|
|
406
406
|
kind: 'Fragment',
|
|
407
407
|
version: VERSION$n,
|
|
@@ -480,7 +480,7 @@ const ingest$i = function SlackBridgeEmojiOutputRepresentationIngest(input, path
|
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
const key = keyBuilderFromType$a(luvio, input);
|
|
483
|
-
const ttlToUse = TTL$
|
|
483
|
+
const ttlToUse = TTL$4;
|
|
484
484
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "SlackBridge", VERSION$n, RepresentationType$i, equals$n);
|
|
485
485
|
return createLink(key);
|
|
486
486
|
};
|
|
@@ -494,8 +494,8 @@ function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
494
494
|
});
|
|
495
495
|
}
|
|
496
496
|
|
|
497
|
-
const TTL$
|
|
498
|
-
const VERSION$m = "
|
|
497
|
+
const TTL$3 = 900000;
|
|
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';
|
|
@@ -900,15 +921,14 @@ function validate$m(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
900
921
|
return v_error === undefined ? null : v_error;
|
|
901
922
|
}
|
|
902
923
|
const RepresentationType$h = 'SlackBridgeUserInfoOutputRepresentation';
|
|
903
|
-
function keyBuilder$
|
|
904
|
-
return keyPrefix + '::' + RepresentationType$h + ':' + config.
|
|
924
|
+
function keyBuilder$G(luvio, 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
|
-
return keyBuilder$
|
|
931
|
+
return keyBuilder$G(luvio, keyParams);
|
|
912
932
|
}
|
|
913
933
|
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
914
934
|
const input_statusEmoji = input.statusEmoji;
|
|
@@ -927,7 +947,7 @@ function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
|
927
947
|
}
|
|
928
948
|
return input;
|
|
929
949
|
}
|
|
930
|
-
const select$
|
|
950
|
+
const select$I = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
931
951
|
return {
|
|
932
952
|
kind: 'Fragment',
|
|
933
953
|
version: VERSION$m,
|
|
@@ -1000,7 +1020,7 @@ const select$G = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1000
1020
|
name: 'statusEmoji',
|
|
1001
1021
|
kind: 'Link',
|
|
1002
1022
|
nullable: true,
|
|
1003
|
-
fragment: select$
|
|
1023
|
+
fragment: select$J()
|
|
1004
1024
|
},
|
|
1005
1025
|
{
|
|
1006
1026
|
name: 'statusMessage',
|
|
@@ -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)) {
|
|
@@ -1152,7 +1172,7 @@ const ingest$h = function SlackBridgeUserInfoOutputRepresentationIngest(input, p
|
|
|
1152
1172
|
}
|
|
1153
1173
|
}
|
|
1154
1174
|
const key = keyBuilderFromType$9(luvio, input);
|
|
1155
|
-
const ttlToUse = TTL$
|
|
1175
|
+
const ttlToUse = TTL$3;
|
|
1156
1176
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "SlackBridge", VERSION$m, RepresentationType$h, equals$m);
|
|
1157
1177
|
return createLink(key);
|
|
1158
1178
|
};
|
|
@@ -1169,6 +1189,7 @@ function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1169
1189
|
}
|
|
1170
1190
|
}
|
|
1171
1191
|
|
|
1192
|
+
const TTL$2 = 900000;
|
|
1172
1193
|
const VERSION$l = "252fe3a6509a770a876e36552ad8dd06";
|
|
1173
1194
|
function validate$l(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
|
|
1174
1195
|
const v_error = (() => {
|
|
@@ -1508,19 +1529,19 @@ function validate$l(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1508
1529
|
return v_error === undefined ? null : v_error;
|
|
1509
1530
|
}
|
|
1510
1531
|
const RepresentationType$g = 'SlackBridgeConversationInfoOutputRepresentation';
|
|
1511
|
-
function keyBuilder$
|
|
1532
|
+
function keyBuilder$F(luvio, config) {
|
|
1512
1533
|
return keyPrefix + '::' + RepresentationType$g + ':' + config.id;
|
|
1513
1534
|
}
|
|
1514
1535
|
function keyBuilderFromType$8(luvio, object) {
|
|
1515
1536
|
const keyParams = {
|
|
1516
1537
|
id: object.id
|
|
1517
1538
|
};
|
|
1518
|
-
return keyBuilder$
|
|
1539
|
+
return keyBuilder$F(luvio, keyParams);
|
|
1519
1540
|
}
|
|
1520
1541
|
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
1521
1542
|
return input;
|
|
1522
1543
|
}
|
|
1523
|
-
const select$
|
|
1544
|
+
const select$H = function SlackBridgeConversationInfoOutputRepresentationSelect() {
|
|
1524
1545
|
return {
|
|
1525
1546
|
kind: 'Fragment',
|
|
1526
1547
|
version: VERSION$l,
|
|
@@ -1684,7 +1705,7 @@ const ingest$g = function SlackBridgeConversationInfoOutputRepresentationIngest(
|
|
|
1684
1705
|
}
|
|
1685
1706
|
}
|
|
1686
1707
|
const key = keyBuilderFromType$8(luvio, input);
|
|
1687
|
-
const ttlToUse =
|
|
1708
|
+
const ttlToUse = TTL$2;
|
|
1688
1709
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SlackBridge", VERSION$l, RepresentationType$g, equals$l);
|
|
1689
1710
|
return createLink(key);
|
|
1690
1711
|
};
|
|
@@ -1776,7 +1797,7 @@ function validate$k(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
|
1776
1797
|
})();
|
|
1777
1798
|
return v_error === undefined ? null : v_error;
|
|
1778
1799
|
}
|
|
1779
|
-
const select$
|
|
1800
|
+
const select$G = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
1780
1801
|
return {
|
|
1781
1802
|
kind: 'Fragment',
|
|
1782
1803
|
version: VERSION$k,
|
|
@@ -1850,7 +1871,7 @@ function validate$j(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
|
1850
1871
|
})();
|
|
1851
1872
|
return v_error === undefined ? null : v_error;
|
|
1852
1873
|
}
|
|
1853
|
-
const select$
|
|
1874
|
+
const select$F = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
1854
1875
|
return {
|
|
1855
1876
|
kind: 'Fragment',
|
|
1856
1877
|
version: VERSION$j,
|
|
@@ -1965,8 +1986,8 @@ function validate$i(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
1965
1986
|
})();
|
|
1966
1987
|
return v_error === undefined ? null : v_error;
|
|
1967
1988
|
}
|
|
1968
|
-
const select$
|
|
1969
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
1989
|
+
const select$E = function SlackBridgeContentVersionOutputRepresentationSelect() {
|
|
1990
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$F();
|
|
1970
1991
|
return {
|
|
1971
1992
|
kind: 'Fragment',
|
|
1972
1993
|
version: VERSION$i,
|
|
@@ -2078,9 +2099,9 @@ function validate$h(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
2078
2099
|
})();
|
|
2079
2100
|
return v_error === undefined ? null : v_error;
|
|
2080
2101
|
}
|
|
2081
|
-
const select$
|
|
2082
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
2083
|
-
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$
|
|
2102
|
+
const select$D = function SlackBridgeContentDocumentOutputRepresentationSelect() {
|
|
2103
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$F();
|
|
2104
|
+
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$E();
|
|
2084
2105
|
return {
|
|
2085
2106
|
kind: 'Fragment',
|
|
2086
2107
|
version: VERSION$h,
|
|
@@ -2313,20 +2334,20 @@ function validate$g(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
2313
2334
|
return v_error === undefined ? null : v_error;
|
|
2314
2335
|
}
|
|
2315
2336
|
const RepresentationType$f = 'SlackBridgeFileOutputRepresentation';
|
|
2316
|
-
function keyBuilder$
|
|
2337
|
+
function keyBuilder$E(luvio, config) {
|
|
2317
2338
|
return keyPrefix + '::' + RepresentationType$f + ':' + (config.uniqueKey === null ? '' : config.uniqueKey);
|
|
2318
2339
|
}
|
|
2319
2340
|
function keyBuilderFromType$7(luvio, object) {
|
|
2320
2341
|
const keyParams = {
|
|
2321
2342
|
uniqueKey: object.uniqueKey
|
|
2322
2343
|
};
|
|
2323
|
-
return keyBuilder$
|
|
2344
|
+
return keyBuilder$E(luvio, keyParams);
|
|
2324
2345
|
}
|
|
2325
2346
|
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
2326
2347
|
return input;
|
|
2327
2348
|
}
|
|
2328
|
-
const select$
|
|
2329
|
-
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$
|
|
2349
|
+
const select$C = function SlackBridgeFileOutputRepresentationSelect() {
|
|
2350
|
+
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$D();
|
|
2330
2351
|
return {
|
|
2331
2352
|
kind: 'Fragment',
|
|
2332
2353
|
version: VERSION$g,
|
|
@@ -2859,8 +2880,8 @@ function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
|
2859
2880
|
}
|
|
2860
2881
|
return input;
|
|
2861
2882
|
}
|
|
2862
|
-
const select$
|
|
2863
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
2883
|
+
const select$B = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
2884
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$G();
|
|
2864
2885
|
return {
|
|
2865
2886
|
kind: 'Fragment',
|
|
2866
2887
|
version: VERSION$f,
|
|
@@ -2884,7 +2905,7 @@ const select$z = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
2884
2905
|
name: 'files',
|
|
2885
2906
|
kind: 'Link',
|
|
2886
2907
|
plural: true,
|
|
2887
|
-
fragment: select$
|
|
2908
|
+
fragment: select$C()
|
|
2888
2909
|
},
|
|
2889
2910
|
{
|
|
2890
2911
|
name: 'includesCustomEmoji',
|
|
@@ -3192,7 +3213,7 @@ function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
|
3192
3213
|
}
|
|
3193
3214
|
return input;
|
|
3194
3215
|
}
|
|
3195
|
-
const select$
|
|
3216
|
+
const select$A = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
|
|
3196
3217
|
return {
|
|
3197
3218
|
kind: 'Fragment',
|
|
3198
3219
|
version: VERSION$e,
|
|
@@ -3206,7 +3227,7 @@ const select$y = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
3206
3227
|
name: 'messages',
|
|
3207
3228
|
kind: 'Link',
|
|
3208
3229
|
plural: true,
|
|
3209
|
-
fragment: select$
|
|
3230
|
+
fragment: select$B()
|
|
3210
3231
|
},
|
|
3211
3232
|
{
|
|
3212
3233
|
name: 'nextCursor',
|
|
@@ -3264,7 +3285,7 @@ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3264
3285
|
}
|
|
3265
3286
|
}
|
|
3266
3287
|
|
|
3267
|
-
const VERSION$d = "
|
|
3288
|
+
const VERSION$d = "1119f2c416d047eefd8303c5a2d590ae";
|
|
3268
3289
|
function validate$d(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
3269
3290
|
const v_error = (() => {
|
|
3270
3291
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3332,6 +3353,30 @@ function validate$d(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
|
3332
3353
|
message += '\n' + obj_conversationInfo_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3333
3354
|
return new TypeError(message);
|
|
3334
3355
|
}
|
|
3356
|
+
const obj_conversationInfos = obj.conversationInfos;
|
|
3357
|
+
const path_conversationInfos = path + '.conversationInfos';
|
|
3358
|
+
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
3359
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
3360
|
+
}
|
|
3361
|
+
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
3362
|
+
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
3363
|
+
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
3364
|
+
if (typeof obj_conversationInfos_item !== 'object') {
|
|
3365
|
+
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
3366
|
+
}
|
|
3367
|
+
}
|
|
3368
|
+
const obj_emojis = obj.emojis;
|
|
3369
|
+
const path_emojis = path + '.emojis';
|
|
3370
|
+
if (!ArrayIsArray(obj_emojis)) {
|
|
3371
|
+
return new TypeError('Expected "array" but received "' + typeof obj_emojis + '" (at "' + path_emojis + '")');
|
|
3372
|
+
}
|
|
3373
|
+
for (let i = 0; i < obj_emojis.length; i++) {
|
|
3374
|
+
const obj_emojis_item = obj_emojis[i];
|
|
3375
|
+
const path_emojis_item = path_emojis + '[' + i + ']';
|
|
3376
|
+
if (typeof obj_emojis_item !== 'object') {
|
|
3377
|
+
return new TypeError('Expected "object" but received "' + typeof obj_emojis_item + '" (at "' + path_emojis_item + '")');
|
|
3378
|
+
}
|
|
3379
|
+
}
|
|
3335
3380
|
const obj_history = obj.history;
|
|
3336
3381
|
const path_history = path + '.history';
|
|
3337
3382
|
if (typeof obj_history !== 'object') {
|
|
@@ -3439,6 +3484,38 @@ function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
|
3439
3484
|
ttl: path.ttl
|
|
3440
3485
|
}, luvio, store, timestamp);
|
|
3441
3486
|
}
|
|
3487
|
+
const input_conversationInfos = input.conversationInfos;
|
|
3488
|
+
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
3489
|
+
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
3490
|
+
const input_conversationInfos_item = input_conversationInfos[i];
|
|
3491
|
+
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
3492
|
+
input_conversationInfos[i] = ingest$g(input_conversationInfos_item, {
|
|
3493
|
+
fullPath: input_conversationInfos_item_id,
|
|
3494
|
+
propertyName: i,
|
|
3495
|
+
parent: {
|
|
3496
|
+
data: input,
|
|
3497
|
+
key: path.fullPath,
|
|
3498
|
+
existing: existing,
|
|
3499
|
+
},
|
|
3500
|
+
ttl: path.ttl
|
|
3501
|
+
}, luvio, store, timestamp);
|
|
3502
|
+
}
|
|
3503
|
+
const input_emojis = input.emojis;
|
|
3504
|
+
const input_emojis_id = path.fullPath + '__emojis';
|
|
3505
|
+
for (let i = 0; i < input_emojis.length; i++) {
|
|
3506
|
+
const input_emojis_item = input_emojis[i];
|
|
3507
|
+
let input_emojis_item_id = input_emojis_id + '__' + i;
|
|
3508
|
+
input_emojis[i] = ingest$i(input_emojis_item, {
|
|
3509
|
+
fullPath: input_emojis_item_id,
|
|
3510
|
+
propertyName: i,
|
|
3511
|
+
parent: {
|
|
3512
|
+
data: input,
|
|
3513
|
+
key: path.fullPath,
|
|
3514
|
+
existing: existing,
|
|
3515
|
+
},
|
|
3516
|
+
ttl: path.ttl
|
|
3517
|
+
}, luvio, store, timestamp);
|
|
3518
|
+
}
|
|
3442
3519
|
const input_history = input.history;
|
|
3443
3520
|
const input_history_id = path.fullPath + '__history';
|
|
3444
3521
|
input.history = ingest$d(input_history, {
|
|
@@ -3469,7 +3546,7 @@ function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
|
3469
3546
|
}
|
|
3470
3547
|
return input;
|
|
3471
3548
|
}
|
|
3472
|
-
const select$
|
|
3549
|
+
const select$z = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
3473
3550
|
return {
|
|
3474
3551
|
kind: 'Fragment',
|
|
3475
3552
|
version: VERSION$d,
|
|
@@ -3487,18 +3564,30 @@ const select$x = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3487
3564
|
name: 'contextUserInfo',
|
|
3488
3565
|
kind: 'Link',
|
|
3489
3566
|
nullable: true,
|
|
3490
|
-
fragment: select$
|
|
3567
|
+
fragment: select$I()
|
|
3491
3568
|
},
|
|
3492
3569
|
{
|
|
3493
3570
|
name: 'conversationInfo',
|
|
3494
3571
|
kind: 'Link',
|
|
3495
3572
|
nullable: true,
|
|
3496
|
-
fragment: select$
|
|
3573
|
+
fragment: select$H()
|
|
3574
|
+
},
|
|
3575
|
+
{
|
|
3576
|
+
name: 'conversationInfos',
|
|
3577
|
+
kind: 'Link',
|
|
3578
|
+
plural: true,
|
|
3579
|
+
fragment: select$H()
|
|
3580
|
+
},
|
|
3581
|
+
{
|
|
3582
|
+
name: 'emojis',
|
|
3583
|
+
kind: 'Link',
|
|
3584
|
+
plural: true,
|
|
3585
|
+
fragment: select$J()
|
|
3497
3586
|
},
|
|
3498
3587
|
{
|
|
3499
3588
|
name: 'history',
|
|
3500
3589
|
kind: 'Link',
|
|
3501
|
-
fragment: select$
|
|
3590
|
+
fragment: select$A()
|
|
3502
3591
|
},
|
|
3503
3592
|
{
|
|
3504
3593
|
name: 'teamId',
|
|
@@ -3512,7 +3601,7 @@ const select$x = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3512
3601
|
name: 'userInfos',
|
|
3513
3602
|
kind: 'Link',
|
|
3514
3603
|
plural: true,
|
|
3515
|
-
fragment: select$
|
|
3604
|
+
fragment: select$I()
|
|
3516
3605
|
},
|
|
3517
3606
|
{
|
|
3518
3607
|
name: 'websocketUrl',
|
|
@@ -3557,6 +3646,26 @@ function equals$d(existing, incoming) {
|
|
|
3557
3646
|
existing_conversationInfo.__ref === incoming_conversationInfo.__ref))) {
|
|
3558
3647
|
return false;
|
|
3559
3648
|
}
|
|
3649
|
+
const existing_conversationInfos = existing.conversationInfos;
|
|
3650
|
+
const incoming_conversationInfos = incoming.conversationInfos;
|
|
3651
|
+
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
3652
|
+
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
3653
|
+
return false;
|
|
3654
|
+
}
|
|
3655
|
+
});
|
|
3656
|
+
if (equals_conversationInfos_items === false) {
|
|
3657
|
+
return false;
|
|
3658
|
+
}
|
|
3659
|
+
const existing_emojis = existing.emojis;
|
|
3660
|
+
const incoming_emojis = incoming.emojis;
|
|
3661
|
+
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
3662
|
+
if (!(existing_emojis_item.__ref === incoming_emojis_item.__ref)) {
|
|
3663
|
+
return false;
|
|
3664
|
+
}
|
|
3665
|
+
});
|
|
3666
|
+
if (equals_emojis_items === false) {
|
|
3667
|
+
return false;
|
|
3668
|
+
}
|
|
3560
3669
|
const existing_history = existing.history;
|
|
3561
3670
|
const incoming_history = incoming.history;
|
|
3562
3671
|
if (!(existing_history.__ref === incoming_history.__ref)) {
|
|
@@ -3610,6 +3719,14 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3610
3719
|
if (input.conversationInfo !== null && typeof input.conversationInfo === 'object') {
|
|
3611
3720
|
getTypeCacheKeys$g(rootKeySet, luvio, input.conversationInfo);
|
|
3612
3721
|
}
|
|
3722
|
+
const input_conversationInfos_length = input.conversationInfos.length;
|
|
3723
|
+
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
3724
|
+
getTypeCacheKeys$g(rootKeySet, luvio, input.conversationInfos[i]);
|
|
3725
|
+
}
|
|
3726
|
+
const input_emojis_length = input.emojis.length;
|
|
3727
|
+
for (let i = 0; i < input_emojis_length; i++) {
|
|
3728
|
+
getTypeCacheKeys$i(rootKeySet, luvio, input.emojis[i]);
|
|
3729
|
+
}
|
|
3613
3730
|
getTypeCacheKeys$d(rootKeySet, luvio, input.history, () => rootKey + "__" + "history");
|
|
3614
3731
|
const input_userInfos_length = input.userInfos.length;
|
|
3615
3732
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
@@ -3617,22 +3734,22 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3617
3734
|
}
|
|
3618
3735
|
}
|
|
3619
3736
|
|
|
3620
|
-
function select$
|
|
3621
|
-
return select$
|
|
3737
|
+
function select$y(luvio, params) {
|
|
3738
|
+
return select$z();
|
|
3622
3739
|
}
|
|
3623
|
-
function keyBuilder$
|
|
3740
|
+
function keyBuilder$D(luvio, params) {
|
|
3624
3741
|
return keyPrefix + '::SlackBridgeConversationOutputRepresentation:(' + 'channelId:' + params.queryParams.channelId + ',' + 'includeView:' + params.queryParams.includeView + ',' + 'inclusive:' + params.queryParams.inclusive + ',' + 'latestMessageTs:' + params.queryParams.latestMessageTs + ',' + 'limit:' + params.queryParams.limit + ',' + 'oldestMessageTs:' + params.queryParams.oldestMessageTs + ',' + 'parentMessageTs:' + params.queryParams.parentMessageTs + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ',' + 'teamId:' + params.queryParams.teamId + ')';
|
|
3625
3742
|
}
|
|
3626
|
-
function getResponseCacheKeys$
|
|
3627
|
-
getTypeCacheKeys$c(storeKeyMap, luvio, response, () => keyBuilder$
|
|
3743
|
+
function getResponseCacheKeys$o(storeKeyMap, luvio, resourceParams, response) {
|
|
3744
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response, () => keyBuilder$D(luvio, resourceParams));
|
|
3628
3745
|
}
|
|
3629
|
-
function ingestSuccess$
|
|
3746
|
+
function ingestSuccess$l(luvio, resourceParams, response, snapshotRefresh) {
|
|
3630
3747
|
const { body } = response;
|
|
3631
|
-
const key = keyBuilder$
|
|
3748
|
+
const key = keyBuilder$D(luvio, resourceParams);
|
|
3632
3749
|
luvio.storeIngest(key, ingest$c, body);
|
|
3633
3750
|
const snapshot = luvio.storeLookup({
|
|
3634
3751
|
recordId: key,
|
|
3635
|
-
node: select$
|
|
3752
|
+
node: select$y(),
|
|
3636
3753
|
variables: {},
|
|
3637
3754
|
}, snapshotRefresh);
|
|
3638
3755
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3643,13 +3760,13 @@ function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3643
3760
|
deepFreeze(snapshot.data);
|
|
3644
3761
|
return snapshot;
|
|
3645
3762
|
}
|
|
3646
|
-
function ingestError$
|
|
3647
|
-
const key = keyBuilder$
|
|
3763
|
+
function ingestError$e(luvio, params, error, snapshotRefresh) {
|
|
3764
|
+
const key = keyBuilder$D(luvio, params);
|
|
3648
3765
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3649
3766
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3650
3767
|
return errorSnapshot;
|
|
3651
3768
|
}
|
|
3652
|
-
function createResourceRequest$
|
|
3769
|
+
function createResourceRequest$o(config) {
|
|
3653
3770
|
const headers = {};
|
|
3654
3771
|
return {
|
|
3655
3772
|
baseUri: '/services/data/v64.0',
|
|
@@ -3663,7 +3780,7 @@ function createResourceRequest$m(config) {
|
|
|
3663
3780
|
};
|
|
3664
3781
|
}
|
|
3665
3782
|
|
|
3666
|
-
const adapterName$
|
|
3783
|
+
const adapterName$o = 'getSlackConversation';
|
|
3667
3784
|
const getSlackConversation_ConfigPropertyMetadata = [
|
|
3668
3785
|
generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3669
3786
|
generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -3675,86 +3792,86 @@ const getSlackConversation_ConfigPropertyMetadata = [
|
|
|
3675
3792
|
generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3676
3793
|
generateParamConfigMetadata('teamId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3677
3794
|
];
|
|
3678
|
-
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3679
|
-
const createResourceParams$
|
|
3680
|
-
function keyBuilder$
|
|
3681
|
-
const resourceParams = createResourceParams$
|
|
3682
|
-
return keyBuilder$
|
|
3795
|
+
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, getSlackConversation_ConfigPropertyMetadata);
|
|
3796
|
+
const createResourceParams$o = /*#__PURE__*/ createResourceParams$p(getSlackConversation_ConfigPropertyMetadata);
|
|
3797
|
+
function keyBuilder$C(luvio, config) {
|
|
3798
|
+
const resourceParams = createResourceParams$o(config);
|
|
3799
|
+
return keyBuilder$D(luvio, resourceParams);
|
|
3683
3800
|
}
|
|
3684
|
-
function typeCheckConfig$
|
|
3801
|
+
function typeCheckConfig$o(untrustedConfig) {
|
|
3685
3802
|
const config = {};
|
|
3686
|
-
typeCheckConfig$
|
|
3803
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
|
|
3687
3804
|
return config;
|
|
3688
3805
|
}
|
|
3689
|
-
function validateAdapterConfig$
|
|
3806
|
+
function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
|
|
3690
3807
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3691
3808
|
return null;
|
|
3692
3809
|
}
|
|
3693
3810
|
if (process.env.NODE_ENV !== 'production') {
|
|
3694
3811
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3695
3812
|
}
|
|
3696
|
-
const config = typeCheckConfig$
|
|
3813
|
+
const config = typeCheckConfig$o(untrustedConfig);
|
|
3697
3814
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3698
3815
|
return null;
|
|
3699
3816
|
}
|
|
3700
3817
|
return config;
|
|
3701
3818
|
}
|
|
3702
|
-
function adapterFragment$
|
|
3703
|
-
createResourceParams$
|
|
3704
|
-
return select$
|
|
3819
|
+
function adapterFragment$e(luvio, config) {
|
|
3820
|
+
createResourceParams$o(config);
|
|
3821
|
+
return select$y();
|
|
3705
3822
|
}
|
|
3706
|
-
function onFetchResponseSuccess$
|
|
3707
|
-
const snapshot = ingestSuccess$
|
|
3823
|
+
function onFetchResponseSuccess$e(luvio, config, resourceParams, response) {
|
|
3824
|
+
const snapshot = ingestSuccess$l(luvio, resourceParams, response, {
|
|
3708
3825
|
config,
|
|
3709
|
-
resolve: () => buildNetworkSnapshot$
|
|
3826
|
+
resolve: () => buildNetworkSnapshot$o(luvio, config, snapshotRefreshOptions)
|
|
3710
3827
|
});
|
|
3711
3828
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3712
3829
|
}
|
|
3713
|
-
function onFetchResponseError$
|
|
3714
|
-
const snapshot = ingestError$
|
|
3830
|
+
function onFetchResponseError$e(luvio, config, resourceParams, response) {
|
|
3831
|
+
const snapshot = ingestError$e(luvio, resourceParams, response, {
|
|
3715
3832
|
config,
|
|
3716
|
-
resolve: () => buildNetworkSnapshot$
|
|
3833
|
+
resolve: () => buildNetworkSnapshot$o(luvio, config, snapshotRefreshOptions)
|
|
3717
3834
|
});
|
|
3718
3835
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3719
3836
|
}
|
|
3720
|
-
function buildNetworkSnapshot$
|
|
3721
|
-
const resourceParams = createResourceParams$
|
|
3722
|
-
const request = createResourceRequest$
|
|
3837
|
+
function buildNetworkSnapshot$o(luvio, config, options) {
|
|
3838
|
+
const resourceParams = createResourceParams$o(config);
|
|
3839
|
+
const request = createResourceRequest$o(resourceParams);
|
|
3723
3840
|
return luvio.dispatchResourceRequest(request, options)
|
|
3724
3841
|
.then((response) => {
|
|
3725
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3842
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$e(luvio, config, resourceParams, response), () => {
|
|
3726
3843
|
const cache = new StoreKeyMap();
|
|
3727
|
-
getResponseCacheKeys$
|
|
3844
|
+
getResponseCacheKeys$o(cache, luvio, resourceParams, response.body);
|
|
3728
3845
|
return cache;
|
|
3729
3846
|
});
|
|
3730
3847
|
}, (response) => {
|
|
3731
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3848
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$e(luvio, config, resourceParams, response));
|
|
3732
3849
|
});
|
|
3733
3850
|
}
|
|
3734
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3735
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3851
|
+
function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
|
|
3852
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$o, undefined, false);
|
|
3736
3853
|
}
|
|
3737
|
-
function buildCachedSnapshotCachePolicy$
|
|
3854
|
+
function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
|
|
3738
3855
|
const { luvio, config } = context;
|
|
3739
3856
|
const selector = {
|
|
3740
|
-
recordId: keyBuilder$
|
|
3741
|
-
node: adapterFragment$
|
|
3857
|
+
recordId: keyBuilder$C(luvio, config),
|
|
3858
|
+
node: adapterFragment$e(luvio, config),
|
|
3742
3859
|
variables: {},
|
|
3743
3860
|
};
|
|
3744
3861
|
const cacheSnapshot = storeLookup(selector, {
|
|
3745
3862
|
config,
|
|
3746
|
-
resolve: () => buildNetworkSnapshot$
|
|
3863
|
+
resolve: () => buildNetworkSnapshot$o(luvio, config, snapshotRefreshOptions)
|
|
3747
3864
|
});
|
|
3748
3865
|
return cacheSnapshot;
|
|
3749
3866
|
}
|
|
3750
3867
|
const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
|
|
3751
|
-
const config = validateAdapterConfig$
|
|
3868
|
+
const config = validateAdapterConfig$o(untrustedConfig, getSlackConversation_ConfigPropertyNames);
|
|
3752
3869
|
// Invalid or incomplete config
|
|
3753
3870
|
if (config === null) {
|
|
3754
3871
|
return null;
|
|
3755
3872
|
}
|
|
3756
3873
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3757
|
-
buildCachedSnapshotCachePolicy$
|
|
3874
|
+
buildCachedSnapshotCachePolicy$e, buildNetworkSnapshotCachePolicy$e);
|
|
3758
3875
|
};
|
|
3759
3876
|
|
|
3760
3877
|
const VERSION$c = "769b5b0ed94219341e9be74c08e63aed";
|
|
@@ -3782,14 +3899,14 @@ function validate$c(obj, path = 'SlackBridgePostMessageOutputRepresentation') {
|
|
|
3782
3899
|
return v_error === undefined ? null : v_error;
|
|
3783
3900
|
}
|
|
3784
3901
|
const RepresentationType$b = 'SlackBridgePostMessageOutputRepresentation';
|
|
3785
|
-
function keyBuilder$
|
|
3902
|
+
function keyBuilder$B(luvio, config) {
|
|
3786
3903
|
return keyPrefix + '::' + RepresentationType$b + ':' + config.channelId;
|
|
3787
3904
|
}
|
|
3788
3905
|
function keyBuilderFromType$6(luvio, object) {
|
|
3789
3906
|
const keyParams = {
|
|
3790
3907
|
channelId: object.channelId
|
|
3791
3908
|
};
|
|
3792
|
-
return keyBuilder$
|
|
3909
|
+
return keyBuilder$B(luvio, keyParams);
|
|
3793
3910
|
}
|
|
3794
3911
|
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
3795
3912
|
const input_postedMessage = input.postedMessage;
|
|
@@ -3806,7 +3923,7 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
3806
3923
|
}, luvio, store, timestamp);
|
|
3807
3924
|
return input;
|
|
3808
3925
|
}
|
|
3809
|
-
const select$
|
|
3926
|
+
const select$x = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
3810
3927
|
return {
|
|
3811
3928
|
kind: 'Fragment',
|
|
3812
3929
|
version: VERSION$c,
|
|
@@ -3819,7 +3936,7 @@ const select$v = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
|
3819
3936
|
{
|
|
3820
3937
|
name: 'postedMessage',
|
|
3821
3938
|
kind: 'Link',
|
|
3822
|
-
fragment: select$
|
|
3939
|
+
fragment: select$B()
|
|
3823
3940
|
},
|
|
3824
3941
|
{
|
|
3825
3942
|
name: 'timestamp',
|
|
@@ -3869,19 +3986,19 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3869
3986
|
getTypeCacheKeys$e(rootKeySet, luvio, input.postedMessage, () => rootKey + "__" + "postedMessage");
|
|
3870
3987
|
}
|
|
3871
3988
|
|
|
3872
|
-
function select$
|
|
3873
|
-
return select$
|
|
3989
|
+
function select$w(luvio, params) {
|
|
3990
|
+
return select$x();
|
|
3874
3991
|
}
|
|
3875
|
-
function getResponseCacheKeys$
|
|
3992
|
+
function getResponseCacheKeys$n(storeKeyMap, luvio, resourceParams, response) {
|
|
3876
3993
|
getTypeCacheKeys$b(storeKeyMap, luvio, response);
|
|
3877
3994
|
}
|
|
3878
|
-
function ingestSuccess$
|
|
3995
|
+
function ingestSuccess$k(luvio, resourceParams, response) {
|
|
3879
3996
|
const { body } = response;
|
|
3880
3997
|
const key = keyBuilderFromType$6(luvio, body);
|
|
3881
3998
|
luvio.storeIngest(key, ingest$b, body);
|
|
3882
3999
|
const snapshot = luvio.storeLookup({
|
|
3883
4000
|
recordId: key,
|
|
3884
|
-
node: select$
|
|
4001
|
+
node: select$w(),
|
|
3885
4002
|
variables: {},
|
|
3886
4003
|
});
|
|
3887
4004
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3892,7 +4009,7 @@ function ingestSuccess$i(luvio, resourceParams, response) {
|
|
|
3892
4009
|
deepFreeze(snapshot.data);
|
|
3893
4010
|
return snapshot;
|
|
3894
4011
|
}
|
|
3895
|
-
function createResourceRequest$
|
|
4012
|
+
function createResourceRequest$n(config) {
|
|
3896
4013
|
const headers = {};
|
|
3897
4014
|
return {
|
|
3898
4015
|
baseUri: '/services/data/v64.0',
|
|
@@ -3906,7 +4023,7 @@ function createResourceRequest$l(config) {
|
|
|
3906
4023
|
};
|
|
3907
4024
|
}
|
|
3908
4025
|
|
|
3909
|
-
const adapterName$
|
|
4026
|
+
const adapterName$n = 'postSlackConversation';
|
|
3910
4027
|
const postSlackConversation_ConfigPropertyMetadata = [
|
|
3911
4028
|
generateParamConfigMetadata('channelId', true, 2 /* Body */, 0 /* String */),
|
|
3912
4029
|
generateParamConfigMetadata('linkNames', false, 2 /* Body */, 1 /* Boolean */),
|
|
@@ -3915,37 +4032,37 @@ const postSlackConversation_ConfigPropertyMetadata = [
|
|
|
3915
4032
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
3916
4033
|
generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
|
|
3917
4034
|
];
|
|
3918
|
-
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3919
|
-
const createResourceParams$
|
|
3920
|
-
function typeCheckConfig$
|
|
4035
|
+
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, postSlackConversation_ConfigPropertyMetadata);
|
|
4036
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$p(postSlackConversation_ConfigPropertyMetadata);
|
|
4037
|
+
function typeCheckConfig$n(untrustedConfig) {
|
|
3921
4038
|
const config = {};
|
|
3922
|
-
typeCheckConfig$
|
|
4039
|
+
typeCheckConfig$p(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
|
|
3923
4040
|
return config;
|
|
3924
4041
|
}
|
|
3925
|
-
function validateAdapterConfig$
|
|
4042
|
+
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
3926
4043
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3927
4044
|
return null;
|
|
3928
4045
|
}
|
|
3929
4046
|
if (process.env.NODE_ENV !== 'production') {
|
|
3930
4047
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3931
4048
|
}
|
|
3932
|
-
const config = typeCheckConfig$
|
|
4049
|
+
const config = typeCheckConfig$n(untrustedConfig);
|
|
3933
4050
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3934
4051
|
return null;
|
|
3935
4052
|
}
|
|
3936
4053
|
return config;
|
|
3937
4054
|
}
|
|
3938
|
-
function buildNetworkSnapshot$
|
|
3939
|
-
const resourceParams = createResourceParams$
|
|
3940
|
-
const request = createResourceRequest$
|
|
4055
|
+
function buildNetworkSnapshot$n(luvio, config, options) {
|
|
4056
|
+
const resourceParams = createResourceParams$n(config);
|
|
4057
|
+
const request = createResourceRequest$n(resourceParams);
|
|
3941
4058
|
return luvio.dispatchResourceRequest(request, options)
|
|
3942
4059
|
.then((response) => {
|
|
3943
4060
|
return luvio.handleSuccessResponse(() => {
|
|
3944
|
-
const snapshot = ingestSuccess$
|
|
4061
|
+
const snapshot = ingestSuccess$k(luvio, resourceParams, response);
|
|
3945
4062
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3946
4063
|
}, () => {
|
|
3947
4064
|
const cache = new StoreKeyMap();
|
|
3948
|
-
getResponseCacheKeys$
|
|
4065
|
+
getResponseCacheKeys$n(cache, luvio, resourceParams, response.body);
|
|
3949
4066
|
return cache;
|
|
3950
4067
|
});
|
|
3951
4068
|
}, (response) => {
|
|
@@ -3955,28 +4072,28 @@ function buildNetworkSnapshot$l(luvio, config, options) {
|
|
|
3955
4072
|
}
|
|
3956
4073
|
const postSlackConversationAdapterFactory = (luvio) => {
|
|
3957
4074
|
return function postSlackConversation(untrustedConfig) {
|
|
3958
|
-
const config = validateAdapterConfig$
|
|
4075
|
+
const config = validateAdapterConfig$n(untrustedConfig, postSlackConversation_ConfigPropertyNames);
|
|
3959
4076
|
// Invalid or incomplete config
|
|
3960
4077
|
if (config === null) {
|
|
3961
4078
|
throw new Error('Invalid config for "postSlackConversation"');
|
|
3962
4079
|
}
|
|
3963
|
-
return buildNetworkSnapshot$
|
|
4080
|
+
return buildNetworkSnapshot$n(luvio, config);
|
|
3964
4081
|
};
|
|
3965
4082
|
};
|
|
3966
4083
|
|
|
3967
|
-
function select$
|
|
3968
|
-
return select$
|
|
4084
|
+
function select$v(luvio, params) {
|
|
4085
|
+
return select$C();
|
|
3969
4086
|
}
|
|
3970
|
-
function getResponseCacheKeys$
|
|
4087
|
+
function getResponseCacheKeys$m(storeKeyMap, luvio, resourceParams, response) {
|
|
3971
4088
|
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
3972
4089
|
}
|
|
3973
|
-
function ingestSuccess$
|
|
4090
|
+
function ingestSuccess$j(luvio, resourceParams, response) {
|
|
3974
4091
|
const { body } = response;
|
|
3975
4092
|
const key = keyBuilderFromType$7(luvio, body);
|
|
3976
4093
|
luvio.storeIngest(key, ingest$f, body);
|
|
3977
4094
|
const snapshot = luvio.storeLookup({
|
|
3978
4095
|
recordId: key,
|
|
3979
|
-
node: select$
|
|
4096
|
+
node: select$v(),
|
|
3980
4097
|
variables: {},
|
|
3981
4098
|
});
|
|
3982
4099
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3987,7 +4104,7 @@ function ingestSuccess$h(luvio, resourceParams, response) {
|
|
|
3987
4104
|
deepFreeze(snapshot.data);
|
|
3988
4105
|
return snapshot;
|
|
3989
4106
|
}
|
|
3990
|
-
function createResourceRequest$
|
|
4107
|
+
function createResourceRequest$m(config) {
|
|
3991
4108
|
const headers = {};
|
|
3992
4109
|
return {
|
|
3993
4110
|
baseUri: '/services/data/v64.0',
|
|
@@ -4001,7 +4118,7 @@ function createResourceRequest$k(config) {
|
|
|
4001
4118
|
};
|
|
4002
4119
|
}
|
|
4003
4120
|
|
|
4004
|
-
const adapterName$
|
|
4121
|
+
const adapterName$m = 'postSlackFile';
|
|
4005
4122
|
const postSlackFile_ConfigPropertyMetadata = [
|
|
4006
4123
|
generateParamConfigMetadata('base64EncodedFileData', true, 2 /* Body */, 0 /* String */),
|
|
4007
4124
|
generateParamConfigMetadata('channels', true, 2 /* Body */, 0 /* String */, true),
|
|
@@ -4012,37 +4129,37 @@ const postSlackFile_ConfigPropertyMetadata = [
|
|
|
4012
4129
|
generateParamConfigMetadata('threadTs', true, 2 /* Body */, 0 /* String */),
|
|
4013
4130
|
generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
|
|
4014
4131
|
];
|
|
4015
|
-
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4016
|
-
const createResourceParams$
|
|
4017
|
-
function typeCheckConfig$
|
|
4132
|
+
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, postSlackFile_ConfigPropertyMetadata);
|
|
4133
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$p(postSlackFile_ConfigPropertyMetadata);
|
|
4134
|
+
function typeCheckConfig$m(untrustedConfig) {
|
|
4018
4135
|
const config = {};
|
|
4019
|
-
typeCheckConfig$
|
|
4136
|
+
typeCheckConfig$p(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
|
|
4020
4137
|
return config;
|
|
4021
4138
|
}
|
|
4022
|
-
function validateAdapterConfig$
|
|
4139
|
+
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
4023
4140
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4024
4141
|
return null;
|
|
4025
4142
|
}
|
|
4026
4143
|
if (process.env.NODE_ENV !== 'production') {
|
|
4027
4144
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4028
4145
|
}
|
|
4029
|
-
const config = typeCheckConfig$
|
|
4146
|
+
const config = typeCheckConfig$m(untrustedConfig);
|
|
4030
4147
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4031
4148
|
return null;
|
|
4032
4149
|
}
|
|
4033
4150
|
return config;
|
|
4034
4151
|
}
|
|
4035
|
-
function buildNetworkSnapshot$
|
|
4036
|
-
const resourceParams = createResourceParams$
|
|
4037
|
-
const request = createResourceRequest$
|
|
4152
|
+
function buildNetworkSnapshot$m(luvio, config, options) {
|
|
4153
|
+
const resourceParams = createResourceParams$m(config);
|
|
4154
|
+
const request = createResourceRequest$m(resourceParams);
|
|
4038
4155
|
return luvio.dispatchResourceRequest(request, options)
|
|
4039
4156
|
.then((response) => {
|
|
4040
4157
|
return luvio.handleSuccessResponse(() => {
|
|
4041
|
-
const snapshot = ingestSuccess$
|
|
4158
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response);
|
|
4042
4159
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4043
4160
|
}, () => {
|
|
4044
4161
|
const cache = new StoreKeyMap();
|
|
4045
|
-
getResponseCacheKeys$
|
|
4162
|
+
getResponseCacheKeys$m(cache, luvio, resourceParams, response.body);
|
|
4046
4163
|
return cache;
|
|
4047
4164
|
});
|
|
4048
4165
|
}, (response) => {
|
|
@@ -4052,12 +4169,12 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
4052
4169
|
}
|
|
4053
4170
|
const postSlackFileAdapterFactory = (luvio) => {
|
|
4054
4171
|
return function postSlackFile(untrustedConfig) {
|
|
4055
|
-
const config = validateAdapterConfig$
|
|
4172
|
+
const config = validateAdapterConfig$m(untrustedConfig, postSlackFile_ConfigPropertyNames);
|
|
4056
4173
|
// Invalid or incomplete config
|
|
4057
4174
|
if (config === null) {
|
|
4058
4175
|
throw new Error('Invalid config for "postSlackFile"');
|
|
4059
4176
|
}
|
|
4060
|
-
return buildNetworkSnapshot$
|
|
4177
|
+
return buildNetworkSnapshot$m(luvio, config);
|
|
4061
4178
|
};
|
|
4062
4179
|
};
|
|
4063
4180
|
|
|
@@ -4086,14 +4203,14 @@ function validate$b(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentatio
|
|
|
4086
4203
|
return v_error === undefined ? null : v_error;
|
|
4087
4204
|
}
|
|
4088
4205
|
const RepresentationType$a = 'SlackBridgeRecordChannelInfoOutputRepresentation';
|
|
4089
|
-
function keyBuilder$
|
|
4206
|
+
function keyBuilder$A(luvio, config) {
|
|
4090
4207
|
return keyPrefix + '::' + RepresentationType$a + ':' + config.relatedRecordId;
|
|
4091
4208
|
}
|
|
4092
4209
|
function keyBuilderFromType$5(luvio, object) {
|
|
4093
4210
|
const keyParams = {
|
|
4094
4211
|
relatedRecordId: object.relatedRecordId
|
|
4095
4212
|
};
|
|
4096
|
-
return keyBuilder$
|
|
4213
|
+
return keyBuilder$A(luvio, keyParams);
|
|
4097
4214
|
}
|
|
4098
4215
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
4099
4216
|
const input_conversationInfo = input.conversationInfo;
|
|
@@ -4110,7 +4227,7 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
4110
4227
|
}, luvio, store, timestamp);
|
|
4111
4228
|
return input;
|
|
4112
4229
|
}
|
|
4113
|
-
const select$
|
|
4230
|
+
const select$u = function SlackBridgeRecordChannelInfoOutputRepresentationSelect() {
|
|
4114
4231
|
return {
|
|
4115
4232
|
kind: 'Fragment',
|
|
4116
4233
|
version: VERSION$b,
|
|
@@ -4119,7 +4236,7 @@ const select$s = function SlackBridgeRecordChannelInfoOutputRepresentationSelect
|
|
|
4119
4236
|
{
|
|
4120
4237
|
name: 'conversationInfo',
|
|
4121
4238
|
kind: 'Link',
|
|
4122
|
-
fragment: select$
|
|
4239
|
+
fragment: select$H()
|
|
4123
4240
|
},
|
|
4124
4241
|
{
|
|
4125
4242
|
name: 'relatedRecordId',
|
|
@@ -4173,19 +4290,19 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4173
4290
|
getTypeCacheKeys$g(rootKeySet, luvio, input.conversationInfo);
|
|
4174
4291
|
}
|
|
4175
4292
|
|
|
4176
|
-
function select$
|
|
4177
|
-
return select$
|
|
4293
|
+
function select$t(luvio, params) {
|
|
4294
|
+
return select$u();
|
|
4178
4295
|
}
|
|
4179
|
-
function getResponseCacheKeys$
|
|
4296
|
+
function getResponseCacheKeys$l(storeKeyMap, luvio, resourceParams, response) {
|
|
4180
4297
|
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
4181
4298
|
}
|
|
4182
|
-
function ingestSuccess$
|
|
4299
|
+
function ingestSuccess$i(luvio, resourceParams, response) {
|
|
4183
4300
|
const { body } = response;
|
|
4184
4301
|
const key = keyBuilderFromType$5(luvio, body);
|
|
4185
4302
|
luvio.storeIngest(key, ingest$a, body);
|
|
4186
4303
|
const snapshot = luvio.storeLookup({
|
|
4187
4304
|
recordId: key,
|
|
4188
|
-
node: select$
|
|
4305
|
+
node: select$t(),
|
|
4189
4306
|
variables: {},
|
|
4190
4307
|
});
|
|
4191
4308
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4196,7 +4313,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
|
|
|
4196
4313
|
deepFreeze(snapshot.data);
|
|
4197
4314
|
return snapshot;
|
|
4198
4315
|
}
|
|
4199
|
-
function createResourceRequest$
|
|
4316
|
+
function createResourceRequest$l(config) {
|
|
4200
4317
|
const headers = {};
|
|
4201
4318
|
return {
|
|
4202
4319
|
baseUri: '/services/data/v64.0',
|
|
@@ -4210,16 +4327,16 @@ function createResourceRequest$j(config) {
|
|
|
4210
4327
|
};
|
|
4211
4328
|
}
|
|
4212
4329
|
|
|
4213
|
-
const adapterName$
|
|
4330
|
+
const adapterName$l = 'postSlackRecordChannelInfos';
|
|
4214
4331
|
const postSlackRecordChannelInfos_ConfigPropertyMetadata = [
|
|
4215
4332
|
generateParamConfigMetadata('conversationInfo', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4216
4333
|
generateParamConfigMetadata('relatedRecordId', true, 2 /* Body */, 0 /* String */),
|
|
4217
4334
|
];
|
|
4218
|
-
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4219
|
-
const createResourceParams$
|
|
4220
|
-
function typeCheckConfig$
|
|
4335
|
+
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
4336
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$p(postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
4337
|
+
function typeCheckConfig$l(untrustedConfig) {
|
|
4221
4338
|
const config = {};
|
|
4222
|
-
typeCheckConfig$
|
|
4339
|
+
typeCheckConfig$p(untrustedConfig, config, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
4223
4340
|
const untrustedConfig_conversationInfo = untrustedConfig.conversationInfo;
|
|
4224
4341
|
if (untrustedIsObject(untrustedConfig_conversationInfo)) {
|
|
4225
4342
|
const untrustedConfig_conversationInfo_object = {};
|
|
@@ -4233,30 +4350,30 @@ function typeCheckConfig$j(untrustedConfig) {
|
|
|
4233
4350
|
}
|
|
4234
4351
|
return config;
|
|
4235
4352
|
}
|
|
4236
|
-
function validateAdapterConfig$
|
|
4353
|
+
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
4237
4354
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4238
4355
|
return null;
|
|
4239
4356
|
}
|
|
4240
4357
|
if (process.env.NODE_ENV !== 'production') {
|
|
4241
4358
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4242
4359
|
}
|
|
4243
|
-
const config = typeCheckConfig$
|
|
4360
|
+
const config = typeCheckConfig$l(untrustedConfig);
|
|
4244
4361
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4245
4362
|
return null;
|
|
4246
4363
|
}
|
|
4247
4364
|
return config;
|
|
4248
4365
|
}
|
|
4249
|
-
function buildNetworkSnapshot$
|
|
4250
|
-
const resourceParams = createResourceParams$
|
|
4251
|
-
const request = createResourceRequest$
|
|
4366
|
+
function buildNetworkSnapshot$l(luvio, config, options) {
|
|
4367
|
+
const resourceParams = createResourceParams$l(config);
|
|
4368
|
+
const request = createResourceRequest$l(resourceParams);
|
|
4252
4369
|
return luvio.dispatchResourceRequest(request, options)
|
|
4253
4370
|
.then((response) => {
|
|
4254
4371
|
return luvio.handleSuccessResponse(() => {
|
|
4255
|
-
const snapshot = ingestSuccess$
|
|
4372
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response);
|
|
4256
4373
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4257
4374
|
}, () => {
|
|
4258
4375
|
const cache = new StoreKeyMap();
|
|
4259
|
-
getResponseCacheKeys$
|
|
4376
|
+
getResponseCacheKeys$l(cache, luvio, resourceParams, response.body);
|
|
4260
4377
|
return cache;
|
|
4261
4378
|
});
|
|
4262
4379
|
}, (response) => {
|
|
@@ -4266,33 +4383,33 @@ function buildNetworkSnapshot$j(luvio, config, options) {
|
|
|
4266
4383
|
}
|
|
4267
4384
|
const postSlackRecordChannelInfosAdapterFactory = (luvio) => {
|
|
4268
4385
|
return function postSlackRecordChannelInfos(untrustedConfig) {
|
|
4269
|
-
const config = validateAdapterConfig$
|
|
4386
|
+
const config = validateAdapterConfig$l(untrustedConfig, postSlackRecordChannelInfos_ConfigPropertyNames);
|
|
4270
4387
|
// Invalid or incomplete config
|
|
4271
4388
|
if (config === null) {
|
|
4272
4389
|
throw new Error('Invalid config for "postSlackRecordChannelInfos"');
|
|
4273
4390
|
}
|
|
4274
|
-
return buildNetworkSnapshot$
|
|
4391
|
+
return buildNetworkSnapshot$l(luvio, config);
|
|
4275
4392
|
};
|
|
4276
4393
|
};
|
|
4277
4394
|
|
|
4278
|
-
function select$
|
|
4279
|
-
return select$
|
|
4395
|
+
function select$s(luvio, params) {
|
|
4396
|
+
return select$u();
|
|
4280
4397
|
}
|
|
4281
|
-
function keyBuilder$
|
|
4282
|
-
return keyBuilder$
|
|
4398
|
+
function keyBuilder$z(luvio, params) {
|
|
4399
|
+
return keyBuilder$A(luvio, {
|
|
4283
4400
|
relatedRecordId: params.urlParams.relatedRecordId
|
|
4284
4401
|
});
|
|
4285
4402
|
}
|
|
4286
|
-
function getResponseCacheKeys$
|
|
4403
|
+
function getResponseCacheKeys$k(storeKeyMap, luvio, resourceParams, response) {
|
|
4287
4404
|
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
4288
4405
|
}
|
|
4289
|
-
function ingestSuccess$
|
|
4406
|
+
function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
4290
4407
|
const { body } = response;
|
|
4291
|
-
const key = keyBuilder$
|
|
4408
|
+
const key = keyBuilder$z(luvio, resourceParams);
|
|
4292
4409
|
luvio.storeIngest(key, ingest$a, body);
|
|
4293
4410
|
const snapshot = luvio.storeLookup({
|
|
4294
4411
|
recordId: key,
|
|
4295
|
-
node: select$
|
|
4412
|
+
node: select$s(),
|
|
4296
4413
|
variables: {},
|
|
4297
4414
|
}, snapshotRefresh);
|
|
4298
4415
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4303,13 +4420,13 @@ function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4303
4420
|
deepFreeze(snapshot.data);
|
|
4304
4421
|
return snapshot;
|
|
4305
4422
|
}
|
|
4306
|
-
function ingestError$
|
|
4307
|
-
const key = keyBuilder$
|
|
4423
|
+
function ingestError$d(luvio, params, error, snapshotRefresh) {
|
|
4424
|
+
const key = keyBuilder$z(luvio, params);
|
|
4308
4425
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4309
4426
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4310
4427
|
return errorSnapshot;
|
|
4311
4428
|
}
|
|
4312
|
-
function createResourceRequest$
|
|
4429
|
+
function createResourceRequest$k(config) {
|
|
4313
4430
|
const headers = {};
|
|
4314
4431
|
return {
|
|
4315
4432
|
baseUri: '/services/data/v64.0',
|
|
@@ -4323,90 +4440,90 @@ function createResourceRequest$i(config) {
|
|
|
4323
4440
|
};
|
|
4324
4441
|
}
|
|
4325
4442
|
|
|
4326
|
-
const adapterName$
|
|
4443
|
+
const adapterName$k = 'getSlackRecordChannelInfo';
|
|
4327
4444
|
const getSlackRecordChannelInfo_ConfigPropertyMetadata = [
|
|
4328
4445
|
generateParamConfigMetadata('relatedRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4329
4446
|
];
|
|
4330
|
-
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4331
|
-
const createResourceParams$
|
|
4332
|
-
function keyBuilder$
|
|
4333
|
-
const resourceParams = createResourceParams$
|
|
4334
|
-
return keyBuilder$
|
|
4447
|
+
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4448
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$p(getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4449
|
+
function keyBuilder$y(luvio, config) {
|
|
4450
|
+
const resourceParams = createResourceParams$k(config);
|
|
4451
|
+
return keyBuilder$z(luvio, resourceParams);
|
|
4335
4452
|
}
|
|
4336
|
-
function typeCheckConfig$
|
|
4453
|
+
function typeCheckConfig$k(untrustedConfig) {
|
|
4337
4454
|
const config = {};
|
|
4338
|
-
typeCheckConfig$
|
|
4455
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4339
4456
|
return config;
|
|
4340
4457
|
}
|
|
4341
|
-
function validateAdapterConfig$
|
|
4458
|
+
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
4342
4459
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4343
4460
|
return null;
|
|
4344
4461
|
}
|
|
4345
4462
|
if (process.env.NODE_ENV !== 'production') {
|
|
4346
4463
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4347
4464
|
}
|
|
4348
|
-
const config = typeCheckConfig$
|
|
4465
|
+
const config = typeCheckConfig$k(untrustedConfig);
|
|
4349
4466
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4350
4467
|
return null;
|
|
4351
4468
|
}
|
|
4352
4469
|
return config;
|
|
4353
4470
|
}
|
|
4354
|
-
function adapterFragment$
|
|
4355
|
-
createResourceParams$
|
|
4356
|
-
return select$
|
|
4471
|
+
function adapterFragment$d(luvio, config) {
|
|
4472
|
+
createResourceParams$k(config);
|
|
4473
|
+
return select$s();
|
|
4357
4474
|
}
|
|
4358
|
-
function onFetchResponseSuccess$
|
|
4359
|
-
const snapshot = ingestSuccess$
|
|
4475
|
+
function onFetchResponseSuccess$d(luvio, config, resourceParams, response) {
|
|
4476
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
|
|
4360
4477
|
config,
|
|
4361
|
-
resolve: () => buildNetworkSnapshot$
|
|
4478
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
4362
4479
|
});
|
|
4363
4480
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4364
4481
|
}
|
|
4365
|
-
function onFetchResponseError$
|
|
4366
|
-
const snapshot = ingestError$
|
|
4482
|
+
function onFetchResponseError$d(luvio, config, resourceParams, response) {
|
|
4483
|
+
const snapshot = ingestError$d(luvio, resourceParams, response, {
|
|
4367
4484
|
config,
|
|
4368
|
-
resolve: () => buildNetworkSnapshot$
|
|
4485
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
4369
4486
|
});
|
|
4370
4487
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4371
4488
|
}
|
|
4372
|
-
function buildNetworkSnapshot$
|
|
4373
|
-
const resourceParams = createResourceParams$
|
|
4374
|
-
const request = createResourceRequest$
|
|
4489
|
+
function buildNetworkSnapshot$k(luvio, config, options) {
|
|
4490
|
+
const resourceParams = createResourceParams$k(config);
|
|
4491
|
+
const request = createResourceRequest$k(resourceParams);
|
|
4375
4492
|
return luvio.dispatchResourceRequest(request, options)
|
|
4376
4493
|
.then((response) => {
|
|
4377
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4494
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$d(luvio, config, resourceParams, response), () => {
|
|
4378
4495
|
const cache = new StoreKeyMap();
|
|
4379
|
-
getResponseCacheKeys$
|
|
4496
|
+
getResponseCacheKeys$k(cache, luvio, resourceParams, response.body);
|
|
4380
4497
|
return cache;
|
|
4381
4498
|
});
|
|
4382
4499
|
}, (response) => {
|
|
4383
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4500
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$d(luvio, config, resourceParams, response));
|
|
4384
4501
|
});
|
|
4385
4502
|
}
|
|
4386
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4387
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4503
|
+
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
4504
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
4388
4505
|
}
|
|
4389
|
-
function buildCachedSnapshotCachePolicy$
|
|
4506
|
+
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
4390
4507
|
const { luvio, config } = context;
|
|
4391
4508
|
const selector = {
|
|
4392
|
-
recordId: keyBuilder$
|
|
4393
|
-
node: adapterFragment$
|
|
4509
|
+
recordId: keyBuilder$y(luvio, config),
|
|
4510
|
+
node: adapterFragment$d(luvio, config),
|
|
4394
4511
|
variables: {},
|
|
4395
4512
|
};
|
|
4396
4513
|
const cacheSnapshot = storeLookup(selector, {
|
|
4397
4514
|
config,
|
|
4398
|
-
resolve: () => buildNetworkSnapshot$
|
|
4515
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
4399
4516
|
});
|
|
4400
4517
|
return cacheSnapshot;
|
|
4401
4518
|
}
|
|
4402
4519
|
const getSlackRecordChannelInfoAdapterFactory = (luvio) => function SlackBridge__getSlackRecordChannelInfo(untrustedConfig, requestContext) {
|
|
4403
|
-
const config = validateAdapterConfig$
|
|
4520
|
+
const config = validateAdapterConfig$k(untrustedConfig, getSlackRecordChannelInfo_ConfigPropertyNames);
|
|
4404
4521
|
// Invalid or incomplete config
|
|
4405
4522
|
if (config === null) {
|
|
4406
4523
|
return null;
|
|
4407
4524
|
}
|
|
4408
4525
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4409
|
-
buildCachedSnapshotCachePolicy$
|
|
4526
|
+
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
|
|
4410
4527
|
};
|
|
4411
4528
|
|
|
4412
4529
|
const TTL$1 = 500;
|
|
@@ -4484,7 +4601,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
4484
4601
|
}
|
|
4485
4602
|
return input;
|
|
4486
4603
|
}
|
|
4487
|
-
const select$
|
|
4604
|
+
const select$r = function SlackBridgeRelatedThreadsOutputRepresentationSelect() {
|
|
4488
4605
|
return {
|
|
4489
4606
|
kind: 'Fragment',
|
|
4490
4607
|
version: VERSION$a,
|
|
@@ -4494,13 +4611,13 @@ const select$p = function SlackBridgeRelatedThreadsOutputRepresentationSelect()
|
|
|
4494
4611
|
name: 'conversations',
|
|
4495
4612
|
kind: 'Link',
|
|
4496
4613
|
plural: true,
|
|
4497
|
-
fragment: select$
|
|
4614
|
+
fragment: select$H()
|
|
4498
4615
|
},
|
|
4499
4616
|
{
|
|
4500
4617
|
name: 'messages',
|
|
4501
4618
|
kind: 'Link',
|
|
4502
4619
|
plural: true,
|
|
4503
|
-
fragment: select$
|
|
4620
|
+
fragment: select$B()
|
|
4504
4621
|
},
|
|
4505
4622
|
{
|
|
4506
4623
|
name: 'teamId',
|
|
@@ -4567,22 +4684,22 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4567
4684
|
}
|
|
4568
4685
|
}
|
|
4569
4686
|
|
|
4570
|
-
function select$
|
|
4571
|
-
return select$
|
|
4687
|
+
function select$q(luvio, params) {
|
|
4688
|
+
return select$r();
|
|
4572
4689
|
}
|
|
4573
|
-
function keyBuilder$
|
|
4690
|
+
function keyBuilder$x(luvio, params) {
|
|
4574
4691
|
return keyPrefix + '::SlackBridgeRelatedThreadsOutputRepresentation:(' + 'entityId:' + params.urlParams.entityId + ')';
|
|
4575
4692
|
}
|
|
4576
|
-
function getResponseCacheKeys$
|
|
4577
|
-
getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$
|
|
4693
|
+
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
4694
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$x(luvio, resourceParams));
|
|
4578
4695
|
}
|
|
4579
|
-
function ingestSuccess$
|
|
4696
|
+
function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
4580
4697
|
const { body } = response;
|
|
4581
|
-
const key = keyBuilder$
|
|
4698
|
+
const key = keyBuilder$x(luvio, resourceParams);
|
|
4582
4699
|
luvio.storeIngest(key, ingest$9, body);
|
|
4583
4700
|
const snapshot = luvio.storeLookup({
|
|
4584
4701
|
recordId: key,
|
|
4585
|
-
node: select$
|
|
4702
|
+
node: select$q(),
|
|
4586
4703
|
variables: {},
|
|
4587
4704
|
}, snapshotRefresh);
|
|
4588
4705
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4593,8 +4710,8 @@ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4593
4710
|
deepFreeze(snapshot.data);
|
|
4594
4711
|
return snapshot;
|
|
4595
4712
|
}
|
|
4596
|
-
function ingestError$
|
|
4597
|
-
const key = keyBuilder$
|
|
4713
|
+
function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
4714
|
+
const key = keyBuilder$x(luvio, params);
|
|
4598
4715
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4599
4716
|
const storeMetadataParams = {
|
|
4600
4717
|
ttl: TTL$1,
|
|
@@ -4605,7 +4722,7 @@ function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
|
4605
4722
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4606
4723
|
return errorSnapshot;
|
|
4607
4724
|
}
|
|
4608
|
-
function createResourceRequest$
|
|
4725
|
+
function createResourceRequest$j(config) {
|
|
4609
4726
|
const headers = {};
|
|
4610
4727
|
return {
|
|
4611
4728
|
baseUri: '/services/data/v64.0',
|
|
@@ -4619,90 +4736,90 @@ function createResourceRequest$h(config) {
|
|
|
4619
4736
|
};
|
|
4620
4737
|
}
|
|
4621
4738
|
|
|
4622
|
-
const adapterName$
|
|
4739
|
+
const adapterName$j = 'getRelatedThreads';
|
|
4623
4740
|
const getRelatedThreads_ConfigPropertyMetadata = [
|
|
4624
4741
|
generateParamConfigMetadata('entityId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4625
4742
|
];
|
|
4626
|
-
const getRelatedThreads_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4627
|
-
const createResourceParams$
|
|
4628
|
-
function keyBuilder$
|
|
4629
|
-
const resourceParams = createResourceParams$
|
|
4630
|
-
return keyBuilder$
|
|
4743
|
+
const getRelatedThreads_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, getRelatedThreads_ConfigPropertyMetadata);
|
|
4744
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$p(getRelatedThreads_ConfigPropertyMetadata);
|
|
4745
|
+
function keyBuilder$w(luvio, config) {
|
|
4746
|
+
const resourceParams = createResourceParams$j(config);
|
|
4747
|
+
return keyBuilder$x(luvio, resourceParams);
|
|
4631
4748
|
}
|
|
4632
|
-
function typeCheckConfig$
|
|
4749
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
4633
4750
|
const config = {};
|
|
4634
|
-
typeCheckConfig$
|
|
4751
|
+
typeCheckConfig$p(untrustedConfig, config, getRelatedThreads_ConfigPropertyMetadata);
|
|
4635
4752
|
return config;
|
|
4636
4753
|
}
|
|
4637
|
-
function validateAdapterConfig$
|
|
4754
|
+
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
4638
4755
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4639
4756
|
return null;
|
|
4640
4757
|
}
|
|
4641
4758
|
if (process.env.NODE_ENV !== 'production') {
|
|
4642
4759
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4643
4760
|
}
|
|
4644
|
-
const config = typeCheckConfig$
|
|
4761
|
+
const config = typeCheckConfig$j(untrustedConfig);
|
|
4645
4762
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4646
4763
|
return null;
|
|
4647
4764
|
}
|
|
4648
4765
|
return config;
|
|
4649
4766
|
}
|
|
4650
|
-
function adapterFragment$
|
|
4651
|
-
createResourceParams$
|
|
4652
|
-
return select$
|
|
4767
|
+
function adapterFragment$c(luvio, config) {
|
|
4768
|
+
createResourceParams$j(config);
|
|
4769
|
+
return select$q();
|
|
4653
4770
|
}
|
|
4654
|
-
function onFetchResponseSuccess$
|
|
4655
|
-
const snapshot = ingestSuccess$
|
|
4771
|
+
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
4772
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
4656
4773
|
config,
|
|
4657
|
-
resolve: () => buildNetworkSnapshot$
|
|
4774
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4658
4775
|
});
|
|
4659
4776
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4660
4777
|
}
|
|
4661
|
-
function onFetchResponseError$
|
|
4662
|
-
const snapshot = ingestError$
|
|
4778
|
+
function onFetchResponseError$c(luvio, config, resourceParams, response) {
|
|
4779
|
+
const snapshot = ingestError$c(luvio, resourceParams, response, {
|
|
4663
4780
|
config,
|
|
4664
|
-
resolve: () => buildNetworkSnapshot$
|
|
4781
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4665
4782
|
});
|
|
4666
4783
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4667
4784
|
}
|
|
4668
|
-
function buildNetworkSnapshot$
|
|
4669
|
-
const resourceParams = createResourceParams$
|
|
4670
|
-
const request = createResourceRequest$
|
|
4785
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
4786
|
+
const resourceParams = createResourceParams$j(config);
|
|
4787
|
+
const request = createResourceRequest$j(resourceParams);
|
|
4671
4788
|
return luvio.dispatchResourceRequest(request, options)
|
|
4672
4789
|
.then((response) => {
|
|
4673
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4790
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => {
|
|
4674
4791
|
const cache = new StoreKeyMap();
|
|
4675
|
-
getResponseCacheKeys$
|
|
4792
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
4676
4793
|
return cache;
|
|
4677
4794
|
});
|
|
4678
4795
|
}, (response) => {
|
|
4679
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4796
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$c(luvio, config, resourceParams, response));
|
|
4680
4797
|
});
|
|
4681
4798
|
}
|
|
4682
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4683
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4799
|
+
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
4800
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$j, undefined, false);
|
|
4684
4801
|
}
|
|
4685
|
-
function buildCachedSnapshotCachePolicy$
|
|
4802
|
+
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
4686
4803
|
const { luvio, config } = context;
|
|
4687
4804
|
const selector = {
|
|
4688
|
-
recordId: keyBuilder$
|
|
4689
|
-
node: adapterFragment$
|
|
4805
|
+
recordId: keyBuilder$w(luvio, config),
|
|
4806
|
+
node: adapterFragment$c(luvio, config),
|
|
4690
4807
|
variables: {},
|
|
4691
4808
|
};
|
|
4692
4809
|
const cacheSnapshot = storeLookup(selector, {
|
|
4693
4810
|
config,
|
|
4694
|
-
resolve: () => buildNetworkSnapshot$
|
|
4811
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4695
4812
|
});
|
|
4696
4813
|
return cacheSnapshot;
|
|
4697
4814
|
}
|
|
4698
4815
|
const getRelatedThreadsAdapterFactory = (luvio) => function SlackBridge__getRelatedThreads(untrustedConfig, requestContext) {
|
|
4699
|
-
const config = validateAdapterConfig$
|
|
4816
|
+
const config = validateAdapterConfig$j(untrustedConfig, getRelatedThreads_ConfigPropertyNames);
|
|
4700
4817
|
// Invalid or incomplete config
|
|
4701
4818
|
if (config === null) {
|
|
4702
4819
|
return null;
|
|
4703
4820
|
}
|
|
4704
4821
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4705
|
-
buildCachedSnapshotCachePolicy$
|
|
4822
|
+
buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
|
|
4706
4823
|
};
|
|
4707
4824
|
|
|
4708
4825
|
const VERSION$9 = "d6833ffbee3e599bfdef928466ea65af";
|
|
@@ -4734,7 +4851,7 @@ function validate$9(obj, path = 'SlackBridgeSlackTeamOutputRepresentation') {
|
|
|
4734
4851
|
})();
|
|
4735
4852
|
return v_error === undefined ? null : v_error;
|
|
4736
4853
|
}
|
|
4737
|
-
const select$
|
|
4854
|
+
const select$p = function SlackBridgeSlackTeamOutputRepresentationSelect() {
|
|
4738
4855
|
return {
|
|
4739
4856
|
kind: 'Fragment',
|
|
4740
4857
|
version: VERSION$9,
|
|
@@ -4810,8 +4927,8 @@ const RepresentationType$8 = 'SlackBridgeDisplayLoginOutputRepresentation';
|
|
|
4810
4927
|
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
4811
4928
|
return input;
|
|
4812
4929
|
}
|
|
4813
|
-
const select$
|
|
4814
|
-
const { selections: SlackBridgeSlackTeamOutputRepresentation__selections, opaque: SlackBridgeSlackTeamOutputRepresentation__opaque, } = select$
|
|
4930
|
+
const select$o = function SlackBridgeDisplayLoginOutputRepresentationSelect() {
|
|
4931
|
+
const { selections: SlackBridgeSlackTeamOutputRepresentation__selections, opaque: SlackBridgeSlackTeamOutputRepresentation__opaque, } = select$p();
|
|
4815
4932
|
return {
|
|
4816
4933
|
kind: 'Fragment',
|
|
4817
4934
|
version: VERSION$8,
|
|
@@ -4864,22 +4981,22 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4864
4981
|
});
|
|
4865
4982
|
}
|
|
4866
4983
|
|
|
4867
|
-
function select$
|
|
4868
|
-
return select$
|
|
4984
|
+
function select$n(luvio, params) {
|
|
4985
|
+
return select$o();
|
|
4869
4986
|
}
|
|
4870
|
-
function keyBuilder$
|
|
4987
|
+
function keyBuilder$v(luvio, params) {
|
|
4871
4988
|
return keyPrefix + '::SlackBridgeDisplayLoginOutputRepresentation:(' + ')';
|
|
4872
4989
|
}
|
|
4873
|
-
function getResponseCacheKeys$
|
|
4874
|
-
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$
|
|
4990
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
4991
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$v());
|
|
4875
4992
|
}
|
|
4876
|
-
function ingestSuccess$
|
|
4993
|
+
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
4877
4994
|
const { body } = response;
|
|
4878
|
-
const key = keyBuilder$
|
|
4995
|
+
const key = keyBuilder$v();
|
|
4879
4996
|
luvio.storeIngest(key, ingest$8, body);
|
|
4880
4997
|
const snapshot = luvio.storeLookup({
|
|
4881
4998
|
recordId: key,
|
|
4882
|
-
node: select$
|
|
4999
|
+
node: select$n(),
|
|
4883
5000
|
variables: {},
|
|
4884
5001
|
}, snapshotRefresh);
|
|
4885
5002
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4890,8 +5007,8 @@ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4890
5007
|
deepFreeze(snapshot.data);
|
|
4891
5008
|
return snapshot;
|
|
4892
5009
|
}
|
|
4893
|
-
function ingestError$
|
|
4894
|
-
const key = keyBuilder$
|
|
5010
|
+
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
5011
|
+
const key = keyBuilder$v();
|
|
4895
5012
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4896
5013
|
const storeMetadataParams = {
|
|
4897
5014
|
ttl: TTL,
|
|
@@ -4902,7 +5019,7 @@ function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
|
4902
5019
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4903
5020
|
return errorSnapshot;
|
|
4904
5021
|
}
|
|
4905
|
-
function createResourceRequest$
|
|
5022
|
+
function createResourceRequest$i(config) {
|
|
4906
5023
|
const headers = {};
|
|
4907
5024
|
return {
|
|
4908
5025
|
baseUri: '/services/data/v64.0',
|
|
@@ -4916,87 +5033,87 @@ function createResourceRequest$g(config) {
|
|
|
4916
5033
|
};
|
|
4917
5034
|
}
|
|
4918
5035
|
|
|
4919
|
-
const adapterName$
|
|
5036
|
+
const adapterName$i = 'getSlackDisplayLogin';
|
|
4920
5037
|
const getSlackDisplayLogin_ConfigPropertyMetadata = [];
|
|
4921
|
-
const getSlackDisplayLogin_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4922
|
-
const createResourceParams$
|
|
4923
|
-
function keyBuilder$
|
|
4924
|
-
createResourceParams$
|
|
4925
|
-
return keyBuilder$
|
|
5038
|
+
const getSlackDisplayLogin_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getSlackDisplayLogin_ConfigPropertyMetadata);
|
|
5039
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$p(getSlackDisplayLogin_ConfigPropertyMetadata);
|
|
5040
|
+
function keyBuilder$u(luvio, config) {
|
|
5041
|
+
createResourceParams$i(config);
|
|
5042
|
+
return keyBuilder$v();
|
|
4926
5043
|
}
|
|
4927
|
-
function typeCheckConfig$
|
|
5044
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
4928
5045
|
const config = {};
|
|
4929
5046
|
return config;
|
|
4930
5047
|
}
|
|
4931
|
-
function validateAdapterConfig$
|
|
5048
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
4932
5049
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4933
5050
|
return null;
|
|
4934
5051
|
}
|
|
4935
5052
|
if (process.env.NODE_ENV !== 'production') {
|
|
4936
5053
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4937
5054
|
}
|
|
4938
|
-
const config = typeCheckConfig$
|
|
5055
|
+
const config = typeCheckConfig$i();
|
|
4939
5056
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4940
5057
|
return null;
|
|
4941
5058
|
}
|
|
4942
5059
|
return config;
|
|
4943
5060
|
}
|
|
4944
|
-
function adapterFragment$
|
|
4945
|
-
createResourceParams$
|
|
4946
|
-
return select$
|
|
5061
|
+
function adapterFragment$b(luvio, config) {
|
|
5062
|
+
createResourceParams$i(config);
|
|
5063
|
+
return select$n();
|
|
4947
5064
|
}
|
|
4948
|
-
function onFetchResponseSuccess$
|
|
4949
|
-
const snapshot = ingestSuccess$
|
|
5065
|
+
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
5066
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
|
|
4950
5067
|
config,
|
|
4951
|
-
resolve: () => buildNetworkSnapshot$
|
|
5068
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
4952
5069
|
});
|
|
4953
5070
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4954
5071
|
}
|
|
4955
|
-
function onFetchResponseError$
|
|
4956
|
-
const snapshot = ingestError$
|
|
5072
|
+
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
5073
|
+
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
4957
5074
|
config,
|
|
4958
|
-
resolve: () => buildNetworkSnapshot$
|
|
5075
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
4959
5076
|
});
|
|
4960
5077
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4961
5078
|
}
|
|
4962
|
-
function buildNetworkSnapshot$
|
|
4963
|
-
const resourceParams = createResourceParams$
|
|
4964
|
-
const request = createResourceRequest$
|
|
5079
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
5080
|
+
const resourceParams = createResourceParams$i(config);
|
|
5081
|
+
const request = createResourceRequest$i();
|
|
4965
5082
|
return luvio.dispatchResourceRequest(request, options)
|
|
4966
5083
|
.then((response) => {
|
|
4967
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
5084
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
|
|
4968
5085
|
const cache = new StoreKeyMap();
|
|
4969
|
-
getResponseCacheKeys$
|
|
5086
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
4970
5087
|
return cache;
|
|
4971
5088
|
});
|
|
4972
5089
|
}, (response) => {
|
|
4973
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
5090
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$b(luvio, config, resourceParams, response));
|
|
4974
5091
|
});
|
|
4975
5092
|
}
|
|
4976
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4977
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5093
|
+
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
5094
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
4978
5095
|
}
|
|
4979
|
-
function buildCachedSnapshotCachePolicy$
|
|
5096
|
+
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
4980
5097
|
const { luvio, config } = context;
|
|
4981
5098
|
const selector = {
|
|
4982
|
-
recordId: keyBuilder$
|
|
4983
|
-
node: adapterFragment$
|
|
5099
|
+
recordId: keyBuilder$u(luvio, config),
|
|
5100
|
+
node: adapterFragment$b(luvio, config),
|
|
4984
5101
|
variables: {},
|
|
4985
5102
|
};
|
|
4986
5103
|
const cacheSnapshot = storeLookup(selector, {
|
|
4987
5104
|
config,
|
|
4988
|
-
resolve: () => buildNetworkSnapshot$
|
|
5105
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
4989
5106
|
});
|
|
4990
5107
|
return cacheSnapshot;
|
|
4991
5108
|
}
|
|
4992
5109
|
const getSlackDisplayLoginAdapterFactory = (luvio) => function SlackBridge__getSlackDisplayLogin(untrustedConfig, requestContext) {
|
|
4993
|
-
const config = validateAdapterConfig$
|
|
5110
|
+
const config = validateAdapterConfig$i(untrustedConfig, getSlackDisplayLogin_ConfigPropertyNames);
|
|
4994
5111
|
// Invalid or incomplete config
|
|
4995
5112
|
if (config === null) {
|
|
4996
5113
|
return null;
|
|
4997
5114
|
}
|
|
4998
5115
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4999
|
-
buildCachedSnapshotCachePolicy$
|
|
5116
|
+
buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
|
|
5000
5117
|
};
|
|
5001
5118
|
|
|
5002
5119
|
const VERSION$7 = "32716a7de3c8810288467155d92e5124";
|
|
@@ -5019,19 +5136,19 @@ function validate$7(obj, path = 'SlackBridgeConversationMarkOutputRepresentation
|
|
|
5019
5136
|
return v_error === undefined ? null : v_error;
|
|
5020
5137
|
}
|
|
5021
5138
|
const RepresentationType$7 = 'SlackBridgeConversationMarkOutputRepresentation';
|
|
5022
|
-
function keyBuilder$
|
|
5139
|
+
function keyBuilder$t(luvio, config) {
|
|
5023
5140
|
return keyPrefix + '::' + RepresentationType$7 + ':' + config.channelId;
|
|
5024
5141
|
}
|
|
5025
5142
|
function keyBuilderFromType$4(luvio, object) {
|
|
5026
5143
|
const keyParams = {
|
|
5027
5144
|
channelId: object.channelId
|
|
5028
5145
|
};
|
|
5029
|
-
return keyBuilder$
|
|
5146
|
+
return keyBuilder$t(luvio, keyParams);
|
|
5030
5147
|
}
|
|
5031
5148
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
5032
5149
|
return input;
|
|
5033
5150
|
}
|
|
5034
|
-
const select$
|
|
5151
|
+
const select$m = function SlackBridgeConversationMarkOutputRepresentationSelect() {
|
|
5035
5152
|
return {
|
|
5036
5153
|
kind: 'Fragment',
|
|
5037
5154
|
version: VERSION$7,
|
|
@@ -5083,19 +5200,19 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5083
5200
|
});
|
|
5084
5201
|
}
|
|
5085
5202
|
|
|
5086
|
-
function select$
|
|
5087
|
-
return select$
|
|
5203
|
+
function select$l(luvio, params) {
|
|
5204
|
+
return select$m();
|
|
5088
5205
|
}
|
|
5089
|
-
function getResponseCacheKeys$
|
|
5206
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
5090
5207
|
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
5091
5208
|
}
|
|
5092
|
-
function ingestSuccess$
|
|
5209
|
+
function ingestSuccess$e(luvio, resourceParams, response) {
|
|
5093
5210
|
const { body } = response;
|
|
5094
5211
|
const key = keyBuilderFromType$4(luvio, body);
|
|
5095
5212
|
luvio.storeIngest(key, ingest$7, body);
|
|
5096
5213
|
const snapshot = luvio.storeLookup({
|
|
5097
5214
|
recordId: key,
|
|
5098
|
-
node: select$
|
|
5215
|
+
node: select$l(),
|
|
5099
5216
|
variables: {},
|
|
5100
5217
|
});
|
|
5101
5218
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5106,7 +5223,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
5106
5223
|
deepFreeze(snapshot.data);
|
|
5107
5224
|
return snapshot;
|
|
5108
5225
|
}
|
|
5109
|
-
function createResourceRequest$
|
|
5226
|
+
function createResourceRequest$h(config) {
|
|
5110
5227
|
const headers = {};
|
|
5111
5228
|
return {
|
|
5112
5229
|
baseUri: '/services/data/v64.0',
|
|
@@ -5120,43 +5237,43 @@ function createResourceRequest$f(config) {
|
|
|
5120
5237
|
};
|
|
5121
5238
|
}
|
|
5122
5239
|
|
|
5123
|
-
const adapterName$
|
|
5240
|
+
const adapterName$h = 'postSlackConversationMark';
|
|
5124
5241
|
const postSlackConversationMark_ConfigPropertyMetadata = [
|
|
5125
5242
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5126
5243
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5127
5244
|
generateParamConfigMetadata('messageTs', true, 1 /* QueryParameter */, 0 /* String */),
|
|
5128
5245
|
];
|
|
5129
|
-
const postSlackConversationMark_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5130
|
-
const createResourceParams$
|
|
5131
|
-
function typeCheckConfig$
|
|
5246
|
+
const postSlackConversationMark_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, postSlackConversationMark_ConfigPropertyMetadata);
|
|
5247
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$p(postSlackConversationMark_ConfigPropertyMetadata);
|
|
5248
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
5132
5249
|
const config = {};
|
|
5133
|
-
typeCheckConfig$
|
|
5250
|
+
typeCheckConfig$p(untrustedConfig, config, postSlackConversationMark_ConfigPropertyMetadata);
|
|
5134
5251
|
return config;
|
|
5135
5252
|
}
|
|
5136
|
-
function validateAdapterConfig$
|
|
5253
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
5137
5254
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5138
5255
|
return null;
|
|
5139
5256
|
}
|
|
5140
5257
|
if (process.env.NODE_ENV !== 'production') {
|
|
5141
5258
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5142
5259
|
}
|
|
5143
|
-
const config = typeCheckConfig$
|
|
5260
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
5144
5261
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5145
5262
|
return null;
|
|
5146
5263
|
}
|
|
5147
5264
|
return config;
|
|
5148
5265
|
}
|
|
5149
|
-
function buildNetworkSnapshot$
|
|
5150
|
-
const resourceParams = createResourceParams$
|
|
5151
|
-
const request = createResourceRequest$
|
|
5266
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
5267
|
+
const resourceParams = createResourceParams$h(config);
|
|
5268
|
+
const request = createResourceRequest$h(resourceParams);
|
|
5152
5269
|
return luvio.dispatchResourceRequest(request, options)
|
|
5153
5270
|
.then((response) => {
|
|
5154
5271
|
return luvio.handleSuccessResponse(() => {
|
|
5155
|
-
const snapshot = ingestSuccess$
|
|
5272
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response);
|
|
5156
5273
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5157
5274
|
}, () => {
|
|
5158
5275
|
const cache = new StoreKeyMap();
|
|
5159
|
-
getResponseCacheKeys$
|
|
5276
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
5160
5277
|
return cache;
|
|
5161
5278
|
});
|
|
5162
5279
|
}, (response) => {
|
|
@@ -5166,12 +5283,12 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
5166
5283
|
}
|
|
5167
5284
|
const postSlackConversationMarkAdapterFactory = (luvio) => {
|
|
5168
5285
|
return function postSlackConversationMark(untrustedConfig) {
|
|
5169
|
-
const config = validateAdapterConfig$
|
|
5286
|
+
const config = validateAdapterConfig$h(untrustedConfig, postSlackConversationMark_ConfigPropertyNames);
|
|
5170
5287
|
// Invalid or incomplete config
|
|
5171
5288
|
if (config === null) {
|
|
5172
5289
|
throw new Error('Invalid config for "postSlackConversationMark"');
|
|
5173
5290
|
}
|
|
5174
|
-
return buildNetworkSnapshot$
|
|
5291
|
+
return buildNetworkSnapshot$h(luvio, config);
|
|
5175
5292
|
};
|
|
5176
5293
|
};
|
|
5177
5294
|
|
|
@@ -5228,19 +5345,19 @@ function validate$6(obj, path = 'SlackBridgeConversationMembersOutputRepresentat
|
|
|
5228
5345
|
return v_error === undefined ? null : v_error;
|
|
5229
5346
|
}
|
|
5230
5347
|
const RepresentationType$6 = 'SlackBridgeConversationMembersOutputRepresentation';
|
|
5231
|
-
function keyBuilder$
|
|
5348
|
+
function keyBuilder$s(luvio, config) {
|
|
5232
5349
|
return keyPrefix + '::' + RepresentationType$6 + ':' + config.channelId;
|
|
5233
5350
|
}
|
|
5234
5351
|
function keyBuilderFromType$3(luvio, object) {
|
|
5235
5352
|
const keyParams = {
|
|
5236
5353
|
channelId: object.channelId
|
|
5237
5354
|
};
|
|
5238
|
-
return keyBuilder$
|
|
5355
|
+
return keyBuilder$s(luvio, keyParams);
|
|
5239
5356
|
}
|
|
5240
5357
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
5241
5358
|
return input;
|
|
5242
5359
|
}
|
|
5243
|
-
const select$
|
|
5360
|
+
const select$k = function SlackBridgeConversationMembersOutputRepresentationSelect() {
|
|
5244
5361
|
return {
|
|
5245
5362
|
kind: 'Fragment',
|
|
5246
5363
|
version: VERSION$6,
|
|
@@ -5307,24 +5424,24 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5307
5424
|
});
|
|
5308
5425
|
}
|
|
5309
5426
|
|
|
5310
|
-
function select$
|
|
5311
|
-
return select$
|
|
5427
|
+
function select$j(luvio, params) {
|
|
5428
|
+
return select$k();
|
|
5312
5429
|
}
|
|
5313
|
-
function keyBuilder$
|
|
5314
|
-
return keyBuilder$
|
|
5430
|
+
function keyBuilder$r(luvio, params) {
|
|
5431
|
+
return keyBuilder$s(luvio, {
|
|
5315
5432
|
channelId: params.urlParams.channelId
|
|
5316
5433
|
});
|
|
5317
5434
|
}
|
|
5318
|
-
function getResponseCacheKeys$
|
|
5435
|
+
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
5319
5436
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
5320
5437
|
}
|
|
5321
|
-
function ingestSuccess$
|
|
5438
|
+
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
5322
5439
|
const { body } = response;
|
|
5323
|
-
const key = keyBuilder$
|
|
5440
|
+
const key = keyBuilder$r(luvio, resourceParams);
|
|
5324
5441
|
luvio.storeIngest(key, ingest$6, body);
|
|
5325
5442
|
const snapshot = luvio.storeLookup({
|
|
5326
5443
|
recordId: key,
|
|
5327
|
-
node: select$
|
|
5444
|
+
node: select$j(),
|
|
5328
5445
|
variables: {},
|
|
5329
5446
|
}, snapshotRefresh);
|
|
5330
5447
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5335,13 +5452,13 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5335
5452
|
deepFreeze(snapshot.data);
|
|
5336
5453
|
return snapshot;
|
|
5337
5454
|
}
|
|
5338
|
-
function ingestError$
|
|
5339
|
-
const key = keyBuilder$
|
|
5455
|
+
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
5456
|
+
const key = keyBuilder$r(luvio, params);
|
|
5340
5457
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5341
5458
|
luvio.storeIngestError(key, errorSnapshot);
|
|
5342
5459
|
return errorSnapshot;
|
|
5343
5460
|
}
|
|
5344
|
-
function createResourceRequest$
|
|
5461
|
+
function createResourceRequest$g(config) {
|
|
5345
5462
|
const headers = {};
|
|
5346
5463
|
return {
|
|
5347
5464
|
baseUri: '/services/data/v64.0',
|
|
@@ -5355,106 +5472,106 @@ function createResourceRequest$e(config) {
|
|
|
5355
5472
|
};
|
|
5356
5473
|
}
|
|
5357
5474
|
|
|
5358
|
-
const adapterName$
|
|
5475
|
+
const adapterName$g = 'getSlackConversationMembers';
|
|
5359
5476
|
const getSlackConversationMembers_ConfigPropertyMetadata = [
|
|
5360
5477
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5361
5478
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5362
5479
|
];
|
|
5363
|
-
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5364
|
-
const createResourceParams$
|
|
5365
|
-
function keyBuilder$
|
|
5366
|
-
const resourceParams = createResourceParams$
|
|
5367
|
-
return keyBuilder$
|
|
5480
|
+
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5481
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$p(getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5482
|
+
function keyBuilder$q(luvio, config) {
|
|
5483
|
+
const resourceParams = createResourceParams$g(config);
|
|
5484
|
+
return keyBuilder$r(luvio, resourceParams);
|
|
5368
5485
|
}
|
|
5369
|
-
function typeCheckConfig$
|
|
5486
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
5370
5487
|
const config = {};
|
|
5371
|
-
typeCheckConfig$
|
|
5488
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5372
5489
|
return config;
|
|
5373
5490
|
}
|
|
5374
|
-
function validateAdapterConfig$
|
|
5491
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
5375
5492
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5376
5493
|
return null;
|
|
5377
5494
|
}
|
|
5378
5495
|
if (process.env.NODE_ENV !== 'production') {
|
|
5379
5496
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5380
5497
|
}
|
|
5381
|
-
const config = typeCheckConfig$
|
|
5498
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
5382
5499
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5383
5500
|
return null;
|
|
5384
5501
|
}
|
|
5385
5502
|
return config;
|
|
5386
5503
|
}
|
|
5387
|
-
function adapterFragment$
|
|
5388
|
-
createResourceParams$
|
|
5389
|
-
return select$
|
|
5504
|
+
function adapterFragment$a(luvio, config) {
|
|
5505
|
+
createResourceParams$g(config);
|
|
5506
|
+
return select$j();
|
|
5390
5507
|
}
|
|
5391
|
-
function onFetchResponseSuccess$
|
|
5392
|
-
const snapshot = ingestSuccess$
|
|
5508
|
+
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
5509
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
5393
5510
|
config,
|
|
5394
|
-
resolve: () => buildNetworkSnapshot$
|
|
5511
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
5395
5512
|
});
|
|
5396
5513
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5397
5514
|
}
|
|
5398
|
-
function onFetchResponseError$
|
|
5399
|
-
const snapshot = ingestError$
|
|
5515
|
+
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
5516
|
+
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
5400
5517
|
config,
|
|
5401
|
-
resolve: () => buildNetworkSnapshot$
|
|
5518
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
5402
5519
|
});
|
|
5403
5520
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5404
5521
|
}
|
|
5405
|
-
function buildNetworkSnapshot$
|
|
5406
|
-
const resourceParams = createResourceParams$
|
|
5407
|
-
const request = createResourceRequest$
|
|
5522
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
5523
|
+
const resourceParams = createResourceParams$g(config);
|
|
5524
|
+
const request = createResourceRequest$g(resourceParams);
|
|
5408
5525
|
return luvio.dispatchResourceRequest(request, options)
|
|
5409
5526
|
.then((response) => {
|
|
5410
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
5527
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
5411
5528
|
const cache = new StoreKeyMap();
|
|
5412
|
-
getResponseCacheKeys$
|
|
5529
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
|
|
5413
5530
|
return cache;
|
|
5414
5531
|
});
|
|
5415
5532
|
}, (response) => {
|
|
5416
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
5533
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
|
|
5417
5534
|
});
|
|
5418
5535
|
}
|
|
5419
|
-
function buildNetworkSnapshotCachePolicy$
|
|
5420
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5536
|
+
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
5537
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
|
|
5421
5538
|
}
|
|
5422
|
-
function buildCachedSnapshotCachePolicy$
|
|
5539
|
+
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
5423
5540
|
const { luvio, config } = context;
|
|
5424
5541
|
const selector = {
|
|
5425
|
-
recordId: keyBuilder$
|
|
5426
|
-
node: adapterFragment$
|
|
5542
|
+
recordId: keyBuilder$q(luvio, config),
|
|
5543
|
+
node: adapterFragment$a(luvio, config),
|
|
5427
5544
|
variables: {},
|
|
5428
5545
|
};
|
|
5429
5546
|
const cacheSnapshot = storeLookup(selector, {
|
|
5430
5547
|
config,
|
|
5431
|
-
resolve: () => buildNetworkSnapshot$
|
|
5548
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
5432
5549
|
});
|
|
5433
5550
|
return cacheSnapshot;
|
|
5434
5551
|
}
|
|
5435
5552
|
const getSlackConversationMembersAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMembers(untrustedConfig, requestContext) {
|
|
5436
|
-
const config = validateAdapterConfig$
|
|
5553
|
+
const config = validateAdapterConfig$g(untrustedConfig, getSlackConversationMembers_ConfigPropertyNames);
|
|
5437
5554
|
// Invalid or incomplete config
|
|
5438
5555
|
if (config === null) {
|
|
5439
5556
|
return null;
|
|
5440
5557
|
}
|
|
5441
5558
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5442
|
-
buildCachedSnapshotCachePolicy$
|
|
5559
|
+
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
5443
5560
|
};
|
|
5444
5561
|
|
|
5445
|
-
function select$
|
|
5446
|
-
return select$
|
|
5562
|
+
function select$i(luvio, params) {
|
|
5563
|
+
return select$k();
|
|
5447
5564
|
}
|
|
5448
|
-
function getResponseCacheKeys$
|
|
5565
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
5449
5566
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
5450
5567
|
}
|
|
5451
|
-
function ingestSuccess$
|
|
5568
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
5452
5569
|
const { body } = response;
|
|
5453
5570
|
const key = keyBuilderFromType$3(luvio, body);
|
|
5454
5571
|
luvio.storeIngest(key, ingest$6, body);
|
|
5455
5572
|
const snapshot = luvio.storeLookup({
|
|
5456
5573
|
recordId: key,
|
|
5457
|
-
node: select$
|
|
5574
|
+
node: select$i(),
|
|
5458
5575
|
variables: {},
|
|
5459
5576
|
});
|
|
5460
5577
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5465,7 +5582,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
5465
5582
|
deepFreeze(snapshot.data);
|
|
5466
5583
|
return snapshot;
|
|
5467
5584
|
}
|
|
5468
|
-
function createResourceRequest$
|
|
5585
|
+
function createResourceRequest$f(config) {
|
|
5469
5586
|
const headers = {};
|
|
5470
5587
|
return {
|
|
5471
5588
|
baseUri: '/services/data/v64.0',
|
|
@@ -5479,43 +5596,43 @@ function createResourceRequest$d(config) {
|
|
|
5479
5596
|
};
|
|
5480
5597
|
}
|
|
5481
5598
|
|
|
5482
|
-
const adapterName$
|
|
5599
|
+
const adapterName$f = 'postSlackConversationMembers';
|
|
5483
5600
|
const postSlackConversationMembers_ConfigPropertyMetadata = [
|
|
5484
5601
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5485
5602
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5486
5603
|
generateParamConfigMetadata('slackUserIds', true, 2 /* Body */, 0 /* String */, true),
|
|
5487
5604
|
];
|
|
5488
|
-
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5489
|
-
const createResourceParams$
|
|
5490
|
-
function typeCheckConfig$
|
|
5605
|
+
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
5606
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$p(postSlackConversationMembers_ConfigPropertyMetadata);
|
|
5607
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
5491
5608
|
const config = {};
|
|
5492
|
-
typeCheckConfig$
|
|
5609
|
+
typeCheckConfig$p(untrustedConfig, config, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
5493
5610
|
return config;
|
|
5494
5611
|
}
|
|
5495
|
-
function validateAdapterConfig$
|
|
5612
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
5496
5613
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5497
5614
|
return null;
|
|
5498
5615
|
}
|
|
5499
5616
|
if (process.env.NODE_ENV !== 'production') {
|
|
5500
5617
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5501
5618
|
}
|
|
5502
|
-
const config = typeCheckConfig$
|
|
5619
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
5503
5620
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5504
5621
|
return null;
|
|
5505
5622
|
}
|
|
5506
5623
|
return config;
|
|
5507
5624
|
}
|
|
5508
|
-
function buildNetworkSnapshot$
|
|
5509
|
-
const resourceParams = createResourceParams$
|
|
5510
|
-
const request = createResourceRequest$
|
|
5625
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
5626
|
+
const resourceParams = createResourceParams$f(config);
|
|
5627
|
+
const request = createResourceRequest$f(resourceParams);
|
|
5511
5628
|
return luvio.dispatchResourceRequest(request, options)
|
|
5512
5629
|
.then((response) => {
|
|
5513
5630
|
return luvio.handleSuccessResponse(() => {
|
|
5514
|
-
const snapshot = ingestSuccess$
|
|
5631
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response);
|
|
5515
5632
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5516
5633
|
}, () => {
|
|
5517
5634
|
const cache = new StoreKeyMap();
|
|
5518
|
-
getResponseCacheKeys$
|
|
5635
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
5519
5636
|
return cache;
|
|
5520
5637
|
});
|
|
5521
5638
|
}, (response) => {
|
|
@@ -5525,12 +5642,12 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
5525
5642
|
}
|
|
5526
5643
|
const postSlackConversationMembersAdapterFactory = (luvio) => {
|
|
5527
5644
|
return function postSlackConversationMembers(untrustedConfig) {
|
|
5528
|
-
const config = validateAdapterConfig$
|
|
5645
|
+
const config = validateAdapterConfig$f(untrustedConfig, postSlackConversationMembers_ConfigPropertyNames);
|
|
5529
5646
|
// Invalid or incomplete config
|
|
5530
5647
|
if (config === null) {
|
|
5531
5648
|
throw new Error('Invalid config for "postSlackConversationMembers"');
|
|
5532
5649
|
}
|
|
5533
|
-
return buildNetworkSnapshot$
|
|
5650
|
+
return buildNetworkSnapshot$f(luvio, config);
|
|
5534
5651
|
};
|
|
5535
5652
|
};
|
|
5536
5653
|
|
|
@@ -5554,19 +5671,19 @@ function validate$5(obj, path = 'SlackBridgeConversationMemberOutputRepresentati
|
|
|
5554
5671
|
return v_error === undefined ? null : v_error;
|
|
5555
5672
|
}
|
|
5556
5673
|
const RepresentationType$5 = 'SlackBridgeConversationMemberOutputRepresentation';
|
|
5557
|
-
function keyBuilder$
|
|
5674
|
+
function keyBuilder$p(luvio, config) {
|
|
5558
5675
|
return keyPrefix + '::' + RepresentationType$5 + ':' + config.channelId;
|
|
5559
5676
|
}
|
|
5560
5677
|
function keyBuilderFromType$2(luvio, object) {
|
|
5561
5678
|
const keyParams = {
|
|
5562
5679
|
channelId: object.channelId
|
|
5563
5680
|
};
|
|
5564
|
-
return keyBuilder$
|
|
5681
|
+
return keyBuilder$p(luvio, keyParams);
|
|
5565
5682
|
}
|
|
5566
5683
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
5567
5684
|
return input;
|
|
5568
5685
|
}
|
|
5569
|
-
const select$
|
|
5686
|
+
const select$h = function SlackBridgeConversationMemberOutputRepresentationSelect() {
|
|
5570
5687
|
return {
|
|
5571
5688
|
kind: 'Fragment',
|
|
5572
5689
|
version: VERSION$5,
|
|
@@ -5618,13 +5735,13 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5618
5735
|
});
|
|
5619
5736
|
}
|
|
5620
5737
|
|
|
5621
|
-
function keyBuilder$
|
|
5622
|
-
return keyBuilder$
|
|
5738
|
+
function keyBuilder$o(luvio, params) {
|
|
5739
|
+
return keyBuilder$p(luvio, {
|
|
5623
5740
|
channelId: params.urlParams.channelId
|
|
5624
5741
|
});
|
|
5625
5742
|
}
|
|
5626
|
-
function getResponseCacheKeys$
|
|
5627
|
-
const key = keyBuilder$
|
|
5743
|
+
function getResponseCacheKeys$e(cacheKeyMap, luvio, resourceParams) {
|
|
5744
|
+
const key = keyBuilder$o(luvio, resourceParams);
|
|
5628
5745
|
cacheKeyMap.set(key, {
|
|
5629
5746
|
namespace: keyPrefix,
|
|
5630
5747
|
representationName: RepresentationType$5,
|
|
@@ -5632,10 +5749,10 @@ function getResponseCacheKeys$c(cacheKeyMap, luvio, resourceParams) {
|
|
|
5632
5749
|
});
|
|
5633
5750
|
}
|
|
5634
5751
|
function evictSuccess$2(luvio, resourceParams) {
|
|
5635
|
-
const key = keyBuilder$
|
|
5752
|
+
const key = keyBuilder$o(luvio, resourceParams);
|
|
5636
5753
|
luvio.storeEvict(key);
|
|
5637
5754
|
}
|
|
5638
|
-
function createResourceRequest$
|
|
5755
|
+
function createResourceRequest$e(config) {
|
|
5639
5756
|
const headers = {};
|
|
5640
5757
|
return {
|
|
5641
5758
|
baseUri: '/services/data/v64.0',
|
|
@@ -5649,35 +5766,35 @@ function createResourceRequest$c(config) {
|
|
|
5649
5766
|
};
|
|
5650
5767
|
}
|
|
5651
5768
|
|
|
5652
|
-
const adapterName$
|
|
5769
|
+
const adapterName$e = 'deleteSlackConversationMember';
|
|
5653
5770
|
const deleteSlackConversationMember_ConfigPropertyMetadata = [
|
|
5654
5771
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5655
5772
|
generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5656
5773
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5657
5774
|
];
|
|
5658
|
-
const deleteSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5659
|
-
const createResourceParams$
|
|
5660
|
-
function typeCheckConfig$
|
|
5775
|
+
const deleteSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
5776
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$p(deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
5777
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
5661
5778
|
const config = {};
|
|
5662
|
-
typeCheckConfig$
|
|
5779
|
+
typeCheckConfig$p(untrustedConfig, config, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
5663
5780
|
return config;
|
|
5664
5781
|
}
|
|
5665
|
-
function validateAdapterConfig$
|
|
5782
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
5666
5783
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5667
5784
|
return null;
|
|
5668
5785
|
}
|
|
5669
5786
|
if (process.env.NODE_ENV !== 'production') {
|
|
5670
5787
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5671
5788
|
}
|
|
5672
|
-
const config = typeCheckConfig$
|
|
5789
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
5673
5790
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5674
5791
|
return null;
|
|
5675
5792
|
}
|
|
5676
5793
|
return config;
|
|
5677
5794
|
}
|
|
5678
|
-
function buildNetworkSnapshot$
|
|
5679
|
-
const resourceParams = createResourceParams$
|
|
5680
|
-
const request = createResourceRequest$
|
|
5795
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
5796
|
+
const resourceParams = createResourceParams$e(config);
|
|
5797
|
+
const request = createResourceRequest$e(resourceParams);
|
|
5681
5798
|
return luvio.dispatchResourceRequest(request, options)
|
|
5682
5799
|
.then(() => {
|
|
5683
5800
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -5685,7 +5802,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
5685
5802
|
return luvio.storeBroadcast();
|
|
5686
5803
|
}, () => {
|
|
5687
5804
|
const cache = new StoreKeyMap();
|
|
5688
|
-
getResponseCacheKeys$
|
|
5805
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams);
|
|
5689
5806
|
return cache;
|
|
5690
5807
|
});
|
|
5691
5808
|
}, (response) => {
|
|
@@ -5695,33 +5812,33 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
5695
5812
|
}
|
|
5696
5813
|
const deleteSlackConversationMemberAdapterFactory = (luvio) => {
|
|
5697
5814
|
return function SlackBridgedeleteSlackConversationMember(untrustedConfig) {
|
|
5698
|
-
const config = validateAdapterConfig$
|
|
5815
|
+
const config = validateAdapterConfig$e(untrustedConfig, deleteSlackConversationMember_ConfigPropertyNames);
|
|
5699
5816
|
// Invalid or incomplete config
|
|
5700
5817
|
if (config === null) {
|
|
5701
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
5818
|
+
throw new Error(`Invalid config for "${adapterName$e}"`);
|
|
5702
5819
|
}
|
|
5703
|
-
return buildNetworkSnapshot$
|
|
5820
|
+
return buildNetworkSnapshot$e(luvio, config);
|
|
5704
5821
|
};
|
|
5705
5822
|
};
|
|
5706
5823
|
|
|
5707
|
-
function select$
|
|
5708
|
-
return select$
|
|
5824
|
+
function select$g(luvio, params) {
|
|
5825
|
+
return select$h();
|
|
5709
5826
|
}
|
|
5710
|
-
function keyBuilder$
|
|
5711
|
-
return keyBuilder$
|
|
5827
|
+
function keyBuilder$n(luvio, params) {
|
|
5828
|
+
return keyBuilder$p(luvio, {
|
|
5712
5829
|
channelId: params.urlParams.channelId
|
|
5713
5830
|
});
|
|
5714
5831
|
}
|
|
5715
|
-
function getResponseCacheKeys$
|
|
5832
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
5716
5833
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
5717
5834
|
}
|
|
5718
|
-
function ingestSuccess$
|
|
5835
|
+
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
5719
5836
|
const { body } = response;
|
|
5720
|
-
const key = keyBuilder$
|
|
5837
|
+
const key = keyBuilder$n(luvio, resourceParams);
|
|
5721
5838
|
luvio.storeIngest(key, ingest$5, body);
|
|
5722
5839
|
const snapshot = luvio.storeLookup({
|
|
5723
5840
|
recordId: key,
|
|
5724
|
-
node: select$
|
|
5841
|
+
node: select$g(),
|
|
5725
5842
|
variables: {},
|
|
5726
5843
|
}, snapshotRefresh);
|
|
5727
5844
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5732,13 +5849,13 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5732
5849
|
deepFreeze(snapshot.data);
|
|
5733
5850
|
return snapshot;
|
|
5734
5851
|
}
|
|
5735
|
-
function ingestError$
|
|
5736
|
-
const key = keyBuilder$
|
|
5852
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
5853
|
+
const key = keyBuilder$n(luvio, params);
|
|
5737
5854
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5738
5855
|
luvio.storeIngestError(key, errorSnapshot);
|
|
5739
5856
|
return errorSnapshot;
|
|
5740
5857
|
}
|
|
5741
|
-
function createResourceRequest$
|
|
5858
|
+
function createResourceRequest$d(config) {
|
|
5742
5859
|
const headers = {};
|
|
5743
5860
|
return {
|
|
5744
5861
|
baseUri: '/services/data/v64.0',
|
|
@@ -5752,92 +5869,92 @@ function createResourceRequest$b(config) {
|
|
|
5752
5869
|
};
|
|
5753
5870
|
}
|
|
5754
5871
|
|
|
5755
|
-
const adapterName$
|
|
5872
|
+
const adapterName$d = 'getSlackConversationMember';
|
|
5756
5873
|
const getSlackConversationMember_ConfigPropertyMetadata = [
|
|
5757
5874
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5758
5875
|
generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5759
5876
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5760
5877
|
];
|
|
5761
|
-
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5762
|
-
const createResourceParams$
|
|
5763
|
-
function keyBuilder$
|
|
5764
|
-
const resourceParams = createResourceParams$
|
|
5765
|
-
return keyBuilder$
|
|
5878
|
+
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getSlackConversationMember_ConfigPropertyMetadata);
|
|
5879
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$p(getSlackConversationMember_ConfigPropertyMetadata);
|
|
5880
|
+
function keyBuilder$m(luvio, config) {
|
|
5881
|
+
const resourceParams = createResourceParams$d(config);
|
|
5882
|
+
return keyBuilder$n(luvio, resourceParams);
|
|
5766
5883
|
}
|
|
5767
|
-
function typeCheckConfig$
|
|
5884
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
5768
5885
|
const config = {};
|
|
5769
|
-
typeCheckConfig$
|
|
5886
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackConversationMember_ConfigPropertyMetadata);
|
|
5770
5887
|
return config;
|
|
5771
5888
|
}
|
|
5772
|
-
function validateAdapterConfig$
|
|
5889
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
5773
5890
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5774
5891
|
return null;
|
|
5775
5892
|
}
|
|
5776
5893
|
if (process.env.NODE_ENV !== 'production') {
|
|
5777
5894
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5778
5895
|
}
|
|
5779
|
-
const config = typeCheckConfig$
|
|
5896
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
5780
5897
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5781
5898
|
return null;
|
|
5782
5899
|
}
|
|
5783
5900
|
return config;
|
|
5784
5901
|
}
|
|
5785
|
-
function adapterFragment$
|
|
5786
|
-
createResourceParams$
|
|
5787
|
-
return select$
|
|
5902
|
+
function adapterFragment$9(luvio, config) {
|
|
5903
|
+
createResourceParams$d(config);
|
|
5904
|
+
return select$g();
|
|
5788
5905
|
}
|
|
5789
|
-
function onFetchResponseSuccess$
|
|
5790
|
-
const snapshot = ingestSuccess$
|
|
5906
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
5907
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
5791
5908
|
config,
|
|
5792
|
-
resolve: () => buildNetworkSnapshot$
|
|
5909
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
5793
5910
|
});
|
|
5794
5911
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5795
5912
|
}
|
|
5796
|
-
function onFetchResponseError$
|
|
5797
|
-
const snapshot = ingestError$
|
|
5913
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
5914
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
5798
5915
|
config,
|
|
5799
|
-
resolve: () => buildNetworkSnapshot$
|
|
5916
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
5800
5917
|
});
|
|
5801
5918
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5802
5919
|
}
|
|
5803
|
-
function buildNetworkSnapshot$
|
|
5804
|
-
const resourceParams = createResourceParams$
|
|
5805
|
-
const request = createResourceRequest$
|
|
5920
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
5921
|
+
const resourceParams = createResourceParams$d(config);
|
|
5922
|
+
const request = createResourceRequest$d(resourceParams);
|
|
5806
5923
|
return luvio.dispatchResourceRequest(request, options)
|
|
5807
5924
|
.then((response) => {
|
|
5808
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
5925
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
5809
5926
|
const cache = new StoreKeyMap();
|
|
5810
|
-
getResponseCacheKeys$
|
|
5927
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
5811
5928
|
return cache;
|
|
5812
5929
|
});
|
|
5813
5930
|
}, (response) => {
|
|
5814
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
5931
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
5815
5932
|
});
|
|
5816
5933
|
}
|
|
5817
|
-
function buildNetworkSnapshotCachePolicy$
|
|
5818
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5934
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
5935
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
5819
5936
|
}
|
|
5820
|
-
function buildCachedSnapshotCachePolicy$
|
|
5937
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
5821
5938
|
const { luvio, config } = context;
|
|
5822
5939
|
const selector = {
|
|
5823
|
-
recordId: keyBuilder$
|
|
5824
|
-
node: adapterFragment$
|
|
5940
|
+
recordId: keyBuilder$m(luvio, config),
|
|
5941
|
+
node: adapterFragment$9(luvio, config),
|
|
5825
5942
|
variables: {},
|
|
5826
5943
|
};
|
|
5827
5944
|
const cacheSnapshot = storeLookup(selector, {
|
|
5828
5945
|
config,
|
|
5829
|
-
resolve: () => buildNetworkSnapshot$
|
|
5946
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
5830
5947
|
});
|
|
5831
5948
|
return cacheSnapshot;
|
|
5832
5949
|
}
|
|
5833
5950
|
const getSlackConversationMemberAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMember(untrustedConfig, requestContext) {
|
|
5834
|
-
const config = validateAdapterConfig$
|
|
5951
|
+
const config = validateAdapterConfig$d(untrustedConfig, getSlackConversationMember_ConfigPropertyNames);
|
|
5835
5952
|
// Invalid or incomplete config
|
|
5836
5953
|
if (config === null) {
|
|
5837
5954
|
return null;
|
|
5838
5955
|
}
|
|
5839
5956
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5840
|
-
buildCachedSnapshotCachePolicy$
|
|
5957
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
5841
5958
|
};
|
|
5842
5959
|
|
|
5843
5960
|
const VERSION$4 = "605674abcbc0dad7e2707e4e00e8d4cd";
|
|
@@ -5865,19 +5982,19 @@ function validate$4(obj, path = 'SlackBridgeMessageFragmentOutputRepresentation'
|
|
|
5865
5982
|
return v_error === undefined ? null : v_error;
|
|
5866
5983
|
}
|
|
5867
5984
|
const RepresentationType$4 = 'SlackBridgeMessageFragmentOutputRepresentation';
|
|
5868
|
-
function keyBuilder$
|
|
5985
|
+
function keyBuilder$l(luvio, config) {
|
|
5869
5986
|
return keyPrefix + '::' + RepresentationType$4 + ':' + config.channelId;
|
|
5870
5987
|
}
|
|
5871
5988
|
function keyBuilderFromType$1(luvio, object) {
|
|
5872
5989
|
const keyParams = {
|
|
5873
5990
|
channelId: object.channelId
|
|
5874
5991
|
};
|
|
5875
|
-
return keyBuilder$
|
|
5992
|
+
return keyBuilder$l(luvio, keyParams);
|
|
5876
5993
|
}
|
|
5877
5994
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
5878
5995
|
return input;
|
|
5879
5996
|
}
|
|
5880
|
-
const select$
|
|
5997
|
+
const select$f = function SlackBridgeMessageFragmentOutputRepresentationSelect() {
|
|
5881
5998
|
return {
|
|
5882
5999
|
kind: 'Fragment',
|
|
5883
6000
|
version: VERSION$4,
|
|
@@ -5938,13 +6055,13 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5938
6055
|
});
|
|
5939
6056
|
}
|
|
5940
6057
|
|
|
5941
|
-
function keyBuilder$
|
|
5942
|
-
return keyBuilder$
|
|
6058
|
+
function keyBuilder$k(luvio, params) {
|
|
6059
|
+
return keyBuilder$l(luvio, {
|
|
5943
6060
|
channelId: params.urlParams.channelId
|
|
5944
6061
|
});
|
|
5945
6062
|
}
|
|
5946
|
-
function getResponseCacheKeys$
|
|
5947
|
-
const key = keyBuilder$
|
|
6063
|
+
function getResponseCacheKeys$c(cacheKeyMap, luvio, resourceParams) {
|
|
6064
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
5948
6065
|
cacheKeyMap.set(key, {
|
|
5949
6066
|
namespace: keyPrefix,
|
|
5950
6067
|
representationName: RepresentationType$4,
|
|
@@ -5952,10 +6069,10 @@ function getResponseCacheKeys$a(cacheKeyMap, luvio, resourceParams) {
|
|
|
5952
6069
|
});
|
|
5953
6070
|
}
|
|
5954
6071
|
function evictSuccess$1(luvio, resourceParams) {
|
|
5955
|
-
const key = keyBuilder$
|
|
6072
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
5956
6073
|
luvio.storeEvict(key);
|
|
5957
6074
|
}
|
|
5958
|
-
function createResourceRequest$
|
|
6075
|
+
function createResourceRequest$c(config) {
|
|
5959
6076
|
const headers = {};
|
|
5960
6077
|
return {
|
|
5961
6078
|
baseUri: '/services/data/v64.0',
|
|
@@ -5969,35 +6086,35 @@ function createResourceRequest$a(config) {
|
|
|
5969
6086
|
};
|
|
5970
6087
|
}
|
|
5971
6088
|
|
|
5972
|
-
const adapterName$
|
|
6089
|
+
const adapterName$c = 'deleteSlackMessage';
|
|
5973
6090
|
const deleteSlackMessage_ConfigPropertyMetadata = [
|
|
5974
6091
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5975
6092
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5976
6093
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5977
6094
|
];
|
|
5978
|
-
const deleteSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5979
|
-
const createResourceParams$
|
|
5980
|
-
function typeCheckConfig$
|
|
6095
|
+
const deleteSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, deleteSlackMessage_ConfigPropertyMetadata);
|
|
6096
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$p(deleteSlackMessage_ConfigPropertyMetadata);
|
|
6097
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
5981
6098
|
const config = {};
|
|
5982
|
-
typeCheckConfig$
|
|
6099
|
+
typeCheckConfig$p(untrustedConfig, config, deleteSlackMessage_ConfigPropertyMetadata);
|
|
5983
6100
|
return config;
|
|
5984
6101
|
}
|
|
5985
|
-
function validateAdapterConfig$
|
|
6102
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
5986
6103
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5987
6104
|
return null;
|
|
5988
6105
|
}
|
|
5989
6106
|
if (process.env.NODE_ENV !== 'production') {
|
|
5990
6107
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5991
6108
|
}
|
|
5992
|
-
const config = typeCheckConfig$
|
|
6109
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
5993
6110
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5994
6111
|
return null;
|
|
5995
6112
|
}
|
|
5996
6113
|
return config;
|
|
5997
6114
|
}
|
|
5998
|
-
function buildNetworkSnapshot$
|
|
5999
|
-
const resourceParams = createResourceParams$
|
|
6000
|
-
const request = createResourceRequest$
|
|
6115
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
6116
|
+
const resourceParams = createResourceParams$c(config);
|
|
6117
|
+
const request = createResourceRequest$c(resourceParams);
|
|
6001
6118
|
return luvio.dispatchResourceRequest(request, options)
|
|
6002
6119
|
.then(() => {
|
|
6003
6120
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -6005,7 +6122,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
6005
6122
|
return luvio.storeBroadcast();
|
|
6006
6123
|
}, () => {
|
|
6007
6124
|
const cache = new StoreKeyMap();
|
|
6008
|
-
getResponseCacheKeys$
|
|
6125
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams);
|
|
6009
6126
|
return cache;
|
|
6010
6127
|
});
|
|
6011
6128
|
}, (response) => {
|
|
@@ -6015,33 +6132,33 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
6015
6132
|
}
|
|
6016
6133
|
const deleteSlackMessageAdapterFactory = (luvio) => {
|
|
6017
6134
|
return function SlackBridgedeleteSlackMessage(untrustedConfig) {
|
|
6018
|
-
const config = validateAdapterConfig$
|
|
6135
|
+
const config = validateAdapterConfig$c(untrustedConfig, deleteSlackMessage_ConfigPropertyNames);
|
|
6019
6136
|
// Invalid or incomplete config
|
|
6020
6137
|
if (config === null) {
|
|
6021
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
6138
|
+
throw new Error(`Invalid config for "${adapterName$c}"`);
|
|
6022
6139
|
}
|
|
6023
|
-
return buildNetworkSnapshot$
|
|
6140
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
6024
6141
|
};
|
|
6025
6142
|
};
|
|
6026
6143
|
|
|
6027
|
-
function select$
|
|
6028
|
-
return select$
|
|
6144
|
+
function select$e(luvio, params) {
|
|
6145
|
+
return select$f();
|
|
6029
6146
|
}
|
|
6030
|
-
function keyBuilder$
|
|
6031
|
-
return keyBuilder$
|
|
6147
|
+
function keyBuilder$j(luvio, params) {
|
|
6148
|
+
return keyBuilder$l(luvio, {
|
|
6032
6149
|
channelId: params.urlParams.channelId
|
|
6033
6150
|
});
|
|
6034
6151
|
}
|
|
6035
|
-
function getResponseCacheKeys$
|
|
6152
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
6036
6153
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
6037
6154
|
}
|
|
6038
|
-
function ingestSuccess$
|
|
6155
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
6039
6156
|
const { body } = response;
|
|
6040
|
-
const key = keyBuilder$
|
|
6157
|
+
const key = keyBuilder$j(luvio, resourceParams);
|
|
6041
6158
|
luvio.storeIngest(key, ingest$4, body);
|
|
6042
6159
|
const snapshot = luvio.storeLookup({
|
|
6043
6160
|
recordId: key,
|
|
6044
|
-
node: select$
|
|
6161
|
+
node: select$e(),
|
|
6045
6162
|
variables: {},
|
|
6046
6163
|
}, snapshotRefresh);
|
|
6047
6164
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6052,13 +6169,13 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6052
6169
|
deepFreeze(snapshot.data);
|
|
6053
6170
|
return snapshot;
|
|
6054
6171
|
}
|
|
6055
|
-
function ingestError$
|
|
6056
|
-
const key = keyBuilder$
|
|
6172
|
+
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
6173
|
+
const key = keyBuilder$j(luvio, params);
|
|
6057
6174
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6058
6175
|
luvio.storeIngestError(key, errorSnapshot);
|
|
6059
6176
|
return errorSnapshot;
|
|
6060
6177
|
}
|
|
6061
|
-
function createResourceRequest$
|
|
6178
|
+
function createResourceRequest$b(config) {
|
|
6062
6179
|
const headers = {};
|
|
6063
6180
|
return {
|
|
6064
6181
|
baseUri: '/services/data/v64.0',
|
|
@@ -6072,107 +6189,107 @@ function createResourceRequest$9(config) {
|
|
|
6072
6189
|
};
|
|
6073
6190
|
}
|
|
6074
6191
|
|
|
6075
|
-
const adapterName$
|
|
6192
|
+
const adapterName$b = 'getSlackMessage';
|
|
6076
6193
|
const getSlackMessage_ConfigPropertyMetadata = [
|
|
6077
6194
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6078
6195
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6079
6196
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6080
6197
|
];
|
|
6081
|
-
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6082
|
-
const createResourceParams$
|
|
6083
|
-
function keyBuilder$
|
|
6084
|
-
const resourceParams = createResourceParams$
|
|
6085
|
-
return keyBuilder$
|
|
6198
|
+
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSlackMessage_ConfigPropertyMetadata);
|
|
6199
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$p(getSlackMessage_ConfigPropertyMetadata);
|
|
6200
|
+
function keyBuilder$i(luvio, config) {
|
|
6201
|
+
const resourceParams = createResourceParams$b(config);
|
|
6202
|
+
return keyBuilder$j(luvio, resourceParams);
|
|
6086
6203
|
}
|
|
6087
|
-
function typeCheckConfig$
|
|
6204
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
6088
6205
|
const config = {};
|
|
6089
|
-
typeCheckConfig$
|
|
6206
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
|
|
6090
6207
|
return config;
|
|
6091
6208
|
}
|
|
6092
|
-
function validateAdapterConfig$
|
|
6209
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
6093
6210
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6094
6211
|
return null;
|
|
6095
6212
|
}
|
|
6096
6213
|
if (process.env.NODE_ENV !== 'production') {
|
|
6097
6214
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6098
6215
|
}
|
|
6099
|
-
const config = typeCheckConfig$
|
|
6216
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
6100
6217
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6101
6218
|
return null;
|
|
6102
6219
|
}
|
|
6103
6220
|
return config;
|
|
6104
6221
|
}
|
|
6105
|
-
function adapterFragment$
|
|
6106
|
-
createResourceParams$
|
|
6107
|
-
return select$
|
|
6222
|
+
function adapterFragment$8(luvio, config) {
|
|
6223
|
+
createResourceParams$b(config);
|
|
6224
|
+
return select$e();
|
|
6108
6225
|
}
|
|
6109
|
-
function onFetchResponseSuccess$
|
|
6110
|
-
const snapshot = ingestSuccess$
|
|
6226
|
+
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
6227
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
6111
6228
|
config,
|
|
6112
|
-
resolve: () => buildNetworkSnapshot$
|
|
6229
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
6113
6230
|
});
|
|
6114
6231
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6115
6232
|
}
|
|
6116
|
-
function onFetchResponseError$
|
|
6117
|
-
const snapshot = ingestError$
|
|
6233
|
+
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
6234
|
+
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
6118
6235
|
config,
|
|
6119
|
-
resolve: () => buildNetworkSnapshot$
|
|
6236
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
6120
6237
|
});
|
|
6121
6238
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6122
6239
|
}
|
|
6123
|
-
function buildNetworkSnapshot$
|
|
6124
|
-
const resourceParams = createResourceParams$
|
|
6125
|
-
const request = createResourceRequest$
|
|
6240
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
6241
|
+
const resourceParams = createResourceParams$b(config);
|
|
6242
|
+
const request = createResourceRequest$b(resourceParams);
|
|
6126
6243
|
return luvio.dispatchResourceRequest(request, options)
|
|
6127
6244
|
.then((response) => {
|
|
6128
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
6245
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
6129
6246
|
const cache = new StoreKeyMap();
|
|
6130
|
-
getResponseCacheKeys$
|
|
6247
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
6131
6248
|
return cache;
|
|
6132
6249
|
});
|
|
6133
6250
|
}, (response) => {
|
|
6134
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
6251
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
|
|
6135
6252
|
});
|
|
6136
6253
|
}
|
|
6137
|
-
function buildNetworkSnapshotCachePolicy$
|
|
6138
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6254
|
+
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
6255
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
6139
6256
|
}
|
|
6140
|
-
function buildCachedSnapshotCachePolicy$
|
|
6257
|
+
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
6141
6258
|
const { luvio, config } = context;
|
|
6142
6259
|
const selector = {
|
|
6143
|
-
recordId: keyBuilder$
|
|
6144
|
-
node: adapterFragment$
|
|
6260
|
+
recordId: keyBuilder$i(luvio, config),
|
|
6261
|
+
node: adapterFragment$8(luvio, config),
|
|
6145
6262
|
variables: {},
|
|
6146
6263
|
};
|
|
6147
6264
|
const cacheSnapshot = storeLookup(selector, {
|
|
6148
6265
|
config,
|
|
6149
|
-
resolve: () => buildNetworkSnapshot$
|
|
6266
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
6150
6267
|
});
|
|
6151
6268
|
return cacheSnapshot;
|
|
6152
6269
|
}
|
|
6153
6270
|
const getSlackMessageAdapterFactory = (luvio) => function SlackBridge__getSlackMessage(untrustedConfig, requestContext) {
|
|
6154
|
-
const config = validateAdapterConfig$
|
|
6271
|
+
const config = validateAdapterConfig$b(untrustedConfig, getSlackMessage_ConfigPropertyNames);
|
|
6155
6272
|
// Invalid or incomplete config
|
|
6156
6273
|
if (config === null) {
|
|
6157
6274
|
return null;
|
|
6158
6275
|
}
|
|
6159
6276
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
6160
|
-
buildCachedSnapshotCachePolicy$
|
|
6277
|
+
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
6161
6278
|
};
|
|
6162
6279
|
|
|
6163
|
-
function select$
|
|
6164
|
-
return select$
|
|
6280
|
+
function select$d(luvio, params) {
|
|
6281
|
+
return select$f();
|
|
6165
6282
|
}
|
|
6166
|
-
function getResponseCacheKeys$
|
|
6283
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
6167
6284
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
6168
6285
|
}
|
|
6169
|
-
function ingestSuccess$
|
|
6286
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
6170
6287
|
const { body } = response;
|
|
6171
6288
|
const key = keyBuilderFromType$1(luvio, body);
|
|
6172
6289
|
luvio.storeIngest(key, ingest$4, body);
|
|
6173
6290
|
const snapshot = luvio.storeLookup({
|
|
6174
6291
|
recordId: key,
|
|
6175
|
-
node: select$
|
|
6292
|
+
node: select$d(),
|
|
6176
6293
|
variables: {},
|
|
6177
6294
|
});
|
|
6178
6295
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6183,7 +6300,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
6183
6300
|
deepFreeze(snapshot.data);
|
|
6184
6301
|
return snapshot;
|
|
6185
6302
|
}
|
|
6186
|
-
function createResourceRequest$
|
|
6303
|
+
function createResourceRequest$a(config) {
|
|
6187
6304
|
const headers = {};
|
|
6188
6305
|
return {
|
|
6189
6306
|
baseUri: '/services/data/v64.0',
|
|
@@ -6197,44 +6314,44 @@ function createResourceRequest$8(config) {
|
|
|
6197
6314
|
};
|
|
6198
6315
|
}
|
|
6199
6316
|
|
|
6200
|
-
const adapterName$
|
|
6317
|
+
const adapterName$a = 'patchSlackMessage';
|
|
6201
6318
|
const patchSlackMessage_ConfigPropertyMetadata = [
|
|
6202
6319
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6203
6320
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6204
6321
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6205
6322
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
6206
6323
|
];
|
|
6207
|
-
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6208
|
-
const createResourceParams$
|
|
6209
|
-
function typeCheckConfig$
|
|
6324
|
+
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, patchSlackMessage_ConfigPropertyMetadata);
|
|
6325
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$p(patchSlackMessage_ConfigPropertyMetadata);
|
|
6326
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
6210
6327
|
const config = {};
|
|
6211
|
-
typeCheckConfig$
|
|
6328
|
+
typeCheckConfig$p(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
|
|
6212
6329
|
return config;
|
|
6213
6330
|
}
|
|
6214
|
-
function validateAdapterConfig$
|
|
6331
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
6215
6332
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6216
6333
|
return null;
|
|
6217
6334
|
}
|
|
6218
6335
|
if (process.env.NODE_ENV !== 'production') {
|
|
6219
6336
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6220
6337
|
}
|
|
6221
|
-
const config = typeCheckConfig$
|
|
6338
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
6222
6339
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6223
6340
|
return null;
|
|
6224
6341
|
}
|
|
6225
6342
|
return config;
|
|
6226
6343
|
}
|
|
6227
|
-
function buildNetworkSnapshot$
|
|
6228
|
-
const resourceParams = createResourceParams$
|
|
6229
|
-
const request = createResourceRequest$
|
|
6344
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
6345
|
+
const resourceParams = createResourceParams$a(config);
|
|
6346
|
+
const request = createResourceRequest$a(resourceParams);
|
|
6230
6347
|
return luvio.dispatchResourceRequest(request, options)
|
|
6231
6348
|
.then((response) => {
|
|
6232
6349
|
return luvio.handleSuccessResponse(() => {
|
|
6233
|
-
const snapshot = ingestSuccess$
|
|
6350
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
6234
6351
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6235
6352
|
}, () => {
|
|
6236
6353
|
const cache = new StoreKeyMap();
|
|
6237
|
-
getResponseCacheKeys$
|
|
6354
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
6238
6355
|
return cache;
|
|
6239
6356
|
});
|
|
6240
6357
|
}, (response) => {
|
|
@@ -6244,12 +6361,12 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
6244
6361
|
}
|
|
6245
6362
|
const patchSlackMessageAdapterFactory = (luvio) => {
|
|
6246
6363
|
return function patchSlackMessage(untrustedConfig) {
|
|
6247
|
-
const config = validateAdapterConfig$
|
|
6364
|
+
const config = validateAdapterConfig$a(untrustedConfig, patchSlackMessage_ConfigPropertyNames);
|
|
6248
6365
|
// Invalid or incomplete config
|
|
6249
6366
|
if (config === null) {
|
|
6250
6367
|
throw new Error('Invalid config for "patchSlackMessage"');
|
|
6251
6368
|
}
|
|
6252
|
-
return buildNetworkSnapshot$
|
|
6369
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
6253
6370
|
};
|
|
6254
6371
|
};
|
|
6255
6372
|
|
|
@@ -6293,20 +6410,20 @@ function validate$3(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
|
6293
6410
|
return v_error === undefined ? null : v_error;
|
|
6294
6411
|
}
|
|
6295
6412
|
const RepresentationType$3 = 'SlackBridgeReactionsOutputRepresentation';
|
|
6296
|
-
function keyBuilder$
|
|
6413
|
+
function keyBuilder$h(luvio, config) {
|
|
6297
6414
|
return keyPrefix + '::' + RepresentationType$3 + ':' + config.channelId;
|
|
6298
6415
|
}
|
|
6299
6416
|
function keyBuilderFromType(luvio, object) {
|
|
6300
6417
|
const keyParams = {
|
|
6301
6418
|
channelId: object.channelId
|
|
6302
6419
|
};
|
|
6303
|
-
return keyBuilder$
|
|
6420
|
+
return keyBuilder$h(luvio, keyParams);
|
|
6304
6421
|
}
|
|
6305
6422
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
6306
6423
|
return input;
|
|
6307
6424
|
}
|
|
6308
|
-
const select$
|
|
6309
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
6425
|
+
const select$c = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
6426
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$G();
|
|
6310
6427
|
return {
|
|
6311
6428
|
kind: 'Fragment',
|
|
6312
6429
|
version: VERSION$3,
|
|
@@ -6383,13 +6500,13 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6383
6500
|
});
|
|
6384
6501
|
}
|
|
6385
6502
|
|
|
6386
|
-
function keyBuilder$
|
|
6387
|
-
return keyBuilder$
|
|
6503
|
+
function keyBuilder$g(luvio, params) {
|
|
6504
|
+
return keyBuilder$h(luvio, {
|
|
6388
6505
|
channelId: params.urlParams.channelId
|
|
6389
6506
|
});
|
|
6390
6507
|
}
|
|
6391
|
-
function getResponseCacheKeys$
|
|
6392
|
-
const key = keyBuilder$
|
|
6508
|
+
function getResponseCacheKeys$9(cacheKeyMap, luvio, resourceParams) {
|
|
6509
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
6393
6510
|
cacheKeyMap.set(key, {
|
|
6394
6511
|
namespace: keyPrefix,
|
|
6395
6512
|
representationName: RepresentationType$3,
|
|
@@ -6397,10 +6514,10 @@ function getResponseCacheKeys$7(cacheKeyMap, luvio, resourceParams) {
|
|
|
6397
6514
|
});
|
|
6398
6515
|
}
|
|
6399
6516
|
function evictSuccess(luvio, resourceParams) {
|
|
6400
|
-
const key = keyBuilder$
|
|
6517
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
6401
6518
|
luvio.storeEvict(key);
|
|
6402
6519
|
}
|
|
6403
|
-
function createResourceRequest$
|
|
6520
|
+
function createResourceRequest$9(config) {
|
|
6404
6521
|
const headers = {};
|
|
6405
6522
|
return {
|
|
6406
6523
|
baseUri: '/services/data/v64.0',
|
|
@@ -6414,36 +6531,36 @@ function createResourceRequest$7(config) {
|
|
|
6414
6531
|
};
|
|
6415
6532
|
}
|
|
6416
6533
|
|
|
6417
|
-
const adapterName$
|
|
6534
|
+
const adapterName$9 = 'deleteSlackMessageReactions';
|
|
6418
6535
|
const deleteSlackMessageReactions_ConfigPropertyMetadata = [
|
|
6419
6536
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6420
6537
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6421
6538
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6422
6539
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6423
6540
|
];
|
|
6424
|
-
const deleteSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6425
|
-
const createResourceParams$
|
|
6426
|
-
function typeCheckConfig$
|
|
6541
|
+
const deleteSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
6542
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$p(deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
6543
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
6427
6544
|
const config = {};
|
|
6428
|
-
typeCheckConfig$
|
|
6545
|
+
typeCheckConfig$p(untrustedConfig, config, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
6429
6546
|
return config;
|
|
6430
6547
|
}
|
|
6431
|
-
function validateAdapterConfig$
|
|
6548
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
6432
6549
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6433
6550
|
return null;
|
|
6434
6551
|
}
|
|
6435
6552
|
if (process.env.NODE_ENV !== 'production') {
|
|
6436
6553
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6437
6554
|
}
|
|
6438
|
-
const config = typeCheckConfig$
|
|
6555
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
6439
6556
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6440
6557
|
return null;
|
|
6441
6558
|
}
|
|
6442
6559
|
return config;
|
|
6443
6560
|
}
|
|
6444
|
-
function buildNetworkSnapshot$
|
|
6445
|
-
const resourceParams = createResourceParams$
|
|
6446
|
-
const request = createResourceRequest$
|
|
6561
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
6562
|
+
const resourceParams = createResourceParams$9(config);
|
|
6563
|
+
const request = createResourceRequest$9(resourceParams);
|
|
6447
6564
|
return luvio.dispatchResourceRequest(request, options)
|
|
6448
6565
|
.then(() => {
|
|
6449
6566
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -6451,7 +6568,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
6451
6568
|
return luvio.storeBroadcast();
|
|
6452
6569
|
}, () => {
|
|
6453
6570
|
const cache = new StoreKeyMap();
|
|
6454
|
-
getResponseCacheKeys$
|
|
6571
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams);
|
|
6455
6572
|
return cache;
|
|
6456
6573
|
});
|
|
6457
6574
|
}, (response) => {
|
|
@@ -6461,30 +6578,391 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
6461
6578
|
}
|
|
6462
6579
|
const deleteSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
6463
6580
|
return function SlackBridgedeleteSlackMessageReactions(untrustedConfig) {
|
|
6464
|
-
const config = validateAdapterConfig$
|
|
6581
|
+
const config = validateAdapterConfig$9(untrustedConfig, deleteSlackMessageReactions_ConfigPropertyNames);
|
|
6465
6582
|
// Invalid or incomplete config
|
|
6466
6583
|
if (config === null) {
|
|
6467
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
6584
|
+
throw new Error(`Invalid config for "${adapterName$9}"`);
|
|
6585
|
+
}
|
|
6586
|
+
return buildNetworkSnapshot$9(luvio, config);
|
|
6587
|
+
};
|
|
6588
|
+
};
|
|
6589
|
+
|
|
6590
|
+
function select$b(luvio, params) {
|
|
6591
|
+
return select$c();
|
|
6592
|
+
}
|
|
6593
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
6594
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
6595
|
+
}
|
|
6596
|
+
function ingestSuccess$8(luvio, resourceParams, response) {
|
|
6597
|
+
const { body } = response;
|
|
6598
|
+
const key = keyBuilderFromType(luvio, body);
|
|
6599
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
6600
|
+
const snapshot = luvio.storeLookup({
|
|
6601
|
+
recordId: key,
|
|
6602
|
+
node: select$b(),
|
|
6603
|
+
variables: {},
|
|
6604
|
+
});
|
|
6605
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6606
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
6607
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
6468
6608
|
}
|
|
6469
|
-
|
|
6609
|
+
}
|
|
6610
|
+
deepFreeze(snapshot.data);
|
|
6611
|
+
return snapshot;
|
|
6612
|
+
}
|
|
6613
|
+
function createResourceRequest$8(config) {
|
|
6614
|
+
const headers = {};
|
|
6615
|
+
return {
|
|
6616
|
+
baseUri: '/services/data/v64.0',
|
|
6617
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/messages/' + config.urlParams.messageTs + '/reactions',
|
|
6618
|
+
method: 'post',
|
|
6619
|
+
body: null,
|
|
6620
|
+
urlParams: config.urlParams,
|
|
6621
|
+
queryParams: config.queryParams,
|
|
6622
|
+
headers,
|
|
6623
|
+
priority: 'normal',
|
|
6470
6624
|
};
|
|
6625
|
+
}
|
|
6626
|
+
|
|
6627
|
+
const adapterName$8 = 'postSlackMessageReactions';
|
|
6628
|
+
const postSlackMessageReactions_ConfigPropertyMetadata = [
|
|
6629
|
+
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6630
|
+
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6631
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6632
|
+
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6633
|
+
];
|
|
6634
|
+
const postSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
6635
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$p(postSlackMessageReactions_ConfigPropertyMetadata);
|
|
6636
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
6637
|
+
const config = {};
|
|
6638
|
+
typeCheckConfig$p(untrustedConfig, config, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
6639
|
+
return config;
|
|
6640
|
+
}
|
|
6641
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
6642
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
6643
|
+
return null;
|
|
6644
|
+
}
|
|
6645
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6646
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
6647
|
+
}
|
|
6648
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
6649
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6650
|
+
return null;
|
|
6651
|
+
}
|
|
6652
|
+
return config;
|
|
6653
|
+
}
|
|
6654
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
6655
|
+
const resourceParams = createResourceParams$8(config);
|
|
6656
|
+
const request = createResourceRequest$8(resourceParams);
|
|
6657
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
6658
|
+
.then((response) => {
|
|
6659
|
+
return luvio.handleSuccessResponse(() => {
|
|
6660
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response);
|
|
6661
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6662
|
+
}, () => {
|
|
6663
|
+
const cache = new StoreKeyMap();
|
|
6664
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
6665
|
+
return cache;
|
|
6666
|
+
});
|
|
6667
|
+
}, (response) => {
|
|
6668
|
+
deepFreeze(response);
|
|
6669
|
+
throw response;
|
|
6670
|
+
});
|
|
6671
|
+
}
|
|
6672
|
+
const postSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
6673
|
+
return function postSlackMessageReactions(untrustedConfig) {
|
|
6674
|
+
const config = validateAdapterConfig$8(untrustedConfig, postSlackMessageReactions_ConfigPropertyNames);
|
|
6675
|
+
// Invalid or incomplete config
|
|
6676
|
+
if (config === null) {
|
|
6677
|
+
throw new Error('Invalid config for "postSlackMessageReactions"');
|
|
6678
|
+
}
|
|
6679
|
+
return buildNetworkSnapshot$8(luvio, config);
|
|
6680
|
+
};
|
|
6681
|
+
};
|
|
6682
|
+
|
|
6683
|
+
const VERSION$2 = "0de597a47ca8ecad2cfb7fd9c8f73920";
|
|
6684
|
+
function validate$2(obj, path = 'SlackBridgeConversationInfosOutputRepresentation') {
|
|
6685
|
+
const v_error = (() => {
|
|
6686
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6687
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6688
|
+
}
|
|
6689
|
+
const obj_conversationInfos = obj.conversationInfos;
|
|
6690
|
+
const path_conversationInfos = path + '.conversationInfos';
|
|
6691
|
+
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
6692
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
6693
|
+
}
|
|
6694
|
+
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
6695
|
+
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
6696
|
+
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
6697
|
+
if (typeof obj_conversationInfos_item !== 'object') {
|
|
6698
|
+
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
6699
|
+
}
|
|
6700
|
+
}
|
|
6701
|
+
const obj_searchString = obj.searchString;
|
|
6702
|
+
const path_searchString = path + '.searchString';
|
|
6703
|
+
let obj_searchString_union0 = null;
|
|
6704
|
+
const obj_searchString_union0_error = (() => {
|
|
6705
|
+
if (typeof obj_searchString !== 'string') {
|
|
6706
|
+
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6707
|
+
}
|
|
6708
|
+
})();
|
|
6709
|
+
if (obj_searchString_union0_error != null) {
|
|
6710
|
+
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
6711
|
+
}
|
|
6712
|
+
let obj_searchString_union1 = null;
|
|
6713
|
+
const obj_searchString_union1_error = (() => {
|
|
6714
|
+
if (obj_searchString !== null) {
|
|
6715
|
+
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6716
|
+
}
|
|
6717
|
+
})();
|
|
6718
|
+
if (obj_searchString_union1_error != null) {
|
|
6719
|
+
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
6720
|
+
}
|
|
6721
|
+
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
6722
|
+
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
6723
|
+
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6724
|
+
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6725
|
+
return new TypeError(message);
|
|
6726
|
+
}
|
|
6727
|
+
})();
|
|
6728
|
+
return v_error === undefined ? null : v_error;
|
|
6729
|
+
}
|
|
6730
|
+
const RepresentationType$2 = 'SlackBridgeConversationInfosOutputRepresentation';
|
|
6731
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
6732
|
+
const input_conversationInfos = input.conversationInfos;
|
|
6733
|
+
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
6734
|
+
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
6735
|
+
const input_conversationInfos_item = input_conversationInfos[i];
|
|
6736
|
+
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
6737
|
+
input_conversationInfos[i] = ingest$g(input_conversationInfos_item, {
|
|
6738
|
+
fullPath: input_conversationInfos_item_id,
|
|
6739
|
+
propertyName: i,
|
|
6740
|
+
parent: {
|
|
6741
|
+
data: input,
|
|
6742
|
+
key: path.fullPath,
|
|
6743
|
+
existing: existing,
|
|
6744
|
+
},
|
|
6745
|
+
ttl: path.ttl
|
|
6746
|
+
}, luvio, store, timestamp);
|
|
6747
|
+
}
|
|
6748
|
+
return input;
|
|
6749
|
+
}
|
|
6750
|
+
const select$a = function SlackBridgeConversationInfosOutputRepresentationSelect() {
|
|
6751
|
+
return {
|
|
6752
|
+
kind: 'Fragment',
|
|
6753
|
+
version: VERSION$2,
|
|
6754
|
+
private: [],
|
|
6755
|
+
selections: [
|
|
6756
|
+
{
|
|
6757
|
+
name: 'conversationInfos',
|
|
6758
|
+
kind: 'Link',
|
|
6759
|
+
plural: true,
|
|
6760
|
+
fragment: select$H()
|
|
6761
|
+
},
|
|
6762
|
+
{
|
|
6763
|
+
name: 'searchString',
|
|
6764
|
+
kind: 'Scalar'
|
|
6765
|
+
}
|
|
6766
|
+
]
|
|
6767
|
+
};
|
|
6768
|
+
};
|
|
6769
|
+
function equals$2(existing, incoming) {
|
|
6770
|
+
const existing_conversationInfos = existing.conversationInfos;
|
|
6771
|
+
const incoming_conversationInfos = incoming.conversationInfos;
|
|
6772
|
+
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
6773
|
+
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
6774
|
+
return false;
|
|
6775
|
+
}
|
|
6776
|
+
});
|
|
6777
|
+
if (equals_conversationInfos_items === false) {
|
|
6778
|
+
return false;
|
|
6779
|
+
}
|
|
6780
|
+
const existing_searchString = existing.searchString;
|
|
6781
|
+
const incoming_searchString = incoming.searchString;
|
|
6782
|
+
if (!(existing_searchString === incoming_searchString)) {
|
|
6783
|
+
return false;
|
|
6784
|
+
}
|
|
6785
|
+
return true;
|
|
6786
|
+
}
|
|
6787
|
+
const ingest$2 = function SlackBridgeConversationInfosOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6788
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6789
|
+
const validateError = validate$2(input);
|
|
6790
|
+
if (validateError !== null) {
|
|
6791
|
+
throw validateError;
|
|
6792
|
+
}
|
|
6793
|
+
}
|
|
6794
|
+
const key = path.fullPath;
|
|
6795
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
6796
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "SlackBridge", VERSION$2, RepresentationType$2, equals$2);
|
|
6797
|
+
return createLink(key);
|
|
6798
|
+
};
|
|
6799
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
6800
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6801
|
+
const rootKey = fullPathFactory();
|
|
6802
|
+
rootKeySet.set(rootKey, {
|
|
6803
|
+
namespace: keyPrefix,
|
|
6804
|
+
representationName: RepresentationType$2,
|
|
6805
|
+
mergeable: false
|
|
6806
|
+
});
|
|
6807
|
+
const input_conversationInfos_length = input.conversationInfos.length;
|
|
6808
|
+
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
6809
|
+
getTypeCacheKeys$g(rootKeySet, luvio, input.conversationInfos[i]);
|
|
6810
|
+
}
|
|
6811
|
+
}
|
|
6812
|
+
|
|
6813
|
+
function select$9(luvio, params) {
|
|
6814
|
+
return select$a();
|
|
6815
|
+
}
|
|
6816
|
+
function keyBuilder$f(luvio, params) {
|
|
6817
|
+
return keyPrefix + '::SlackBridgeConversationInfosOutputRepresentation:(' + 'channelIds:' + params.queryParams.channelIds + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
6818
|
+
}
|
|
6819
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
6820
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$f(luvio, resourceParams));
|
|
6821
|
+
}
|
|
6822
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
6823
|
+
const { body } = response;
|
|
6824
|
+
const key = keyBuilder$f(luvio, resourceParams);
|
|
6825
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
6826
|
+
const snapshot = luvio.storeLookup({
|
|
6827
|
+
recordId: key,
|
|
6828
|
+
node: select$9(),
|
|
6829
|
+
variables: {},
|
|
6830
|
+
}, snapshotRefresh);
|
|
6831
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6832
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
6833
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
6834
|
+
}
|
|
6835
|
+
}
|
|
6836
|
+
deepFreeze(snapshot.data);
|
|
6837
|
+
return snapshot;
|
|
6838
|
+
}
|
|
6839
|
+
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
6840
|
+
const key = keyBuilder$f(luvio, params);
|
|
6841
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6842
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
6843
|
+
return errorSnapshot;
|
|
6844
|
+
}
|
|
6845
|
+
function createResourceRequest$7(config) {
|
|
6846
|
+
const headers = {};
|
|
6847
|
+
return {
|
|
6848
|
+
baseUri: '/services/data/v64.0',
|
|
6849
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channels',
|
|
6850
|
+
method: 'get',
|
|
6851
|
+
body: null,
|
|
6852
|
+
urlParams: config.urlParams,
|
|
6853
|
+
queryParams: config.queryParams,
|
|
6854
|
+
headers,
|
|
6855
|
+
priority: 'normal',
|
|
6856
|
+
};
|
|
6857
|
+
}
|
|
6858
|
+
|
|
6859
|
+
const adapterName$7 = 'getSlackConversationInfos';
|
|
6860
|
+
const getSlackConversationInfos_ConfigPropertyMetadata = [
|
|
6861
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6862
|
+
generateParamConfigMetadata('channelIds', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
6863
|
+
];
|
|
6864
|
+
const getSlackConversationInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSlackConversationInfos_ConfigPropertyMetadata);
|
|
6865
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$p(getSlackConversationInfos_ConfigPropertyMetadata);
|
|
6866
|
+
function keyBuilder$e(luvio, config) {
|
|
6867
|
+
const resourceParams = createResourceParams$7(config);
|
|
6868
|
+
return keyBuilder$f(luvio, resourceParams);
|
|
6869
|
+
}
|
|
6870
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
6871
|
+
const config = {};
|
|
6872
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackConversationInfos_ConfigPropertyMetadata);
|
|
6873
|
+
return config;
|
|
6874
|
+
}
|
|
6875
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
6876
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
6877
|
+
return null;
|
|
6878
|
+
}
|
|
6879
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6880
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
6881
|
+
}
|
|
6882
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
6883
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6884
|
+
return null;
|
|
6885
|
+
}
|
|
6886
|
+
return config;
|
|
6887
|
+
}
|
|
6888
|
+
function adapterFragment$7(luvio, config) {
|
|
6889
|
+
createResourceParams$7(config);
|
|
6890
|
+
return select$9();
|
|
6891
|
+
}
|
|
6892
|
+
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
6893
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
6894
|
+
config,
|
|
6895
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
6896
|
+
});
|
|
6897
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6898
|
+
}
|
|
6899
|
+
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
6900
|
+
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
6901
|
+
config,
|
|
6902
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
6903
|
+
});
|
|
6904
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6905
|
+
}
|
|
6906
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
6907
|
+
const resourceParams = createResourceParams$7(config);
|
|
6908
|
+
const request = createResourceRequest$7(resourceParams);
|
|
6909
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
6910
|
+
.then((response) => {
|
|
6911
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
6912
|
+
const cache = new StoreKeyMap();
|
|
6913
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
6914
|
+
return cache;
|
|
6915
|
+
});
|
|
6916
|
+
}, (response) => {
|
|
6917
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
|
|
6918
|
+
});
|
|
6919
|
+
}
|
|
6920
|
+
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
6921
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
6922
|
+
}
|
|
6923
|
+
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
6924
|
+
const { luvio, config } = context;
|
|
6925
|
+
const selector = {
|
|
6926
|
+
recordId: keyBuilder$e(luvio, config),
|
|
6927
|
+
node: adapterFragment$7(luvio, config),
|
|
6928
|
+
variables: {},
|
|
6929
|
+
};
|
|
6930
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
6931
|
+
config,
|
|
6932
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
6933
|
+
});
|
|
6934
|
+
return cacheSnapshot;
|
|
6935
|
+
}
|
|
6936
|
+
const getSlackConversationInfosAdapterFactory = (luvio) => function SlackBridge__getSlackConversationInfos(untrustedConfig, requestContext) {
|
|
6937
|
+
const config = validateAdapterConfig$7(untrustedConfig, getSlackConversationInfos_ConfigPropertyNames);
|
|
6938
|
+
// Invalid or incomplete config
|
|
6939
|
+
if (config === null) {
|
|
6940
|
+
return null;
|
|
6941
|
+
}
|
|
6942
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
6943
|
+
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
6471
6944
|
};
|
|
6472
6945
|
|
|
6473
|
-
function select$
|
|
6474
|
-
return select$
|
|
6946
|
+
function select$8(luvio, params) {
|
|
6947
|
+
return select$H();
|
|
6948
|
+
}
|
|
6949
|
+
function keyBuilder$d(luvio, params) {
|
|
6950
|
+
return keyBuilder$F(luvio, {
|
|
6951
|
+
id: params.urlParams.channelId
|
|
6952
|
+
});
|
|
6475
6953
|
}
|
|
6476
6954
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
6477
|
-
getTypeCacheKeys$
|
|
6955
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
6478
6956
|
}
|
|
6479
|
-
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
6957
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
6480
6958
|
const { body } = response;
|
|
6481
|
-
const key =
|
|
6482
|
-
luvio.storeIngest(key, ingest$
|
|
6959
|
+
const key = keyBuilder$d(luvio, resourceParams);
|
|
6960
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
6483
6961
|
const snapshot = luvio.storeLookup({
|
|
6484
6962
|
recordId: key,
|
|
6485
|
-
node: select$
|
|
6963
|
+
node: select$8(),
|
|
6486
6964
|
variables: {},
|
|
6487
|
-
});
|
|
6965
|
+
}, snapshotRefresh);
|
|
6488
6966
|
if (process.env.NODE_ENV !== 'production') {
|
|
6489
6967
|
if (snapshot.state !== 'Fulfilled') {
|
|
6490
6968
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
@@ -6493,32 +6971,46 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
6493
6971
|
deepFreeze(snapshot.data);
|
|
6494
6972
|
return snapshot;
|
|
6495
6973
|
}
|
|
6974
|
+
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
6975
|
+
const key = keyBuilder$d(luvio, params);
|
|
6976
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6977
|
+
const storeMetadataParams = {
|
|
6978
|
+
ttl: TTL$2,
|
|
6979
|
+
namespace: keyPrefix,
|
|
6980
|
+
version: VERSION$l,
|
|
6981
|
+
representationName: RepresentationType$g
|
|
6982
|
+
};
|
|
6983
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
6984
|
+
return errorSnapshot;
|
|
6985
|
+
}
|
|
6496
6986
|
function createResourceRequest$6(config) {
|
|
6497
6987
|
const headers = {};
|
|
6498
6988
|
return {
|
|
6499
6989
|
baseUri: '/services/data/v64.0',
|
|
6500
|
-
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/
|
|
6501
|
-
method: '
|
|
6990
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channels/' + config.urlParams.channelId + '',
|
|
6991
|
+
method: 'get',
|
|
6502
6992
|
body: null,
|
|
6503
6993
|
urlParams: config.urlParams,
|
|
6504
|
-
queryParams:
|
|
6994
|
+
queryParams: {},
|
|
6505
6995
|
headers,
|
|
6506
6996
|
priority: 'normal',
|
|
6507
6997
|
};
|
|
6508
6998
|
}
|
|
6509
6999
|
|
|
6510
|
-
const adapterName$6 = '
|
|
6511
|
-
const
|
|
7000
|
+
const adapterName$6 = 'getSlackConversationInfo';
|
|
7001
|
+
const getSlackConversationInfo_ConfigPropertyMetadata = [
|
|
6512
7002
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6513
|
-
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6514
7003
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6515
|
-
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6516
7004
|
];
|
|
6517
|
-
const
|
|
6518
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
7005
|
+
const getSlackConversationInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSlackConversationInfo_ConfigPropertyMetadata);
|
|
7006
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$p(getSlackConversationInfo_ConfigPropertyMetadata);
|
|
7007
|
+
function keyBuilder$c(luvio, config) {
|
|
7008
|
+
const resourceParams = createResourceParams$6(config);
|
|
7009
|
+
return keyBuilder$d(luvio, resourceParams);
|
|
7010
|
+
}
|
|
6519
7011
|
function typeCheckConfig$6(untrustedConfig) {
|
|
6520
7012
|
const config = {};
|
|
6521
|
-
typeCheckConfig$
|
|
7013
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackConversationInfo_ConfigPropertyMetadata);
|
|
6522
7014
|
return config;
|
|
6523
7015
|
}
|
|
6524
7016
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -6534,37 +7026,66 @@ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
|
6534
7026
|
}
|
|
6535
7027
|
return config;
|
|
6536
7028
|
}
|
|
7029
|
+
function adapterFragment$6(luvio, config) {
|
|
7030
|
+
createResourceParams$6(config);
|
|
7031
|
+
return select$8();
|
|
7032
|
+
}
|
|
7033
|
+
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
7034
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
7035
|
+
config,
|
|
7036
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
7037
|
+
});
|
|
7038
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
7039
|
+
}
|
|
7040
|
+
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
7041
|
+
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
7042
|
+
config,
|
|
7043
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
7044
|
+
});
|
|
7045
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
7046
|
+
}
|
|
6537
7047
|
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
6538
7048
|
const resourceParams = createResourceParams$6(config);
|
|
6539
7049
|
const request = createResourceRequest$6(resourceParams);
|
|
6540
7050
|
return luvio.dispatchResourceRequest(request, options)
|
|
6541
7051
|
.then((response) => {
|
|
6542
|
-
return luvio.handleSuccessResponse(() => {
|
|
6543
|
-
const snapshot = ingestSuccess$6(luvio, resourceParams, response);
|
|
6544
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
6545
|
-
}, () => {
|
|
7052
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
6546
7053
|
const cache = new StoreKeyMap();
|
|
6547
7054
|
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
6548
7055
|
return cache;
|
|
6549
7056
|
});
|
|
6550
7057
|
}, (response) => {
|
|
6551
|
-
|
|
6552
|
-
throw response;
|
|
7058
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
6553
7059
|
});
|
|
6554
7060
|
}
|
|
6555
|
-
|
|
6556
|
-
return
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
|
|
7061
|
+
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
7062
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
7063
|
+
}
|
|
7064
|
+
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
7065
|
+
const { luvio, config } = context;
|
|
7066
|
+
const selector = {
|
|
7067
|
+
recordId: keyBuilder$c(luvio, config),
|
|
7068
|
+
node: adapterFragment$6(luvio, config),
|
|
7069
|
+
variables: {},
|
|
6563
7070
|
};
|
|
7071
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
7072
|
+
config,
|
|
7073
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
7074
|
+
});
|
|
7075
|
+
return cacheSnapshot;
|
|
7076
|
+
}
|
|
7077
|
+
const getSlackConversationInfoAdapterFactory = (luvio) => function SlackBridge__getSlackConversationInfo(untrustedConfig, requestContext) {
|
|
7078
|
+
const config = validateAdapterConfig$6(untrustedConfig, getSlackConversationInfo_ConfigPropertyNames);
|
|
7079
|
+
// Invalid or incomplete config
|
|
7080
|
+
if (config === null) {
|
|
7081
|
+
return null;
|
|
7082
|
+
}
|
|
7083
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
7084
|
+
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
6564
7085
|
};
|
|
6565
7086
|
|
|
6566
|
-
const VERSION$
|
|
6567
|
-
function validate$
|
|
7087
|
+
const VERSION$1 = "da7e3ba240e3ef2a2a6ee0e913ef280c";
|
|
7088
|
+
function validate$1(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
6568
7089
|
const v_error = (() => {
|
|
6569
7090
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6570
7091
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6584,8 +7105,8 @@ function validate$2(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
|
6584
7105
|
})();
|
|
6585
7106
|
return v_error === undefined ? null : v_error;
|
|
6586
7107
|
}
|
|
6587
|
-
const RepresentationType$
|
|
6588
|
-
function normalize$
|
|
7108
|
+
const RepresentationType$1 = 'SlackBridgeEmojisOutputRepresentation';
|
|
7109
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
6589
7110
|
const input_emojis = input.emojis;
|
|
6590
7111
|
const input_emojis_id = path.fullPath + '__emojis';
|
|
6591
7112
|
for (let i = 0; i < input_emojis.length; i++) {
|
|
@@ -6604,22 +7125,22 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
6604
7125
|
}
|
|
6605
7126
|
return input;
|
|
6606
7127
|
}
|
|
6607
|
-
const select$
|
|
7128
|
+
const select$7 = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
6608
7129
|
return {
|
|
6609
7130
|
kind: 'Fragment',
|
|
6610
|
-
version: VERSION$
|
|
7131
|
+
version: VERSION$1,
|
|
6611
7132
|
private: [],
|
|
6612
7133
|
selections: [
|
|
6613
7134
|
{
|
|
6614
7135
|
name: 'emojis',
|
|
6615
7136
|
kind: 'Link',
|
|
6616
7137
|
plural: true,
|
|
6617
|
-
fragment: select$
|
|
7138
|
+
fragment: select$J()
|
|
6618
7139
|
}
|
|
6619
7140
|
]
|
|
6620
7141
|
};
|
|
6621
7142
|
};
|
|
6622
|
-
function equals$
|
|
7143
|
+
function equals$1(existing, incoming) {
|
|
6623
7144
|
const existing_emojis = existing.emojis;
|
|
6624
7145
|
const incoming_emojis = incoming.emojis;
|
|
6625
7146
|
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
@@ -6632,24 +7153,24 @@ function equals$2(existing, incoming) {
|
|
|
6632
7153
|
}
|
|
6633
7154
|
return true;
|
|
6634
7155
|
}
|
|
6635
|
-
const ingest$
|
|
7156
|
+
const ingest$1 = function SlackBridgeEmojisOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6636
7157
|
if (process.env.NODE_ENV !== 'production') {
|
|
6637
|
-
const validateError = validate$
|
|
7158
|
+
const validateError = validate$1(input);
|
|
6638
7159
|
if (validateError !== null) {
|
|
6639
7160
|
throw validateError;
|
|
6640
7161
|
}
|
|
6641
7162
|
}
|
|
6642
7163
|
const key = path.fullPath;
|
|
6643
7164
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
6644
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7165
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "SlackBridge", VERSION$1, RepresentationType$1, equals$1);
|
|
6645
7166
|
return createLink(key);
|
|
6646
7167
|
};
|
|
6647
|
-
function getTypeCacheKeys$
|
|
7168
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
6648
7169
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6649
7170
|
const rootKey = fullPathFactory();
|
|
6650
7171
|
rootKeySet.set(rootKey, {
|
|
6651
7172
|
namespace: keyPrefix,
|
|
6652
|
-
representationName: RepresentationType$
|
|
7173
|
+
representationName: RepresentationType$1,
|
|
6653
7174
|
mergeable: false
|
|
6654
7175
|
});
|
|
6655
7176
|
const input_emojis_length = input.emojis.length;
|
|
@@ -6658,22 +7179,22 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6658
7179
|
}
|
|
6659
7180
|
}
|
|
6660
7181
|
|
|
6661
|
-
function select$
|
|
6662
|
-
return select$
|
|
7182
|
+
function select$6(luvio, params) {
|
|
7183
|
+
return select$7();
|
|
6663
7184
|
}
|
|
6664
7185
|
function keyBuilder$b(luvio, params) {
|
|
6665
7186
|
return keyPrefix + '::SlackBridgeEmojisOutputRepresentation:(' + 'slackEmojiIds:' + params.queryParams.slackEmojiIds + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
6666
7187
|
}
|
|
6667
7188
|
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
6668
|
-
getTypeCacheKeys$
|
|
7189
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
6669
7190
|
}
|
|
6670
7191
|
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
6671
7192
|
const { body } = response;
|
|
6672
7193
|
const key = keyBuilder$b(luvio, resourceParams);
|
|
6673
|
-
luvio.storeIngest(key, ingest$
|
|
7194
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
6674
7195
|
const snapshot = luvio.storeLookup({
|
|
6675
7196
|
recordId: key,
|
|
6676
|
-
node: select$
|
|
7197
|
+
node: select$6(),
|
|
6677
7198
|
variables: {},
|
|
6678
7199
|
}, snapshotRefresh);
|
|
6679
7200
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6710,14 +7231,14 @@ const getSlackEmojis_ConfigPropertyMetadata = [
|
|
|
6710
7231
|
generateParamConfigMetadata('slackEmojiIds', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
6711
7232
|
];
|
|
6712
7233
|
const getSlackEmojis_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSlackEmojis_ConfigPropertyMetadata);
|
|
6713
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
7234
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$p(getSlackEmojis_ConfigPropertyMetadata);
|
|
6714
7235
|
function keyBuilder$a(luvio, config) {
|
|
6715
7236
|
const resourceParams = createResourceParams$5(config);
|
|
6716
7237
|
return keyBuilder$b(luvio, resourceParams);
|
|
6717
7238
|
}
|
|
6718
7239
|
function typeCheckConfig$5(untrustedConfig) {
|
|
6719
7240
|
const config = {};
|
|
6720
|
-
typeCheckConfig$
|
|
7241
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackEmojis_ConfigPropertyMetadata);
|
|
6721
7242
|
return config;
|
|
6722
7243
|
}
|
|
6723
7244
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -6735,7 +7256,7 @@ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
|
6735
7256
|
}
|
|
6736
7257
|
function adapterFragment$5(luvio, config) {
|
|
6737
7258
|
createResourceParams$5(config);
|
|
6738
|
-
return select$
|
|
7259
|
+
return select$6();
|
|
6739
7260
|
}
|
|
6740
7261
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
6741
7262
|
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
@@ -6766,7 +7287,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
6766
7287
|
});
|
|
6767
7288
|
}
|
|
6768
7289
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
6769
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7290
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
6770
7291
|
}
|
|
6771
7292
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
6772
7293
|
const { luvio, config } = context;
|
|
@@ -6791,11 +7312,11 @@ const getSlackEmojisAdapterFactory = (luvio) => function SlackBridge__getSlackEm
|
|
|
6791
7312
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
6792
7313
|
};
|
|
6793
7314
|
|
|
6794
|
-
function select$
|
|
6795
|
-
return select$
|
|
7315
|
+
function select$5(luvio, params) {
|
|
7316
|
+
return select$J();
|
|
6796
7317
|
}
|
|
6797
7318
|
function keyBuilder$9(luvio, params) {
|
|
6798
|
-
return keyBuilder$
|
|
7319
|
+
return keyBuilder$H(luvio, {
|
|
6799
7320
|
name: params.urlParams.slackEmojiId
|
|
6800
7321
|
});
|
|
6801
7322
|
}
|
|
@@ -6808,7 +7329,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6808
7329
|
luvio.storeIngest(key, ingest$i, body);
|
|
6809
7330
|
const snapshot = luvio.storeLookup({
|
|
6810
7331
|
recordId: key,
|
|
6811
|
-
node: select$
|
|
7332
|
+
node: select$5(),
|
|
6812
7333
|
variables: {},
|
|
6813
7334
|
}, snapshotRefresh);
|
|
6814
7335
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6823,7 +7344,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
6823
7344
|
const key = keyBuilder$9(luvio, params);
|
|
6824
7345
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6825
7346
|
const storeMetadataParams = {
|
|
6826
|
-
ttl: TTL$
|
|
7347
|
+
ttl: TTL$4,
|
|
6827
7348
|
namespace: keyPrefix,
|
|
6828
7349
|
version: VERSION$n,
|
|
6829
7350
|
representationName: RepresentationType$i
|
|
@@ -6851,14 +7372,14 @@ const getSlackEmoji_ConfigPropertyMetadata = [
|
|
|
6851
7372
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6852
7373
|
];
|
|
6853
7374
|
const getSlackEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSlackEmoji_ConfigPropertyMetadata);
|
|
6854
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
7375
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$p(getSlackEmoji_ConfigPropertyMetadata);
|
|
6855
7376
|
function keyBuilder$8(luvio, config) {
|
|
6856
7377
|
const resourceParams = createResourceParams$4(config);
|
|
6857
7378
|
return keyBuilder$9(luvio, resourceParams);
|
|
6858
7379
|
}
|
|
6859
7380
|
function typeCheckConfig$4(untrustedConfig) {
|
|
6860
7381
|
const config = {};
|
|
6861
|
-
typeCheckConfig$
|
|
7382
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackEmoji_ConfigPropertyMetadata);
|
|
6862
7383
|
return config;
|
|
6863
7384
|
}
|
|
6864
7385
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -6876,7 +7397,7 @@ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
|
6876
7397
|
}
|
|
6877
7398
|
function adapterFragment$4(luvio, config) {
|
|
6878
7399
|
createResourceParams$4(config);
|
|
6879
|
-
return select$
|
|
7400
|
+
return select$5();
|
|
6880
7401
|
}
|
|
6881
7402
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
6882
7403
|
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
@@ -6907,7 +7428,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
6907
7428
|
});
|
|
6908
7429
|
}
|
|
6909
7430
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
6910
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7431
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
6911
7432
|
}
|
|
6912
7433
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
6913
7434
|
const { luvio, config } = context;
|
|
@@ -6932,149 +7453,19 @@ const getSlackEmojiAdapterFactory = (luvio) => function SlackBridge__getSlackEmo
|
|
|
6932
7453
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
6933
7454
|
};
|
|
6934
7455
|
|
|
6935
|
-
const VERSION$1 = "0de597a47ca8ecad2cfb7fd9c8f73920";
|
|
6936
|
-
function validate$1(obj, path = 'SlackBridgeConversationInfosOutputRepresentation') {
|
|
6937
|
-
const v_error = (() => {
|
|
6938
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6939
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6940
|
-
}
|
|
6941
|
-
const obj_conversationInfos = obj.conversationInfos;
|
|
6942
|
-
const path_conversationInfos = path + '.conversationInfos';
|
|
6943
|
-
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
6944
|
-
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
6945
|
-
}
|
|
6946
|
-
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
6947
|
-
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
6948
|
-
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
6949
|
-
if (typeof obj_conversationInfos_item !== 'object') {
|
|
6950
|
-
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
6951
|
-
}
|
|
6952
|
-
}
|
|
6953
|
-
const obj_searchString = obj.searchString;
|
|
6954
|
-
const path_searchString = path + '.searchString';
|
|
6955
|
-
let obj_searchString_union0 = null;
|
|
6956
|
-
const obj_searchString_union0_error = (() => {
|
|
6957
|
-
if (typeof obj_searchString !== 'string') {
|
|
6958
|
-
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6959
|
-
}
|
|
6960
|
-
})();
|
|
6961
|
-
if (obj_searchString_union0_error != null) {
|
|
6962
|
-
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
6963
|
-
}
|
|
6964
|
-
let obj_searchString_union1 = null;
|
|
6965
|
-
const obj_searchString_union1_error = (() => {
|
|
6966
|
-
if (obj_searchString !== null) {
|
|
6967
|
-
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6968
|
-
}
|
|
6969
|
-
})();
|
|
6970
|
-
if (obj_searchString_union1_error != null) {
|
|
6971
|
-
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
6972
|
-
}
|
|
6973
|
-
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
6974
|
-
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
6975
|
-
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6976
|
-
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6977
|
-
return new TypeError(message);
|
|
6978
|
-
}
|
|
6979
|
-
})();
|
|
6980
|
-
return v_error === undefined ? null : v_error;
|
|
6981
|
-
}
|
|
6982
|
-
const RepresentationType$1 = 'SlackBridgeConversationInfosOutputRepresentation';
|
|
6983
|
-
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
6984
|
-
const input_conversationInfos = input.conversationInfos;
|
|
6985
|
-
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
6986
|
-
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
6987
|
-
const input_conversationInfos_item = input_conversationInfos[i];
|
|
6988
|
-
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
6989
|
-
input_conversationInfos[i] = ingest$g(input_conversationInfos_item, {
|
|
6990
|
-
fullPath: input_conversationInfos_item_id,
|
|
6991
|
-
propertyName: i,
|
|
6992
|
-
parent: {
|
|
6993
|
-
data: input,
|
|
6994
|
-
key: path.fullPath,
|
|
6995
|
-
existing: existing,
|
|
6996
|
-
},
|
|
6997
|
-
ttl: path.ttl
|
|
6998
|
-
}, luvio, store, timestamp);
|
|
6999
|
-
}
|
|
7000
|
-
return input;
|
|
7001
|
-
}
|
|
7002
|
-
const select$5 = function SlackBridgeConversationInfosOutputRepresentationSelect() {
|
|
7003
|
-
return {
|
|
7004
|
-
kind: 'Fragment',
|
|
7005
|
-
version: VERSION$1,
|
|
7006
|
-
private: [],
|
|
7007
|
-
selections: [
|
|
7008
|
-
{
|
|
7009
|
-
name: 'conversationInfos',
|
|
7010
|
-
kind: 'Link',
|
|
7011
|
-
plural: true,
|
|
7012
|
-
fragment: select$F()
|
|
7013
|
-
},
|
|
7014
|
-
{
|
|
7015
|
-
name: 'searchString',
|
|
7016
|
-
kind: 'Scalar'
|
|
7017
|
-
}
|
|
7018
|
-
]
|
|
7019
|
-
};
|
|
7020
|
-
};
|
|
7021
|
-
function equals$1(existing, incoming) {
|
|
7022
|
-
const existing_conversationInfos = existing.conversationInfos;
|
|
7023
|
-
const incoming_conversationInfos = incoming.conversationInfos;
|
|
7024
|
-
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
7025
|
-
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
7026
|
-
return false;
|
|
7027
|
-
}
|
|
7028
|
-
});
|
|
7029
|
-
if (equals_conversationInfos_items === false) {
|
|
7030
|
-
return false;
|
|
7031
|
-
}
|
|
7032
|
-
const existing_searchString = existing.searchString;
|
|
7033
|
-
const incoming_searchString = incoming.searchString;
|
|
7034
|
-
if (!(existing_searchString === incoming_searchString)) {
|
|
7035
|
-
return false;
|
|
7036
|
-
}
|
|
7037
|
-
return true;
|
|
7038
|
-
}
|
|
7039
|
-
const ingest$1 = function SlackBridgeConversationInfosOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7040
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
7041
|
-
const validateError = validate$1(input);
|
|
7042
|
-
if (validateError !== null) {
|
|
7043
|
-
throw validateError;
|
|
7044
|
-
}
|
|
7045
|
-
}
|
|
7046
|
-
const key = path.fullPath;
|
|
7047
|
-
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
7048
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "SlackBridge", VERSION$1, RepresentationType$1, equals$1);
|
|
7049
|
-
return createLink(key);
|
|
7050
|
-
};
|
|
7051
|
-
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
7052
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7053
|
-
const rootKey = fullPathFactory();
|
|
7054
|
-
rootKeySet.set(rootKey, {
|
|
7055
|
-
namespace: keyPrefix,
|
|
7056
|
-
representationName: RepresentationType$1,
|
|
7057
|
-
mergeable: false
|
|
7058
|
-
});
|
|
7059
|
-
const input_conversationInfos_length = input.conversationInfos.length;
|
|
7060
|
-
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
7061
|
-
getTypeCacheKeys$g(rootKeySet, luvio, input.conversationInfos[i]);
|
|
7062
|
-
}
|
|
7063
|
-
}
|
|
7064
|
-
|
|
7065
7456
|
function select$4(luvio, params) {
|
|
7066
|
-
return select$
|
|
7457
|
+
return select$a();
|
|
7067
7458
|
}
|
|
7068
7459
|
function keyBuilder$7(luvio, params) {
|
|
7069
7460
|
return keyPrefix + '::SlackBridgeConversationInfosOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
7070
7461
|
}
|
|
7071
7462
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
7072
|
-
getTypeCacheKeys$
|
|
7463
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
7073
7464
|
}
|
|
7074
7465
|
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
7075
7466
|
const { body } = response;
|
|
7076
7467
|
const key = keyBuilder$7(luvio, resourceParams);
|
|
7077
|
-
luvio.storeIngest(key, ingest$
|
|
7468
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
7078
7469
|
const snapshot = luvio.storeLookup({
|
|
7079
7470
|
recordId: key,
|
|
7080
7471
|
node: select$4(),
|
|
@@ -7114,14 +7505,14 @@ const getSlackSearchConversation_ConfigPropertyMetadata = [
|
|
|
7114
7505
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7115
7506
|
];
|
|
7116
7507
|
const getSlackSearchConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
7117
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
7508
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$p(getSlackSearchConversation_ConfigPropertyMetadata);
|
|
7118
7509
|
function keyBuilder$6(luvio, config) {
|
|
7119
7510
|
const resourceParams = createResourceParams$3(config);
|
|
7120
7511
|
return keyBuilder$7(luvio, resourceParams);
|
|
7121
7512
|
}
|
|
7122
7513
|
function typeCheckConfig$3(untrustedConfig) {
|
|
7123
7514
|
const config = {};
|
|
7124
|
-
typeCheckConfig$
|
|
7515
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
7125
7516
|
return config;
|
|
7126
7517
|
}
|
|
7127
7518
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -7170,7 +7561,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
7170
7561
|
});
|
|
7171
7562
|
}
|
|
7172
7563
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
7173
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7564
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
7174
7565
|
}
|
|
7175
7566
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
7176
7567
|
const { luvio, config } = context;
|
|
@@ -7196,18 +7587,18 @@ const getSlackSearchConversationAdapterFactory = (luvio) => function SlackBridge
|
|
|
7196
7587
|
};
|
|
7197
7588
|
|
|
7198
7589
|
function select$3(luvio, params) {
|
|
7199
|
-
return select$
|
|
7590
|
+
return select$7();
|
|
7200
7591
|
}
|
|
7201
7592
|
function keyBuilder$5(luvio, params) {
|
|
7202
7593
|
return keyPrefix + '::SlackBridgeEmojisOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
7203
7594
|
}
|
|
7204
7595
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
7205
|
-
getTypeCacheKeys$
|
|
7596
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
7206
7597
|
}
|
|
7207
7598
|
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
7208
7599
|
const { body } = response;
|
|
7209
7600
|
const key = keyBuilder$5(luvio, resourceParams);
|
|
7210
|
-
luvio.storeIngest(key, ingest$
|
|
7601
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
7211
7602
|
const snapshot = luvio.storeLookup({
|
|
7212
7603
|
recordId: key,
|
|
7213
7604
|
node: select$3(),
|
|
@@ -7247,14 +7638,14 @@ const getSlackSearchEmoji_ConfigPropertyMetadata = [
|
|
|
7247
7638
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7248
7639
|
];
|
|
7249
7640
|
const getSlackSearchEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
7250
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
7641
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$p(getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
7251
7642
|
function keyBuilder$4(luvio, config) {
|
|
7252
7643
|
const resourceParams = createResourceParams$2(config);
|
|
7253
7644
|
return keyBuilder$5(luvio, resourceParams);
|
|
7254
7645
|
}
|
|
7255
7646
|
function typeCheckConfig$2(untrustedConfig) {
|
|
7256
7647
|
const config = {};
|
|
7257
|
-
typeCheckConfig$
|
|
7648
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
7258
7649
|
return config;
|
|
7259
7650
|
}
|
|
7260
7651
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -7303,7 +7694,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
7303
7694
|
});
|
|
7304
7695
|
}
|
|
7305
7696
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
7306
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7697
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
7307
7698
|
}
|
|
7308
7699
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
7309
7700
|
const { luvio, config } = context;
|
|
@@ -7328,12 +7719,38 @@ const getSlackSearchEmojiAdapterFactory = (luvio) => function SlackBridge__getSl
|
|
|
7328
7719
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
7329
7720
|
};
|
|
7330
7721
|
|
|
7331
|
-
const VERSION = "
|
|
7722
|
+
const VERSION = "16b915c502b8a0609446d7ed3907a794";
|
|
7332
7723
|
function validate(obj, path = 'SlackBridgeUserInfosOutputRepresentation') {
|
|
7333
7724
|
const v_error = (() => {
|
|
7334
7725
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7335
7726
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7336
7727
|
}
|
|
7728
|
+
const obj_nextMarker = obj.nextMarker;
|
|
7729
|
+
const path_nextMarker = path + '.nextMarker';
|
|
7730
|
+
let obj_nextMarker_union0 = null;
|
|
7731
|
+
const obj_nextMarker_union0_error = (() => {
|
|
7732
|
+
if (typeof obj_nextMarker !== 'string') {
|
|
7733
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nextMarker + '" (at "' + path_nextMarker + '")');
|
|
7734
|
+
}
|
|
7735
|
+
})();
|
|
7736
|
+
if (obj_nextMarker_union0_error != null) {
|
|
7737
|
+
obj_nextMarker_union0 = obj_nextMarker_union0_error.message;
|
|
7738
|
+
}
|
|
7739
|
+
let obj_nextMarker_union1 = null;
|
|
7740
|
+
const obj_nextMarker_union1_error = (() => {
|
|
7741
|
+
if (obj_nextMarker !== null) {
|
|
7742
|
+
return new TypeError('Expected "null" but received "' + typeof obj_nextMarker + '" (at "' + path_nextMarker + '")');
|
|
7743
|
+
}
|
|
7744
|
+
})();
|
|
7745
|
+
if (obj_nextMarker_union1_error != null) {
|
|
7746
|
+
obj_nextMarker_union1 = obj_nextMarker_union1_error.message;
|
|
7747
|
+
}
|
|
7748
|
+
if (obj_nextMarker_union0 && obj_nextMarker_union1) {
|
|
7749
|
+
let message = 'Object doesn\'t match union (at "' + path_nextMarker + '")';
|
|
7750
|
+
message += '\n' + obj_nextMarker_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7751
|
+
message += '\n' + obj_nextMarker_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7752
|
+
return new TypeError(message);
|
|
7753
|
+
}
|
|
7337
7754
|
const obj_searchString = obj.searchString;
|
|
7338
7755
|
const path_searchString = path + '.searchString';
|
|
7339
7756
|
let obj_searchString_union0 = null;
|
|
@@ -7401,6 +7818,10 @@ const select$2 = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
7401
7818
|
version: VERSION,
|
|
7402
7819
|
private: [],
|
|
7403
7820
|
selections: [
|
|
7821
|
+
{
|
|
7822
|
+
name: 'nextMarker',
|
|
7823
|
+
kind: 'Scalar'
|
|
7824
|
+
},
|
|
7404
7825
|
{
|
|
7405
7826
|
name: 'searchString',
|
|
7406
7827
|
kind: 'Scalar'
|
|
@@ -7409,12 +7830,17 @@ const select$2 = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
7409
7830
|
name: 'userInfos',
|
|
7410
7831
|
kind: 'Link',
|
|
7411
7832
|
plural: true,
|
|
7412
|
-
fragment: select$
|
|
7833
|
+
fragment: select$I()
|
|
7413
7834
|
}
|
|
7414
7835
|
]
|
|
7415
7836
|
};
|
|
7416
7837
|
};
|
|
7417
7838
|
function equals(existing, incoming) {
|
|
7839
|
+
const existing_nextMarker = existing.nextMarker;
|
|
7840
|
+
const incoming_nextMarker = incoming.nextMarker;
|
|
7841
|
+
if (!(existing_nextMarker === incoming_nextMarker)) {
|
|
7842
|
+
return false;
|
|
7843
|
+
}
|
|
7418
7844
|
const existing_searchString = existing.searchString;
|
|
7419
7845
|
const incoming_searchString = incoming.searchString;
|
|
7420
7846
|
if (!(existing_searchString === incoming_searchString)) {
|
|
@@ -7513,14 +7939,14 @@ const getSlackSearchUser_ConfigPropertyMetadata = [
|
|
|
7513
7939
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7514
7940
|
];
|
|
7515
7941
|
const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getSlackSearchUser_ConfigPropertyMetadata);
|
|
7516
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
7942
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$p(getSlackSearchUser_ConfigPropertyMetadata);
|
|
7517
7943
|
function keyBuilder$2(luvio, config) {
|
|
7518
7944
|
const resourceParams = createResourceParams$1(config);
|
|
7519
7945
|
return keyBuilder$3(luvio, resourceParams);
|
|
7520
7946
|
}
|
|
7521
7947
|
function typeCheckConfig$1(untrustedConfig) {
|
|
7522
7948
|
const config = {};
|
|
7523
|
-
typeCheckConfig$
|
|
7949
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
|
|
7524
7950
|
return config;
|
|
7525
7951
|
}
|
|
7526
7952
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -7569,7 +7995,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
7569
7995
|
});
|
|
7570
7996
|
}
|
|
7571
7997
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
7572
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7998
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
7573
7999
|
}
|
|
7574
8000
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
7575
8001
|
const { luvio, config } = context;
|
|
@@ -7595,12 +8021,11 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
|
|
|
7595
8021
|
};
|
|
7596
8022
|
|
|
7597
8023
|
function select(luvio, params) {
|
|
7598
|
-
return select$
|
|
8024
|
+
return select$I();
|
|
7599
8025
|
}
|
|
7600
8026
|
function keyBuilder$1(luvio, params) {
|
|
7601
|
-
return keyBuilder$
|
|
7602
|
-
slackUserId: params.urlParams.slackUserId
|
|
7603
|
-
teamId: params.urlParams.teamId
|
|
8027
|
+
return keyBuilder$G(luvio, {
|
|
8028
|
+
slackUserId: params.urlParams.slackUserId
|
|
7604
8029
|
});
|
|
7605
8030
|
}
|
|
7606
8031
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -7627,7 +8052,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
7627
8052
|
const key = keyBuilder$1(luvio, params);
|
|
7628
8053
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
7629
8054
|
const storeMetadataParams = {
|
|
7630
|
-
ttl: TTL$
|
|
8055
|
+
ttl: TTL$3,
|
|
7631
8056
|
namespace: keyPrefix,
|
|
7632
8057
|
version: VERSION$m,
|
|
7633
8058
|
representationName: RepresentationType$h
|
|
@@ -7655,14 +8080,14 @@ const getSlackUser_ConfigPropertyMetadata = [
|
|
|
7655
8080
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7656
8081
|
];
|
|
7657
8082
|
const getSlackUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSlackUser_ConfigPropertyMetadata);
|
|
7658
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
8083
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$p(getSlackUser_ConfigPropertyMetadata);
|
|
7659
8084
|
function keyBuilder(luvio, config) {
|
|
7660
8085
|
const resourceParams = createResourceParams(config);
|
|
7661
8086
|
return keyBuilder$1(luvio, resourceParams);
|
|
7662
8087
|
}
|
|
7663
8088
|
function typeCheckConfig(untrustedConfig) {
|
|
7664
8089
|
const config = {};
|
|
7665
|
-
typeCheckConfig$
|
|
8090
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
|
|
7666
8091
|
return config;
|
|
7667
8092
|
}
|
|
7668
8093
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -7711,7 +8136,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
7711
8136
|
});
|
|
7712
8137
|
}
|
|
7713
8138
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
7714
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8139
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
7715
8140
|
}
|
|
7716
8141
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
7717
8142
|
const { luvio, config } = context;
|
|
@@ -7736,4 +8161,4 @@ const getSlackUserAdapterFactory = (luvio) => function SlackBridge__getSlackUser
|
|
|
7736
8161
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
7737
8162
|
};
|
|
7738
8163
|
|
|
7739
|
-
export { deleteSlackConversationMemberAdapterFactory, deleteSlackMessageAdapterFactory, deleteSlackMessageReactionsAdapterFactory, getRelatedThreadsAdapterFactory, getSlackConversationAdapterFactory, getSlackConversationMemberAdapterFactory, getSlackConversationMembersAdapterFactory, getSlackDisplayLoginAdapterFactory, getSlackEmojiAdapterFactory, getSlackEmojisAdapterFactory, getSlackMessageAdapterFactory, getSlackRecordChannelInfoAdapterFactory, getSlackSearchConversationAdapterFactory, getSlackSearchEmojiAdapterFactory, getSlackSearchUserAdapterFactory, getSlackUserAdapterFactory, patchSlackMessageAdapterFactory, postSlackConversationAdapterFactory, postSlackConversationMarkAdapterFactory, postSlackConversationMembersAdapterFactory, postSlackFileAdapterFactory, postSlackMessageReactionsAdapterFactory, postSlackRecordChannelInfosAdapterFactory };
|
|
8164
|
+
export { deleteSlackConversationMemberAdapterFactory, deleteSlackMessageAdapterFactory, deleteSlackMessageReactionsAdapterFactory, getRelatedThreadsAdapterFactory, getSlackConversationAdapterFactory, getSlackConversationInfoAdapterFactory, getSlackConversationInfosAdapterFactory, getSlackConversationMemberAdapterFactory, getSlackConversationMembersAdapterFactory, getSlackDisplayLoginAdapterFactory, getSlackEmojiAdapterFactory, getSlackEmojisAdapterFactory, getSlackMessageAdapterFactory, getSlackRecordChannelInfoAdapterFactory, getSlackSearchConversationAdapterFactory, getSlackSearchEmojiAdapterFactory, getSlackSearchUserAdapterFactory, getSlackUserAdapterFactory, patchSlackMessageAdapterFactory, postSlackConversationAdapterFactory, postSlackConversationMarkAdapterFactory, postSlackConversationMembersAdapterFactory, postSlackFileAdapterFactory, postSlackMessageReactionsAdapterFactory, postSlackRecordChannelInfosAdapterFactory };
|