@salesforce/lds-adapters-platform-slack-bridge 1.354.0-dev2 → 1.354.0-dev4
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 +1180 -774
- 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 +1 -1
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfosOutputRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +984 -511
- package/src/raml/api.raml +55 -0
- package/src/raml/luvio.raml +12 -1
|
@@ -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,7 +494,7 @@ function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
494
494
|
});
|
|
495
495
|
}
|
|
496
496
|
|
|
497
|
-
const TTL$
|
|
497
|
+
const TTL$3 = 900000;
|
|
498
498
|
const VERSION$m = "2871ae193ac5e60b5cc0d6c4111e8615";
|
|
499
499
|
function validate$m(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
500
500
|
const v_error = (() => {
|
|
@@ -921,14 +921,14 @@ function validate$m(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
921
921
|
return v_error === undefined ? null : v_error;
|
|
922
922
|
}
|
|
923
923
|
const RepresentationType$h = 'SlackBridgeUserInfoOutputRepresentation';
|
|
924
|
-
function keyBuilder$
|
|
924
|
+
function keyBuilder$G(luvio, config) {
|
|
925
925
|
return keyPrefix + '::' + RepresentationType$h + ':' + config.slackUserId;
|
|
926
926
|
}
|
|
927
927
|
function keyBuilderFromType$9(luvio, object) {
|
|
928
928
|
const keyParams = {
|
|
929
929
|
slackUserId: object.slackUserId
|
|
930
930
|
};
|
|
931
|
-
return keyBuilder$
|
|
931
|
+
return keyBuilder$G(luvio, keyParams);
|
|
932
932
|
}
|
|
933
933
|
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
934
934
|
const input_statusEmoji = input.statusEmoji;
|
|
@@ -947,7 +947,7 @@ function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
|
947
947
|
}
|
|
948
948
|
return input;
|
|
949
949
|
}
|
|
950
|
-
const select$
|
|
950
|
+
const select$I = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
951
951
|
return {
|
|
952
952
|
kind: 'Fragment',
|
|
953
953
|
version: VERSION$m,
|
|
@@ -1020,7 +1020,7 @@ const select$G = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1020
1020
|
name: 'statusEmoji',
|
|
1021
1021
|
kind: 'Link',
|
|
1022
1022
|
nullable: true,
|
|
1023
|
-
fragment: select$
|
|
1023
|
+
fragment: select$J()
|
|
1024
1024
|
},
|
|
1025
1025
|
{
|
|
1026
1026
|
name: 'statusMessage',
|
|
@@ -1172,7 +1172,7 @@ const ingest$h = function SlackBridgeUserInfoOutputRepresentationIngest(input, p
|
|
|
1172
1172
|
}
|
|
1173
1173
|
}
|
|
1174
1174
|
const key = keyBuilderFromType$9(luvio, input);
|
|
1175
|
-
const ttlToUse = TTL$
|
|
1175
|
+
const ttlToUse = TTL$3;
|
|
1176
1176
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "SlackBridge", VERSION$m, RepresentationType$h, equals$m);
|
|
1177
1177
|
return createLink(key);
|
|
1178
1178
|
};
|
|
@@ -1189,6 +1189,7 @@ function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
1191
|
|
|
1192
|
+
const TTL$2 = 900000;
|
|
1192
1193
|
const VERSION$l = "252fe3a6509a770a876e36552ad8dd06";
|
|
1193
1194
|
function validate$l(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
|
|
1194
1195
|
const v_error = (() => {
|
|
@@ -1528,19 +1529,19 @@ function validate$l(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1528
1529
|
return v_error === undefined ? null : v_error;
|
|
1529
1530
|
}
|
|
1530
1531
|
const RepresentationType$g = 'SlackBridgeConversationInfoOutputRepresentation';
|
|
1531
|
-
function keyBuilder$
|
|
1532
|
+
function keyBuilder$F(luvio, config) {
|
|
1532
1533
|
return keyPrefix + '::' + RepresentationType$g + ':' + config.id;
|
|
1533
1534
|
}
|
|
1534
1535
|
function keyBuilderFromType$8(luvio, object) {
|
|
1535
1536
|
const keyParams = {
|
|
1536
1537
|
id: object.id
|
|
1537
1538
|
};
|
|
1538
|
-
return keyBuilder$
|
|
1539
|
+
return keyBuilder$F(luvio, keyParams);
|
|
1539
1540
|
}
|
|
1540
1541
|
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
1541
1542
|
return input;
|
|
1542
1543
|
}
|
|
1543
|
-
const select$
|
|
1544
|
+
const select$H = function SlackBridgeConversationInfoOutputRepresentationSelect() {
|
|
1544
1545
|
return {
|
|
1545
1546
|
kind: 'Fragment',
|
|
1546
1547
|
version: VERSION$l,
|
|
@@ -1704,7 +1705,7 @@ const ingest$g = function SlackBridgeConversationInfoOutputRepresentationIngest(
|
|
|
1704
1705
|
}
|
|
1705
1706
|
}
|
|
1706
1707
|
const key = keyBuilderFromType$8(luvio, input);
|
|
1707
|
-
const ttlToUse =
|
|
1708
|
+
const ttlToUse = TTL$2;
|
|
1708
1709
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SlackBridge", VERSION$l, RepresentationType$g, equals$l);
|
|
1709
1710
|
return createLink(key);
|
|
1710
1711
|
};
|
|
@@ -1796,7 +1797,7 @@ function validate$k(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
|
1796
1797
|
})();
|
|
1797
1798
|
return v_error === undefined ? null : v_error;
|
|
1798
1799
|
}
|
|
1799
|
-
const select$
|
|
1800
|
+
const select$G = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
1800
1801
|
return {
|
|
1801
1802
|
kind: 'Fragment',
|
|
1802
1803
|
version: VERSION$k,
|
|
@@ -1870,7 +1871,7 @@ function validate$j(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
|
1870
1871
|
})();
|
|
1871
1872
|
return v_error === undefined ? null : v_error;
|
|
1872
1873
|
}
|
|
1873
|
-
const select$
|
|
1874
|
+
const select$F = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
1874
1875
|
return {
|
|
1875
1876
|
kind: 'Fragment',
|
|
1876
1877
|
version: VERSION$j,
|
|
@@ -1985,8 +1986,8 @@ function validate$i(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
1985
1986
|
})();
|
|
1986
1987
|
return v_error === undefined ? null : v_error;
|
|
1987
1988
|
}
|
|
1988
|
-
const select$
|
|
1989
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
1989
|
+
const select$E = function SlackBridgeContentVersionOutputRepresentationSelect() {
|
|
1990
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$F();
|
|
1990
1991
|
return {
|
|
1991
1992
|
kind: 'Fragment',
|
|
1992
1993
|
version: VERSION$i,
|
|
@@ -2098,9 +2099,9 @@ function validate$h(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
2098
2099
|
})();
|
|
2099
2100
|
return v_error === undefined ? null : v_error;
|
|
2100
2101
|
}
|
|
2101
|
-
const select$
|
|
2102
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
2103
|
-
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();
|
|
2104
2105
|
return {
|
|
2105
2106
|
kind: 'Fragment',
|
|
2106
2107
|
version: VERSION$h,
|
|
@@ -2333,20 +2334,20 @@ function validate$g(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
2333
2334
|
return v_error === undefined ? null : v_error;
|
|
2334
2335
|
}
|
|
2335
2336
|
const RepresentationType$f = 'SlackBridgeFileOutputRepresentation';
|
|
2336
|
-
function keyBuilder$
|
|
2337
|
+
function keyBuilder$E(luvio, config) {
|
|
2337
2338
|
return keyPrefix + '::' + RepresentationType$f + ':' + (config.uniqueKey === null ? '' : config.uniqueKey);
|
|
2338
2339
|
}
|
|
2339
2340
|
function keyBuilderFromType$7(luvio, object) {
|
|
2340
2341
|
const keyParams = {
|
|
2341
2342
|
uniqueKey: object.uniqueKey
|
|
2342
2343
|
};
|
|
2343
|
-
return keyBuilder$
|
|
2344
|
+
return keyBuilder$E(luvio, keyParams);
|
|
2344
2345
|
}
|
|
2345
2346
|
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
2346
2347
|
return input;
|
|
2347
2348
|
}
|
|
2348
|
-
const select$
|
|
2349
|
-
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$
|
|
2349
|
+
const select$C = function SlackBridgeFileOutputRepresentationSelect() {
|
|
2350
|
+
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$D();
|
|
2350
2351
|
return {
|
|
2351
2352
|
kind: 'Fragment',
|
|
2352
2353
|
version: VERSION$g,
|
|
@@ -2879,8 +2880,8 @@ function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
|
2879
2880
|
}
|
|
2880
2881
|
return input;
|
|
2881
2882
|
}
|
|
2882
|
-
const select$
|
|
2883
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
2883
|
+
const select$B = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
2884
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$G();
|
|
2884
2885
|
return {
|
|
2885
2886
|
kind: 'Fragment',
|
|
2886
2887
|
version: VERSION$f,
|
|
@@ -2904,7 +2905,7 @@ const select$z = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
2904
2905
|
name: 'files',
|
|
2905
2906
|
kind: 'Link',
|
|
2906
2907
|
plural: true,
|
|
2907
|
-
fragment: select$
|
|
2908
|
+
fragment: select$C()
|
|
2908
2909
|
},
|
|
2909
2910
|
{
|
|
2910
2911
|
name: 'includesCustomEmoji',
|
|
@@ -3212,7 +3213,7 @@ function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
|
3212
3213
|
}
|
|
3213
3214
|
return input;
|
|
3214
3215
|
}
|
|
3215
|
-
const select$
|
|
3216
|
+
const select$A = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
|
|
3216
3217
|
return {
|
|
3217
3218
|
kind: 'Fragment',
|
|
3218
3219
|
version: VERSION$e,
|
|
@@ -3226,7 +3227,7 @@ const select$y = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
3226
3227
|
name: 'messages',
|
|
3227
3228
|
kind: 'Link',
|
|
3228
3229
|
plural: true,
|
|
3229
|
-
fragment: select$
|
|
3230
|
+
fragment: select$B()
|
|
3230
3231
|
},
|
|
3231
3232
|
{
|
|
3232
3233
|
name: 'nextCursor',
|
|
@@ -3284,7 +3285,7 @@ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3284
3285
|
}
|
|
3285
3286
|
}
|
|
3286
3287
|
|
|
3287
|
-
const VERSION$d = "
|
|
3288
|
+
const VERSION$d = "1119f2c416d047eefd8303c5a2d590ae";
|
|
3288
3289
|
function validate$d(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
3289
3290
|
const v_error = (() => {
|
|
3290
3291
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3352,6 +3353,30 @@ function validate$d(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
|
3352
3353
|
message += '\n' + obj_conversationInfo_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3353
3354
|
return new TypeError(message);
|
|
3354
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
|
+
}
|
|
3355
3380
|
const obj_history = obj.history;
|
|
3356
3381
|
const path_history = path + '.history';
|
|
3357
3382
|
if (typeof obj_history !== 'object') {
|
|
@@ -3459,6 +3484,38 @@ function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
|
3459
3484
|
ttl: path.ttl
|
|
3460
3485
|
}, luvio, store, timestamp);
|
|
3461
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
|
+
}
|
|
3462
3519
|
const input_history = input.history;
|
|
3463
3520
|
const input_history_id = path.fullPath + '__history';
|
|
3464
3521
|
input.history = ingest$d(input_history, {
|
|
@@ -3489,7 +3546,7 @@ function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
|
3489
3546
|
}
|
|
3490
3547
|
return input;
|
|
3491
3548
|
}
|
|
3492
|
-
const select$
|
|
3549
|
+
const select$z = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
3493
3550
|
return {
|
|
3494
3551
|
kind: 'Fragment',
|
|
3495
3552
|
version: VERSION$d,
|
|
@@ -3507,18 +3564,30 @@ const select$x = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3507
3564
|
name: 'contextUserInfo',
|
|
3508
3565
|
kind: 'Link',
|
|
3509
3566
|
nullable: true,
|
|
3510
|
-
fragment: select$
|
|
3567
|
+
fragment: select$I()
|
|
3511
3568
|
},
|
|
3512
3569
|
{
|
|
3513
3570
|
name: 'conversationInfo',
|
|
3514
3571
|
kind: 'Link',
|
|
3515
3572
|
nullable: true,
|
|
3516
|
-
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()
|
|
3517
3586
|
},
|
|
3518
3587
|
{
|
|
3519
3588
|
name: 'history',
|
|
3520
3589
|
kind: 'Link',
|
|
3521
|
-
fragment: select$
|
|
3590
|
+
fragment: select$A()
|
|
3522
3591
|
},
|
|
3523
3592
|
{
|
|
3524
3593
|
name: 'teamId',
|
|
@@ -3532,7 +3601,7 @@ const select$x = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3532
3601
|
name: 'userInfos',
|
|
3533
3602
|
kind: 'Link',
|
|
3534
3603
|
plural: true,
|
|
3535
|
-
fragment: select$
|
|
3604
|
+
fragment: select$I()
|
|
3536
3605
|
},
|
|
3537
3606
|
{
|
|
3538
3607
|
name: 'websocketUrl',
|
|
@@ -3577,6 +3646,26 @@ function equals$d(existing, incoming) {
|
|
|
3577
3646
|
existing_conversationInfo.__ref === incoming_conversationInfo.__ref))) {
|
|
3578
3647
|
return false;
|
|
3579
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
|
+
}
|
|
3580
3669
|
const existing_history = existing.history;
|
|
3581
3670
|
const incoming_history = incoming.history;
|
|
3582
3671
|
if (!(existing_history.__ref === incoming_history.__ref)) {
|
|
@@ -3630,6 +3719,14 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3630
3719
|
if (input.conversationInfo !== null && typeof input.conversationInfo === 'object') {
|
|
3631
3720
|
getTypeCacheKeys$g(rootKeySet, luvio, input.conversationInfo);
|
|
3632
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
|
+
}
|
|
3633
3730
|
getTypeCacheKeys$d(rootKeySet, luvio, input.history, () => rootKey + "__" + "history");
|
|
3634
3731
|
const input_userInfos_length = input.userInfos.length;
|
|
3635
3732
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
@@ -3637,22 +3734,22 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3637
3734
|
}
|
|
3638
3735
|
}
|
|
3639
3736
|
|
|
3640
|
-
function select$
|
|
3641
|
-
return select$
|
|
3737
|
+
function select$y(luvio, params) {
|
|
3738
|
+
return select$z();
|
|
3642
3739
|
}
|
|
3643
|
-
function keyBuilder$
|
|
3740
|
+
function keyBuilder$D(luvio, params) {
|
|
3644
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 + ')';
|
|
3645
3742
|
}
|
|
3646
|
-
function getResponseCacheKeys$
|
|
3647
|
-
getTypeCacheKeys$c(storeKeyMap, luvio, response, () => keyBuilder$
|
|
3743
|
+
function getResponseCacheKeys$o(storeKeyMap, luvio, resourceParams, response) {
|
|
3744
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response, () => keyBuilder$D(luvio, resourceParams));
|
|
3648
3745
|
}
|
|
3649
|
-
function ingestSuccess$
|
|
3746
|
+
function ingestSuccess$l(luvio, resourceParams, response, snapshotRefresh) {
|
|
3650
3747
|
const { body } = response;
|
|
3651
|
-
const key = keyBuilder$
|
|
3748
|
+
const key = keyBuilder$D(luvio, resourceParams);
|
|
3652
3749
|
luvio.storeIngest(key, ingest$c, body);
|
|
3653
3750
|
const snapshot = luvio.storeLookup({
|
|
3654
3751
|
recordId: key,
|
|
3655
|
-
node: select$
|
|
3752
|
+
node: select$y(),
|
|
3656
3753
|
variables: {},
|
|
3657
3754
|
}, snapshotRefresh);
|
|
3658
3755
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3663,13 +3760,13 @@ function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3663
3760
|
deepFreeze(snapshot.data);
|
|
3664
3761
|
return snapshot;
|
|
3665
3762
|
}
|
|
3666
|
-
function ingestError$
|
|
3667
|
-
const key = keyBuilder$
|
|
3763
|
+
function ingestError$e(luvio, params, error, snapshotRefresh) {
|
|
3764
|
+
const key = keyBuilder$D(luvio, params);
|
|
3668
3765
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3669
3766
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3670
3767
|
return errorSnapshot;
|
|
3671
3768
|
}
|
|
3672
|
-
function createResourceRequest$
|
|
3769
|
+
function createResourceRequest$o(config) {
|
|
3673
3770
|
const headers = {};
|
|
3674
3771
|
return {
|
|
3675
3772
|
baseUri: '/services/data/v64.0',
|
|
@@ -3683,7 +3780,7 @@ function createResourceRequest$m(config) {
|
|
|
3683
3780
|
};
|
|
3684
3781
|
}
|
|
3685
3782
|
|
|
3686
|
-
const adapterName$
|
|
3783
|
+
const adapterName$o = 'getSlackConversation';
|
|
3687
3784
|
const getSlackConversation_ConfigPropertyMetadata = [
|
|
3688
3785
|
generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3689
3786
|
generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -3695,86 +3792,86 @@ const getSlackConversation_ConfigPropertyMetadata = [
|
|
|
3695
3792
|
generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3696
3793
|
generateParamConfigMetadata('teamId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3697
3794
|
];
|
|
3698
|
-
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3699
|
-
const createResourceParams$
|
|
3700
|
-
function keyBuilder$
|
|
3701
|
-
const resourceParams = createResourceParams$
|
|
3702
|
-
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);
|
|
3703
3800
|
}
|
|
3704
|
-
function typeCheckConfig$
|
|
3801
|
+
function typeCheckConfig$o(untrustedConfig) {
|
|
3705
3802
|
const config = {};
|
|
3706
|
-
typeCheckConfig$
|
|
3803
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
|
|
3707
3804
|
return config;
|
|
3708
3805
|
}
|
|
3709
|
-
function validateAdapterConfig$
|
|
3806
|
+
function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
|
|
3710
3807
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3711
3808
|
return null;
|
|
3712
3809
|
}
|
|
3713
3810
|
if (process.env.NODE_ENV !== 'production') {
|
|
3714
3811
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3715
3812
|
}
|
|
3716
|
-
const config = typeCheckConfig$
|
|
3813
|
+
const config = typeCheckConfig$o(untrustedConfig);
|
|
3717
3814
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3718
3815
|
return null;
|
|
3719
3816
|
}
|
|
3720
3817
|
return config;
|
|
3721
3818
|
}
|
|
3722
|
-
function adapterFragment$
|
|
3723
|
-
createResourceParams$
|
|
3724
|
-
return select$
|
|
3819
|
+
function adapterFragment$e(luvio, config) {
|
|
3820
|
+
createResourceParams$o(config);
|
|
3821
|
+
return select$y();
|
|
3725
3822
|
}
|
|
3726
|
-
function onFetchResponseSuccess$
|
|
3727
|
-
const snapshot = ingestSuccess$
|
|
3823
|
+
function onFetchResponseSuccess$e(luvio, config, resourceParams, response) {
|
|
3824
|
+
const snapshot = ingestSuccess$l(luvio, resourceParams, response, {
|
|
3728
3825
|
config,
|
|
3729
|
-
resolve: () => buildNetworkSnapshot$
|
|
3826
|
+
resolve: () => buildNetworkSnapshot$o(luvio, config, snapshotRefreshOptions)
|
|
3730
3827
|
});
|
|
3731
3828
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3732
3829
|
}
|
|
3733
|
-
function onFetchResponseError$
|
|
3734
|
-
const snapshot = ingestError$
|
|
3830
|
+
function onFetchResponseError$e(luvio, config, resourceParams, response) {
|
|
3831
|
+
const snapshot = ingestError$e(luvio, resourceParams, response, {
|
|
3735
3832
|
config,
|
|
3736
|
-
resolve: () => buildNetworkSnapshot$
|
|
3833
|
+
resolve: () => buildNetworkSnapshot$o(luvio, config, snapshotRefreshOptions)
|
|
3737
3834
|
});
|
|
3738
3835
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3739
3836
|
}
|
|
3740
|
-
function buildNetworkSnapshot$
|
|
3741
|
-
const resourceParams = createResourceParams$
|
|
3742
|
-
const request = createResourceRequest$
|
|
3837
|
+
function buildNetworkSnapshot$o(luvio, config, options) {
|
|
3838
|
+
const resourceParams = createResourceParams$o(config);
|
|
3839
|
+
const request = createResourceRequest$o(resourceParams);
|
|
3743
3840
|
return luvio.dispatchResourceRequest(request, options)
|
|
3744
3841
|
.then((response) => {
|
|
3745
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3842
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$e(luvio, config, resourceParams, response), () => {
|
|
3746
3843
|
const cache = new StoreKeyMap();
|
|
3747
|
-
getResponseCacheKeys$
|
|
3844
|
+
getResponseCacheKeys$o(cache, luvio, resourceParams, response.body);
|
|
3748
3845
|
return cache;
|
|
3749
3846
|
});
|
|
3750
3847
|
}, (response) => {
|
|
3751
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3848
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$e(luvio, config, resourceParams, response));
|
|
3752
3849
|
});
|
|
3753
3850
|
}
|
|
3754
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3755
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3851
|
+
function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
|
|
3852
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$o, undefined, false);
|
|
3756
3853
|
}
|
|
3757
|
-
function buildCachedSnapshotCachePolicy$
|
|
3854
|
+
function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
|
|
3758
3855
|
const { luvio, config } = context;
|
|
3759
3856
|
const selector = {
|
|
3760
|
-
recordId: keyBuilder$
|
|
3761
|
-
node: adapterFragment$
|
|
3857
|
+
recordId: keyBuilder$C(luvio, config),
|
|
3858
|
+
node: adapterFragment$e(luvio, config),
|
|
3762
3859
|
variables: {},
|
|
3763
3860
|
};
|
|
3764
3861
|
const cacheSnapshot = storeLookup(selector, {
|
|
3765
3862
|
config,
|
|
3766
|
-
resolve: () => buildNetworkSnapshot$
|
|
3863
|
+
resolve: () => buildNetworkSnapshot$o(luvio, config, snapshotRefreshOptions)
|
|
3767
3864
|
});
|
|
3768
3865
|
return cacheSnapshot;
|
|
3769
3866
|
}
|
|
3770
3867
|
const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
|
|
3771
|
-
const config = validateAdapterConfig$
|
|
3868
|
+
const config = validateAdapterConfig$o(untrustedConfig, getSlackConversation_ConfigPropertyNames);
|
|
3772
3869
|
// Invalid or incomplete config
|
|
3773
3870
|
if (config === null) {
|
|
3774
3871
|
return null;
|
|
3775
3872
|
}
|
|
3776
3873
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3777
|
-
buildCachedSnapshotCachePolicy$
|
|
3874
|
+
buildCachedSnapshotCachePolicy$e, buildNetworkSnapshotCachePolicy$e);
|
|
3778
3875
|
};
|
|
3779
3876
|
|
|
3780
3877
|
const VERSION$c = "769b5b0ed94219341e9be74c08e63aed";
|
|
@@ -3802,14 +3899,14 @@ function validate$c(obj, path = 'SlackBridgePostMessageOutputRepresentation') {
|
|
|
3802
3899
|
return v_error === undefined ? null : v_error;
|
|
3803
3900
|
}
|
|
3804
3901
|
const RepresentationType$b = 'SlackBridgePostMessageOutputRepresentation';
|
|
3805
|
-
function keyBuilder$
|
|
3902
|
+
function keyBuilder$B(luvio, config) {
|
|
3806
3903
|
return keyPrefix + '::' + RepresentationType$b + ':' + config.channelId;
|
|
3807
3904
|
}
|
|
3808
3905
|
function keyBuilderFromType$6(luvio, object) {
|
|
3809
3906
|
const keyParams = {
|
|
3810
3907
|
channelId: object.channelId
|
|
3811
3908
|
};
|
|
3812
|
-
return keyBuilder$
|
|
3909
|
+
return keyBuilder$B(luvio, keyParams);
|
|
3813
3910
|
}
|
|
3814
3911
|
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
3815
3912
|
const input_postedMessage = input.postedMessage;
|
|
@@ -3826,7 +3923,7 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
3826
3923
|
}, luvio, store, timestamp);
|
|
3827
3924
|
return input;
|
|
3828
3925
|
}
|
|
3829
|
-
const select$
|
|
3926
|
+
const select$x = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
3830
3927
|
return {
|
|
3831
3928
|
kind: 'Fragment',
|
|
3832
3929
|
version: VERSION$c,
|
|
@@ -3839,7 +3936,7 @@ const select$v = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
|
3839
3936
|
{
|
|
3840
3937
|
name: 'postedMessage',
|
|
3841
3938
|
kind: 'Link',
|
|
3842
|
-
fragment: select$
|
|
3939
|
+
fragment: select$B()
|
|
3843
3940
|
},
|
|
3844
3941
|
{
|
|
3845
3942
|
name: 'timestamp',
|
|
@@ -3889,19 +3986,19 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3889
3986
|
getTypeCacheKeys$e(rootKeySet, luvio, input.postedMessage, () => rootKey + "__" + "postedMessage");
|
|
3890
3987
|
}
|
|
3891
3988
|
|
|
3892
|
-
function select$
|
|
3893
|
-
return select$
|
|
3989
|
+
function select$w(luvio, params) {
|
|
3990
|
+
return select$x();
|
|
3894
3991
|
}
|
|
3895
|
-
function getResponseCacheKeys$
|
|
3992
|
+
function getResponseCacheKeys$n(storeKeyMap, luvio, resourceParams, response) {
|
|
3896
3993
|
getTypeCacheKeys$b(storeKeyMap, luvio, response);
|
|
3897
3994
|
}
|
|
3898
|
-
function ingestSuccess$
|
|
3995
|
+
function ingestSuccess$k(luvio, resourceParams, response) {
|
|
3899
3996
|
const { body } = response;
|
|
3900
3997
|
const key = keyBuilderFromType$6(luvio, body);
|
|
3901
3998
|
luvio.storeIngest(key, ingest$b, body);
|
|
3902
3999
|
const snapshot = luvio.storeLookup({
|
|
3903
4000
|
recordId: key,
|
|
3904
|
-
node: select$
|
|
4001
|
+
node: select$w(),
|
|
3905
4002
|
variables: {},
|
|
3906
4003
|
});
|
|
3907
4004
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3912,7 +4009,7 @@ function ingestSuccess$i(luvio, resourceParams, response) {
|
|
|
3912
4009
|
deepFreeze(snapshot.data);
|
|
3913
4010
|
return snapshot;
|
|
3914
4011
|
}
|
|
3915
|
-
function createResourceRequest$
|
|
4012
|
+
function createResourceRequest$n(config) {
|
|
3916
4013
|
const headers = {};
|
|
3917
4014
|
return {
|
|
3918
4015
|
baseUri: '/services/data/v64.0',
|
|
@@ -3926,7 +4023,7 @@ function createResourceRequest$l(config) {
|
|
|
3926
4023
|
};
|
|
3927
4024
|
}
|
|
3928
4025
|
|
|
3929
|
-
const adapterName$
|
|
4026
|
+
const adapterName$n = 'postSlackConversation';
|
|
3930
4027
|
const postSlackConversation_ConfigPropertyMetadata = [
|
|
3931
4028
|
generateParamConfigMetadata('channelId', true, 2 /* Body */, 0 /* String */),
|
|
3932
4029
|
generateParamConfigMetadata('linkNames', false, 2 /* Body */, 1 /* Boolean */),
|
|
@@ -3935,37 +4032,37 @@ const postSlackConversation_ConfigPropertyMetadata = [
|
|
|
3935
4032
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
3936
4033
|
generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
|
|
3937
4034
|
];
|
|
3938
|
-
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3939
|
-
const createResourceParams$
|
|
3940
|
-
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) {
|
|
3941
4038
|
const config = {};
|
|
3942
|
-
typeCheckConfig$
|
|
4039
|
+
typeCheckConfig$p(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
|
|
3943
4040
|
return config;
|
|
3944
4041
|
}
|
|
3945
|
-
function validateAdapterConfig$
|
|
4042
|
+
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
3946
4043
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3947
4044
|
return null;
|
|
3948
4045
|
}
|
|
3949
4046
|
if (process.env.NODE_ENV !== 'production') {
|
|
3950
4047
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3951
4048
|
}
|
|
3952
|
-
const config = typeCheckConfig$
|
|
4049
|
+
const config = typeCheckConfig$n(untrustedConfig);
|
|
3953
4050
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3954
4051
|
return null;
|
|
3955
4052
|
}
|
|
3956
4053
|
return config;
|
|
3957
4054
|
}
|
|
3958
|
-
function buildNetworkSnapshot$
|
|
3959
|
-
const resourceParams = createResourceParams$
|
|
3960
|
-
const request = createResourceRequest$
|
|
4055
|
+
function buildNetworkSnapshot$n(luvio, config, options) {
|
|
4056
|
+
const resourceParams = createResourceParams$n(config);
|
|
4057
|
+
const request = createResourceRequest$n(resourceParams);
|
|
3961
4058
|
return luvio.dispatchResourceRequest(request, options)
|
|
3962
4059
|
.then((response) => {
|
|
3963
4060
|
return luvio.handleSuccessResponse(() => {
|
|
3964
|
-
const snapshot = ingestSuccess$
|
|
4061
|
+
const snapshot = ingestSuccess$k(luvio, resourceParams, response);
|
|
3965
4062
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3966
4063
|
}, () => {
|
|
3967
4064
|
const cache = new StoreKeyMap();
|
|
3968
|
-
getResponseCacheKeys$
|
|
4065
|
+
getResponseCacheKeys$n(cache, luvio, resourceParams, response.body);
|
|
3969
4066
|
return cache;
|
|
3970
4067
|
});
|
|
3971
4068
|
}, (response) => {
|
|
@@ -3975,28 +4072,28 @@ function buildNetworkSnapshot$l(luvio, config, options) {
|
|
|
3975
4072
|
}
|
|
3976
4073
|
const postSlackConversationAdapterFactory = (luvio) => {
|
|
3977
4074
|
return function postSlackConversation(untrustedConfig) {
|
|
3978
|
-
const config = validateAdapterConfig$
|
|
4075
|
+
const config = validateAdapterConfig$n(untrustedConfig, postSlackConversation_ConfigPropertyNames);
|
|
3979
4076
|
// Invalid or incomplete config
|
|
3980
4077
|
if (config === null) {
|
|
3981
4078
|
throw new Error('Invalid config for "postSlackConversation"');
|
|
3982
4079
|
}
|
|
3983
|
-
return buildNetworkSnapshot$
|
|
4080
|
+
return buildNetworkSnapshot$n(luvio, config);
|
|
3984
4081
|
};
|
|
3985
4082
|
};
|
|
3986
4083
|
|
|
3987
|
-
function select$
|
|
3988
|
-
return select$
|
|
4084
|
+
function select$v(luvio, params) {
|
|
4085
|
+
return select$C();
|
|
3989
4086
|
}
|
|
3990
|
-
function getResponseCacheKeys$
|
|
4087
|
+
function getResponseCacheKeys$m(storeKeyMap, luvio, resourceParams, response) {
|
|
3991
4088
|
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
3992
4089
|
}
|
|
3993
|
-
function ingestSuccess$
|
|
4090
|
+
function ingestSuccess$j(luvio, resourceParams, response) {
|
|
3994
4091
|
const { body } = response;
|
|
3995
4092
|
const key = keyBuilderFromType$7(luvio, body);
|
|
3996
4093
|
luvio.storeIngest(key, ingest$f, body);
|
|
3997
4094
|
const snapshot = luvio.storeLookup({
|
|
3998
4095
|
recordId: key,
|
|
3999
|
-
node: select$
|
|
4096
|
+
node: select$v(),
|
|
4000
4097
|
variables: {},
|
|
4001
4098
|
});
|
|
4002
4099
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4007,7 +4104,7 @@ function ingestSuccess$h(luvio, resourceParams, response) {
|
|
|
4007
4104
|
deepFreeze(snapshot.data);
|
|
4008
4105
|
return snapshot;
|
|
4009
4106
|
}
|
|
4010
|
-
function createResourceRequest$
|
|
4107
|
+
function createResourceRequest$m(config) {
|
|
4011
4108
|
const headers = {};
|
|
4012
4109
|
return {
|
|
4013
4110
|
baseUri: '/services/data/v64.0',
|
|
@@ -4021,7 +4118,7 @@ function createResourceRequest$k(config) {
|
|
|
4021
4118
|
};
|
|
4022
4119
|
}
|
|
4023
4120
|
|
|
4024
|
-
const adapterName$
|
|
4121
|
+
const adapterName$m = 'postSlackFile';
|
|
4025
4122
|
const postSlackFile_ConfigPropertyMetadata = [
|
|
4026
4123
|
generateParamConfigMetadata('base64EncodedFileData', true, 2 /* Body */, 0 /* String */),
|
|
4027
4124
|
generateParamConfigMetadata('channels', true, 2 /* Body */, 0 /* String */, true),
|
|
@@ -4032,37 +4129,37 @@ const postSlackFile_ConfigPropertyMetadata = [
|
|
|
4032
4129
|
generateParamConfigMetadata('threadTs', true, 2 /* Body */, 0 /* String */),
|
|
4033
4130
|
generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
|
|
4034
4131
|
];
|
|
4035
|
-
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4036
|
-
const createResourceParams$
|
|
4037
|
-
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) {
|
|
4038
4135
|
const config = {};
|
|
4039
|
-
typeCheckConfig$
|
|
4136
|
+
typeCheckConfig$p(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
|
|
4040
4137
|
return config;
|
|
4041
4138
|
}
|
|
4042
|
-
function validateAdapterConfig$
|
|
4139
|
+
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
4043
4140
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4044
4141
|
return null;
|
|
4045
4142
|
}
|
|
4046
4143
|
if (process.env.NODE_ENV !== 'production') {
|
|
4047
4144
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4048
4145
|
}
|
|
4049
|
-
const config = typeCheckConfig$
|
|
4146
|
+
const config = typeCheckConfig$m(untrustedConfig);
|
|
4050
4147
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4051
4148
|
return null;
|
|
4052
4149
|
}
|
|
4053
4150
|
return config;
|
|
4054
4151
|
}
|
|
4055
|
-
function buildNetworkSnapshot$
|
|
4056
|
-
const resourceParams = createResourceParams$
|
|
4057
|
-
const request = createResourceRequest$
|
|
4152
|
+
function buildNetworkSnapshot$m(luvio, config, options) {
|
|
4153
|
+
const resourceParams = createResourceParams$m(config);
|
|
4154
|
+
const request = createResourceRequest$m(resourceParams);
|
|
4058
4155
|
return luvio.dispatchResourceRequest(request, options)
|
|
4059
4156
|
.then((response) => {
|
|
4060
4157
|
return luvio.handleSuccessResponse(() => {
|
|
4061
|
-
const snapshot = ingestSuccess$
|
|
4158
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response);
|
|
4062
4159
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4063
4160
|
}, () => {
|
|
4064
4161
|
const cache = new StoreKeyMap();
|
|
4065
|
-
getResponseCacheKeys$
|
|
4162
|
+
getResponseCacheKeys$m(cache, luvio, resourceParams, response.body);
|
|
4066
4163
|
return cache;
|
|
4067
4164
|
});
|
|
4068
4165
|
}, (response) => {
|
|
@@ -4072,12 +4169,12 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
4072
4169
|
}
|
|
4073
4170
|
const postSlackFileAdapterFactory = (luvio) => {
|
|
4074
4171
|
return function postSlackFile(untrustedConfig) {
|
|
4075
|
-
const config = validateAdapterConfig$
|
|
4172
|
+
const config = validateAdapterConfig$m(untrustedConfig, postSlackFile_ConfigPropertyNames);
|
|
4076
4173
|
// Invalid or incomplete config
|
|
4077
4174
|
if (config === null) {
|
|
4078
4175
|
throw new Error('Invalid config for "postSlackFile"');
|
|
4079
4176
|
}
|
|
4080
|
-
return buildNetworkSnapshot$
|
|
4177
|
+
return buildNetworkSnapshot$m(luvio, config);
|
|
4081
4178
|
};
|
|
4082
4179
|
};
|
|
4083
4180
|
|
|
@@ -4106,14 +4203,14 @@ function validate$b(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentatio
|
|
|
4106
4203
|
return v_error === undefined ? null : v_error;
|
|
4107
4204
|
}
|
|
4108
4205
|
const RepresentationType$a = 'SlackBridgeRecordChannelInfoOutputRepresentation';
|
|
4109
|
-
function keyBuilder$
|
|
4206
|
+
function keyBuilder$A(luvio, config) {
|
|
4110
4207
|
return keyPrefix + '::' + RepresentationType$a + ':' + config.relatedRecordId;
|
|
4111
4208
|
}
|
|
4112
4209
|
function keyBuilderFromType$5(luvio, object) {
|
|
4113
4210
|
const keyParams = {
|
|
4114
4211
|
relatedRecordId: object.relatedRecordId
|
|
4115
4212
|
};
|
|
4116
|
-
return keyBuilder$
|
|
4213
|
+
return keyBuilder$A(luvio, keyParams);
|
|
4117
4214
|
}
|
|
4118
4215
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
4119
4216
|
const input_conversationInfo = input.conversationInfo;
|
|
@@ -4130,7 +4227,7 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
4130
4227
|
}, luvio, store, timestamp);
|
|
4131
4228
|
return input;
|
|
4132
4229
|
}
|
|
4133
|
-
const select$
|
|
4230
|
+
const select$u = function SlackBridgeRecordChannelInfoOutputRepresentationSelect() {
|
|
4134
4231
|
return {
|
|
4135
4232
|
kind: 'Fragment',
|
|
4136
4233
|
version: VERSION$b,
|
|
@@ -4139,7 +4236,7 @@ const select$s = function SlackBridgeRecordChannelInfoOutputRepresentationSelect
|
|
|
4139
4236
|
{
|
|
4140
4237
|
name: 'conversationInfo',
|
|
4141
4238
|
kind: 'Link',
|
|
4142
|
-
fragment: select$
|
|
4239
|
+
fragment: select$H()
|
|
4143
4240
|
},
|
|
4144
4241
|
{
|
|
4145
4242
|
name: 'relatedRecordId',
|
|
@@ -4193,19 +4290,19 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4193
4290
|
getTypeCacheKeys$g(rootKeySet, luvio, input.conversationInfo);
|
|
4194
4291
|
}
|
|
4195
4292
|
|
|
4196
|
-
function select$
|
|
4197
|
-
return select$
|
|
4293
|
+
function select$t(luvio, params) {
|
|
4294
|
+
return select$u();
|
|
4198
4295
|
}
|
|
4199
|
-
function getResponseCacheKeys$
|
|
4296
|
+
function getResponseCacheKeys$l(storeKeyMap, luvio, resourceParams, response) {
|
|
4200
4297
|
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
4201
4298
|
}
|
|
4202
|
-
function ingestSuccess$
|
|
4299
|
+
function ingestSuccess$i(luvio, resourceParams, response) {
|
|
4203
4300
|
const { body } = response;
|
|
4204
4301
|
const key = keyBuilderFromType$5(luvio, body);
|
|
4205
4302
|
luvio.storeIngest(key, ingest$a, body);
|
|
4206
4303
|
const snapshot = luvio.storeLookup({
|
|
4207
4304
|
recordId: key,
|
|
4208
|
-
node: select$
|
|
4305
|
+
node: select$t(),
|
|
4209
4306
|
variables: {},
|
|
4210
4307
|
});
|
|
4211
4308
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4216,7 +4313,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
|
|
|
4216
4313
|
deepFreeze(snapshot.data);
|
|
4217
4314
|
return snapshot;
|
|
4218
4315
|
}
|
|
4219
|
-
function createResourceRequest$
|
|
4316
|
+
function createResourceRequest$l(config) {
|
|
4220
4317
|
const headers = {};
|
|
4221
4318
|
return {
|
|
4222
4319
|
baseUri: '/services/data/v64.0',
|
|
@@ -4230,16 +4327,16 @@ function createResourceRequest$j(config) {
|
|
|
4230
4327
|
};
|
|
4231
4328
|
}
|
|
4232
4329
|
|
|
4233
|
-
const adapterName$
|
|
4330
|
+
const adapterName$l = 'postSlackRecordChannelInfos';
|
|
4234
4331
|
const postSlackRecordChannelInfos_ConfigPropertyMetadata = [
|
|
4235
4332
|
generateParamConfigMetadata('conversationInfo', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4236
4333
|
generateParamConfigMetadata('relatedRecordId', true, 2 /* Body */, 0 /* String */),
|
|
4237
4334
|
];
|
|
4238
|
-
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4239
|
-
const createResourceParams$
|
|
4240
|
-
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) {
|
|
4241
4338
|
const config = {};
|
|
4242
|
-
typeCheckConfig$
|
|
4339
|
+
typeCheckConfig$p(untrustedConfig, config, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
4243
4340
|
const untrustedConfig_conversationInfo = untrustedConfig.conversationInfo;
|
|
4244
4341
|
if (untrustedIsObject(untrustedConfig_conversationInfo)) {
|
|
4245
4342
|
const untrustedConfig_conversationInfo_object = {};
|
|
@@ -4253,30 +4350,30 @@ function typeCheckConfig$j(untrustedConfig) {
|
|
|
4253
4350
|
}
|
|
4254
4351
|
return config;
|
|
4255
4352
|
}
|
|
4256
|
-
function validateAdapterConfig$
|
|
4353
|
+
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
4257
4354
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4258
4355
|
return null;
|
|
4259
4356
|
}
|
|
4260
4357
|
if (process.env.NODE_ENV !== 'production') {
|
|
4261
4358
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4262
4359
|
}
|
|
4263
|
-
const config = typeCheckConfig$
|
|
4360
|
+
const config = typeCheckConfig$l(untrustedConfig);
|
|
4264
4361
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4265
4362
|
return null;
|
|
4266
4363
|
}
|
|
4267
4364
|
return config;
|
|
4268
4365
|
}
|
|
4269
|
-
function buildNetworkSnapshot$
|
|
4270
|
-
const resourceParams = createResourceParams$
|
|
4271
|
-
const request = createResourceRequest$
|
|
4366
|
+
function buildNetworkSnapshot$l(luvio, config, options) {
|
|
4367
|
+
const resourceParams = createResourceParams$l(config);
|
|
4368
|
+
const request = createResourceRequest$l(resourceParams);
|
|
4272
4369
|
return luvio.dispatchResourceRequest(request, options)
|
|
4273
4370
|
.then((response) => {
|
|
4274
4371
|
return luvio.handleSuccessResponse(() => {
|
|
4275
|
-
const snapshot = ingestSuccess$
|
|
4372
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response);
|
|
4276
4373
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4277
4374
|
}, () => {
|
|
4278
4375
|
const cache = new StoreKeyMap();
|
|
4279
|
-
getResponseCacheKeys$
|
|
4376
|
+
getResponseCacheKeys$l(cache, luvio, resourceParams, response.body);
|
|
4280
4377
|
return cache;
|
|
4281
4378
|
});
|
|
4282
4379
|
}, (response) => {
|
|
@@ -4286,33 +4383,33 @@ function buildNetworkSnapshot$j(luvio, config, options) {
|
|
|
4286
4383
|
}
|
|
4287
4384
|
const postSlackRecordChannelInfosAdapterFactory = (luvio) => {
|
|
4288
4385
|
return function postSlackRecordChannelInfos(untrustedConfig) {
|
|
4289
|
-
const config = validateAdapterConfig$
|
|
4386
|
+
const config = validateAdapterConfig$l(untrustedConfig, postSlackRecordChannelInfos_ConfigPropertyNames);
|
|
4290
4387
|
// Invalid or incomplete config
|
|
4291
4388
|
if (config === null) {
|
|
4292
4389
|
throw new Error('Invalid config for "postSlackRecordChannelInfos"');
|
|
4293
4390
|
}
|
|
4294
|
-
return buildNetworkSnapshot$
|
|
4391
|
+
return buildNetworkSnapshot$l(luvio, config);
|
|
4295
4392
|
};
|
|
4296
4393
|
};
|
|
4297
4394
|
|
|
4298
|
-
function select$
|
|
4299
|
-
return select$
|
|
4395
|
+
function select$s(luvio, params) {
|
|
4396
|
+
return select$u();
|
|
4300
4397
|
}
|
|
4301
|
-
function keyBuilder$
|
|
4302
|
-
return keyBuilder$
|
|
4398
|
+
function keyBuilder$z(luvio, params) {
|
|
4399
|
+
return keyBuilder$A(luvio, {
|
|
4303
4400
|
relatedRecordId: params.urlParams.relatedRecordId
|
|
4304
4401
|
});
|
|
4305
4402
|
}
|
|
4306
|
-
function getResponseCacheKeys$
|
|
4403
|
+
function getResponseCacheKeys$k(storeKeyMap, luvio, resourceParams, response) {
|
|
4307
4404
|
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
4308
4405
|
}
|
|
4309
|
-
function ingestSuccess$
|
|
4406
|
+
function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
4310
4407
|
const { body } = response;
|
|
4311
|
-
const key = keyBuilder$
|
|
4408
|
+
const key = keyBuilder$z(luvio, resourceParams);
|
|
4312
4409
|
luvio.storeIngest(key, ingest$a, body);
|
|
4313
4410
|
const snapshot = luvio.storeLookup({
|
|
4314
4411
|
recordId: key,
|
|
4315
|
-
node: select$
|
|
4412
|
+
node: select$s(),
|
|
4316
4413
|
variables: {},
|
|
4317
4414
|
}, snapshotRefresh);
|
|
4318
4415
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4323,13 +4420,13 @@ function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4323
4420
|
deepFreeze(snapshot.data);
|
|
4324
4421
|
return snapshot;
|
|
4325
4422
|
}
|
|
4326
|
-
function ingestError$
|
|
4327
|
-
const key = keyBuilder$
|
|
4423
|
+
function ingestError$d(luvio, params, error, snapshotRefresh) {
|
|
4424
|
+
const key = keyBuilder$z(luvio, params);
|
|
4328
4425
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4329
4426
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4330
4427
|
return errorSnapshot;
|
|
4331
4428
|
}
|
|
4332
|
-
function createResourceRequest$
|
|
4429
|
+
function createResourceRequest$k(config) {
|
|
4333
4430
|
const headers = {};
|
|
4334
4431
|
return {
|
|
4335
4432
|
baseUri: '/services/data/v64.0',
|
|
@@ -4343,90 +4440,90 @@ function createResourceRequest$i(config) {
|
|
|
4343
4440
|
};
|
|
4344
4441
|
}
|
|
4345
4442
|
|
|
4346
|
-
const adapterName$
|
|
4443
|
+
const adapterName$k = 'getSlackRecordChannelInfo';
|
|
4347
4444
|
const getSlackRecordChannelInfo_ConfigPropertyMetadata = [
|
|
4348
4445
|
generateParamConfigMetadata('relatedRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4349
4446
|
];
|
|
4350
|
-
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4351
|
-
const createResourceParams$
|
|
4352
|
-
function keyBuilder$
|
|
4353
|
-
const resourceParams = createResourceParams$
|
|
4354
|
-
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);
|
|
4355
4452
|
}
|
|
4356
|
-
function typeCheckConfig$
|
|
4453
|
+
function typeCheckConfig$k(untrustedConfig) {
|
|
4357
4454
|
const config = {};
|
|
4358
|
-
typeCheckConfig$
|
|
4455
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4359
4456
|
return config;
|
|
4360
4457
|
}
|
|
4361
|
-
function validateAdapterConfig$
|
|
4458
|
+
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
4362
4459
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4363
4460
|
return null;
|
|
4364
4461
|
}
|
|
4365
4462
|
if (process.env.NODE_ENV !== 'production') {
|
|
4366
4463
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4367
4464
|
}
|
|
4368
|
-
const config = typeCheckConfig$
|
|
4465
|
+
const config = typeCheckConfig$k(untrustedConfig);
|
|
4369
4466
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4370
4467
|
return null;
|
|
4371
4468
|
}
|
|
4372
4469
|
return config;
|
|
4373
4470
|
}
|
|
4374
|
-
function adapterFragment$
|
|
4375
|
-
createResourceParams$
|
|
4376
|
-
return select$
|
|
4471
|
+
function adapterFragment$d(luvio, config) {
|
|
4472
|
+
createResourceParams$k(config);
|
|
4473
|
+
return select$s();
|
|
4377
4474
|
}
|
|
4378
|
-
function onFetchResponseSuccess$
|
|
4379
|
-
const snapshot = ingestSuccess$
|
|
4475
|
+
function onFetchResponseSuccess$d(luvio, config, resourceParams, response) {
|
|
4476
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
|
|
4380
4477
|
config,
|
|
4381
|
-
resolve: () => buildNetworkSnapshot$
|
|
4478
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
4382
4479
|
});
|
|
4383
4480
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4384
4481
|
}
|
|
4385
|
-
function onFetchResponseError$
|
|
4386
|
-
const snapshot = ingestError$
|
|
4482
|
+
function onFetchResponseError$d(luvio, config, resourceParams, response) {
|
|
4483
|
+
const snapshot = ingestError$d(luvio, resourceParams, response, {
|
|
4387
4484
|
config,
|
|
4388
|
-
resolve: () => buildNetworkSnapshot$
|
|
4485
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
4389
4486
|
});
|
|
4390
4487
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4391
4488
|
}
|
|
4392
|
-
function buildNetworkSnapshot$
|
|
4393
|
-
const resourceParams = createResourceParams$
|
|
4394
|
-
const request = createResourceRequest$
|
|
4489
|
+
function buildNetworkSnapshot$k(luvio, config, options) {
|
|
4490
|
+
const resourceParams = createResourceParams$k(config);
|
|
4491
|
+
const request = createResourceRequest$k(resourceParams);
|
|
4395
4492
|
return luvio.dispatchResourceRequest(request, options)
|
|
4396
4493
|
.then((response) => {
|
|
4397
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4494
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$d(luvio, config, resourceParams, response), () => {
|
|
4398
4495
|
const cache = new StoreKeyMap();
|
|
4399
|
-
getResponseCacheKeys$
|
|
4496
|
+
getResponseCacheKeys$k(cache, luvio, resourceParams, response.body);
|
|
4400
4497
|
return cache;
|
|
4401
4498
|
});
|
|
4402
4499
|
}, (response) => {
|
|
4403
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4500
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$d(luvio, config, resourceParams, response));
|
|
4404
4501
|
});
|
|
4405
4502
|
}
|
|
4406
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4407
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4503
|
+
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
4504
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
4408
4505
|
}
|
|
4409
|
-
function buildCachedSnapshotCachePolicy$
|
|
4506
|
+
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
4410
4507
|
const { luvio, config } = context;
|
|
4411
4508
|
const selector = {
|
|
4412
|
-
recordId: keyBuilder$
|
|
4413
|
-
node: adapterFragment$
|
|
4509
|
+
recordId: keyBuilder$y(luvio, config),
|
|
4510
|
+
node: adapterFragment$d(luvio, config),
|
|
4414
4511
|
variables: {},
|
|
4415
4512
|
};
|
|
4416
4513
|
const cacheSnapshot = storeLookup(selector, {
|
|
4417
4514
|
config,
|
|
4418
|
-
resolve: () => buildNetworkSnapshot$
|
|
4515
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
4419
4516
|
});
|
|
4420
4517
|
return cacheSnapshot;
|
|
4421
4518
|
}
|
|
4422
4519
|
const getSlackRecordChannelInfoAdapterFactory = (luvio) => function SlackBridge__getSlackRecordChannelInfo(untrustedConfig, requestContext) {
|
|
4423
|
-
const config = validateAdapterConfig$
|
|
4520
|
+
const config = validateAdapterConfig$k(untrustedConfig, getSlackRecordChannelInfo_ConfigPropertyNames);
|
|
4424
4521
|
// Invalid or incomplete config
|
|
4425
4522
|
if (config === null) {
|
|
4426
4523
|
return null;
|
|
4427
4524
|
}
|
|
4428
4525
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4429
|
-
buildCachedSnapshotCachePolicy$
|
|
4526
|
+
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
|
|
4430
4527
|
};
|
|
4431
4528
|
|
|
4432
4529
|
const TTL$1 = 500;
|
|
@@ -4504,7 +4601,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
4504
4601
|
}
|
|
4505
4602
|
return input;
|
|
4506
4603
|
}
|
|
4507
|
-
const select$
|
|
4604
|
+
const select$r = function SlackBridgeRelatedThreadsOutputRepresentationSelect() {
|
|
4508
4605
|
return {
|
|
4509
4606
|
kind: 'Fragment',
|
|
4510
4607
|
version: VERSION$a,
|
|
@@ -4514,13 +4611,13 @@ const select$p = function SlackBridgeRelatedThreadsOutputRepresentationSelect()
|
|
|
4514
4611
|
name: 'conversations',
|
|
4515
4612
|
kind: 'Link',
|
|
4516
4613
|
plural: true,
|
|
4517
|
-
fragment: select$
|
|
4614
|
+
fragment: select$H()
|
|
4518
4615
|
},
|
|
4519
4616
|
{
|
|
4520
4617
|
name: 'messages',
|
|
4521
4618
|
kind: 'Link',
|
|
4522
4619
|
plural: true,
|
|
4523
|
-
fragment: select$
|
|
4620
|
+
fragment: select$B()
|
|
4524
4621
|
},
|
|
4525
4622
|
{
|
|
4526
4623
|
name: 'teamId',
|
|
@@ -4587,22 +4684,22 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4587
4684
|
}
|
|
4588
4685
|
}
|
|
4589
4686
|
|
|
4590
|
-
function select$
|
|
4591
|
-
return select$
|
|
4687
|
+
function select$q(luvio, params) {
|
|
4688
|
+
return select$r();
|
|
4592
4689
|
}
|
|
4593
|
-
function keyBuilder$
|
|
4690
|
+
function keyBuilder$x(luvio, params) {
|
|
4594
4691
|
return keyPrefix + '::SlackBridgeRelatedThreadsOutputRepresentation:(' + 'entityId:' + params.urlParams.entityId + ')';
|
|
4595
4692
|
}
|
|
4596
|
-
function getResponseCacheKeys$
|
|
4597
|
-
getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$
|
|
4693
|
+
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
4694
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$x(luvio, resourceParams));
|
|
4598
4695
|
}
|
|
4599
|
-
function ingestSuccess$
|
|
4696
|
+
function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
4600
4697
|
const { body } = response;
|
|
4601
|
-
const key = keyBuilder$
|
|
4698
|
+
const key = keyBuilder$x(luvio, resourceParams);
|
|
4602
4699
|
luvio.storeIngest(key, ingest$9, body);
|
|
4603
4700
|
const snapshot = luvio.storeLookup({
|
|
4604
4701
|
recordId: key,
|
|
4605
|
-
node: select$
|
|
4702
|
+
node: select$q(),
|
|
4606
4703
|
variables: {},
|
|
4607
4704
|
}, snapshotRefresh);
|
|
4608
4705
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4613,8 +4710,8 @@ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4613
4710
|
deepFreeze(snapshot.data);
|
|
4614
4711
|
return snapshot;
|
|
4615
4712
|
}
|
|
4616
|
-
function ingestError$
|
|
4617
|
-
const key = keyBuilder$
|
|
4713
|
+
function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
4714
|
+
const key = keyBuilder$x(luvio, params);
|
|
4618
4715
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4619
4716
|
const storeMetadataParams = {
|
|
4620
4717
|
ttl: TTL$1,
|
|
@@ -4625,7 +4722,7 @@ function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
|
4625
4722
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4626
4723
|
return errorSnapshot;
|
|
4627
4724
|
}
|
|
4628
|
-
function createResourceRequest$
|
|
4725
|
+
function createResourceRequest$j(config) {
|
|
4629
4726
|
const headers = {};
|
|
4630
4727
|
return {
|
|
4631
4728
|
baseUri: '/services/data/v64.0',
|
|
@@ -4639,90 +4736,90 @@ function createResourceRequest$h(config) {
|
|
|
4639
4736
|
};
|
|
4640
4737
|
}
|
|
4641
4738
|
|
|
4642
|
-
const adapterName$
|
|
4739
|
+
const adapterName$j = 'getRelatedThreads';
|
|
4643
4740
|
const getRelatedThreads_ConfigPropertyMetadata = [
|
|
4644
4741
|
generateParamConfigMetadata('entityId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4645
4742
|
];
|
|
4646
|
-
const getRelatedThreads_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4647
|
-
const createResourceParams$
|
|
4648
|
-
function keyBuilder$
|
|
4649
|
-
const resourceParams = createResourceParams$
|
|
4650
|
-
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);
|
|
4651
4748
|
}
|
|
4652
|
-
function typeCheckConfig$
|
|
4749
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
4653
4750
|
const config = {};
|
|
4654
|
-
typeCheckConfig$
|
|
4751
|
+
typeCheckConfig$p(untrustedConfig, config, getRelatedThreads_ConfigPropertyMetadata);
|
|
4655
4752
|
return config;
|
|
4656
4753
|
}
|
|
4657
|
-
function validateAdapterConfig$
|
|
4754
|
+
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
4658
4755
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4659
4756
|
return null;
|
|
4660
4757
|
}
|
|
4661
4758
|
if (process.env.NODE_ENV !== 'production') {
|
|
4662
4759
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4663
4760
|
}
|
|
4664
|
-
const config = typeCheckConfig$
|
|
4761
|
+
const config = typeCheckConfig$j(untrustedConfig);
|
|
4665
4762
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4666
4763
|
return null;
|
|
4667
4764
|
}
|
|
4668
4765
|
return config;
|
|
4669
4766
|
}
|
|
4670
|
-
function adapterFragment$
|
|
4671
|
-
createResourceParams$
|
|
4672
|
-
return select$
|
|
4767
|
+
function adapterFragment$c(luvio, config) {
|
|
4768
|
+
createResourceParams$j(config);
|
|
4769
|
+
return select$q();
|
|
4673
4770
|
}
|
|
4674
|
-
function onFetchResponseSuccess$
|
|
4675
|
-
const snapshot = ingestSuccess$
|
|
4771
|
+
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
4772
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
4676
4773
|
config,
|
|
4677
|
-
resolve: () => buildNetworkSnapshot$
|
|
4774
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4678
4775
|
});
|
|
4679
4776
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4680
4777
|
}
|
|
4681
|
-
function onFetchResponseError$
|
|
4682
|
-
const snapshot = ingestError$
|
|
4778
|
+
function onFetchResponseError$c(luvio, config, resourceParams, response) {
|
|
4779
|
+
const snapshot = ingestError$c(luvio, resourceParams, response, {
|
|
4683
4780
|
config,
|
|
4684
|
-
resolve: () => buildNetworkSnapshot$
|
|
4781
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4685
4782
|
});
|
|
4686
4783
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4687
4784
|
}
|
|
4688
|
-
function buildNetworkSnapshot$
|
|
4689
|
-
const resourceParams = createResourceParams$
|
|
4690
|
-
const request = createResourceRequest$
|
|
4785
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
4786
|
+
const resourceParams = createResourceParams$j(config);
|
|
4787
|
+
const request = createResourceRequest$j(resourceParams);
|
|
4691
4788
|
return luvio.dispatchResourceRequest(request, options)
|
|
4692
4789
|
.then((response) => {
|
|
4693
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4790
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => {
|
|
4694
4791
|
const cache = new StoreKeyMap();
|
|
4695
|
-
getResponseCacheKeys$
|
|
4792
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
4696
4793
|
return cache;
|
|
4697
4794
|
});
|
|
4698
4795
|
}, (response) => {
|
|
4699
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4796
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$c(luvio, config, resourceParams, response));
|
|
4700
4797
|
});
|
|
4701
4798
|
}
|
|
4702
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4703
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4799
|
+
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
4800
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$j, undefined, false);
|
|
4704
4801
|
}
|
|
4705
|
-
function buildCachedSnapshotCachePolicy$
|
|
4802
|
+
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
4706
4803
|
const { luvio, config } = context;
|
|
4707
4804
|
const selector = {
|
|
4708
|
-
recordId: keyBuilder$
|
|
4709
|
-
node: adapterFragment$
|
|
4805
|
+
recordId: keyBuilder$w(luvio, config),
|
|
4806
|
+
node: adapterFragment$c(luvio, config),
|
|
4710
4807
|
variables: {},
|
|
4711
4808
|
};
|
|
4712
4809
|
const cacheSnapshot = storeLookup(selector, {
|
|
4713
4810
|
config,
|
|
4714
|
-
resolve: () => buildNetworkSnapshot$
|
|
4811
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4715
4812
|
});
|
|
4716
4813
|
return cacheSnapshot;
|
|
4717
4814
|
}
|
|
4718
4815
|
const getRelatedThreadsAdapterFactory = (luvio) => function SlackBridge__getRelatedThreads(untrustedConfig, requestContext) {
|
|
4719
|
-
const config = validateAdapterConfig$
|
|
4816
|
+
const config = validateAdapterConfig$j(untrustedConfig, getRelatedThreads_ConfigPropertyNames);
|
|
4720
4817
|
// Invalid or incomplete config
|
|
4721
4818
|
if (config === null) {
|
|
4722
4819
|
return null;
|
|
4723
4820
|
}
|
|
4724
4821
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4725
|
-
buildCachedSnapshotCachePolicy$
|
|
4822
|
+
buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
|
|
4726
4823
|
};
|
|
4727
4824
|
|
|
4728
4825
|
const VERSION$9 = "d6833ffbee3e599bfdef928466ea65af";
|
|
@@ -4754,7 +4851,7 @@ function validate$9(obj, path = 'SlackBridgeSlackTeamOutputRepresentation') {
|
|
|
4754
4851
|
})();
|
|
4755
4852
|
return v_error === undefined ? null : v_error;
|
|
4756
4853
|
}
|
|
4757
|
-
const select$
|
|
4854
|
+
const select$p = function SlackBridgeSlackTeamOutputRepresentationSelect() {
|
|
4758
4855
|
return {
|
|
4759
4856
|
kind: 'Fragment',
|
|
4760
4857
|
version: VERSION$9,
|
|
@@ -4830,8 +4927,8 @@ const RepresentationType$8 = 'SlackBridgeDisplayLoginOutputRepresentation';
|
|
|
4830
4927
|
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
4831
4928
|
return input;
|
|
4832
4929
|
}
|
|
4833
|
-
const select$
|
|
4834
|
-
const { selections: SlackBridgeSlackTeamOutputRepresentation__selections, opaque: SlackBridgeSlackTeamOutputRepresentation__opaque, } = select$
|
|
4930
|
+
const select$o = function SlackBridgeDisplayLoginOutputRepresentationSelect() {
|
|
4931
|
+
const { selections: SlackBridgeSlackTeamOutputRepresentation__selections, opaque: SlackBridgeSlackTeamOutputRepresentation__opaque, } = select$p();
|
|
4835
4932
|
return {
|
|
4836
4933
|
kind: 'Fragment',
|
|
4837
4934
|
version: VERSION$8,
|
|
@@ -4884,22 +4981,22 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4884
4981
|
});
|
|
4885
4982
|
}
|
|
4886
4983
|
|
|
4887
|
-
function select$
|
|
4888
|
-
return select$
|
|
4984
|
+
function select$n(luvio, params) {
|
|
4985
|
+
return select$o();
|
|
4889
4986
|
}
|
|
4890
|
-
function keyBuilder$
|
|
4987
|
+
function keyBuilder$v(luvio, params) {
|
|
4891
4988
|
return keyPrefix + '::SlackBridgeDisplayLoginOutputRepresentation:(' + ')';
|
|
4892
4989
|
}
|
|
4893
|
-
function getResponseCacheKeys$
|
|
4894
|
-
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$
|
|
4990
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
4991
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$v());
|
|
4895
4992
|
}
|
|
4896
|
-
function ingestSuccess$
|
|
4993
|
+
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
4897
4994
|
const { body } = response;
|
|
4898
|
-
const key = keyBuilder$
|
|
4995
|
+
const key = keyBuilder$v();
|
|
4899
4996
|
luvio.storeIngest(key, ingest$8, body);
|
|
4900
4997
|
const snapshot = luvio.storeLookup({
|
|
4901
4998
|
recordId: key,
|
|
4902
|
-
node: select$
|
|
4999
|
+
node: select$n(),
|
|
4903
5000
|
variables: {},
|
|
4904
5001
|
}, snapshotRefresh);
|
|
4905
5002
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4910,8 +5007,8 @@ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4910
5007
|
deepFreeze(snapshot.data);
|
|
4911
5008
|
return snapshot;
|
|
4912
5009
|
}
|
|
4913
|
-
function ingestError$
|
|
4914
|
-
const key = keyBuilder$
|
|
5010
|
+
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
5011
|
+
const key = keyBuilder$v();
|
|
4915
5012
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4916
5013
|
const storeMetadataParams = {
|
|
4917
5014
|
ttl: TTL,
|
|
@@ -4922,7 +5019,7 @@ function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
|
4922
5019
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4923
5020
|
return errorSnapshot;
|
|
4924
5021
|
}
|
|
4925
|
-
function createResourceRequest$
|
|
5022
|
+
function createResourceRequest$i(config) {
|
|
4926
5023
|
const headers = {};
|
|
4927
5024
|
return {
|
|
4928
5025
|
baseUri: '/services/data/v64.0',
|
|
@@ -4936,87 +5033,87 @@ function createResourceRequest$g(config) {
|
|
|
4936
5033
|
};
|
|
4937
5034
|
}
|
|
4938
5035
|
|
|
4939
|
-
const adapterName$
|
|
5036
|
+
const adapterName$i = 'getSlackDisplayLogin';
|
|
4940
5037
|
const getSlackDisplayLogin_ConfigPropertyMetadata = [];
|
|
4941
|
-
const getSlackDisplayLogin_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4942
|
-
const createResourceParams$
|
|
4943
|
-
function keyBuilder$
|
|
4944
|
-
createResourceParams$
|
|
4945
|
-
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();
|
|
4946
5043
|
}
|
|
4947
|
-
function typeCheckConfig$
|
|
5044
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
4948
5045
|
const config = {};
|
|
4949
5046
|
return config;
|
|
4950
5047
|
}
|
|
4951
|
-
function validateAdapterConfig$
|
|
5048
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
4952
5049
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4953
5050
|
return null;
|
|
4954
5051
|
}
|
|
4955
5052
|
if (process.env.NODE_ENV !== 'production') {
|
|
4956
5053
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4957
5054
|
}
|
|
4958
|
-
const config = typeCheckConfig$
|
|
5055
|
+
const config = typeCheckConfig$i();
|
|
4959
5056
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4960
5057
|
return null;
|
|
4961
5058
|
}
|
|
4962
5059
|
return config;
|
|
4963
5060
|
}
|
|
4964
|
-
function adapterFragment$
|
|
4965
|
-
createResourceParams$
|
|
4966
|
-
return select$
|
|
5061
|
+
function adapterFragment$b(luvio, config) {
|
|
5062
|
+
createResourceParams$i(config);
|
|
5063
|
+
return select$n();
|
|
4967
5064
|
}
|
|
4968
|
-
function onFetchResponseSuccess$
|
|
4969
|
-
const snapshot = ingestSuccess$
|
|
5065
|
+
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
5066
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
|
|
4970
5067
|
config,
|
|
4971
|
-
resolve: () => buildNetworkSnapshot$
|
|
5068
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
4972
5069
|
});
|
|
4973
5070
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4974
5071
|
}
|
|
4975
|
-
function onFetchResponseError$
|
|
4976
|
-
const snapshot = ingestError$
|
|
5072
|
+
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
5073
|
+
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
4977
5074
|
config,
|
|
4978
|
-
resolve: () => buildNetworkSnapshot$
|
|
5075
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
4979
5076
|
});
|
|
4980
5077
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4981
5078
|
}
|
|
4982
|
-
function buildNetworkSnapshot$
|
|
4983
|
-
const resourceParams = createResourceParams$
|
|
4984
|
-
const request = createResourceRequest$
|
|
5079
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
5080
|
+
const resourceParams = createResourceParams$i(config);
|
|
5081
|
+
const request = createResourceRequest$i();
|
|
4985
5082
|
return luvio.dispatchResourceRequest(request, options)
|
|
4986
5083
|
.then((response) => {
|
|
4987
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
5084
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
|
|
4988
5085
|
const cache = new StoreKeyMap();
|
|
4989
|
-
getResponseCacheKeys$
|
|
5086
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
4990
5087
|
return cache;
|
|
4991
5088
|
});
|
|
4992
5089
|
}, (response) => {
|
|
4993
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
5090
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$b(luvio, config, resourceParams, response));
|
|
4994
5091
|
});
|
|
4995
5092
|
}
|
|
4996
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4997
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5093
|
+
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
5094
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
4998
5095
|
}
|
|
4999
|
-
function buildCachedSnapshotCachePolicy$
|
|
5096
|
+
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
5000
5097
|
const { luvio, config } = context;
|
|
5001
5098
|
const selector = {
|
|
5002
|
-
recordId: keyBuilder$
|
|
5003
|
-
node: adapterFragment$
|
|
5099
|
+
recordId: keyBuilder$u(luvio, config),
|
|
5100
|
+
node: adapterFragment$b(luvio, config),
|
|
5004
5101
|
variables: {},
|
|
5005
5102
|
};
|
|
5006
5103
|
const cacheSnapshot = storeLookup(selector, {
|
|
5007
5104
|
config,
|
|
5008
|
-
resolve: () => buildNetworkSnapshot$
|
|
5105
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
5009
5106
|
});
|
|
5010
5107
|
return cacheSnapshot;
|
|
5011
5108
|
}
|
|
5012
5109
|
const getSlackDisplayLoginAdapterFactory = (luvio) => function SlackBridge__getSlackDisplayLogin(untrustedConfig, requestContext) {
|
|
5013
|
-
const config = validateAdapterConfig$
|
|
5110
|
+
const config = validateAdapterConfig$i(untrustedConfig, getSlackDisplayLogin_ConfigPropertyNames);
|
|
5014
5111
|
// Invalid or incomplete config
|
|
5015
5112
|
if (config === null) {
|
|
5016
5113
|
return null;
|
|
5017
5114
|
}
|
|
5018
5115
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5019
|
-
buildCachedSnapshotCachePolicy$
|
|
5116
|
+
buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
|
|
5020
5117
|
};
|
|
5021
5118
|
|
|
5022
5119
|
const VERSION$7 = "32716a7de3c8810288467155d92e5124";
|
|
@@ -5039,19 +5136,19 @@ function validate$7(obj, path = 'SlackBridgeConversationMarkOutputRepresentation
|
|
|
5039
5136
|
return v_error === undefined ? null : v_error;
|
|
5040
5137
|
}
|
|
5041
5138
|
const RepresentationType$7 = 'SlackBridgeConversationMarkOutputRepresentation';
|
|
5042
|
-
function keyBuilder$
|
|
5139
|
+
function keyBuilder$t(luvio, config) {
|
|
5043
5140
|
return keyPrefix + '::' + RepresentationType$7 + ':' + config.channelId;
|
|
5044
5141
|
}
|
|
5045
5142
|
function keyBuilderFromType$4(luvio, object) {
|
|
5046
5143
|
const keyParams = {
|
|
5047
5144
|
channelId: object.channelId
|
|
5048
5145
|
};
|
|
5049
|
-
return keyBuilder$
|
|
5146
|
+
return keyBuilder$t(luvio, keyParams);
|
|
5050
5147
|
}
|
|
5051
5148
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
5052
5149
|
return input;
|
|
5053
5150
|
}
|
|
5054
|
-
const select$
|
|
5151
|
+
const select$m = function SlackBridgeConversationMarkOutputRepresentationSelect() {
|
|
5055
5152
|
return {
|
|
5056
5153
|
kind: 'Fragment',
|
|
5057
5154
|
version: VERSION$7,
|
|
@@ -5103,19 +5200,19 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5103
5200
|
});
|
|
5104
5201
|
}
|
|
5105
5202
|
|
|
5106
|
-
function select$
|
|
5107
|
-
return select$
|
|
5203
|
+
function select$l(luvio, params) {
|
|
5204
|
+
return select$m();
|
|
5108
5205
|
}
|
|
5109
|
-
function getResponseCacheKeys$
|
|
5206
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
5110
5207
|
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
5111
5208
|
}
|
|
5112
|
-
function ingestSuccess$
|
|
5209
|
+
function ingestSuccess$e(luvio, resourceParams, response) {
|
|
5113
5210
|
const { body } = response;
|
|
5114
5211
|
const key = keyBuilderFromType$4(luvio, body);
|
|
5115
5212
|
luvio.storeIngest(key, ingest$7, body);
|
|
5116
5213
|
const snapshot = luvio.storeLookup({
|
|
5117
5214
|
recordId: key,
|
|
5118
|
-
node: select$
|
|
5215
|
+
node: select$l(),
|
|
5119
5216
|
variables: {},
|
|
5120
5217
|
});
|
|
5121
5218
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5126,7 +5223,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
5126
5223
|
deepFreeze(snapshot.data);
|
|
5127
5224
|
return snapshot;
|
|
5128
5225
|
}
|
|
5129
|
-
function createResourceRequest$
|
|
5226
|
+
function createResourceRequest$h(config) {
|
|
5130
5227
|
const headers = {};
|
|
5131
5228
|
return {
|
|
5132
5229
|
baseUri: '/services/data/v64.0',
|
|
@@ -5140,43 +5237,43 @@ function createResourceRequest$f(config) {
|
|
|
5140
5237
|
};
|
|
5141
5238
|
}
|
|
5142
5239
|
|
|
5143
|
-
const adapterName$
|
|
5240
|
+
const adapterName$h = 'postSlackConversationMark';
|
|
5144
5241
|
const postSlackConversationMark_ConfigPropertyMetadata = [
|
|
5145
5242
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5146
5243
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5147
5244
|
generateParamConfigMetadata('messageTs', true, 1 /* QueryParameter */, 0 /* String */),
|
|
5148
5245
|
];
|
|
5149
|
-
const postSlackConversationMark_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5150
|
-
const createResourceParams$
|
|
5151
|
-
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) {
|
|
5152
5249
|
const config = {};
|
|
5153
|
-
typeCheckConfig$
|
|
5250
|
+
typeCheckConfig$p(untrustedConfig, config, postSlackConversationMark_ConfigPropertyMetadata);
|
|
5154
5251
|
return config;
|
|
5155
5252
|
}
|
|
5156
|
-
function validateAdapterConfig$
|
|
5253
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
5157
5254
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5158
5255
|
return null;
|
|
5159
5256
|
}
|
|
5160
5257
|
if (process.env.NODE_ENV !== 'production') {
|
|
5161
5258
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5162
5259
|
}
|
|
5163
|
-
const config = typeCheckConfig$
|
|
5260
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
5164
5261
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5165
5262
|
return null;
|
|
5166
5263
|
}
|
|
5167
5264
|
return config;
|
|
5168
5265
|
}
|
|
5169
|
-
function buildNetworkSnapshot$
|
|
5170
|
-
const resourceParams = createResourceParams$
|
|
5171
|
-
const request = createResourceRequest$
|
|
5266
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
5267
|
+
const resourceParams = createResourceParams$h(config);
|
|
5268
|
+
const request = createResourceRequest$h(resourceParams);
|
|
5172
5269
|
return luvio.dispatchResourceRequest(request, options)
|
|
5173
5270
|
.then((response) => {
|
|
5174
5271
|
return luvio.handleSuccessResponse(() => {
|
|
5175
|
-
const snapshot = ingestSuccess$
|
|
5272
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response);
|
|
5176
5273
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5177
5274
|
}, () => {
|
|
5178
5275
|
const cache = new StoreKeyMap();
|
|
5179
|
-
getResponseCacheKeys$
|
|
5276
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
5180
5277
|
return cache;
|
|
5181
5278
|
});
|
|
5182
5279
|
}, (response) => {
|
|
@@ -5186,12 +5283,12 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
5186
5283
|
}
|
|
5187
5284
|
const postSlackConversationMarkAdapterFactory = (luvio) => {
|
|
5188
5285
|
return function postSlackConversationMark(untrustedConfig) {
|
|
5189
|
-
const config = validateAdapterConfig$
|
|
5286
|
+
const config = validateAdapterConfig$h(untrustedConfig, postSlackConversationMark_ConfigPropertyNames);
|
|
5190
5287
|
// Invalid or incomplete config
|
|
5191
5288
|
if (config === null) {
|
|
5192
5289
|
throw new Error('Invalid config for "postSlackConversationMark"');
|
|
5193
5290
|
}
|
|
5194
|
-
return buildNetworkSnapshot$
|
|
5291
|
+
return buildNetworkSnapshot$h(luvio, config);
|
|
5195
5292
|
};
|
|
5196
5293
|
};
|
|
5197
5294
|
|
|
@@ -5248,19 +5345,19 @@ function validate$6(obj, path = 'SlackBridgeConversationMembersOutputRepresentat
|
|
|
5248
5345
|
return v_error === undefined ? null : v_error;
|
|
5249
5346
|
}
|
|
5250
5347
|
const RepresentationType$6 = 'SlackBridgeConversationMembersOutputRepresentation';
|
|
5251
|
-
function keyBuilder$
|
|
5348
|
+
function keyBuilder$s(luvio, config) {
|
|
5252
5349
|
return keyPrefix + '::' + RepresentationType$6 + ':' + config.channelId;
|
|
5253
5350
|
}
|
|
5254
5351
|
function keyBuilderFromType$3(luvio, object) {
|
|
5255
5352
|
const keyParams = {
|
|
5256
5353
|
channelId: object.channelId
|
|
5257
5354
|
};
|
|
5258
|
-
return keyBuilder$
|
|
5355
|
+
return keyBuilder$s(luvio, keyParams);
|
|
5259
5356
|
}
|
|
5260
5357
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
5261
5358
|
return input;
|
|
5262
5359
|
}
|
|
5263
|
-
const select$
|
|
5360
|
+
const select$k = function SlackBridgeConversationMembersOutputRepresentationSelect() {
|
|
5264
5361
|
return {
|
|
5265
5362
|
kind: 'Fragment',
|
|
5266
5363
|
version: VERSION$6,
|
|
@@ -5327,24 +5424,24 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5327
5424
|
});
|
|
5328
5425
|
}
|
|
5329
5426
|
|
|
5330
|
-
function select$
|
|
5331
|
-
return select$
|
|
5427
|
+
function select$j(luvio, params) {
|
|
5428
|
+
return select$k();
|
|
5332
5429
|
}
|
|
5333
|
-
function keyBuilder$
|
|
5334
|
-
return keyBuilder$
|
|
5430
|
+
function keyBuilder$r(luvio, params) {
|
|
5431
|
+
return keyBuilder$s(luvio, {
|
|
5335
5432
|
channelId: params.urlParams.channelId
|
|
5336
5433
|
});
|
|
5337
5434
|
}
|
|
5338
|
-
function getResponseCacheKeys$
|
|
5435
|
+
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
5339
5436
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
5340
5437
|
}
|
|
5341
|
-
function ingestSuccess$
|
|
5438
|
+
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
5342
5439
|
const { body } = response;
|
|
5343
|
-
const key = keyBuilder$
|
|
5440
|
+
const key = keyBuilder$r(luvio, resourceParams);
|
|
5344
5441
|
luvio.storeIngest(key, ingest$6, body);
|
|
5345
5442
|
const snapshot = luvio.storeLookup({
|
|
5346
5443
|
recordId: key,
|
|
5347
|
-
node: select$
|
|
5444
|
+
node: select$j(),
|
|
5348
5445
|
variables: {},
|
|
5349
5446
|
}, snapshotRefresh);
|
|
5350
5447
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5355,13 +5452,13 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5355
5452
|
deepFreeze(snapshot.data);
|
|
5356
5453
|
return snapshot;
|
|
5357
5454
|
}
|
|
5358
|
-
function ingestError$
|
|
5359
|
-
const key = keyBuilder$
|
|
5455
|
+
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
5456
|
+
const key = keyBuilder$r(luvio, params);
|
|
5360
5457
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5361
5458
|
luvio.storeIngestError(key, errorSnapshot);
|
|
5362
5459
|
return errorSnapshot;
|
|
5363
5460
|
}
|
|
5364
|
-
function createResourceRequest$
|
|
5461
|
+
function createResourceRequest$g(config) {
|
|
5365
5462
|
const headers = {};
|
|
5366
5463
|
return {
|
|
5367
5464
|
baseUri: '/services/data/v64.0',
|
|
@@ -5375,106 +5472,106 @@ function createResourceRequest$e(config) {
|
|
|
5375
5472
|
};
|
|
5376
5473
|
}
|
|
5377
5474
|
|
|
5378
|
-
const adapterName$
|
|
5475
|
+
const adapterName$g = 'getSlackConversationMembers';
|
|
5379
5476
|
const getSlackConversationMembers_ConfigPropertyMetadata = [
|
|
5380
5477
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5381
5478
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5382
5479
|
];
|
|
5383
|
-
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5384
|
-
const createResourceParams$
|
|
5385
|
-
function keyBuilder$
|
|
5386
|
-
const resourceParams = createResourceParams$
|
|
5387
|
-
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);
|
|
5388
5485
|
}
|
|
5389
|
-
function typeCheckConfig$
|
|
5486
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
5390
5487
|
const config = {};
|
|
5391
|
-
typeCheckConfig$
|
|
5488
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5392
5489
|
return config;
|
|
5393
5490
|
}
|
|
5394
|
-
function validateAdapterConfig$
|
|
5491
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
5395
5492
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5396
5493
|
return null;
|
|
5397
5494
|
}
|
|
5398
5495
|
if (process.env.NODE_ENV !== 'production') {
|
|
5399
5496
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5400
5497
|
}
|
|
5401
|
-
const config = typeCheckConfig$
|
|
5498
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
5402
5499
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5403
5500
|
return null;
|
|
5404
5501
|
}
|
|
5405
5502
|
return config;
|
|
5406
5503
|
}
|
|
5407
|
-
function adapterFragment$
|
|
5408
|
-
createResourceParams$
|
|
5409
|
-
return select$
|
|
5504
|
+
function adapterFragment$a(luvio, config) {
|
|
5505
|
+
createResourceParams$g(config);
|
|
5506
|
+
return select$j();
|
|
5410
5507
|
}
|
|
5411
|
-
function onFetchResponseSuccess$
|
|
5412
|
-
const snapshot = ingestSuccess$
|
|
5508
|
+
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
5509
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
5413
5510
|
config,
|
|
5414
|
-
resolve: () => buildNetworkSnapshot$
|
|
5511
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
5415
5512
|
});
|
|
5416
5513
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5417
5514
|
}
|
|
5418
|
-
function onFetchResponseError$
|
|
5419
|
-
const snapshot = ingestError$
|
|
5515
|
+
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
5516
|
+
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
5420
5517
|
config,
|
|
5421
|
-
resolve: () => buildNetworkSnapshot$
|
|
5518
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
5422
5519
|
});
|
|
5423
5520
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5424
5521
|
}
|
|
5425
|
-
function buildNetworkSnapshot$
|
|
5426
|
-
const resourceParams = createResourceParams$
|
|
5427
|
-
const request = createResourceRequest$
|
|
5522
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
5523
|
+
const resourceParams = createResourceParams$g(config);
|
|
5524
|
+
const request = createResourceRequest$g(resourceParams);
|
|
5428
5525
|
return luvio.dispatchResourceRequest(request, options)
|
|
5429
5526
|
.then((response) => {
|
|
5430
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
5527
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
5431
5528
|
const cache = new StoreKeyMap();
|
|
5432
|
-
getResponseCacheKeys$
|
|
5529
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
|
|
5433
5530
|
return cache;
|
|
5434
5531
|
});
|
|
5435
5532
|
}, (response) => {
|
|
5436
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
5533
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
|
|
5437
5534
|
});
|
|
5438
5535
|
}
|
|
5439
|
-
function buildNetworkSnapshotCachePolicy$
|
|
5440
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5536
|
+
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
5537
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
|
|
5441
5538
|
}
|
|
5442
|
-
function buildCachedSnapshotCachePolicy$
|
|
5539
|
+
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
5443
5540
|
const { luvio, config } = context;
|
|
5444
5541
|
const selector = {
|
|
5445
|
-
recordId: keyBuilder$
|
|
5446
|
-
node: adapterFragment$
|
|
5542
|
+
recordId: keyBuilder$q(luvio, config),
|
|
5543
|
+
node: adapterFragment$a(luvio, config),
|
|
5447
5544
|
variables: {},
|
|
5448
5545
|
};
|
|
5449
5546
|
const cacheSnapshot = storeLookup(selector, {
|
|
5450
5547
|
config,
|
|
5451
|
-
resolve: () => buildNetworkSnapshot$
|
|
5548
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
5452
5549
|
});
|
|
5453
5550
|
return cacheSnapshot;
|
|
5454
5551
|
}
|
|
5455
5552
|
const getSlackConversationMembersAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMembers(untrustedConfig, requestContext) {
|
|
5456
|
-
const config = validateAdapterConfig$
|
|
5553
|
+
const config = validateAdapterConfig$g(untrustedConfig, getSlackConversationMembers_ConfigPropertyNames);
|
|
5457
5554
|
// Invalid or incomplete config
|
|
5458
5555
|
if (config === null) {
|
|
5459
5556
|
return null;
|
|
5460
5557
|
}
|
|
5461
5558
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5462
|
-
buildCachedSnapshotCachePolicy$
|
|
5559
|
+
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
5463
5560
|
};
|
|
5464
5561
|
|
|
5465
|
-
function select$
|
|
5466
|
-
return select$
|
|
5562
|
+
function select$i(luvio, params) {
|
|
5563
|
+
return select$k();
|
|
5467
5564
|
}
|
|
5468
|
-
function getResponseCacheKeys$
|
|
5565
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
5469
5566
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
5470
5567
|
}
|
|
5471
|
-
function ingestSuccess$
|
|
5568
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
5472
5569
|
const { body } = response;
|
|
5473
5570
|
const key = keyBuilderFromType$3(luvio, body);
|
|
5474
5571
|
luvio.storeIngest(key, ingest$6, body);
|
|
5475
5572
|
const snapshot = luvio.storeLookup({
|
|
5476
5573
|
recordId: key,
|
|
5477
|
-
node: select$
|
|
5574
|
+
node: select$i(),
|
|
5478
5575
|
variables: {},
|
|
5479
5576
|
});
|
|
5480
5577
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5485,7 +5582,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
5485
5582
|
deepFreeze(snapshot.data);
|
|
5486
5583
|
return snapshot;
|
|
5487
5584
|
}
|
|
5488
|
-
function createResourceRequest$
|
|
5585
|
+
function createResourceRequest$f(config) {
|
|
5489
5586
|
const headers = {};
|
|
5490
5587
|
return {
|
|
5491
5588
|
baseUri: '/services/data/v64.0',
|
|
@@ -5499,43 +5596,43 @@ function createResourceRequest$d(config) {
|
|
|
5499
5596
|
};
|
|
5500
5597
|
}
|
|
5501
5598
|
|
|
5502
|
-
const adapterName$
|
|
5599
|
+
const adapterName$f = 'postSlackConversationMembers';
|
|
5503
5600
|
const postSlackConversationMembers_ConfigPropertyMetadata = [
|
|
5504
5601
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5505
5602
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5506
5603
|
generateParamConfigMetadata('slackUserIds', true, 2 /* Body */, 0 /* String */, true),
|
|
5507
5604
|
];
|
|
5508
|
-
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5509
|
-
const createResourceParams$
|
|
5510
|
-
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) {
|
|
5511
5608
|
const config = {};
|
|
5512
|
-
typeCheckConfig$
|
|
5609
|
+
typeCheckConfig$p(untrustedConfig, config, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
5513
5610
|
return config;
|
|
5514
5611
|
}
|
|
5515
|
-
function validateAdapterConfig$
|
|
5612
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
5516
5613
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5517
5614
|
return null;
|
|
5518
5615
|
}
|
|
5519
5616
|
if (process.env.NODE_ENV !== 'production') {
|
|
5520
5617
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5521
5618
|
}
|
|
5522
|
-
const config = typeCheckConfig$
|
|
5619
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
5523
5620
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5524
5621
|
return null;
|
|
5525
5622
|
}
|
|
5526
5623
|
return config;
|
|
5527
5624
|
}
|
|
5528
|
-
function buildNetworkSnapshot$
|
|
5529
|
-
const resourceParams = createResourceParams$
|
|
5530
|
-
const request = createResourceRequest$
|
|
5625
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
5626
|
+
const resourceParams = createResourceParams$f(config);
|
|
5627
|
+
const request = createResourceRequest$f(resourceParams);
|
|
5531
5628
|
return luvio.dispatchResourceRequest(request, options)
|
|
5532
5629
|
.then((response) => {
|
|
5533
5630
|
return luvio.handleSuccessResponse(() => {
|
|
5534
|
-
const snapshot = ingestSuccess$
|
|
5631
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response);
|
|
5535
5632
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5536
5633
|
}, () => {
|
|
5537
5634
|
const cache = new StoreKeyMap();
|
|
5538
|
-
getResponseCacheKeys$
|
|
5635
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
5539
5636
|
return cache;
|
|
5540
5637
|
});
|
|
5541
5638
|
}, (response) => {
|
|
@@ -5545,12 +5642,12 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
5545
5642
|
}
|
|
5546
5643
|
const postSlackConversationMembersAdapterFactory = (luvio) => {
|
|
5547
5644
|
return function postSlackConversationMembers(untrustedConfig) {
|
|
5548
|
-
const config = validateAdapterConfig$
|
|
5645
|
+
const config = validateAdapterConfig$f(untrustedConfig, postSlackConversationMembers_ConfigPropertyNames);
|
|
5549
5646
|
// Invalid or incomplete config
|
|
5550
5647
|
if (config === null) {
|
|
5551
5648
|
throw new Error('Invalid config for "postSlackConversationMembers"');
|
|
5552
5649
|
}
|
|
5553
|
-
return buildNetworkSnapshot$
|
|
5650
|
+
return buildNetworkSnapshot$f(luvio, config);
|
|
5554
5651
|
};
|
|
5555
5652
|
};
|
|
5556
5653
|
|
|
@@ -5574,19 +5671,19 @@ function validate$5(obj, path = 'SlackBridgeConversationMemberOutputRepresentati
|
|
|
5574
5671
|
return v_error === undefined ? null : v_error;
|
|
5575
5672
|
}
|
|
5576
5673
|
const RepresentationType$5 = 'SlackBridgeConversationMemberOutputRepresentation';
|
|
5577
|
-
function keyBuilder$
|
|
5674
|
+
function keyBuilder$p(luvio, config) {
|
|
5578
5675
|
return keyPrefix + '::' + RepresentationType$5 + ':' + config.channelId;
|
|
5579
5676
|
}
|
|
5580
5677
|
function keyBuilderFromType$2(luvio, object) {
|
|
5581
5678
|
const keyParams = {
|
|
5582
5679
|
channelId: object.channelId
|
|
5583
5680
|
};
|
|
5584
|
-
return keyBuilder$
|
|
5681
|
+
return keyBuilder$p(luvio, keyParams);
|
|
5585
5682
|
}
|
|
5586
5683
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
5587
5684
|
return input;
|
|
5588
5685
|
}
|
|
5589
|
-
const select$
|
|
5686
|
+
const select$h = function SlackBridgeConversationMemberOutputRepresentationSelect() {
|
|
5590
5687
|
return {
|
|
5591
5688
|
kind: 'Fragment',
|
|
5592
5689
|
version: VERSION$5,
|
|
@@ -5638,13 +5735,13 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5638
5735
|
});
|
|
5639
5736
|
}
|
|
5640
5737
|
|
|
5641
|
-
function keyBuilder$
|
|
5642
|
-
return keyBuilder$
|
|
5738
|
+
function keyBuilder$o(luvio, params) {
|
|
5739
|
+
return keyBuilder$p(luvio, {
|
|
5643
5740
|
channelId: params.urlParams.channelId
|
|
5644
5741
|
});
|
|
5645
5742
|
}
|
|
5646
|
-
function getResponseCacheKeys$
|
|
5647
|
-
const key = keyBuilder$
|
|
5743
|
+
function getResponseCacheKeys$e(cacheKeyMap, luvio, resourceParams) {
|
|
5744
|
+
const key = keyBuilder$o(luvio, resourceParams);
|
|
5648
5745
|
cacheKeyMap.set(key, {
|
|
5649
5746
|
namespace: keyPrefix,
|
|
5650
5747
|
representationName: RepresentationType$5,
|
|
@@ -5652,10 +5749,10 @@ function getResponseCacheKeys$c(cacheKeyMap, luvio, resourceParams) {
|
|
|
5652
5749
|
});
|
|
5653
5750
|
}
|
|
5654
5751
|
function evictSuccess$2(luvio, resourceParams) {
|
|
5655
|
-
const key = keyBuilder$
|
|
5752
|
+
const key = keyBuilder$o(luvio, resourceParams);
|
|
5656
5753
|
luvio.storeEvict(key);
|
|
5657
5754
|
}
|
|
5658
|
-
function createResourceRequest$
|
|
5755
|
+
function createResourceRequest$e(config) {
|
|
5659
5756
|
const headers = {};
|
|
5660
5757
|
return {
|
|
5661
5758
|
baseUri: '/services/data/v64.0',
|
|
@@ -5669,35 +5766,35 @@ function createResourceRequest$c(config) {
|
|
|
5669
5766
|
};
|
|
5670
5767
|
}
|
|
5671
5768
|
|
|
5672
|
-
const adapterName$
|
|
5769
|
+
const adapterName$e = 'deleteSlackConversationMember';
|
|
5673
5770
|
const deleteSlackConversationMember_ConfigPropertyMetadata = [
|
|
5674
5771
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5675
5772
|
generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5676
5773
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5677
5774
|
];
|
|
5678
|
-
const deleteSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5679
|
-
const createResourceParams$
|
|
5680
|
-
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) {
|
|
5681
5778
|
const config = {};
|
|
5682
|
-
typeCheckConfig$
|
|
5779
|
+
typeCheckConfig$p(untrustedConfig, config, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
5683
5780
|
return config;
|
|
5684
5781
|
}
|
|
5685
|
-
function validateAdapterConfig$
|
|
5782
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
5686
5783
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5687
5784
|
return null;
|
|
5688
5785
|
}
|
|
5689
5786
|
if (process.env.NODE_ENV !== 'production') {
|
|
5690
5787
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5691
5788
|
}
|
|
5692
|
-
const config = typeCheckConfig$
|
|
5789
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
5693
5790
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5694
5791
|
return null;
|
|
5695
5792
|
}
|
|
5696
5793
|
return config;
|
|
5697
5794
|
}
|
|
5698
|
-
function buildNetworkSnapshot$
|
|
5699
|
-
const resourceParams = createResourceParams$
|
|
5700
|
-
const request = createResourceRequest$
|
|
5795
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
5796
|
+
const resourceParams = createResourceParams$e(config);
|
|
5797
|
+
const request = createResourceRequest$e(resourceParams);
|
|
5701
5798
|
return luvio.dispatchResourceRequest(request, options)
|
|
5702
5799
|
.then(() => {
|
|
5703
5800
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -5705,7 +5802,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
5705
5802
|
return luvio.storeBroadcast();
|
|
5706
5803
|
}, () => {
|
|
5707
5804
|
const cache = new StoreKeyMap();
|
|
5708
|
-
getResponseCacheKeys$
|
|
5805
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams);
|
|
5709
5806
|
return cache;
|
|
5710
5807
|
});
|
|
5711
5808
|
}, (response) => {
|
|
@@ -5715,33 +5812,33 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
5715
5812
|
}
|
|
5716
5813
|
const deleteSlackConversationMemberAdapterFactory = (luvio) => {
|
|
5717
5814
|
return function SlackBridgedeleteSlackConversationMember(untrustedConfig) {
|
|
5718
|
-
const config = validateAdapterConfig$
|
|
5815
|
+
const config = validateAdapterConfig$e(untrustedConfig, deleteSlackConversationMember_ConfigPropertyNames);
|
|
5719
5816
|
// Invalid or incomplete config
|
|
5720
5817
|
if (config === null) {
|
|
5721
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
5818
|
+
throw new Error(`Invalid config for "${adapterName$e}"`);
|
|
5722
5819
|
}
|
|
5723
|
-
return buildNetworkSnapshot$
|
|
5820
|
+
return buildNetworkSnapshot$e(luvio, config);
|
|
5724
5821
|
};
|
|
5725
5822
|
};
|
|
5726
5823
|
|
|
5727
|
-
function select$
|
|
5728
|
-
return select$
|
|
5824
|
+
function select$g(luvio, params) {
|
|
5825
|
+
return select$h();
|
|
5729
5826
|
}
|
|
5730
|
-
function keyBuilder$
|
|
5731
|
-
return keyBuilder$
|
|
5827
|
+
function keyBuilder$n(luvio, params) {
|
|
5828
|
+
return keyBuilder$p(luvio, {
|
|
5732
5829
|
channelId: params.urlParams.channelId
|
|
5733
5830
|
});
|
|
5734
5831
|
}
|
|
5735
|
-
function getResponseCacheKeys$
|
|
5832
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
5736
5833
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
5737
5834
|
}
|
|
5738
|
-
function ingestSuccess$
|
|
5835
|
+
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
5739
5836
|
const { body } = response;
|
|
5740
|
-
const key = keyBuilder$
|
|
5837
|
+
const key = keyBuilder$n(luvio, resourceParams);
|
|
5741
5838
|
luvio.storeIngest(key, ingest$5, body);
|
|
5742
5839
|
const snapshot = luvio.storeLookup({
|
|
5743
5840
|
recordId: key,
|
|
5744
|
-
node: select$
|
|
5841
|
+
node: select$g(),
|
|
5745
5842
|
variables: {},
|
|
5746
5843
|
}, snapshotRefresh);
|
|
5747
5844
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5752,13 +5849,13 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5752
5849
|
deepFreeze(snapshot.data);
|
|
5753
5850
|
return snapshot;
|
|
5754
5851
|
}
|
|
5755
|
-
function ingestError$
|
|
5756
|
-
const key = keyBuilder$
|
|
5852
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
5853
|
+
const key = keyBuilder$n(luvio, params);
|
|
5757
5854
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5758
5855
|
luvio.storeIngestError(key, errorSnapshot);
|
|
5759
5856
|
return errorSnapshot;
|
|
5760
5857
|
}
|
|
5761
|
-
function createResourceRequest$
|
|
5858
|
+
function createResourceRequest$d(config) {
|
|
5762
5859
|
const headers = {};
|
|
5763
5860
|
return {
|
|
5764
5861
|
baseUri: '/services/data/v64.0',
|
|
@@ -5772,92 +5869,92 @@ function createResourceRequest$b(config) {
|
|
|
5772
5869
|
};
|
|
5773
5870
|
}
|
|
5774
5871
|
|
|
5775
|
-
const adapterName$
|
|
5872
|
+
const adapterName$d = 'getSlackConversationMember';
|
|
5776
5873
|
const getSlackConversationMember_ConfigPropertyMetadata = [
|
|
5777
5874
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5778
5875
|
generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5779
5876
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5780
5877
|
];
|
|
5781
|
-
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5782
|
-
const createResourceParams$
|
|
5783
|
-
function keyBuilder$
|
|
5784
|
-
const resourceParams = createResourceParams$
|
|
5785
|
-
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);
|
|
5786
5883
|
}
|
|
5787
|
-
function typeCheckConfig$
|
|
5884
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
5788
5885
|
const config = {};
|
|
5789
|
-
typeCheckConfig$
|
|
5886
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackConversationMember_ConfigPropertyMetadata);
|
|
5790
5887
|
return config;
|
|
5791
5888
|
}
|
|
5792
|
-
function validateAdapterConfig$
|
|
5889
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
5793
5890
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5794
5891
|
return null;
|
|
5795
5892
|
}
|
|
5796
5893
|
if (process.env.NODE_ENV !== 'production') {
|
|
5797
5894
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5798
5895
|
}
|
|
5799
|
-
const config = typeCheckConfig$
|
|
5896
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
5800
5897
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5801
5898
|
return null;
|
|
5802
5899
|
}
|
|
5803
5900
|
return config;
|
|
5804
5901
|
}
|
|
5805
|
-
function adapterFragment$
|
|
5806
|
-
createResourceParams$
|
|
5807
|
-
return select$
|
|
5902
|
+
function adapterFragment$9(luvio, config) {
|
|
5903
|
+
createResourceParams$d(config);
|
|
5904
|
+
return select$g();
|
|
5808
5905
|
}
|
|
5809
|
-
function onFetchResponseSuccess$
|
|
5810
|
-
const snapshot = ingestSuccess$
|
|
5906
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
5907
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
5811
5908
|
config,
|
|
5812
|
-
resolve: () => buildNetworkSnapshot$
|
|
5909
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
5813
5910
|
});
|
|
5814
5911
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5815
5912
|
}
|
|
5816
|
-
function onFetchResponseError$
|
|
5817
|
-
const snapshot = ingestError$
|
|
5913
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
5914
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
5818
5915
|
config,
|
|
5819
|
-
resolve: () => buildNetworkSnapshot$
|
|
5916
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
5820
5917
|
});
|
|
5821
5918
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5822
5919
|
}
|
|
5823
|
-
function buildNetworkSnapshot$
|
|
5824
|
-
const resourceParams = createResourceParams$
|
|
5825
|
-
const request = createResourceRequest$
|
|
5920
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
5921
|
+
const resourceParams = createResourceParams$d(config);
|
|
5922
|
+
const request = createResourceRequest$d(resourceParams);
|
|
5826
5923
|
return luvio.dispatchResourceRequest(request, options)
|
|
5827
5924
|
.then((response) => {
|
|
5828
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
5925
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
5829
5926
|
const cache = new StoreKeyMap();
|
|
5830
|
-
getResponseCacheKeys$
|
|
5927
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
5831
5928
|
return cache;
|
|
5832
5929
|
});
|
|
5833
5930
|
}, (response) => {
|
|
5834
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
5931
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
5835
5932
|
});
|
|
5836
5933
|
}
|
|
5837
|
-
function buildNetworkSnapshotCachePolicy$
|
|
5838
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5934
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
5935
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
5839
5936
|
}
|
|
5840
|
-
function buildCachedSnapshotCachePolicy$
|
|
5937
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
5841
5938
|
const { luvio, config } = context;
|
|
5842
5939
|
const selector = {
|
|
5843
|
-
recordId: keyBuilder$
|
|
5844
|
-
node: adapterFragment$
|
|
5940
|
+
recordId: keyBuilder$m(luvio, config),
|
|
5941
|
+
node: adapterFragment$9(luvio, config),
|
|
5845
5942
|
variables: {},
|
|
5846
5943
|
};
|
|
5847
5944
|
const cacheSnapshot = storeLookup(selector, {
|
|
5848
5945
|
config,
|
|
5849
|
-
resolve: () => buildNetworkSnapshot$
|
|
5946
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
5850
5947
|
});
|
|
5851
5948
|
return cacheSnapshot;
|
|
5852
5949
|
}
|
|
5853
5950
|
const getSlackConversationMemberAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMember(untrustedConfig, requestContext) {
|
|
5854
|
-
const config = validateAdapterConfig$
|
|
5951
|
+
const config = validateAdapterConfig$d(untrustedConfig, getSlackConversationMember_ConfigPropertyNames);
|
|
5855
5952
|
// Invalid or incomplete config
|
|
5856
5953
|
if (config === null) {
|
|
5857
5954
|
return null;
|
|
5858
5955
|
}
|
|
5859
5956
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5860
|
-
buildCachedSnapshotCachePolicy$
|
|
5957
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
5861
5958
|
};
|
|
5862
5959
|
|
|
5863
5960
|
const VERSION$4 = "605674abcbc0dad7e2707e4e00e8d4cd";
|
|
@@ -5885,19 +5982,19 @@ function validate$4(obj, path = 'SlackBridgeMessageFragmentOutputRepresentation'
|
|
|
5885
5982
|
return v_error === undefined ? null : v_error;
|
|
5886
5983
|
}
|
|
5887
5984
|
const RepresentationType$4 = 'SlackBridgeMessageFragmentOutputRepresentation';
|
|
5888
|
-
function keyBuilder$
|
|
5985
|
+
function keyBuilder$l(luvio, config) {
|
|
5889
5986
|
return keyPrefix + '::' + RepresentationType$4 + ':' + config.channelId;
|
|
5890
5987
|
}
|
|
5891
5988
|
function keyBuilderFromType$1(luvio, object) {
|
|
5892
5989
|
const keyParams = {
|
|
5893
5990
|
channelId: object.channelId
|
|
5894
5991
|
};
|
|
5895
|
-
return keyBuilder$
|
|
5992
|
+
return keyBuilder$l(luvio, keyParams);
|
|
5896
5993
|
}
|
|
5897
5994
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
5898
5995
|
return input;
|
|
5899
5996
|
}
|
|
5900
|
-
const select$
|
|
5997
|
+
const select$f = function SlackBridgeMessageFragmentOutputRepresentationSelect() {
|
|
5901
5998
|
return {
|
|
5902
5999
|
kind: 'Fragment',
|
|
5903
6000
|
version: VERSION$4,
|
|
@@ -5958,13 +6055,13 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5958
6055
|
});
|
|
5959
6056
|
}
|
|
5960
6057
|
|
|
5961
|
-
function keyBuilder$
|
|
5962
|
-
return keyBuilder$
|
|
6058
|
+
function keyBuilder$k(luvio, params) {
|
|
6059
|
+
return keyBuilder$l(luvio, {
|
|
5963
6060
|
channelId: params.urlParams.channelId
|
|
5964
6061
|
});
|
|
5965
6062
|
}
|
|
5966
|
-
function getResponseCacheKeys$
|
|
5967
|
-
const key = keyBuilder$
|
|
6063
|
+
function getResponseCacheKeys$c(cacheKeyMap, luvio, resourceParams) {
|
|
6064
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
5968
6065
|
cacheKeyMap.set(key, {
|
|
5969
6066
|
namespace: keyPrefix,
|
|
5970
6067
|
representationName: RepresentationType$4,
|
|
@@ -5972,10 +6069,10 @@ function getResponseCacheKeys$a(cacheKeyMap, luvio, resourceParams) {
|
|
|
5972
6069
|
});
|
|
5973
6070
|
}
|
|
5974
6071
|
function evictSuccess$1(luvio, resourceParams) {
|
|
5975
|
-
const key = keyBuilder$
|
|
6072
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
5976
6073
|
luvio.storeEvict(key);
|
|
5977
6074
|
}
|
|
5978
|
-
function createResourceRequest$
|
|
6075
|
+
function createResourceRequest$c(config) {
|
|
5979
6076
|
const headers = {};
|
|
5980
6077
|
return {
|
|
5981
6078
|
baseUri: '/services/data/v64.0',
|
|
@@ -5989,35 +6086,35 @@ function createResourceRequest$a(config) {
|
|
|
5989
6086
|
};
|
|
5990
6087
|
}
|
|
5991
6088
|
|
|
5992
|
-
const adapterName$
|
|
6089
|
+
const adapterName$c = 'deleteSlackMessage';
|
|
5993
6090
|
const deleteSlackMessage_ConfigPropertyMetadata = [
|
|
5994
6091
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5995
6092
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5996
6093
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5997
6094
|
];
|
|
5998
|
-
const deleteSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5999
|
-
const createResourceParams$
|
|
6000
|
-
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) {
|
|
6001
6098
|
const config = {};
|
|
6002
|
-
typeCheckConfig$
|
|
6099
|
+
typeCheckConfig$p(untrustedConfig, config, deleteSlackMessage_ConfigPropertyMetadata);
|
|
6003
6100
|
return config;
|
|
6004
6101
|
}
|
|
6005
|
-
function validateAdapterConfig$
|
|
6102
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
6006
6103
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6007
6104
|
return null;
|
|
6008
6105
|
}
|
|
6009
6106
|
if (process.env.NODE_ENV !== 'production') {
|
|
6010
6107
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6011
6108
|
}
|
|
6012
|
-
const config = typeCheckConfig$
|
|
6109
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
6013
6110
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6014
6111
|
return null;
|
|
6015
6112
|
}
|
|
6016
6113
|
return config;
|
|
6017
6114
|
}
|
|
6018
|
-
function buildNetworkSnapshot$
|
|
6019
|
-
const resourceParams = createResourceParams$
|
|
6020
|
-
const request = createResourceRequest$
|
|
6115
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
6116
|
+
const resourceParams = createResourceParams$c(config);
|
|
6117
|
+
const request = createResourceRequest$c(resourceParams);
|
|
6021
6118
|
return luvio.dispatchResourceRequest(request, options)
|
|
6022
6119
|
.then(() => {
|
|
6023
6120
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -6025,7 +6122,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
6025
6122
|
return luvio.storeBroadcast();
|
|
6026
6123
|
}, () => {
|
|
6027
6124
|
const cache = new StoreKeyMap();
|
|
6028
|
-
getResponseCacheKeys$
|
|
6125
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams);
|
|
6029
6126
|
return cache;
|
|
6030
6127
|
});
|
|
6031
6128
|
}, (response) => {
|
|
@@ -6035,33 +6132,33 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
6035
6132
|
}
|
|
6036
6133
|
const deleteSlackMessageAdapterFactory = (luvio) => {
|
|
6037
6134
|
return function SlackBridgedeleteSlackMessage(untrustedConfig) {
|
|
6038
|
-
const config = validateAdapterConfig$
|
|
6135
|
+
const config = validateAdapterConfig$c(untrustedConfig, deleteSlackMessage_ConfigPropertyNames);
|
|
6039
6136
|
// Invalid or incomplete config
|
|
6040
6137
|
if (config === null) {
|
|
6041
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
6138
|
+
throw new Error(`Invalid config for "${adapterName$c}"`);
|
|
6042
6139
|
}
|
|
6043
|
-
return buildNetworkSnapshot$
|
|
6140
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
6044
6141
|
};
|
|
6045
6142
|
};
|
|
6046
6143
|
|
|
6047
|
-
function select$
|
|
6048
|
-
return select$
|
|
6144
|
+
function select$e(luvio, params) {
|
|
6145
|
+
return select$f();
|
|
6049
6146
|
}
|
|
6050
|
-
function keyBuilder$
|
|
6051
|
-
return keyBuilder$
|
|
6147
|
+
function keyBuilder$j(luvio, params) {
|
|
6148
|
+
return keyBuilder$l(luvio, {
|
|
6052
6149
|
channelId: params.urlParams.channelId
|
|
6053
6150
|
});
|
|
6054
6151
|
}
|
|
6055
|
-
function getResponseCacheKeys$
|
|
6152
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
6056
6153
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
6057
6154
|
}
|
|
6058
|
-
function ingestSuccess$
|
|
6155
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
6059
6156
|
const { body } = response;
|
|
6060
|
-
const key = keyBuilder$
|
|
6157
|
+
const key = keyBuilder$j(luvio, resourceParams);
|
|
6061
6158
|
luvio.storeIngest(key, ingest$4, body);
|
|
6062
6159
|
const snapshot = luvio.storeLookup({
|
|
6063
6160
|
recordId: key,
|
|
6064
|
-
node: select$
|
|
6161
|
+
node: select$e(),
|
|
6065
6162
|
variables: {},
|
|
6066
6163
|
}, snapshotRefresh);
|
|
6067
6164
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6072,13 +6169,13 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6072
6169
|
deepFreeze(snapshot.data);
|
|
6073
6170
|
return snapshot;
|
|
6074
6171
|
}
|
|
6075
|
-
function ingestError$
|
|
6076
|
-
const key = keyBuilder$
|
|
6172
|
+
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
6173
|
+
const key = keyBuilder$j(luvio, params);
|
|
6077
6174
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6078
6175
|
luvio.storeIngestError(key, errorSnapshot);
|
|
6079
6176
|
return errorSnapshot;
|
|
6080
6177
|
}
|
|
6081
|
-
function createResourceRequest$
|
|
6178
|
+
function createResourceRequest$b(config) {
|
|
6082
6179
|
const headers = {};
|
|
6083
6180
|
return {
|
|
6084
6181
|
baseUri: '/services/data/v64.0',
|
|
@@ -6092,107 +6189,107 @@ function createResourceRequest$9(config) {
|
|
|
6092
6189
|
};
|
|
6093
6190
|
}
|
|
6094
6191
|
|
|
6095
|
-
const adapterName$
|
|
6192
|
+
const adapterName$b = 'getSlackMessage';
|
|
6096
6193
|
const getSlackMessage_ConfigPropertyMetadata = [
|
|
6097
6194
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6098
6195
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6099
6196
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6100
6197
|
];
|
|
6101
|
-
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6102
|
-
const createResourceParams$
|
|
6103
|
-
function keyBuilder$
|
|
6104
|
-
const resourceParams = createResourceParams$
|
|
6105
|
-
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);
|
|
6106
6203
|
}
|
|
6107
|
-
function typeCheckConfig$
|
|
6204
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
6108
6205
|
const config = {};
|
|
6109
|
-
typeCheckConfig$
|
|
6206
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
|
|
6110
6207
|
return config;
|
|
6111
6208
|
}
|
|
6112
|
-
function validateAdapterConfig$
|
|
6209
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
6113
6210
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6114
6211
|
return null;
|
|
6115
6212
|
}
|
|
6116
6213
|
if (process.env.NODE_ENV !== 'production') {
|
|
6117
6214
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6118
6215
|
}
|
|
6119
|
-
const config = typeCheckConfig$
|
|
6216
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
6120
6217
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6121
6218
|
return null;
|
|
6122
6219
|
}
|
|
6123
6220
|
return config;
|
|
6124
6221
|
}
|
|
6125
|
-
function adapterFragment$
|
|
6126
|
-
createResourceParams$
|
|
6127
|
-
return select$
|
|
6222
|
+
function adapterFragment$8(luvio, config) {
|
|
6223
|
+
createResourceParams$b(config);
|
|
6224
|
+
return select$e();
|
|
6128
6225
|
}
|
|
6129
|
-
function onFetchResponseSuccess$
|
|
6130
|
-
const snapshot = ingestSuccess$
|
|
6226
|
+
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
6227
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
6131
6228
|
config,
|
|
6132
|
-
resolve: () => buildNetworkSnapshot$
|
|
6229
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
6133
6230
|
});
|
|
6134
6231
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6135
6232
|
}
|
|
6136
|
-
function onFetchResponseError$
|
|
6137
|
-
const snapshot = ingestError$
|
|
6233
|
+
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
6234
|
+
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
6138
6235
|
config,
|
|
6139
|
-
resolve: () => buildNetworkSnapshot$
|
|
6236
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
6140
6237
|
});
|
|
6141
6238
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6142
6239
|
}
|
|
6143
|
-
function buildNetworkSnapshot$
|
|
6144
|
-
const resourceParams = createResourceParams$
|
|
6145
|
-
const request = createResourceRequest$
|
|
6240
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
6241
|
+
const resourceParams = createResourceParams$b(config);
|
|
6242
|
+
const request = createResourceRequest$b(resourceParams);
|
|
6146
6243
|
return luvio.dispatchResourceRequest(request, options)
|
|
6147
6244
|
.then((response) => {
|
|
6148
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
6245
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
6149
6246
|
const cache = new StoreKeyMap();
|
|
6150
|
-
getResponseCacheKeys$
|
|
6247
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
6151
6248
|
return cache;
|
|
6152
6249
|
});
|
|
6153
6250
|
}, (response) => {
|
|
6154
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
6251
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
|
|
6155
6252
|
});
|
|
6156
6253
|
}
|
|
6157
|
-
function buildNetworkSnapshotCachePolicy$
|
|
6158
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6254
|
+
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
6255
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
6159
6256
|
}
|
|
6160
|
-
function buildCachedSnapshotCachePolicy$
|
|
6257
|
+
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
6161
6258
|
const { luvio, config } = context;
|
|
6162
6259
|
const selector = {
|
|
6163
|
-
recordId: keyBuilder$
|
|
6164
|
-
node: adapterFragment$
|
|
6260
|
+
recordId: keyBuilder$i(luvio, config),
|
|
6261
|
+
node: adapterFragment$8(luvio, config),
|
|
6165
6262
|
variables: {},
|
|
6166
6263
|
};
|
|
6167
6264
|
const cacheSnapshot = storeLookup(selector, {
|
|
6168
6265
|
config,
|
|
6169
|
-
resolve: () => buildNetworkSnapshot$
|
|
6266
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
6170
6267
|
});
|
|
6171
6268
|
return cacheSnapshot;
|
|
6172
6269
|
}
|
|
6173
6270
|
const getSlackMessageAdapterFactory = (luvio) => function SlackBridge__getSlackMessage(untrustedConfig, requestContext) {
|
|
6174
|
-
const config = validateAdapterConfig$
|
|
6271
|
+
const config = validateAdapterConfig$b(untrustedConfig, getSlackMessage_ConfigPropertyNames);
|
|
6175
6272
|
// Invalid or incomplete config
|
|
6176
6273
|
if (config === null) {
|
|
6177
6274
|
return null;
|
|
6178
6275
|
}
|
|
6179
6276
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
6180
|
-
buildCachedSnapshotCachePolicy$
|
|
6277
|
+
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
6181
6278
|
};
|
|
6182
6279
|
|
|
6183
|
-
function select$
|
|
6184
|
-
return select$
|
|
6280
|
+
function select$d(luvio, params) {
|
|
6281
|
+
return select$f();
|
|
6185
6282
|
}
|
|
6186
|
-
function getResponseCacheKeys$
|
|
6283
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
6187
6284
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
6188
6285
|
}
|
|
6189
|
-
function ingestSuccess$
|
|
6286
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
6190
6287
|
const { body } = response;
|
|
6191
6288
|
const key = keyBuilderFromType$1(luvio, body);
|
|
6192
6289
|
luvio.storeIngest(key, ingest$4, body);
|
|
6193
6290
|
const snapshot = luvio.storeLookup({
|
|
6194
6291
|
recordId: key,
|
|
6195
|
-
node: select$
|
|
6292
|
+
node: select$d(),
|
|
6196
6293
|
variables: {},
|
|
6197
6294
|
});
|
|
6198
6295
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6203,7 +6300,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
6203
6300
|
deepFreeze(snapshot.data);
|
|
6204
6301
|
return snapshot;
|
|
6205
6302
|
}
|
|
6206
|
-
function createResourceRequest$
|
|
6303
|
+
function createResourceRequest$a(config) {
|
|
6207
6304
|
const headers = {};
|
|
6208
6305
|
return {
|
|
6209
6306
|
baseUri: '/services/data/v64.0',
|
|
@@ -6217,44 +6314,44 @@ function createResourceRequest$8(config) {
|
|
|
6217
6314
|
};
|
|
6218
6315
|
}
|
|
6219
6316
|
|
|
6220
|
-
const adapterName$
|
|
6317
|
+
const adapterName$a = 'patchSlackMessage';
|
|
6221
6318
|
const patchSlackMessage_ConfigPropertyMetadata = [
|
|
6222
6319
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6223
6320
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6224
6321
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6225
6322
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
6226
6323
|
];
|
|
6227
|
-
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6228
|
-
const createResourceParams$
|
|
6229
|
-
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) {
|
|
6230
6327
|
const config = {};
|
|
6231
|
-
typeCheckConfig$
|
|
6328
|
+
typeCheckConfig$p(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
|
|
6232
6329
|
return config;
|
|
6233
6330
|
}
|
|
6234
|
-
function validateAdapterConfig$
|
|
6331
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
6235
6332
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6236
6333
|
return null;
|
|
6237
6334
|
}
|
|
6238
6335
|
if (process.env.NODE_ENV !== 'production') {
|
|
6239
6336
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6240
6337
|
}
|
|
6241
|
-
const config = typeCheckConfig$
|
|
6338
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
6242
6339
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6243
6340
|
return null;
|
|
6244
6341
|
}
|
|
6245
6342
|
return config;
|
|
6246
6343
|
}
|
|
6247
|
-
function buildNetworkSnapshot$
|
|
6248
|
-
const resourceParams = createResourceParams$
|
|
6249
|
-
const request = createResourceRequest$
|
|
6344
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
6345
|
+
const resourceParams = createResourceParams$a(config);
|
|
6346
|
+
const request = createResourceRequest$a(resourceParams);
|
|
6250
6347
|
return luvio.dispatchResourceRequest(request, options)
|
|
6251
6348
|
.then((response) => {
|
|
6252
6349
|
return luvio.handleSuccessResponse(() => {
|
|
6253
|
-
const snapshot = ingestSuccess$
|
|
6350
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
6254
6351
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6255
6352
|
}, () => {
|
|
6256
6353
|
const cache = new StoreKeyMap();
|
|
6257
|
-
getResponseCacheKeys$
|
|
6354
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
6258
6355
|
return cache;
|
|
6259
6356
|
});
|
|
6260
6357
|
}, (response) => {
|
|
@@ -6264,12 +6361,12 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
6264
6361
|
}
|
|
6265
6362
|
const patchSlackMessageAdapterFactory = (luvio) => {
|
|
6266
6363
|
return function patchSlackMessage(untrustedConfig) {
|
|
6267
|
-
const config = validateAdapterConfig$
|
|
6364
|
+
const config = validateAdapterConfig$a(untrustedConfig, patchSlackMessage_ConfigPropertyNames);
|
|
6268
6365
|
// Invalid or incomplete config
|
|
6269
6366
|
if (config === null) {
|
|
6270
6367
|
throw new Error('Invalid config for "patchSlackMessage"');
|
|
6271
6368
|
}
|
|
6272
|
-
return buildNetworkSnapshot$
|
|
6369
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
6273
6370
|
};
|
|
6274
6371
|
};
|
|
6275
6372
|
|
|
@@ -6313,20 +6410,20 @@ function validate$3(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
|
6313
6410
|
return v_error === undefined ? null : v_error;
|
|
6314
6411
|
}
|
|
6315
6412
|
const RepresentationType$3 = 'SlackBridgeReactionsOutputRepresentation';
|
|
6316
|
-
function keyBuilder$
|
|
6413
|
+
function keyBuilder$h(luvio, config) {
|
|
6317
6414
|
return keyPrefix + '::' + RepresentationType$3 + ':' + config.channelId;
|
|
6318
6415
|
}
|
|
6319
6416
|
function keyBuilderFromType(luvio, object) {
|
|
6320
6417
|
const keyParams = {
|
|
6321
6418
|
channelId: object.channelId
|
|
6322
6419
|
};
|
|
6323
|
-
return keyBuilder$
|
|
6420
|
+
return keyBuilder$h(luvio, keyParams);
|
|
6324
6421
|
}
|
|
6325
6422
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
6326
6423
|
return input;
|
|
6327
6424
|
}
|
|
6328
|
-
const select$
|
|
6329
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
6425
|
+
const select$c = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
6426
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$G();
|
|
6330
6427
|
return {
|
|
6331
6428
|
kind: 'Fragment',
|
|
6332
6429
|
version: VERSION$3,
|
|
@@ -6403,13 +6500,13 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6403
6500
|
});
|
|
6404
6501
|
}
|
|
6405
6502
|
|
|
6406
|
-
function keyBuilder$
|
|
6407
|
-
return keyBuilder$
|
|
6503
|
+
function keyBuilder$g(luvio, params) {
|
|
6504
|
+
return keyBuilder$h(luvio, {
|
|
6408
6505
|
channelId: params.urlParams.channelId
|
|
6409
6506
|
});
|
|
6410
6507
|
}
|
|
6411
|
-
function getResponseCacheKeys$
|
|
6412
|
-
const key = keyBuilder$
|
|
6508
|
+
function getResponseCacheKeys$9(cacheKeyMap, luvio, resourceParams) {
|
|
6509
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
6413
6510
|
cacheKeyMap.set(key, {
|
|
6414
6511
|
namespace: keyPrefix,
|
|
6415
6512
|
representationName: RepresentationType$3,
|
|
@@ -6417,10 +6514,10 @@ function getResponseCacheKeys$7(cacheKeyMap, luvio, resourceParams) {
|
|
|
6417
6514
|
});
|
|
6418
6515
|
}
|
|
6419
6516
|
function evictSuccess(luvio, resourceParams) {
|
|
6420
|
-
const key = keyBuilder$
|
|
6517
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
6421
6518
|
luvio.storeEvict(key);
|
|
6422
6519
|
}
|
|
6423
|
-
function createResourceRequest$
|
|
6520
|
+
function createResourceRequest$9(config) {
|
|
6424
6521
|
const headers = {};
|
|
6425
6522
|
return {
|
|
6426
6523
|
baseUri: '/services/data/v64.0',
|
|
@@ -6434,36 +6531,36 @@ function createResourceRequest$7(config) {
|
|
|
6434
6531
|
};
|
|
6435
6532
|
}
|
|
6436
6533
|
|
|
6437
|
-
const adapterName$
|
|
6534
|
+
const adapterName$9 = 'deleteSlackMessageReactions';
|
|
6438
6535
|
const deleteSlackMessageReactions_ConfigPropertyMetadata = [
|
|
6439
6536
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6440
6537
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6441
6538
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6442
6539
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6443
6540
|
];
|
|
6444
|
-
const deleteSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6445
|
-
const createResourceParams$
|
|
6446
|
-
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) {
|
|
6447
6544
|
const config = {};
|
|
6448
|
-
typeCheckConfig$
|
|
6545
|
+
typeCheckConfig$p(untrustedConfig, config, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
6449
6546
|
return config;
|
|
6450
6547
|
}
|
|
6451
|
-
function validateAdapterConfig$
|
|
6548
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
6452
6549
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6453
6550
|
return null;
|
|
6454
6551
|
}
|
|
6455
6552
|
if (process.env.NODE_ENV !== 'production') {
|
|
6456
6553
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6457
6554
|
}
|
|
6458
|
-
const config = typeCheckConfig$
|
|
6555
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
6459
6556
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6460
6557
|
return null;
|
|
6461
6558
|
}
|
|
6462
6559
|
return config;
|
|
6463
6560
|
}
|
|
6464
|
-
function buildNetworkSnapshot$
|
|
6465
|
-
const resourceParams = createResourceParams$
|
|
6466
|
-
const request = createResourceRequest$
|
|
6561
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
6562
|
+
const resourceParams = createResourceParams$9(config);
|
|
6563
|
+
const request = createResourceRequest$9(resourceParams);
|
|
6467
6564
|
return luvio.dispatchResourceRequest(request, options)
|
|
6468
6565
|
.then(() => {
|
|
6469
6566
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -6471,7 +6568,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
6471
6568
|
return luvio.storeBroadcast();
|
|
6472
6569
|
}, () => {
|
|
6473
6570
|
const cache = new StoreKeyMap();
|
|
6474
|
-
getResponseCacheKeys$
|
|
6571
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams);
|
|
6475
6572
|
return cache;
|
|
6476
6573
|
});
|
|
6477
6574
|
}, (response) => {
|
|
@@ -6481,30 +6578,391 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
6481
6578
|
}
|
|
6482
6579
|
const deleteSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
6483
6580
|
return function SlackBridgedeleteSlackMessageReactions(untrustedConfig) {
|
|
6484
|
-
const config = validateAdapterConfig$
|
|
6581
|
+
const config = validateAdapterConfig$9(untrustedConfig, deleteSlackMessageReactions_ConfigPropertyNames);
|
|
6582
|
+
// Invalid or incomplete config
|
|
6583
|
+
if (config === null) {
|
|
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');
|
|
6608
|
+
}
|
|
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',
|
|
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);
|
|
6485
6675
|
// Invalid or incomplete config
|
|
6486
6676
|
if (config === null) {
|
|
6487
|
-
throw new Error(
|
|
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');
|
|
6488
6834
|
}
|
|
6489
|
-
|
|
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: {},
|
|
6490
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);
|
|
6491
6944
|
};
|
|
6492
6945
|
|
|
6493
|
-
function select$
|
|
6494
|
-
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
|
+
});
|
|
6495
6953
|
}
|
|
6496
6954
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
6497
|
-
getTypeCacheKeys$
|
|
6955
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
6498
6956
|
}
|
|
6499
|
-
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
6957
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
6500
6958
|
const { body } = response;
|
|
6501
|
-
const key =
|
|
6502
|
-
luvio.storeIngest(key, ingest$
|
|
6959
|
+
const key = keyBuilder$d(luvio, resourceParams);
|
|
6960
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
6503
6961
|
const snapshot = luvio.storeLookup({
|
|
6504
6962
|
recordId: key,
|
|
6505
|
-
node: select$
|
|
6963
|
+
node: select$8(),
|
|
6506
6964
|
variables: {},
|
|
6507
|
-
});
|
|
6965
|
+
}, snapshotRefresh);
|
|
6508
6966
|
if (process.env.NODE_ENV !== 'production') {
|
|
6509
6967
|
if (snapshot.state !== 'Fulfilled') {
|
|
6510
6968
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
@@ -6513,32 +6971,46 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
6513
6971
|
deepFreeze(snapshot.data);
|
|
6514
6972
|
return snapshot;
|
|
6515
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
|
+
}
|
|
6516
6986
|
function createResourceRequest$6(config) {
|
|
6517
6987
|
const headers = {};
|
|
6518
6988
|
return {
|
|
6519
6989
|
baseUri: '/services/data/v64.0',
|
|
6520
|
-
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/
|
|
6521
|
-
method: '
|
|
6990
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channels/' + config.urlParams.channelId + '',
|
|
6991
|
+
method: 'get',
|
|
6522
6992
|
body: null,
|
|
6523
6993
|
urlParams: config.urlParams,
|
|
6524
|
-
queryParams:
|
|
6994
|
+
queryParams: {},
|
|
6525
6995
|
headers,
|
|
6526
6996
|
priority: 'normal',
|
|
6527
6997
|
};
|
|
6528
6998
|
}
|
|
6529
6999
|
|
|
6530
|
-
const adapterName$6 = '
|
|
6531
|
-
const
|
|
7000
|
+
const adapterName$6 = 'getSlackConversationInfo';
|
|
7001
|
+
const getSlackConversationInfo_ConfigPropertyMetadata = [
|
|
6532
7002
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6533
|
-
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6534
7003
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6535
|
-
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6536
7004
|
];
|
|
6537
|
-
const
|
|
6538
|
-
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
|
+
}
|
|
6539
7011
|
function typeCheckConfig$6(untrustedConfig) {
|
|
6540
7012
|
const config = {};
|
|
6541
|
-
typeCheckConfig$
|
|
7013
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackConversationInfo_ConfigPropertyMetadata);
|
|
6542
7014
|
return config;
|
|
6543
7015
|
}
|
|
6544
7016
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -6554,37 +7026,66 @@ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
|
6554
7026
|
}
|
|
6555
7027
|
return config;
|
|
6556
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
|
+
}
|
|
6557
7047
|
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
6558
7048
|
const resourceParams = createResourceParams$6(config);
|
|
6559
7049
|
const request = createResourceRequest$6(resourceParams);
|
|
6560
7050
|
return luvio.dispatchResourceRequest(request, options)
|
|
6561
7051
|
.then((response) => {
|
|
6562
|
-
return luvio.handleSuccessResponse(() => {
|
|
6563
|
-
const snapshot = ingestSuccess$6(luvio, resourceParams, response);
|
|
6564
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
6565
|
-
}, () => {
|
|
7052
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
6566
7053
|
const cache = new StoreKeyMap();
|
|
6567
7054
|
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
6568
7055
|
return cache;
|
|
6569
7056
|
});
|
|
6570
7057
|
}, (response) => {
|
|
6571
|
-
|
|
6572
|
-
throw response;
|
|
7058
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
6573
7059
|
});
|
|
6574
7060
|
}
|
|
6575
|
-
|
|
6576
|
-
return
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
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: {},
|
|
6583
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);
|
|
6584
7085
|
};
|
|
6585
7086
|
|
|
6586
|
-
const VERSION$
|
|
6587
|
-
function validate$
|
|
7087
|
+
const VERSION$1 = "da7e3ba240e3ef2a2a6ee0e913ef280c";
|
|
7088
|
+
function validate$1(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
6588
7089
|
const v_error = (() => {
|
|
6589
7090
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6590
7091
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6604,8 +7105,8 @@ function validate$2(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
|
6604
7105
|
})();
|
|
6605
7106
|
return v_error === undefined ? null : v_error;
|
|
6606
7107
|
}
|
|
6607
|
-
const RepresentationType$
|
|
6608
|
-
function normalize$
|
|
7108
|
+
const RepresentationType$1 = 'SlackBridgeEmojisOutputRepresentation';
|
|
7109
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
6609
7110
|
const input_emojis = input.emojis;
|
|
6610
7111
|
const input_emojis_id = path.fullPath + '__emojis';
|
|
6611
7112
|
for (let i = 0; i < input_emojis.length; i++) {
|
|
@@ -6624,22 +7125,22 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
6624
7125
|
}
|
|
6625
7126
|
return input;
|
|
6626
7127
|
}
|
|
6627
|
-
const select$
|
|
7128
|
+
const select$7 = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
6628
7129
|
return {
|
|
6629
7130
|
kind: 'Fragment',
|
|
6630
|
-
version: VERSION$
|
|
7131
|
+
version: VERSION$1,
|
|
6631
7132
|
private: [],
|
|
6632
7133
|
selections: [
|
|
6633
7134
|
{
|
|
6634
7135
|
name: 'emojis',
|
|
6635
7136
|
kind: 'Link',
|
|
6636
7137
|
plural: true,
|
|
6637
|
-
fragment: select$
|
|
7138
|
+
fragment: select$J()
|
|
6638
7139
|
}
|
|
6639
7140
|
]
|
|
6640
7141
|
};
|
|
6641
7142
|
};
|
|
6642
|
-
function equals$
|
|
7143
|
+
function equals$1(existing, incoming) {
|
|
6643
7144
|
const existing_emojis = existing.emojis;
|
|
6644
7145
|
const incoming_emojis = incoming.emojis;
|
|
6645
7146
|
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
@@ -6652,24 +7153,24 @@ function equals$2(existing, incoming) {
|
|
|
6652
7153
|
}
|
|
6653
7154
|
return true;
|
|
6654
7155
|
}
|
|
6655
|
-
const ingest$
|
|
7156
|
+
const ingest$1 = function SlackBridgeEmojisOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6656
7157
|
if (process.env.NODE_ENV !== 'production') {
|
|
6657
|
-
const validateError = validate$
|
|
7158
|
+
const validateError = validate$1(input);
|
|
6658
7159
|
if (validateError !== null) {
|
|
6659
7160
|
throw validateError;
|
|
6660
7161
|
}
|
|
6661
7162
|
}
|
|
6662
7163
|
const key = path.fullPath;
|
|
6663
7164
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
6664
|
-
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);
|
|
6665
7166
|
return createLink(key);
|
|
6666
7167
|
};
|
|
6667
|
-
function getTypeCacheKeys$
|
|
7168
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
6668
7169
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6669
7170
|
const rootKey = fullPathFactory();
|
|
6670
7171
|
rootKeySet.set(rootKey, {
|
|
6671
7172
|
namespace: keyPrefix,
|
|
6672
|
-
representationName: RepresentationType$
|
|
7173
|
+
representationName: RepresentationType$1,
|
|
6673
7174
|
mergeable: false
|
|
6674
7175
|
});
|
|
6675
7176
|
const input_emojis_length = input.emojis.length;
|
|
@@ -6678,22 +7179,22 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6678
7179
|
}
|
|
6679
7180
|
}
|
|
6680
7181
|
|
|
6681
|
-
function select$
|
|
6682
|
-
return select$
|
|
7182
|
+
function select$6(luvio, params) {
|
|
7183
|
+
return select$7();
|
|
6683
7184
|
}
|
|
6684
7185
|
function keyBuilder$b(luvio, params) {
|
|
6685
7186
|
return keyPrefix + '::SlackBridgeEmojisOutputRepresentation:(' + 'slackEmojiIds:' + params.queryParams.slackEmojiIds + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
6686
7187
|
}
|
|
6687
7188
|
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
6688
|
-
getTypeCacheKeys$
|
|
7189
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
6689
7190
|
}
|
|
6690
7191
|
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
6691
7192
|
const { body } = response;
|
|
6692
7193
|
const key = keyBuilder$b(luvio, resourceParams);
|
|
6693
|
-
luvio.storeIngest(key, ingest$
|
|
7194
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
6694
7195
|
const snapshot = luvio.storeLookup({
|
|
6695
7196
|
recordId: key,
|
|
6696
|
-
node: select$
|
|
7197
|
+
node: select$6(),
|
|
6697
7198
|
variables: {},
|
|
6698
7199
|
}, snapshotRefresh);
|
|
6699
7200
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6730,14 +7231,14 @@ const getSlackEmojis_ConfigPropertyMetadata = [
|
|
|
6730
7231
|
generateParamConfigMetadata('slackEmojiIds', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
6731
7232
|
];
|
|
6732
7233
|
const getSlackEmojis_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSlackEmojis_ConfigPropertyMetadata);
|
|
6733
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
7234
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$p(getSlackEmojis_ConfigPropertyMetadata);
|
|
6734
7235
|
function keyBuilder$a(luvio, config) {
|
|
6735
7236
|
const resourceParams = createResourceParams$5(config);
|
|
6736
7237
|
return keyBuilder$b(luvio, resourceParams);
|
|
6737
7238
|
}
|
|
6738
7239
|
function typeCheckConfig$5(untrustedConfig) {
|
|
6739
7240
|
const config = {};
|
|
6740
|
-
typeCheckConfig$
|
|
7241
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackEmojis_ConfigPropertyMetadata);
|
|
6741
7242
|
return config;
|
|
6742
7243
|
}
|
|
6743
7244
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -6755,7 +7256,7 @@ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
|
6755
7256
|
}
|
|
6756
7257
|
function adapterFragment$5(luvio, config) {
|
|
6757
7258
|
createResourceParams$5(config);
|
|
6758
|
-
return select$
|
|
7259
|
+
return select$6();
|
|
6759
7260
|
}
|
|
6760
7261
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
6761
7262
|
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
@@ -6786,7 +7287,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
6786
7287
|
});
|
|
6787
7288
|
}
|
|
6788
7289
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
6789
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7290
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
6790
7291
|
}
|
|
6791
7292
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
6792
7293
|
const { luvio, config } = context;
|
|
@@ -6811,11 +7312,11 @@ const getSlackEmojisAdapterFactory = (luvio) => function SlackBridge__getSlackEm
|
|
|
6811
7312
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
6812
7313
|
};
|
|
6813
7314
|
|
|
6814
|
-
function select$
|
|
6815
|
-
return select$
|
|
7315
|
+
function select$5(luvio, params) {
|
|
7316
|
+
return select$J();
|
|
6816
7317
|
}
|
|
6817
7318
|
function keyBuilder$9(luvio, params) {
|
|
6818
|
-
return keyBuilder$
|
|
7319
|
+
return keyBuilder$H(luvio, {
|
|
6819
7320
|
name: params.urlParams.slackEmojiId
|
|
6820
7321
|
});
|
|
6821
7322
|
}
|
|
@@ -6828,7 +7329,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6828
7329
|
luvio.storeIngest(key, ingest$i, body);
|
|
6829
7330
|
const snapshot = luvio.storeLookup({
|
|
6830
7331
|
recordId: key,
|
|
6831
|
-
node: select$
|
|
7332
|
+
node: select$5(),
|
|
6832
7333
|
variables: {},
|
|
6833
7334
|
}, snapshotRefresh);
|
|
6834
7335
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6843,7 +7344,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
6843
7344
|
const key = keyBuilder$9(luvio, params);
|
|
6844
7345
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6845
7346
|
const storeMetadataParams = {
|
|
6846
|
-
ttl: TTL$
|
|
7347
|
+
ttl: TTL$4,
|
|
6847
7348
|
namespace: keyPrefix,
|
|
6848
7349
|
version: VERSION$n,
|
|
6849
7350
|
representationName: RepresentationType$i
|
|
@@ -6871,14 +7372,14 @@ const getSlackEmoji_ConfigPropertyMetadata = [
|
|
|
6871
7372
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6872
7373
|
];
|
|
6873
7374
|
const getSlackEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSlackEmoji_ConfigPropertyMetadata);
|
|
6874
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
7375
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$p(getSlackEmoji_ConfigPropertyMetadata);
|
|
6875
7376
|
function keyBuilder$8(luvio, config) {
|
|
6876
7377
|
const resourceParams = createResourceParams$4(config);
|
|
6877
7378
|
return keyBuilder$9(luvio, resourceParams);
|
|
6878
7379
|
}
|
|
6879
7380
|
function typeCheckConfig$4(untrustedConfig) {
|
|
6880
7381
|
const config = {};
|
|
6881
|
-
typeCheckConfig$
|
|
7382
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackEmoji_ConfigPropertyMetadata);
|
|
6882
7383
|
return config;
|
|
6883
7384
|
}
|
|
6884
7385
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -6896,7 +7397,7 @@ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
|
6896
7397
|
}
|
|
6897
7398
|
function adapterFragment$4(luvio, config) {
|
|
6898
7399
|
createResourceParams$4(config);
|
|
6899
|
-
return select$
|
|
7400
|
+
return select$5();
|
|
6900
7401
|
}
|
|
6901
7402
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
6902
7403
|
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
@@ -6927,7 +7428,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
6927
7428
|
});
|
|
6928
7429
|
}
|
|
6929
7430
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
6930
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7431
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
6931
7432
|
}
|
|
6932
7433
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
6933
7434
|
const { luvio, config } = context;
|
|
@@ -6952,149 +7453,19 @@ const getSlackEmojiAdapterFactory = (luvio) => function SlackBridge__getSlackEmo
|
|
|
6952
7453
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
6953
7454
|
};
|
|
6954
7455
|
|
|
6955
|
-
const VERSION$1 = "0de597a47ca8ecad2cfb7fd9c8f73920";
|
|
6956
|
-
function validate$1(obj, path = 'SlackBridgeConversationInfosOutputRepresentation') {
|
|
6957
|
-
const v_error = (() => {
|
|
6958
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6959
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6960
|
-
}
|
|
6961
|
-
const obj_conversationInfos = obj.conversationInfos;
|
|
6962
|
-
const path_conversationInfos = path + '.conversationInfos';
|
|
6963
|
-
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
6964
|
-
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
6965
|
-
}
|
|
6966
|
-
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
6967
|
-
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
6968
|
-
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
6969
|
-
if (typeof obj_conversationInfos_item !== 'object') {
|
|
6970
|
-
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
6971
|
-
}
|
|
6972
|
-
}
|
|
6973
|
-
const obj_searchString = obj.searchString;
|
|
6974
|
-
const path_searchString = path + '.searchString';
|
|
6975
|
-
let obj_searchString_union0 = null;
|
|
6976
|
-
const obj_searchString_union0_error = (() => {
|
|
6977
|
-
if (typeof obj_searchString !== 'string') {
|
|
6978
|
-
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6979
|
-
}
|
|
6980
|
-
})();
|
|
6981
|
-
if (obj_searchString_union0_error != null) {
|
|
6982
|
-
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
6983
|
-
}
|
|
6984
|
-
let obj_searchString_union1 = null;
|
|
6985
|
-
const obj_searchString_union1_error = (() => {
|
|
6986
|
-
if (obj_searchString !== null) {
|
|
6987
|
-
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6988
|
-
}
|
|
6989
|
-
})();
|
|
6990
|
-
if (obj_searchString_union1_error != null) {
|
|
6991
|
-
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
6992
|
-
}
|
|
6993
|
-
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
6994
|
-
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
6995
|
-
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6996
|
-
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6997
|
-
return new TypeError(message);
|
|
6998
|
-
}
|
|
6999
|
-
})();
|
|
7000
|
-
return v_error === undefined ? null : v_error;
|
|
7001
|
-
}
|
|
7002
|
-
const RepresentationType$1 = 'SlackBridgeConversationInfosOutputRepresentation';
|
|
7003
|
-
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
7004
|
-
const input_conversationInfos = input.conversationInfos;
|
|
7005
|
-
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
7006
|
-
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
7007
|
-
const input_conversationInfos_item = input_conversationInfos[i];
|
|
7008
|
-
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
7009
|
-
input_conversationInfos[i] = ingest$g(input_conversationInfos_item, {
|
|
7010
|
-
fullPath: input_conversationInfos_item_id,
|
|
7011
|
-
propertyName: i,
|
|
7012
|
-
parent: {
|
|
7013
|
-
data: input,
|
|
7014
|
-
key: path.fullPath,
|
|
7015
|
-
existing: existing,
|
|
7016
|
-
},
|
|
7017
|
-
ttl: path.ttl
|
|
7018
|
-
}, luvio, store, timestamp);
|
|
7019
|
-
}
|
|
7020
|
-
return input;
|
|
7021
|
-
}
|
|
7022
|
-
const select$5 = function SlackBridgeConversationInfosOutputRepresentationSelect() {
|
|
7023
|
-
return {
|
|
7024
|
-
kind: 'Fragment',
|
|
7025
|
-
version: VERSION$1,
|
|
7026
|
-
private: [],
|
|
7027
|
-
selections: [
|
|
7028
|
-
{
|
|
7029
|
-
name: 'conversationInfos',
|
|
7030
|
-
kind: 'Link',
|
|
7031
|
-
plural: true,
|
|
7032
|
-
fragment: select$F()
|
|
7033
|
-
},
|
|
7034
|
-
{
|
|
7035
|
-
name: 'searchString',
|
|
7036
|
-
kind: 'Scalar'
|
|
7037
|
-
}
|
|
7038
|
-
]
|
|
7039
|
-
};
|
|
7040
|
-
};
|
|
7041
|
-
function equals$1(existing, incoming) {
|
|
7042
|
-
const existing_conversationInfos = existing.conversationInfos;
|
|
7043
|
-
const incoming_conversationInfos = incoming.conversationInfos;
|
|
7044
|
-
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
7045
|
-
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
7046
|
-
return false;
|
|
7047
|
-
}
|
|
7048
|
-
});
|
|
7049
|
-
if (equals_conversationInfos_items === false) {
|
|
7050
|
-
return false;
|
|
7051
|
-
}
|
|
7052
|
-
const existing_searchString = existing.searchString;
|
|
7053
|
-
const incoming_searchString = incoming.searchString;
|
|
7054
|
-
if (!(existing_searchString === incoming_searchString)) {
|
|
7055
|
-
return false;
|
|
7056
|
-
}
|
|
7057
|
-
return true;
|
|
7058
|
-
}
|
|
7059
|
-
const ingest$1 = function SlackBridgeConversationInfosOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7060
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
7061
|
-
const validateError = validate$1(input);
|
|
7062
|
-
if (validateError !== null) {
|
|
7063
|
-
throw validateError;
|
|
7064
|
-
}
|
|
7065
|
-
}
|
|
7066
|
-
const key = path.fullPath;
|
|
7067
|
-
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
7068
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "SlackBridge", VERSION$1, RepresentationType$1, equals$1);
|
|
7069
|
-
return createLink(key);
|
|
7070
|
-
};
|
|
7071
|
-
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
7072
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7073
|
-
const rootKey = fullPathFactory();
|
|
7074
|
-
rootKeySet.set(rootKey, {
|
|
7075
|
-
namespace: keyPrefix,
|
|
7076
|
-
representationName: RepresentationType$1,
|
|
7077
|
-
mergeable: false
|
|
7078
|
-
});
|
|
7079
|
-
const input_conversationInfos_length = input.conversationInfos.length;
|
|
7080
|
-
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
7081
|
-
getTypeCacheKeys$g(rootKeySet, luvio, input.conversationInfos[i]);
|
|
7082
|
-
}
|
|
7083
|
-
}
|
|
7084
|
-
|
|
7085
7456
|
function select$4(luvio, params) {
|
|
7086
|
-
return select$
|
|
7457
|
+
return select$a();
|
|
7087
7458
|
}
|
|
7088
7459
|
function keyBuilder$7(luvio, params) {
|
|
7089
7460
|
return keyPrefix + '::SlackBridgeConversationInfosOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
7090
7461
|
}
|
|
7091
7462
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
7092
|
-
getTypeCacheKeys$
|
|
7463
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
7093
7464
|
}
|
|
7094
7465
|
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
7095
7466
|
const { body } = response;
|
|
7096
7467
|
const key = keyBuilder$7(luvio, resourceParams);
|
|
7097
|
-
luvio.storeIngest(key, ingest$
|
|
7468
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
7098
7469
|
const snapshot = luvio.storeLookup({
|
|
7099
7470
|
recordId: key,
|
|
7100
7471
|
node: select$4(),
|
|
@@ -7134,14 +7505,14 @@ const getSlackSearchConversation_ConfigPropertyMetadata = [
|
|
|
7134
7505
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7135
7506
|
];
|
|
7136
7507
|
const getSlackSearchConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
7137
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
7508
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$p(getSlackSearchConversation_ConfigPropertyMetadata);
|
|
7138
7509
|
function keyBuilder$6(luvio, config) {
|
|
7139
7510
|
const resourceParams = createResourceParams$3(config);
|
|
7140
7511
|
return keyBuilder$7(luvio, resourceParams);
|
|
7141
7512
|
}
|
|
7142
7513
|
function typeCheckConfig$3(untrustedConfig) {
|
|
7143
7514
|
const config = {};
|
|
7144
|
-
typeCheckConfig$
|
|
7515
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
7145
7516
|
return config;
|
|
7146
7517
|
}
|
|
7147
7518
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -7190,7 +7561,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
7190
7561
|
});
|
|
7191
7562
|
}
|
|
7192
7563
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
7193
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7564
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
7194
7565
|
}
|
|
7195
7566
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
7196
7567
|
const { luvio, config } = context;
|
|
@@ -7216,18 +7587,18 @@ const getSlackSearchConversationAdapterFactory = (luvio) => function SlackBridge
|
|
|
7216
7587
|
};
|
|
7217
7588
|
|
|
7218
7589
|
function select$3(luvio, params) {
|
|
7219
|
-
return select$
|
|
7590
|
+
return select$7();
|
|
7220
7591
|
}
|
|
7221
7592
|
function keyBuilder$5(luvio, params) {
|
|
7222
7593
|
return keyPrefix + '::SlackBridgeEmojisOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
7223
7594
|
}
|
|
7224
7595
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
7225
|
-
getTypeCacheKeys$
|
|
7596
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
7226
7597
|
}
|
|
7227
7598
|
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
7228
7599
|
const { body } = response;
|
|
7229
7600
|
const key = keyBuilder$5(luvio, resourceParams);
|
|
7230
|
-
luvio.storeIngest(key, ingest$
|
|
7601
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
7231
7602
|
const snapshot = luvio.storeLookup({
|
|
7232
7603
|
recordId: key,
|
|
7233
7604
|
node: select$3(),
|
|
@@ -7267,14 +7638,14 @@ const getSlackSearchEmoji_ConfigPropertyMetadata = [
|
|
|
7267
7638
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7268
7639
|
];
|
|
7269
7640
|
const getSlackSearchEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
7270
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
7641
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$p(getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
7271
7642
|
function keyBuilder$4(luvio, config) {
|
|
7272
7643
|
const resourceParams = createResourceParams$2(config);
|
|
7273
7644
|
return keyBuilder$5(luvio, resourceParams);
|
|
7274
7645
|
}
|
|
7275
7646
|
function typeCheckConfig$2(untrustedConfig) {
|
|
7276
7647
|
const config = {};
|
|
7277
|
-
typeCheckConfig$
|
|
7648
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
7278
7649
|
return config;
|
|
7279
7650
|
}
|
|
7280
7651
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -7323,7 +7694,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
7323
7694
|
});
|
|
7324
7695
|
}
|
|
7325
7696
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
7326
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7697
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
7327
7698
|
}
|
|
7328
7699
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
7329
7700
|
const { luvio, config } = context;
|
|
@@ -7348,12 +7719,38 @@ const getSlackSearchEmojiAdapterFactory = (luvio) => function SlackBridge__getSl
|
|
|
7348
7719
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
7349
7720
|
};
|
|
7350
7721
|
|
|
7351
|
-
const VERSION = "
|
|
7722
|
+
const VERSION = "16b915c502b8a0609446d7ed3907a794";
|
|
7352
7723
|
function validate(obj, path = 'SlackBridgeUserInfosOutputRepresentation') {
|
|
7353
7724
|
const v_error = (() => {
|
|
7354
7725
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7355
7726
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7356
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
|
+
}
|
|
7357
7754
|
const obj_searchString = obj.searchString;
|
|
7358
7755
|
const path_searchString = path + '.searchString';
|
|
7359
7756
|
let obj_searchString_union0 = null;
|
|
@@ -7421,6 +7818,10 @@ const select$2 = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
7421
7818
|
version: VERSION,
|
|
7422
7819
|
private: [],
|
|
7423
7820
|
selections: [
|
|
7821
|
+
{
|
|
7822
|
+
name: 'nextMarker',
|
|
7823
|
+
kind: 'Scalar'
|
|
7824
|
+
},
|
|
7424
7825
|
{
|
|
7425
7826
|
name: 'searchString',
|
|
7426
7827
|
kind: 'Scalar'
|
|
@@ -7429,12 +7830,17 @@ const select$2 = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
7429
7830
|
name: 'userInfos',
|
|
7430
7831
|
kind: 'Link',
|
|
7431
7832
|
plural: true,
|
|
7432
|
-
fragment: select$
|
|
7833
|
+
fragment: select$I()
|
|
7433
7834
|
}
|
|
7434
7835
|
]
|
|
7435
7836
|
};
|
|
7436
7837
|
};
|
|
7437
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
|
+
}
|
|
7438
7844
|
const existing_searchString = existing.searchString;
|
|
7439
7845
|
const incoming_searchString = incoming.searchString;
|
|
7440
7846
|
if (!(existing_searchString === incoming_searchString)) {
|
|
@@ -7533,14 +7939,14 @@ const getSlackSearchUser_ConfigPropertyMetadata = [
|
|
|
7533
7939
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7534
7940
|
];
|
|
7535
7941
|
const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getSlackSearchUser_ConfigPropertyMetadata);
|
|
7536
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
7942
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$p(getSlackSearchUser_ConfigPropertyMetadata);
|
|
7537
7943
|
function keyBuilder$2(luvio, config) {
|
|
7538
7944
|
const resourceParams = createResourceParams$1(config);
|
|
7539
7945
|
return keyBuilder$3(luvio, resourceParams);
|
|
7540
7946
|
}
|
|
7541
7947
|
function typeCheckConfig$1(untrustedConfig) {
|
|
7542
7948
|
const config = {};
|
|
7543
|
-
typeCheckConfig$
|
|
7949
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
|
|
7544
7950
|
return config;
|
|
7545
7951
|
}
|
|
7546
7952
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -7589,7 +7995,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
7589
7995
|
});
|
|
7590
7996
|
}
|
|
7591
7997
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
7592
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7998
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
7593
7999
|
}
|
|
7594
8000
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
7595
8001
|
const { luvio, config } = context;
|
|
@@ -7615,10 +8021,10 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
|
|
|
7615
8021
|
};
|
|
7616
8022
|
|
|
7617
8023
|
function select(luvio, params) {
|
|
7618
|
-
return select$
|
|
8024
|
+
return select$I();
|
|
7619
8025
|
}
|
|
7620
8026
|
function keyBuilder$1(luvio, params) {
|
|
7621
|
-
return keyBuilder$
|
|
8027
|
+
return keyBuilder$G(luvio, {
|
|
7622
8028
|
slackUserId: params.urlParams.slackUserId
|
|
7623
8029
|
});
|
|
7624
8030
|
}
|
|
@@ -7646,7 +8052,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
7646
8052
|
const key = keyBuilder$1(luvio, params);
|
|
7647
8053
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
7648
8054
|
const storeMetadataParams = {
|
|
7649
|
-
ttl: TTL$
|
|
8055
|
+
ttl: TTL$3,
|
|
7650
8056
|
namespace: keyPrefix,
|
|
7651
8057
|
version: VERSION$m,
|
|
7652
8058
|
representationName: RepresentationType$h
|
|
@@ -7674,14 +8080,14 @@ const getSlackUser_ConfigPropertyMetadata = [
|
|
|
7674
8080
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7675
8081
|
];
|
|
7676
8082
|
const getSlackUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSlackUser_ConfigPropertyMetadata);
|
|
7677
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
8083
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$p(getSlackUser_ConfigPropertyMetadata);
|
|
7678
8084
|
function keyBuilder(luvio, config) {
|
|
7679
8085
|
const resourceParams = createResourceParams(config);
|
|
7680
8086
|
return keyBuilder$1(luvio, resourceParams);
|
|
7681
8087
|
}
|
|
7682
8088
|
function typeCheckConfig(untrustedConfig) {
|
|
7683
8089
|
const config = {};
|
|
7684
|
-
typeCheckConfig$
|
|
8090
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
|
|
7685
8091
|
return config;
|
|
7686
8092
|
}
|
|
7687
8093
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -7730,7 +8136,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
7730
8136
|
});
|
|
7731
8137
|
}
|
|
7732
8138
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
7733
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8139
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
7734
8140
|
}
|
|
7735
8141
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
7736
8142
|
const { luvio, config } = context;
|
|
@@ -7755,4 +8161,4 @@ const getSlackUserAdapterFactory = (luvio) => function SlackBridge__getSlackUser
|
|
|
7755
8161
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
7756
8162
|
};
|
|
7757
8163
|
|
|
7758
|
-
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 };
|