@salesforce/lds-adapters-platform-slack-bridge 1.332.0-dev25 → 1.332.0-dev26
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 +1134 -728
- 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 +954 -481
- 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$e, typeCheckConfig as typeCheckConfig$o, StoreKeyMap, createResourceParams as createResourceParams$o } 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$m(obj, path = 'SlackBridgeEmojiValueOutputRepresentation') {
|
|
|
199
199
|
})();
|
|
200
200
|
return v_error === undefined ? null : v_error;
|
|
201
201
|
}
|
|
202
|
-
const select$
|
|
202
|
+
const select$H = function SlackBridgeEmojiValueOutputRepresentationSelect() {
|
|
203
203
|
return {
|
|
204
204
|
kind: 'Fragment',
|
|
205
205
|
version: VERSION$m,
|
|
@@ -239,7 +239,7 @@ function equals$m(existing, incoming) {
|
|
|
239
239
|
return true;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
const TTL$
|
|
242
|
+
const TTL$3 = 2592000000;
|
|
243
243
|
const VERSION$l = "a0e1530372a57d61a1264218124bbb5c";
|
|
244
244
|
function validate$l(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
245
245
|
const v_error = (() => {
|
|
@@ -388,20 +388,20 @@ function validate$l(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
|
388
388
|
return v_error === undefined ? null : v_error;
|
|
389
389
|
}
|
|
390
390
|
const RepresentationType$h = 'SlackBridgeEmojiOutputRepresentation';
|
|
391
|
-
function keyBuilder$
|
|
391
|
+
function keyBuilder$F(luvio, config) {
|
|
392
392
|
return keyPrefix + '::' + RepresentationType$h + ':' + 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$F(luvio, keyParams);
|
|
399
399
|
}
|
|
400
400
|
function normalize$h(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$G = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
404
|
+
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$H();
|
|
405
405
|
return {
|
|
406
406
|
kind: 'Fragment',
|
|
407
407
|
version: VERSION$l,
|
|
@@ -480,7 +480,7 @@ const ingest$h = function SlackBridgeEmojiOutputRepresentationIngest(input, path
|
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
const key = keyBuilderFromType$a(luvio, input);
|
|
483
|
-
const ttlToUse = TTL$
|
|
483
|
+
const ttlToUse = TTL$3;
|
|
484
484
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "SlackBridge", VERSION$l, RepresentationType$h, equals$l);
|
|
485
485
|
return createLink(key);
|
|
486
486
|
};
|
|
@@ -494,7 +494,7 @@ function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
494
494
|
});
|
|
495
495
|
}
|
|
496
496
|
|
|
497
|
-
const TTL$
|
|
497
|
+
const TTL$2 = 900000;
|
|
498
498
|
const VERSION$k = "90811622b2f6ba9d9a4525dd179a478a";
|
|
499
499
|
function validate$k(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
500
500
|
const v_error = (() => {
|
|
@@ -1005,14 +1005,14 @@ function validate$k(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
1005
1005
|
return v_error === undefined ? null : v_error;
|
|
1006
1006
|
}
|
|
1007
1007
|
const RepresentationType$g = 'SlackBridgeUserInfoOutputRepresentation';
|
|
1008
|
-
function keyBuilder$
|
|
1008
|
+
function keyBuilder$E(luvio, config) {
|
|
1009
1009
|
return keyPrefix + '::' + RepresentationType$g + ':' + config.slackUserId;
|
|
1010
1010
|
}
|
|
1011
1011
|
function keyBuilderFromType$9(luvio, object) {
|
|
1012
1012
|
const keyParams = {
|
|
1013
1013
|
slackUserId: object.slackUserId
|
|
1014
1014
|
};
|
|
1015
|
-
return keyBuilder$
|
|
1015
|
+
return keyBuilder$E(luvio, keyParams);
|
|
1016
1016
|
}
|
|
1017
1017
|
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
1018
1018
|
const input_statusEmoji = input.statusEmoji;
|
|
@@ -1031,7 +1031,7 @@ function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
return input;
|
|
1033
1033
|
}
|
|
1034
|
-
const select$
|
|
1034
|
+
const select$F = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
1035
1035
|
return {
|
|
1036
1036
|
kind: 'Fragment',
|
|
1037
1037
|
version: VERSION$k,
|
|
@@ -1104,7 +1104,7 @@ const select$D = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1104
1104
|
name: 'statusEmoji',
|
|
1105
1105
|
kind: 'Link',
|
|
1106
1106
|
nullable: true,
|
|
1107
|
-
fragment: select$
|
|
1107
|
+
fragment: select$G()
|
|
1108
1108
|
},
|
|
1109
1109
|
{
|
|
1110
1110
|
name: 'statusMessage',
|
|
@@ -1310,7 +1310,7 @@ const ingest$g = function SlackBridgeUserInfoOutputRepresentationIngest(input, p
|
|
|
1310
1310
|
}
|
|
1311
1311
|
}
|
|
1312
1312
|
const key = keyBuilderFromType$9(luvio, input);
|
|
1313
|
-
const ttlToUse = TTL$
|
|
1313
|
+
const ttlToUse = TTL$2;
|
|
1314
1314
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SlackBridge", VERSION$k, RepresentationType$g, equals$k);
|
|
1315
1315
|
return createLink(key);
|
|
1316
1316
|
};
|
|
@@ -1327,6 +1327,7 @@ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1327
1327
|
}
|
|
1328
1328
|
}
|
|
1329
1329
|
|
|
1330
|
+
const TTL$1 = 900000;
|
|
1330
1331
|
const VERSION$j = "252fe3a6509a770a876e36552ad8dd06";
|
|
1331
1332
|
function validate$j(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
|
|
1332
1333
|
const v_error = (() => {
|
|
@@ -1666,19 +1667,19 @@ function validate$j(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1666
1667
|
return v_error === undefined ? null : v_error;
|
|
1667
1668
|
}
|
|
1668
1669
|
const RepresentationType$f = 'SlackBridgeConversationInfoOutputRepresentation';
|
|
1669
|
-
function keyBuilder$
|
|
1670
|
+
function keyBuilder$D(luvio, config) {
|
|
1670
1671
|
return keyPrefix + '::' + RepresentationType$f + ':' + config.id;
|
|
1671
1672
|
}
|
|
1672
1673
|
function keyBuilderFromType$8(luvio, object) {
|
|
1673
1674
|
const keyParams = {
|
|
1674
1675
|
id: object.id
|
|
1675
1676
|
};
|
|
1676
|
-
return keyBuilder$
|
|
1677
|
+
return keyBuilder$D(luvio, keyParams);
|
|
1677
1678
|
}
|
|
1678
1679
|
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
1679
1680
|
return input;
|
|
1680
1681
|
}
|
|
1681
|
-
const select$
|
|
1682
|
+
const select$E = function SlackBridgeConversationInfoOutputRepresentationSelect() {
|
|
1682
1683
|
return {
|
|
1683
1684
|
kind: 'Fragment',
|
|
1684
1685
|
version: VERSION$j,
|
|
@@ -1842,7 +1843,7 @@ const ingest$f = function SlackBridgeConversationInfoOutputRepresentationIngest(
|
|
|
1842
1843
|
}
|
|
1843
1844
|
}
|
|
1844
1845
|
const key = keyBuilderFromType$8(luvio, input);
|
|
1845
|
-
const ttlToUse =
|
|
1846
|
+
const ttlToUse = TTL$1;
|
|
1846
1847
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "SlackBridge", VERSION$j, RepresentationType$f, equals$j);
|
|
1847
1848
|
return createLink(key);
|
|
1848
1849
|
};
|
|
@@ -1934,7 +1935,7 @@ function validate$i(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
|
1934
1935
|
})();
|
|
1935
1936
|
return v_error === undefined ? null : v_error;
|
|
1936
1937
|
}
|
|
1937
|
-
const select$
|
|
1938
|
+
const select$D = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
1938
1939
|
return {
|
|
1939
1940
|
kind: 'Fragment',
|
|
1940
1941
|
version: VERSION$i,
|
|
@@ -2008,7 +2009,7 @@ function validate$h(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
|
2008
2009
|
})();
|
|
2009
2010
|
return v_error === undefined ? null : v_error;
|
|
2010
2011
|
}
|
|
2011
|
-
const select$
|
|
2012
|
+
const select$C = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
2012
2013
|
return {
|
|
2013
2014
|
kind: 'Fragment',
|
|
2014
2015
|
version: VERSION$h,
|
|
@@ -2123,8 +2124,8 @@ function validate$g(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
2123
2124
|
})();
|
|
2124
2125
|
return v_error === undefined ? null : v_error;
|
|
2125
2126
|
}
|
|
2126
|
-
const select$
|
|
2127
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
2127
|
+
const select$B = function SlackBridgeContentVersionOutputRepresentationSelect() {
|
|
2128
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$C();
|
|
2128
2129
|
return {
|
|
2129
2130
|
kind: 'Fragment',
|
|
2130
2131
|
version: VERSION$g,
|
|
@@ -2236,9 +2237,9 @@ function validate$f(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
2236
2237
|
})();
|
|
2237
2238
|
return v_error === undefined ? null : v_error;
|
|
2238
2239
|
}
|
|
2239
|
-
const select$
|
|
2240
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
2241
|
-
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$
|
|
2240
|
+
const select$A = function SlackBridgeContentDocumentOutputRepresentationSelect() {
|
|
2241
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$C();
|
|
2242
|
+
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$B();
|
|
2242
2243
|
return {
|
|
2243
2244
|
kind: 'Fragment',
|
|
2244
2245
|
version: VERSION$f,
|
|
@@ -2471,20 +2472,20 @@ function validate$e(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
2471
2472
|
return v_error === undefined ? null : v_error;
|
|
2472
2473
|
}
|
|
2473
2474
|
const RepresentationType$e = 'SlackBridgeFileOutputRepresentation';
|
|
2474
|
-
function keyBuilder$
|
|
2475
|
+
function keyBuilder$C(luvio, config) {
|
|
2475
2476
|
return keyPrefix + '::' + RepresentationType$e + ':' + (config.uniqueKey === null ? '' : config.uniqueKey);
|
|
2476
2477
|
}
|
|
2477
2478
|
function keyBuilderFromType$7(luvio, object) {
|
|
2478
2479
|
const keyParams = {
|
|
2479
2480
|
uniqueKey: object.uniqueKey
|
|
2480
2481
|
};
|
|
2481
|
-
return keyBuilder$
|
|
2482
|
+
return keyBuilder$C(luvio, keyParams);
|
|
2482
2483
|
}
|
|
2483
2484
|
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
2484
2485
|
return input;
|
|
2485
2486
|
}
|
|
2486
|
-
const select$
|
|
2487
|
-
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$
|
|
2487
|
+
const select$z = function SlackBridgeFileOutputRepresentationSelect() {
|
|
2488
|
+
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$A();
|
|
2488
2489
|
return {
|
|
2489
2490
|
kind: 'Fragment',
|
|
2490
2491
|
version: VERSION$e,
|
|
@@ -3017,8 +3018,8 @@ function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
|
3017
3018
|
}
|
|
3018
3019
|
return input;
|
|
3019
3020
|
}
|
|
3020
|
-
const select$
|
|
3021
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
3021
|
+
const select$y = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
3022
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$D();
|
|
3022
3023
|
return {
|
|
3023
3024
|
kind: 'Fragment',
|
|
3024
3025
|
version: VERSION$d,
|
|
@@ -3042,7 +3043,7 @@ const select$w = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
3042
3043
|
name: 'files',
|
|
3043
3044
|
kind: 'Link',
|
|
3044
3045
|
plural: true,
|
|
3045
|
-
fragment: select$
|
|
3046
|
+
fragment: select$z()
|
|
3046
3047
|
},
|
|
3047
3048
|
{
|
|
3048
3049
|
name: 'includesCustomEmoji',
|
|
@@ -3350,7 +3351,7 @@ function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
|
3350
3351
|
}
|
|
3351
3352
|
return input;
|
|
3352
3353
|
}
|
|
3353
|
-
const select$
|
|
3354
|
+
const select$x = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
|
|
3354
3355
|
return {
|
|
3355
3356
|
kind: 'Fragment',
|
|
3356
3357
|
version: VERSION$c,
|
|
@@ -3364,7 +3365,7 @@ const select$v = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
3364
3365
|
name: 'messages',
|
|
3365
3366
|
kind: 'Link',
|
|
3366
3367
|
plural: true,
|
|
3367
|
-
fragment: select$
|
|
3368
|
+
fragment: select$y()
|
|
3368
3369
|
},
|
|
3369
3370
|
{
|
|
3370
3371
|
name: 'nextCursor',
|
|
@@ -3422,7 +3423,7 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3422
3423
|
}
|
|
3423
3424
|
}
|
|
3424
3425
|
|
|
3425
|
-
const VERSION$b = "
|
|
3426
|
+
const VERSION$b = "1119f2c416d047eefd8303c5a2d590ae";
|
|
3426
3427
|
function validate$b(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
3427
3428
|
const v_error = (() => {
|
|
3428
3429
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3490,6 +3491,30 @@ function validate$b(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
|
3490
3491
|
message += '\n' + obj_conversationInfo_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3491
3492
|
return new TypeError(message);
|
|
3492
3493
|
}
|
|
3494
|
+
const obj_conversationInfos = obj.conversationInfos;
|
|
3495
|
+
const path_conversationInfos = path + '.conversationInfos';
|
|
3496
|
+
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
3497
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
3498
|
+
}
|
|
3499
|
+
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
3500
|
+
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
3501
|
+
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
3502
|
+
if (typeof obj_conversationInfos_item !== 'object') {
|
|
3503
|
+
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
3504
|
+
}
|
|
3505
|
+
}
|
|
3506
|
+
const obj_emojis = obj.emojis;
|
|
3507
|
+
const path_emojis = path + '.emojis';
|
|
3508
|
+
if (!ArrayIsArray(obj_emojis)) {
|
|
3509
|
+
return new TypeError('Expected "array" but received "' + typeof obj_emojis + '" (at "' + path_emojis + '")');
|
|
3510
|
+
}
|
|
3511
|
+
for (let i = 0; i < obj_emojis.length; i++) {
|
|
3512
|
+
const obj_emojis_item = obj_emojis[i];
|
|
3513
|
+
const path_emojis_item = path_emojis + '[' + i + ']';
|
|
3514
|
+
if (typeof obj_emojis_item !== 'object') {
|
|
3515
|
+
return new TypeError('Expected "object" but received "' + typeof obj_emojis_item + '" (at "' + path_emojis_item + '")');
|
|
3516
|
+
}
|
|
3517
|
+
}
|
|
3493
3518
|
const obj_history = obj.history;
|
|
3494
3519
|
const path_history = path + '.history';
|
|
3495
3520
|
if (typeof obj_history !== 'object') {
|
|
@@ -3597,6 +3622,38 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
3597
3622
|
ttl: path.ttl
|
|
3598
3623
|
}, luvio, store, timestamp);
|
|
3599
3624
|
}
|
|
3625
|
+
const input_conversationInfos = input.conversationInfos;
|
|
3626
|
+
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
3627
|
+
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
3628
|
+
const input_conversationInfos_item = input_conversationInfos[i];
|
|
3629
|
+
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
3630
|
+
input_conversationInfos[i] = ingest$f(input_conversationInfos_item, {
|
|
3631
|
+
fullPath: input_conversationInfos_item_id,
|
|
3632
|
+
propertyName: i,
|
|
3633
|
+
parent: {
|
|
3634
|
+
data: input,
|
|
3635
|
+
key: path.fullPath,
|
|
3636
|
+
existing: existing,
|
|
3637
|
+
},
|
|
3638
|
+
ttl: path.ttl
|
|
3639
|
+
}, luvio, store, timestamp);
|
|
3640
|
+
}
|
|
3641
|
+
const input_emojis = input.emojis;
|
|
3642
|
+
const input_emojis_id = path.fullPath + '__emojis';
|
|
3643
|
+
for (let i = 0; i < input_emojis.length; i++) {
|
|
3644
|
+
const input_emojis_item = input_emojis[i];
|
|
3645
|
+
let input_emojis_item_id = input_emojis_id + '__' + i;
|
|
3646
|
+
input_emojis[i] = ingest$h(input_emojis_item, {
|
|
3647
|
+
fullPath: input_emojis_item_id,
|
|
3648
|
+
propertyName: i,
|
|
3649
|
+
parent: {
|
|
3650
|
+
data: input,
|
|
3651
|
+
key: path.fullPath,
|
|
3652
|
+
existing: existing,
|
|
3653
|
+
},
|
|
3654
|
+
ttl: path.ttl
|
|
3655
|
+
}, luvio, store, timestamp);
|
|
3656
|
+
}
|
|
3600
3657
|
const input_history = input.history;
|
|
3601
3658
|
const input_history_id = path.fullPath + '__history';
|
|
3602
3659
|
input.history = ingest$c(input_history, {
|
|
@@ -3627,7 +3684,7 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
3627
3684
|
}
|
|
3628
3685
|
return input;
|
|
3629
3686
|
}
|
|
3630
|
-
const select$
|
|
3687
|
+
const select$w = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
3631
3688
|
return {
|
|
3632
3689
|
kind: 'Fragment',
|
|
3633
3690
|
version: VERSION$b,
|
|
@@ -3645,18 +3702,30 @@ const select$u = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3645
3702
|
name: 'contextUserInfo',
|
|
3646
3703
|
kind: 'Link',
|
|
3647
3704
|
nullable: true,
|
|
3648
|
-
fragment: select$
|
|
3705
|
+
fragment: select$F()
|
|
3649
3706
|
},
|
|
3650
3707
|
{
|
|
3651
3708
|
name: 'conversationInfo',
|
|
3652
3709
|
kind: 'Link',
|
|
3653
3710
|
nullable: true,
|
|
3654
|
-
fragment: select$
|
|
3711
|
+
fragment: select$E()
|
|
3712
|
+
},
|
|
3713
|
+
{
|
|
3714
|
+
name: 'conversationInfos',
|
|
3715
|
+
kind: 'Link',
|
|
3716
|
+
plural: true,
|
|
3717
|
+
fragment: select$E()
|
|
3718
|
+
},
|
|
3719
|
+
{
|
|
3720
|
+
name: 'emojis',
|
|
3721
|
+
kind: 'Link',
|
|
3722
|
+
plural: true,
|
|
3723
|
+
fragment: select$G()
|
|
3655
3724
|
},
|
|
3656
3725
|
{
|
|
3657
3726
|
name: 'history',
|
|
3658
3727
|
kind: 'Link',
|
|
3659
|
-
fragment: select$
|
|
3728
|
+
fragment: select$x()
|
|
3660
3729
|
},
|
|
3661
3730
|
{
|
|
3662
3731
|
name: 'teamId',
|
|
@@ -3670,7 +3739,7 @@ const select$u = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3670
3739
|
name: 'userInfos',
|
|
3671
3740
|
kind: 'Link',
|
|
3672
3741
|
plural: true,
|
|
3673
|
-
fragment: select$
|
|
3742
|
+
fragment: select$F()
|
|
3674
3743
|
},
|
|
3675
3744
|
{
|
|
3676
3745
|
name: 'websocketUrl',
|
|
@@ -3715,6 +3784,26 @@ function equals$b(existing, incoming) {
|
|
|
3715
3784
|
existing_conversationInfo.__ref === incoming_conversationInfo.__ref))) {
|
|
3716
3785
|
return false;
|
|
3717
3786
|
}
|
|
3787
|
+
const existing_conversationInfos = existing.conversationInfos;
|
|
3788
|
+
const incoming_conversationInfos = incoming.conversationInfos;
|
|
3789
|
+
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
3790
|
+
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
3791
|
+
return false;
|
|
3792
|
+
}
|
|
3793
|
+
});
|
|
3794
|
+
if (equals_conversationInfos_items === false) {
|
|
3795
|
+
return false;
|
|
3796
|
+
}
|
|
3797
|
+
const existing_emojis = existing.emojis;
|
|
3798
|
+
const incoming_emojis = incoming.emojis;
|
|
3799
|
+
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
3800
|
+
if (!(existing_emojis_item.__ref === incoming_emojis_item.__ref)) {
|
|
3801
|
+
return false;
|
|
3802
|
+
}
|
|
3803
|
+
});
|
|
3804
|
+
if (equals_emojis_items === false) {
|
|
3805
|
+
return false;
|
|
3806
|
+
}
|
|
3718
3807
|
const existing_history = existing.history;
|
|
3719
3808
|
const incoming_history = incoming.history;
|
|
3720
3809
|
if (!(existing_history.__ref === incoming_history.__ref)) {
|
|
@@ -3768,6 +3857,14 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3768
3857
|
if (input.conversationInfo !== null && typeof input.conversationInfo === 'object') {
|
|
3769
3858
|
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfo);
|
|
3770
3859
|
}
|
|
3860
|
+
const input_conversationInfos_length = input.conversationInfos.length;
|
|
3861
|
+
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
3862
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfos[i]);
|
|
3863
|
+
}
|
|
3864
|
+
const input_emojis_length = input.emojis.length;
|
|
3865
|
+
for (let i = 0; i < input_emojis_length; i++) {
|
|
3866
|
+
getTypeCacheKeys$h(rootKeySet, luvio, input.emojis[i]);
|
|
3867
|
+
}
|
|
3771
3868
|
getTypeCacheKeys$c(rootKeySet, luvio, input.history, () => rootKey + "__" + "history");
|
|
3772
3869
|
const input_userInfos_length = input.userInfos.length;
|
|
3773
3870
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
@@ -3775,22 +3872,22 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3775
3872
|
}
|
|
3776
3873
|
}
|
|
3777
3874
|
|
|
3778
|
-
function select$
|
|
3779
|
-
return select$
|
|
3875
|
+
function select$v(luvio, params) {
|
|
3876
|
+
return select$w();
|
|
3780
3877
|
}
|
|
3781
|
-
function keyBuilder$
|
|
3878
|
+
function keyBuilder$B(luvio, params) {
|
|
3782
3879
|
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 + ')';
|
|
3783
3880
|
}
|
|
3784
|
-
function getResponseCacheKeys$
|
|
3785
|
-
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$
|
|
3881
|
+
function getResponseCacheKeys$n(storeKeyMap, luvio, resourceParams, response) {
|
|
3882
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$B(luvio, resourceParams));
|
|
3786
3883
|
}
|
|
3787
|
-
function ingestSuccess$
|
|
3884
|
+
function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
|
|
3788
3885
|
const { body } = response;
|
|
3789
|
-
const key = keyBuilder$
|
|
3886
|
+
const key = keyBuilder$B(luvio, resourceParams);
|
|
3790
3887
|
luvio.storeIngest(key, ingest$b, body);
|
|
3791
3888
|
const snapshot = luvio.storeLookup({
|
|
3792
3889
|
recordId: key,
|
|
3793
|
-
node: select$
|
|
3890
|
+
node: select$v(),
|
|
3794
3891
|
variables: {},
|
|
3795
3892
|
}, snapshotRefresh);
|
|
3796
3893
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3801,13 +3898,13 @@ function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3801
3898
|
deepFreeze(snapshot.data);
|
|
3802
3899
|
return snapshot;
|
|
3803
3900
|
}
|
|
3804
|
-
function ingestError$
|
|
3805
|
-
const key = keyBuilder$
|
|
3901
|
+
function ingestError$d(luvio, params, error, snapshotRefresh) {
|
|
3902
|
+
const key = keyBuilder$B(luvio, params);
|
|
3806
3903
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3807
3904
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3808
3905
|
return errorSnapshot;
|
|
3809
3906
|
}
|
|
3810
|
-
function createResourceRequest$
|
|
3907
|
+
function createResourceRequest$n(config) {
|
|
3811
3908
|
const headers = {};
|
|
3812
3909
|
return {
|
|
3813
3910
|
baseUri: '/services/data/v63.0',
|
|
@@ -3821,7 +3918,7 @@ function createResourceRequest$l(config) {
|
|
|
3821
3918
|
};
|
|
3822
3919
|
}
|
|
3823
3920
|
|
|
3824
|
-
const adapterName$
|
|
3921
|
+
const adapterName$n = 'getSlackConversation';
|
|
3825
3922
|
const getSlackConversation_ConfigPropertyMetadata = [
|
|
3826
3923
|
generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3827
3924
|
generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -3833,86 +3930,86 @@ const getSlackConversation_ConfigPropertyMetadata = [
|
|
|
3833
3930
|
generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3834
3931
|
generateParamConfigMetadata('teamId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3835
3932
|
];
|
|
3836
|
-
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3837
|
-
const createResourceParams$
|
|
3838
|
-
function keyBuilder$
|
|
3839
|
-
const resourceParams = createResourceParams$
|
|
3840
|
-
return keyBuilder$
|
|
3933
|
+
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, getSlackConversation_ConfigPropertyMetadata);
|
|
3934
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$o(getSlackConversation_ConfigPropertyMetadata);
|
|
3935
|
+
function keyBuilder$A(luvio, config) {
|
|
3936
|
+
const resourceParams = createResourceParams$n(config);
|
|
3937
|
+
return keyBuilder$B(luvio, resourceParams);
|
|
3841
3938
|
}
|
|
3842
|
-
function typeCheckConfig$
|
|
3939
|
+
function typeCheckConfig$n(untrustedConfig) {
|
|
3843
3940
|
const config = {};
|
|
3844
|
-
typeCheckConfig$
|
|
3941
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
|
|
3845
3942
|
return config;
|
|
3846
3943
|
}
|
|
3847
|
-
function validateAdapterConfig$
|
|
3944
|
+
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
3848
3945
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3849
3946
|
return null;
|
|
3850
3947
|
}
|
|
3851
3948
|
if (process.env.NODE_ENV !== 'production') {
|
|
3852
3949
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3853
3950
|
}
|
|
3854
|
-
const config = typeCheckConfig$
|
|
3951
|
+
const config = typeCheckConfig$n(untrustedConfig);
|
|
3855
3952
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3856
3953
|
return null;
|
|
3857
3954
|
}
|
|
3858
3955
|
return config;
|
|
3859
3956
|
}
|
|
3860
|
-
function adapterFragment$
|
|
3861
|
-
createResourceParams$
|
|
3862
|
-
return select$
|
|
3957
|
+
function adapterFragment$d(luvio, config) {
|
|
3958
|
+
createResourceParams$n(config);
|
|
3959
|
+
return select$v();
|
|
3863
3960
|
}
|
|
3864
|
-
function onFetchResponseSuccess$
|
|
3865
|
-
const snapshot = ingestSuccess$
|
|
3961
|
+
function onFetchResponseSuccess$d(luvio, config, resourceParams, response) {
|
|
3962
|
+
const snapshot = ingestSuccess$k(luvio, resourceParams, response, {
|
|
3866
3963
|
config,
|
|
3867
|
-
resolve: () => buildNetworkSnapshot$
|
|
3964
|
+
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
|
|
3868
3965
|
});
|
|
3869
3966
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3870
3967
|
}
|
|
3871
|
-
function onFetchResponseError$
|
|
3872
|
-
const snapshot = ingestError$
|
|
3968
|
+
function onFetchResponseError$d(luvio, config, resourceParams, response) {
|
|
3969
|
+
const snapshot = ingestError$d(luvio, resourceParams, response, {
|
|
3873
3970
|
config,
|
|
3874
|
-
resolve: () => buildNetworkSnapshot$
|
|
3971
|
+
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
|
|
3875
3972
|
});
|
|
3876
3973
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3877
3974
|
}
|
|
3878
|
-
function buildNetworkSnapshot$
|
|
3879
|
-
const resourceParams = createResourceParams$
|
|
3880
|
-
const request = createResourceRequest$
|
|
3975
|
+
function buildNetworkSnapshot$n(luvio, config, options) {
|
|
3976
|
+
const resourceParams = createResourceParams$n(config);
|
|
3977
|
+
const request = createResourceRequest$n(resourceParams);
|
|
3881
3978
|
return luvio.dispatchResourceRequest(request, options)
|
|
3882
3979
|
.then((response) => {
|
|
3883
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3980
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$d(luvio, config, resourceParams, response), () => {
|
|
3884
3981
|
const cache = new StoreKeyMap();
|
|
3885
|
-
getResponseCacheKeys$
|
|
3982
|
+
getResponseCacheKeys$n(cache, luvio, resourceParams, response.body);
|
|
3886
3983
|
return cache;
|
|
3887
3984
|
});
|
|
3888
3985
|
}, (response) => {
|
|
3889
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3986
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$d(luvio, config, resourceParams, response));
|
|
3890
3987
|
});
|
|
3891
3988
|
}
|
|
3892
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3893
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3989
|
+
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
3990
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$n, undefined, false);
|
|
3894
3991
|
}
|
|
3895
|
-
function buildCachedSnapshotCachePolicy$
|
|
3992
|
+
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
3896
3993
|
const { luvio, config } = context;
|
|
3897
3994
|
const selector = {
|
|
3898
|
-
recordId: keyBuilder$
|
|
3899
|
-
node: adapterFragment$
|
|
3995
|
+
recordId: keyBuilder$A(luvio, config),
|
|
3996
|
+
node: adapterFragment$d(luvio, config),
|
|
3900
3997
|
variables: {},
|
|
3901
3998
|
};
|
|
3902
3999
|
const cacheSnapshot = storeLookup(selector, {
|
|
3903
4000
|
config,
|
|
3904
|
-
resolve: () => buildNetworkSnapshot$
|
|
4001
|
+
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
|
|
3905
4002
|
});
|
|
3906
4003
|
return cacheSnapshot;
|
|
3907
4004
|
}
|
|
3908
4005
|
const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
|
|
3909
|
-
const config = validateAdapterConfig$
|
|
4006
|
+
const config = validateAdapterConfig$n(untrustedConfig, getSlackConversation_ConfigPropertyNames);
|
|
3910
4007
|
// Invalid or incomplete config
|
|
3911
4008
|
if (config === null) {
|
|
3912
4009
|
return null;
|
|
3913
4010
|
}
|
|
3914
4011
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3915
|
-
buildCachedSnapshotCachePolicy$
|
|
4012
|
+
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
|
|
3916
4013
|
};
|
|
3917
4014
|
|
|
3918
4015
|
const VERSION$a = "769b5b0ed94219341e9be74c08e63aed";
|
|
@@ -3940,14 +4037,14 @@ function validate$a(obj, path = 'SlackBridgePostMessageOutputRepresentation') {
|
|
|
3940
4037
|
return v_error === undefined ? null : v_error;
|
|
3941
4038
|
}
|
|
3942
4039
|
const RepresentationType$a = 'SlackBridgePostMessageOutputRepresentation';
|
|
3943
|
-
function keyBuilder$
|
|
4040
|
+
function keyBuilder$z(luvio, config) {
|
|
3944
4041
|
return keyPrefix + '::' + RepresentationType$a + ':' + config.channelId;
|
|
3945
4042
|
}
|
|
3946
4043
|
function keyBuilderFromType$6(luvio, object) {
|
|
3947
4044
|
const keyParams = {
|
|
3948
4045
|
channelId: object.channelId
|
|
3949
4046
|
};
|
|
3950
|
-
return keyBuilder$
|
|
4047
|
+
return keyBuilder$z(luvio, keyParams);
|
|
3951
4048
|
}
|
|
3952
4049
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
3953
4050
|
const input_postedMessage = input.postedMessage;
|
|
@@ -3964,7 +4061,7 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
3964
4061
|
}, luvio, store, timestamp);
|
|
3965
4062
|
return input;
|
|
3966
4063
|
}
|
|
3967
|
-
const select$
|
|
4064
|
+
const select$u = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
3968
4065
|
return {
|
|
3969
4066
|
kind: 'Fragment',
|
|
3970
4067
|
version: VERSION$a,
|
|
@@ -3977,7 +4074,7 @@ const select$s = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
|
3977
4074
|
{
|
|
3978
4075
|
name: 'postedMessage',
|
|
3979
4076
|
kind: 'Link',
|
|
3980
|
-
fragment: select$
|
|
4077
|
+
fragment: select$y()
|
|
3981
4078
|
},
|
|
3982
4079
|
{
|
|
3983
4080
|
name: 'timestamp',
|
|
@@ -4027,19 +4124,19 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4027
4124
|
getTypeCacheKeys$d(rootKeySet, luvio, input.postedMessage, () => rootKey + "__" + "postedMessage");
|
|
4028
4125
|
}
|
|
4029
4126
|
|
|
4030
|
-
function select$
|
|
4031
|
-
return select$
|
|
4127
|
+
function select$t(luvio, params) {
|
|
4128
|
+
return select$u();
|
|
4032
4129
|
}
|
|
4033
|
-
function getResponseCacheKeys$
|
|
4130
|
+
function getResponseCacheKeys$m(storeKeyMap, luvio, resourceParams, response) {
|
|
4034
4131
|
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
4035
4132
|
}
|
|
4036
|
-
function ingestSuccess$
|
|
4133
|
+
function ingestSuccess$j(luvio, resourceParams, response) {
|
|
4037
4134
|
const { body } = response;
|
|
4038
4135
|
const key = keyBuilderFromType$6(luvio, body);
|
|
4039
4136
|
luvio.storeIngest(key, ingest$a, body);
|
|
4040
4137
|
const snapshot = luvio.storeLookup({
|
|
4041
4138
|
recordId: key,
|
|
4042
|
-
node: select$
|
|
4139
|
+
node: select$t(),
|
|
4043
4140
|
variables: {},
|
|
4044
4141
|
});
|
|
4045
4142
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4050,7 +4147,7 @@ function ingestSuccess$h(luvio, resourceParams, response) {
|
|
|
4050
4147
|
deepFreeze(snapshot.data);
|
|
4051
4148
|
return snapshot;
|
|
4052
4149
|
}
|
|
4053
|
-
function createResourceRequest$
|
|
4150
|
+
function createResourceRequest$m(config) {
|
|
4054
4151
|
const headers = {};
|
|
4055
4152
|
return {
|
|
4056
4153
|
baseUri: '/services/data/v63.0',
|
|
@@ -4064,7 +4161,7 @@ function createResourceRequest$k(config) {
|
|
|
4064
4161
|
};
|
|
4065
4162
|
}
|
|
4066
4163
|
|
|
4067
|
-
const adapterName$
|
|
4164
|
+
const adapterName$m = 'postSlackConversation';
|
|
4068
4165
|
const postSlackConversation_ConfigPropertyMetadata = [
|
|
4069
4166
|
generateParamConfigMetadata('channelId', true, 2 /* Body */, 0 /* String */),
|
|
4070
4167
|
generateParamConfigMetadata('linkNames', false, 2 /* Body */, 1 /* Boolean */),
|
|
@@ -4073,37 +4170,37 @@ const postSlackConversation_ConfigPropertyMetadata = [
|
|
|
4073
4170
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
4074
4171
|
generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
|
|
4075
4172
|
];
|
|
4076
|
-
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4077
|
-
const createResourceParams$
|
|
4078
|
-
function typeCheckConfig$
|
|
4173
|
+
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, postSlackConversation_ConfigPropertyMetadata);
|
|
4174
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$o(postSlackConversation_ConfigPropertyMetadata);
|
|
4175
|
+
function typeCheckConfig$m(untrustedConfig) {
|
|
4079
4176
|
const config = {};
|
|
4080
|
-
typeCheckConfig$
|
|
4177
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
|
|
4081
4178
|
return config;
|
|
4082
4179
|
}
|
|
4083
|
-
function validateAdapterConfig$
|
|
4180
|
+
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
4084
4181
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4085
4182
|
return null;
|
|
4086
4183
|
}
|
|
4087
4184
|
if (process.env.NODE_ENV !== 'production') {
|
|
4088
4185
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4089
4186
|
}
|
|
4090
|
-
const config = typeCheckConfig$
|
|
4187
|
+
const config = typeCheckConfig$m(untrustedConfig);
|
|
4091
4188
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4092
4189
|
return null;
|
|
4093
4190
|
}
|
|
4094
4191
|
return config;
|
|
4095
4192
|
}
|
|
4096
|
-
function buildNetworkSnapshot$
|
|
4097
|
-
const resourceParams = createResourceParams$
|
|
4098
|
-
const request = createResourceRequest$
|
|
4193
|
+
function buildNetworkSnapshot$m(luvio, config, options) {
|
|
4194
|
+
const resourceParams = createResourceParams$m(config);
|
|
4195
|
+
const request = createResourceRequest$m(resourceParams);
|
|
4099
4196
|
return luvio.dispatchResourceRequest(request, options)
|
|
4100
4197
|
.then((response) => {
|
|
4101
4198
|
return luvio.handleSuccessResponse(() => {
|
|
4102
|
-
const snapshot = ingestSuccess$
|
|
4199
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response);
|
|
4103
4200
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4104
4201
|
}, () => {
|
|
4105
4202
|
const cache = new StoreKeyMap();
|
|
4106
|
-
getResponseCacheKeys$
|
|
4203
|
+
getResponseCacheKeys$m(cache, luvio, resourceParams, response.body);
|
|
4107
4204
|
return cache;
|
|
4108
4205
|
});
|
|
4109
4206
|
}, (response) => {
|
|
@@ -4113,28 +4210,28 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
4113
4210
|
}
|
|
4114
4211
|
const postSlackConversationAdapterFactory = (luvio) => {
|
|
4115
4212
|
return function postSlackConversation(untrustedConfig) {
|
|
4116
|
-
const config = validateAdapterConfig$
|
|
4213
|
+
const config = validateAdapterConfig$m(untrustedConfig, postSlackConversation_ConfigPropertyNames);
|
|
4117
4214
|
// Invalid or incomplete config
|
|
4118
4215
|
if (config === null) {
|
|
4119
4216
|
throw new Error('Invalid config for "postSlackConversation"');
|
|
4120
4217
|
}
|
|
4121
|
-
return buildNetworkSnapshot$
|
|
4218
|
+
return buildNetworkSnapshot$m(luvio, config);
|
|
4122
4219
|
};
|
|
4123
4220
|
};
|
|
4124
4221
|
|
|
4125
|
-
function select$
|
|
4126
|
-
return select$
|
|
4222
|
+
function select$s(luvio, params) {
|
|
4223
|
+
return select$z();
|
|
4127
4224
|
}
|
|
4128
|
-
function getResponseCacheKeys$
|
|
4225
|
+
function getResponseCacheKeys$l(storeKeyMap, luvio, resourceParams, response) {
|
|
4129
4226
|
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
4130
4227
|
}
|
|
4131
|
-
function ingestSuccess$
|
|
4228
|
+
function ingestSuccess$i(luvio, resourceParams, response) {
|
|
4132
4229
|
const { body } = response;
|
|
4133
4230
|
const key = keyBuilderFromType$7(luvio, body);
|
|
4134
4231
|
luvio.storeIngest(key, ingest$e, body);
|
|
4135
4232
|
const snapshot = luvio.storeLookup({
|
|
4136
4233
|
recordId: key,
|
|
4137
|
-
node: select$
|
|
4234
|
+
node: select$s(),
|
|
4138
4235
|
variables: {},
|
|
4139
4236
|
});
|
|
4140
4237
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4145,7 +4242,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
|
|
|
4145
4242
|
deepFreeze(snapshot.data);
|
|
4146
4243
|
return snapshot;
|
|
4147
4244
|
}
|
|
4148
|
-
function createResourceRequest$
|
|
4245
|
+
function createResourceRequest$l(config) {
|
|
4149
4246
|
const headers = {};
|
|
4150
4247
|
return {
|
|
4151
4248
|
baseUri: '/services/data/v63.0',
|
|
@@ -4159,7 +4256,7 @@ function createResourceRequest$j(config) {
|
|
|
4159
4256
|
};
|
|
4160
4257
|
}
|
|
4161
4258
|
|
|
4162
|
-
const adapterName$
|
|
4259
|
+
const adapterName$l = 'postSlackFile';
|
|
4163
4260
|
const postSlackFile_ConfigPropertyMetadata = [
|
|
4164
4261
|
generateParamConfigMetadata('base64EncodedFileData', true, 2 /* Body */, 0 /* String */),
|
|
4165
4262
|
generateParamConfigMetadata('channels', true, 2 /* Body */, 0 /* String */, true),
|
|
@@ -4170,37 +4267,37 @@ const postSlackFile_ConfigPropertyMetadata = [
|
|
|
4170
4267
|
generateParamConfigMetadata('threadTs', true, 2 /* Body */, 0 /* String */),
|
|
4171
4268
|
generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
|
|
4172
4269
|
];
|
|
4173
|
-
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4174
|
-
const createResourceParams$
|
|
4175
|
-
function typeCheckConfig$
|
|
4270
|
+
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, postSlackFile_ConfigPropertyMetadata);
|
|
4271
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$o(postSlackFile_ConfigPropertyMetadata);
|
|
4272
|
+
function typeCheckConfig$l(untrustedConfig) {
|
|
4176
4273
|
const config = {};
|
|
4177
|
-
typeCheckConfig$
|
|
4274
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
|
|
4178
4275
|
return config;
|
|
4179
4276
|
}
|
|
4180
|
-
function validateAdapterConfig$
|
|
4277
|
+
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
4181
4278
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4182
4279
|
return null;
|
|
4183
4280
|
}
|
|
4184
4281
|
if (process.env.NODE_ENV !== 'production') {
|
|
4185
4282
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4186
4283
|
}
|
|
4187
|
-
const config = typeCheckConfig$
|
|
4284
|
+
const config = typeCheckConfig$l(untrustedConfig);
|
|
4188
4285
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4189
4286
|
return null;
|
|
4190
4287
|
}
|
|
4191
4288
|
return config;
|
|
4192
4289
|
}
|
|
4193
|
-
function buildNetworkSnapshot$
|
|
4194
|
-
const resourceParams = createResourceParams$
|
|
4195
|
-
const request = createResourceRequest$
|
|
4290
|
+
function buildNetworkSnapshot$l(luvio, config, options) {
|
|
4291
|
+
const resourceParams = createResourceParams$l(config);
|
|
4292
|
+
const request = createResourceRequest$l(resourceParams);
|
|
4196
4293
|
return luvio.dispatchResourceRequest(request, options)
|
|
4197
4294
|
.then((response) => {
|
|
4198
4295
|
return luvio.handleSuccessResponse(() => {
|
|
4199
|
-
const snapshot = ingestSuccess$
|
|
4296
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response);
|
|
4200
4297
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4201
4298
|
}, () => {
|
|
4202
4299
|
const cache = new StoreKeyMap();
|
|
4203
|
-
getResponseCacheKeys$
|
|
4300
|
+
getResponseCacheKeys$l(cache, luvio, resourceParams, response.body);
|
|
4204
4301
|
return cache;
|
|
4205
4302
|
});
|
|
4206
4303
|
}, (response) => {
|
|
@@ -4210,12 +4307,12 @@ function buildNetworkSnapshot$j(luvio, config, options) {
|
|
|
4210
4307
|
}
|
|
4211
4308
|
const postSlackFileAdapterFactory = (luvio) => {
|
|
4212
4309
|
return function postSlackFile(untrustedConfig) {
|
|
4213
|
-
const config = validateAdapterConfig$
|
|
4310
|
+
const config = validateAdapterConfig$l(untrustedConfig, postSlackFile_ConfigPropertyNames);
|
|
4214
4311
|
// Invalid or incomplete config
|
|
4215
4312
|
if (config === null) {
|
|
4216
4313
|
throw new Error('Invalid config for "postSlackFile"');
|
|
4217
4314
|
}
|
|
4218
|
-
return buildNetworkSnapshot$
|
|
4315
|
+
return buildNetworkSnapshot$l(luvio, config);
|
|
4219
4316
|
};
|
|
4220
4317
|
};
|
|
4221
4318
|
|
|
@@ -4244,14 +4341,14 @@ function validate$9(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentatio
|
|
|
4244
4341
|
return v_error === undefined ? null : v_error;
|
|
4245
4342
|
}
|
|
4246
4343
|
const RepresentationType$9 = 'SlackBridgeRecordChannelInfoOutputRepresentation';
|
|
4247
|
-
function keyBuilder$
|
|
4344
|
+
function keyBuilder$y(luvio, config) {
|
|
4248
4345
|
return keyPrefix + '::' + RepresentationType$9 + ':' + config.relatedRecordId;
|
|
4249
4346
|
}
|
|
4250
4347
|
function keyBuilderFromType$5(luvio, object) {
|
|
4251
4348
|
const keyParams = {
|
|
4252
4349
|
relatedRecordId: object.relatedRecordId
|
|
4253
4350
|
};
|
|
4254
|
-
return keyBuilder$
|
|
4351
|
+
return keyBuilder$y(luvio, keyParams);
|
|
4255
4352
|
}
|
|
4256
4353
|
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
4257
4354
|
const input_conversationInfo = input.conversationInfo;
|
|
@@ -4268,7 +4365,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
4268
4365
|
}, luvio, store, timestamp);
|
|
4269
4366
|
return input;
|
|
4270
4367
|
}
|
|
4271
|
-
const select$
|
|
4368
|
+
const select$r = function SlackBridgeRecordChannelInfoOutputRepresentationSelect() {
|
|
4272
4369
|
return {
|
|
4273
4370
|
kind: 'Fragment',
|
|
4274
4371
|
version: VERSION$9,
|
|
@@ -4277,7 +4374,7 @@ const select$p = function SlackBridgeRecordChannelInfoOutputRepresentationSelect
|
|
|
4277
4374
|
{
|
|
4278
4375
|
name: 'conversationInfo',
|
|
4279
4376
|
kind: 'Link',
|
|
4280
|
-
fragment: select$
|
|
4377
|
+
fragment: select$E()
|
|
4281
4378
|
},
|
|
4282
4379
|
{
|
|
4283
4380
|
name: 'relatedRecordId',
|
|
@@ -4331,19 +4428,19 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4331
4428
|
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfo);
|
|
4332
4429
|
}
|
|
4333
4430
|
|
|
4334
|
-
function select$
|
|
4335
|
-
return select$
|
|
4431
|
+
function select$q(luvio, params) {
|
|
4432
|
+
return select$r();
|
|
4336
4433
|
}
|
|
4337
|
-
function getResponseCacheKeys$
|
|
4434
|
+
function getResponseCacheKeys$k(storeKeyMap, luvio, resourceParams, response) {
|
|
4338
4435
|
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
4339
4436
|
}
|
|
4340
|
-
function ingestSuccess$
|
|
4437
|
+
function ingestSuccess$h(luvio, resourceParams, response) {
|
|
4341
4438
|
const { body } = response;
|
|
4342
4439
|
const key = keyBuilderFromType$5(luvio, body);
|
|
4343
4440
|
luvio.storeIngest(key, ingest$9, body);
|
|
4344
4441
|
const snapshot = luvio.storeLookup({
|
|
4345
4442
|
recordId: key,
|
|
4346
|
-
node: select$
|
|
4443
|
+
node: select$q(),
|
|
4347
4444
|
variables: {},
|
|
4348
4445
|
});
|
|
4349
4446
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4354,7 +4451,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
|
|
|
4354
4451
|
deepFreeze(snapshot.data);
|
|
4355
4452
|
return snapshot;
|
|
4356
4453
|
}
|
|
4357
|
-
function createResourceRequest$
|
|
4454
|
+
function createResourceRequest$k(config) {
|
|
4358
4455
|
const headers = {};
|
|
4359
4456
|
return {
|
|
4360
4457
|
baseUri: '/services/data/v63.0',
|
|
@@ -4368,16 +4465,16 @@ function createResourceRequest$i(config) {
|
|
|
4368
4465
|
};
|
|
4369
4466
|
}
|
|
4370
4467
|
|
|
4371
|
-
const adapterName$
|
|
4468
|
+
const adapterName$k = 'postSlackRecordChannelInfos';
|
|
4372
4469
|
const postSlackRecordChannelInfos_ConfigPropertyMetadata = [
|
|
4373
4470
|
generateParamConfigMetadata('conversationInfo', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4374
4471
|
generateParamConfigMetadata('relatedRecordId', true, 2 /* Body */, 0 /* String */),
|
|
4375
4472
|
];
|
|
4376
|
-
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4377
|
-
const createResourceParams$
|
|
4378
|
-
function typeCheckConfig$
|
|
4473
|
+
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
4474
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$o(postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
4475
|
+
function typeCheckConfig$k(untrustedConfig) {
|
|
4379
4476
|
const config = {};
|
|
4380
|
-
typeCheckConfig$
|
|
4477
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
4381
4478
|
const untrustedConfig_conversationInfo = untrustedConfig.conversationInfo;
|
|
4382
4479
|
if (untrustedIsObject(untrustedConfig_conversationInfo)) {
|
|
4383
4480
|
const untrustedConfig_conversationInfo_object = {};
|
|
@@ -4391,30 +4488,30 @@ function typeCheckConfig$i(untrustedConfig) {
|
|
|
4391
4488
|
}
|
|
4392
4489
|
return config;
|
|
4393
4490
|
}
|
|
4394
|
-
function validateAdapterConfig$
|
|
4491
|
+
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
4395
4492
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4396
4493
|
return null;
|
|
4397
4494
|
}
|
|
4398
4495
|
if (process.env.NODE_ENV !== 'production') {
|
|
4399
4496
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4400
4497
|
}
|
|
4401
|
-
const config = typeCheckConfig$
|
|
4498
|
+
const config = typeCheckConfig$k(untrustedConfig);
|
|
4402
4499
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4403
4500
|
return null;
|
|
4404
4501
|
}
|
|
4405
4502
|
return config;
|
|
4406
4503
|
}
|
|
4407
|
-
function buildNetworkSnapshot$
|
|
4408
|
-
const resourceParams = createResourceParams$
|
|
4409
|
-
const request = createResourceRequest$
|
|
4504
|
+
function buildNetworkSnapshot$k(luvio, config, options) {
|
|
4505
|
+
const resourceParams = createResourceParams$k(config);
|
|
4506
|
+
const request = createResourceRequest$k(resourceParams);
|
|
4410
4507
|
return luvio.dispatchResourceRequest(request, options)
|
|
4411
4508
|
.then((response) => {
|
|
4412
4509
|
return luvio.handleSuccessResponse(() => {
|
|
4413
|
-
const snapshot = ingestSuccess$
|
|
4510
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response);
|
|
4414
4511
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4415
4512
|
}, () => {
|
|
4416
4513
|
const cache = new StoreKeyMap();
|
|
4417
|
-
getResponseCacheKeys$
|
|
4514
|
+
getResponseCacheKeys$k(cache, luvio, resourceParams, response.body);
|
|
4418
4515
|
return cache;
|
|
4419
4516
|
});
|
|
4420
4517
|
}, (response) => {
|
|
@@ -4424,33 +4521,33 @@ function buildNetworkSnapshot$i(luvio, config, options) {
|
|
|
4424
4521
|
}
|
|
4425
4522
|
const postSlackRecordChannelInfosAdapterFactory = (luvio) => {
|
|
4426
4523
|
return function postSlackRecordChannelInfos(untrustedConfig) {
|
|
4427
|
-
const config = validateAdapterConfig$
|
|
4524
|
+
const config = validateAdapterConfig$k(untrustedConfig, postSlackRecordChannelInfos_ConfigPropertyNames);
|
|
4428
4525
|
// Invalid or incomplete config
|
|
4429
4526
|
if (config === null) {
|
|
4430
4527
|
throw new Error('Invalid config for "postSlackRecordChannelInfos"');
|
|
4431
4528
|
}
|
|
4432
|
-
return buildNetworkSnapshot$
|
|
4529
|
+
return buildNetworkSnapshot$k(luvio, config);
|
|
4433
4530
|
};
|
|
4434
4531
|
};
|
|
4435
4532
|
|
|
4436
|
-
function select$
|
|
4437
|
-
return select$
|
|
4533
|
+
function select$p(luvio, params) {
|
|
4534
|
+
return select$r();
|
|
4438
4535
|
}
|
|
4439
|
-
function keyBuilder$
|
|
4440
|
-
return keyBuilder$
|
|
4536
|
+
function keyBuilder$x(luvio, params) {
|
|
4537
|
+
return keyBuilder$y(luvio, {
|
|
4441
4538
|
relatedRecordId: params.urlParams.relatedRecordId
|
|
4442
4539
|
});
|
|
4443
4540
|
}
|
|
4444
|
-
function getResponseCacheKeys$
|
|
4541
|
+
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
4445
4542
|
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
4446
4543
|
}
|
|
4447
|
-
function ingestSuccess$
|
|
4544
|
+
function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
4448
4545
|
const { body } = response;
|
|
4449
|
-
const key = keyBuilder$
|
|
4546
|
+
const key = keyBuilder$x(luvio, resourceParams);
|
|
4450
4547
|
luvio.storeIngest(key, ingest$9, body);
|
|
4451
4548
|
const snapshot = luvio.storeLookup({
|
|
4452
4549
|
recordId: key,
|
|
4453
|
-
node: select$
|
|
4550
|
+
node: select$p(),
|
|
4454
4551
|
variables: {},
|
|
4455
4552
|
}, snapshotRefresh);
|
|
4456
4553
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4461,13 +4558,13 @@ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4461
4558
|
deepFreeze(snapshot.data);
|
|
4462
4559
|
return snapshot;
|
|
4463
4560
|
}
|
|
4464
|
-
function ingestError$
|
|
4465
|
-
const key = keyBuilder$
|
|
4561
|
+
function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
4562
|
+
const key = keyBuilder$x(luvio, params);
|
|
4466
4563
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4467
4564
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4468
4565
|
return errorSnapshot;
|
|
4469
4566
|
}
|
|
4470
|
-
function createResourceRequest$
|
|
4567
|
+
function createResourceRequest$j(config) {
|
|
4471
4568
|
const headers = {};
|
|
4472
4569
|
return {
|
|
4473
4570
|
baseUri: '/services/data/v63.0',
|
|
@@ -4481,90 +4578,90 @@ function createResourceRequest$h(config) {
|
|
|
4481
4578
|
};
|
|
4482
4579
|
}
|
|
4483
4580
|
|
|
4484
|
-
const adapterName$
|
|
4581
|
+
const adapterName$j = 'getSlackRecordChannelInfo';
|
|
4485
4582
|
const getSlackRecordChannelInfo_ConfigPropertyMetadata = [
|
|
4486
4583
|
generateParamConfigMetadata('relatedRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4487
4584
|
];
|
|
4488
|
-
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4489
|
-
const createResourceParams$
|
|
4490
|
-
function keyBuilder$
|
|
4491
|
-
const resourceParams = createResourceParams$
|
|
4492
|
-
return keyBuilder$
|
|
4585
|
+
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4586
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$o(getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4587
|
+
function keyBuilder$w(luvio, config) {
|
|
4588
|
+
const resourceParams = createResourceParams$j(config);
|
|
4589
|
+
return keyBuilder$x(luvio, resourceParams);
|
|
4493
4590
|
}
|
|
4494
|
-
function typeCheckConfig$
|
|
4591
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
4495
4592
|
const config = {};
|
|
4496
|
-
typeCheckConfig$
|
|
4593
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4497
4594
|
return config;
|
|
4498
4595
|
}
|
|
4499
|
-
function validateAdapterConfig$
|
|
4596
|
+
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
4500
4597
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4501
4598
|
return null;
|
|
4502
4599
|
}
|
|
4503
4600
|
if (process.env.NODE_ENV !== 'production') {
|
|
4504
4601
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4505
4602
|
}
|
|
4506
|
-
const config = typeCheckConfig$
|
|
4603
|
+
const config = typeCheckConfig$j(untrustedConfig);
|
|
4507
4604
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4508
4605
|
return null;
|
|
4509
4606
|
}
|
|
4510
4607
|
return config;
|
|
4511
4608
|
}
|
|
4512
|
-
function adapterFragment$
|
|
4513
|
-
createResourceParams$
|
|
4514
|
-
return select$
|
|
4609
|
+
function adapterFragment$c(luvio, config) {
|
|
4610
|
+
createResourceParams$j(config);
|
|
4611
|
+
return select$p();
|
|
4515
4612
|
}
|
|
4516
|
-
function onFetchResponseSuccess$
|
|
4517
|
-
const snapshot = ingestSuccess$
|
|
4613
|
+
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
4614
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
4518
4615
|
config,
|
|
4519
|
-
resolve: () => buildNetworkSnapshot$
|
|
4616
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4520
4617
|
});
|
|
4521
4618
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4522
4619
|
}
|
|
4523
|
-
function onFetchResponseError$
|
|
4524
|
-
const snapshot = ingestError$
|
|
4620
|
+
function onFetchResponseError$c(luvio, config, resourceParams, response) {
|
|
4621
|
+
const snapshot = ingestError$c(luvio, resourceParams, response, {
|
|
4525
4622
|
config,
|
|
4526
|
-
resolve: () => buildNetworkSnapshot$
|
|
4623
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4527
4624
|
});
|
|
4528
4625
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4529
4626
|
}
|
|
4530
|
-
function buildNetworkSnapshot$
|
|
4531
|
-
const resourceParams = createResourceParams$
|
|
4532
|
-
const request = createResourceRequest$
|
|
4627
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
4628
|
+
const resourceParams = createResourceParams$j(config);
|
|
4629
|
+
const request = createResourceRequest$j(resourceParams);
|
|
4533
4630
|
return luvio.dispatchResourceRequest(request, options)
|
|
4534
4631
|
.then((response) => {
|
|
4535
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4632
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => {
|
|
4536
4633
|
const cache = new StoreKeyMap();
|
|
4537
|
-
getResponseCacheKeys$
|
|
4634
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
4538
4635
|
return cache;
|
|
4539
4636
|
});
|
|
4540
4637
|
}, (response) => {
|
|
4541
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4638
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$c(luvio, config, resourceParams, response));
|
|
4542
4639
|
});
|
|
4543
4640
|
}
|
|
4544
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4545
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4641
|
+
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
4642
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$j, undefined, false);
|
|
4546
4643
|
}
|
|
4547
|
-
function buildCachedSnapshotCachePolicy$
|
|
4644
|
+
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
4548
4645
|
const { luvio, config } = context;
|
|
4549
4646
|
const selector = {
|
|
4550
|
-
recordId: keyBuilder$
|
|
4551
|
-
node: adapterFragment$
|
|
4647
|
+
recordId: keyBuilder$w(luvio, config),
|
|
4648
|
+
node: adapterFragment$c(luvio, config),
|
|
4552
4649
|
variables: {},
|
|
4553
4650
|
};
|
|
4554
4651
|
const cacheSnapshot = storeLookup(selector, {
|
|
4555
4652
|
config,
|
|
4556
|
-
resolve: () => buildNetworkSnapshot$
|
|
4653
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4557
4654
|
});
|
|
4558
4655
|
return cacheSnapshot;
|
|
4559
4656
|
}
|
|
4560
4657
|
const getSlackRecordChannelInfoAdapterFactory = (luvio) => function SlackBridge__getSlackRecordChannelInfo(untrustedConfig, requestContext) {
|
|
4561
|
-
const config = validateAdapterConfig$
|
|
4658
|
+
const config = validateAdapterConfig$j(untrustedConfig, getSlackRecordChannelInfo_ConfigPropertyNames);
|
|
4562
4659
|
// Invalid or incomplete config
|
|
4563
4660
|
if (config === null) {
|
|
4564
4661
|
return null;
|
|
4565
4662
|
}
|
|
4566
4663
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4567
|
-
buildCachedSnapshotCachePolicy$
|
|
4664
|
+
buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
|
|
4568
4665
|
};
|
|
4569
4666
|
|
|
4570
4667
|
const TTL = 500;
|
|
@@ -4642,7 +4739,7 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
4642
4739
|
}
|
|
4643
4740
|
return input;
|
|
4644
4741
|
}
|
|
4645
|
-
const select$
|
|
4742
|
+
const select$o = function SlackBridgeRelatedThreadsOutputRepresentationSelect() {
|
|
4646
4743
|
return {
|
|
4647
4744
|
kind: 'Fragment',
|
|
4648
4745
|
version: VERSION$8,
|
|
@@ -4652,13 +4749,13 @@ const select$m = function SlackBridgeRelatedThreadsOutputRepresentationSelect()
|
|
|
4652
4749
|
name: 'conversations',
|
|
4653
4750
|
kind: 'Link',
|
|
4654
4751
|
plural: true,
|
|
4655
|
-
fragment: select$
|
|
4752
|
+
fragment: select$E()
|
|
4656
4753
|
},
|
|
4657
4754
|
{
|
|
4658
4755
|
name: 'messages',
|
|
4659
4756
|
kind: 'Link',
|
|
4660
4757
|
plural: true,
|
|
4661
|
-
fragment: select$
|
|
4758
|
+
fragment: select$y()
|
|
4662
4759
|
},
|
|
4663
4760
|
{
|
|
4664
4761
|
name: 'teamId',
|
|
@@ -4725,22 +4822,22 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4725
4822
|
}
|
|
4726
4823
|
}
|
|
4727
4824
|
|
|
4728
|
-
function select$
|
|
4729
|
-
return select$
|
|
4825
|
+
function select$n(luvio, params) {
|
|
4826
|
+
return select$o();
|
|
4730
4827
|
}
|
|
4731
|
-
function keyBuilder$
|
|
4828
|
+
function keyBuilder$v(luvio, params) {
|
|
4732
4829
|
return keyPrefix + '::SlackBridgeRelatedThreadsOutputRepresentation:(' + 'entityId:' + params.urlParams.entityId + ')';
|
|
4733
4830
|
}
|
|
4734
|
-
function getResponseCacheKeys$
|
|
4735
|
-
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$
|
|
4831
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
4832
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$v(luvio, resourceParams));
|
|
4736
4833
|
}
|
|
4737
|
-
function ingestSuccess$
|
|
4834
|
+
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
4738
4835
|
const { body } = response;
|
|
4739
|
-
const key = keyBuilder$
|
|
4836
|
+
const key = keyBuilder$v(luvio, resourceParams);
|
|
4740
4837
|
luvio.storeIngest(key, ingest$8, body);
|
|
4741
4838
|
const snapshot = luvio.storeLookup({
|
|
4742
4839
|
recordId: key,
|
|
4743
|
-
node: select$
|
|
4840
|
+
node: select$n(),
|
|
4744
4841
|
variables: {},
|
|
4745
4842
|
}, snapshotRefresh);
|
|
4746
4843
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4751,8 +4848,8 @@ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4751
4848
|
deepFreeze(snapshot.data);
|
|
4752
4849
|
return snapshot;
|
|
4753
4850
|
}
|
|
4754
|
-
function ingestError$
|
|
4755
|
-
const key = keyBuilder$
|
|
4851
|
+
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
4852
|
+
const key = keyBuilder$v(luvio, params);
|
|
4756
4853
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4757
4854
|
const storeMetadataParams = {
|
|
4758
4855
|
ttl: TTL,
|
|
@@ -4763,7 +4860,7 @@ function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
|
4763
4860
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4764
4861
|
return errorSnapshot;
|
|
4765
4862
|
}
|
|
4766
|
-
function createResourceRequest$
|
|
4863
|
+
function createResourceRequest$i(config) {
|
|
4767
4864
|
const headers = {};
|
|
4768
4865
|
return {
|
|
4769
4866
|
baseUri: '/services/data/v63.0',
|
|
@@ -4777,90 +4874,90 @@ function createResourceRequest$g(config) {
|
|
|
4777
4874
|
};
|
|
4778
4875
|
}
|
|
4779
4876
|
|
|
4780
|
-
const adapterName$
|
|
4877
|
+
const adapterName$i = 'getRelatedThreads';
|
|
4781
4878
|
const getRelatedThreads_ConfigPropertyMetadata = [
|
|
4782
4879
|
generateParamConfigMetadata('entityId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4783
4880
|
];
|
|
4784
|
-
const getRelatedThreads_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4785
|
-
const createResourceParams$
|
|
4786
|
-
function keyBuilder$
|
|
4787
|
-
const resourceParams = createResourceParams$
|
|
4788
|
-
return keyBuilder$
|
|
4881
|
+
const getRelatedThreads_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getRelatedThreads_ConfigPropertyMetadata);
|
|
4882
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$o(getRelatedThreads_ConfigPropertyMetadata);
|
|
4883
|
+
function keyBuilder$u(luvio, config) {
|
|
4884
|
+
const resourceParams = createResourceParams$i(config);
|
|
4885
|
+
return keyBuilder$v(luvio, resourceParams);
|
|
4789
4886
|
}
|
|
4790
|
-
function typeCheckConfig$
|
|
4887
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
4791
4888
|
const config = {};
|
|
4792
|
-
typeCheckConfig$
|
|
4889
|
+
typeCheckConfig$o(untrustedConfig, config, getRelatedThreads_ConfigPropertyMetadata);
|
|
4793
4890
|
return config;
|
|
4794
4891
|
}
|
|
4795
|
-
function validateAdapterConfig$
|
|
4892
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
4796
4893
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4797
4894
|
return null;
|
|
4798
4895
|
}
|
|
4799
4896
|
if (process.env.NODE_ENV !== 'production') {
|
|
4800
4897
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4801
4898
|
}
|
|
4802
|
-
const config = typeCheckConfig$
|
|
4899
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
4803
4900
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4804
4901
|
return null;
|
|
4805
4902
|
}
|
|
4806
4903
|
return config;
|
|
4807
4904
|
}
|
|
4808
|
-
function adapterFragment$
|
|
4809
|
-
createResourceParams$
|
|
4810
|
-
return select$
|
|
4905
|
+
function adapterFragment$b(luvio, config) {
|
|
4906
|
+
createResourceParams$i(config);
|
|
4907
|
+
return select$n();
|
|
4811
4908
|
}
|
|
4812
|
-
function onFetchResponseSuccess$
|
|
4813
|
-
const snapshot = ingestSuccess$
|
|
4909
|
+
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
4910
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
|
|
4814
4911
|
config,
|
|
4815
|
-
resolve: () => buildNetworkSnapshot$
|
|
4912
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
4816
4913
|
});
|
|
4817
4914
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4818
4915
|
}
|
|
4819
|
-
function onFetchResponseError$
|
|
4820
|
-
const snapshot = ingestError$
|
|
4916
|
+
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
4917
|
+
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
4821
4918
|
config,
|
|
4822
|
-
resolve: () => buildNetworkSnapshot$
|
|
4919
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
4823
4920
|
});
|
|
4824
4921
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4825
4922
|
}
|
|
4826
|
-
function buildNetworkSnapshot$
|
|
4827
|
-
const resourceParams = createResourceParams$
|
|
4828
|
-
const request = createResourceRequest$
|
|
4923
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
4924
|
+
const resourceParams = createResourceParams$i(config);
|
|
4925
|
+
const request = createResourceRequest$i(resourceParams);
|
|
4829
4926
|
return luvio.dispatchResourceRequest(request, options)
|
|
4830
4927
|
.then((response) => {
|
|
4831
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4928
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
|
|
4832
4929
|
const cache = new StoreKeyMap();
|
|
4833
|
-
getResponseCacheKeys$
|
|
4930
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
4834
4931
|
return cache;
|
|
4835
4932
|
});
|
|
4836
4933
|
}, (response) => {
|
|
4837
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4934
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$b(luvio, config, resourceParams, response));
|
|
4838
4935
|
});
|
|
4839
4936
|
}
|
|
4840
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4841
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4937
|
+
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
4938
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
4842
4939
|
}
|
|
4843
|
-
function buildCachedSnapshotCachePolicy$
|
|
4940
|
+
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
4844
4941
|
const { luvio, config } = context;
|
|
4845
4942
|
const selector = {
|
|
4846
|
-
recordId: keyBuilder$
|
|
4847
|
-
node: adapterFragment$
|
|
4943
|
+
recordId: keyBuilder$u(luvio, config),
|
|
4944
|
+
node: adapterFragment$b(luvio, config),
|
|
4848
4945
|
variables: {},
|
|
4849
4946
|
};
|
|
4850
4947
|
const cacheSnapshot = storeLookup(selector, {
|
|
4851
4948
|
config,
|
|
4852
|
-
resolve: () => buildNetworkSnapshot$
|
|
4949
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
4853
4950
|
});
|
|
4854
4951
|
return cacheSnapshot;
|
|
4855
4952
|
}
|
|
4856
4953
|
const getRelatedThreadsAdapterFactory = (luvio) => function SlackBridge__getRelatedThreads(untrustedConfig, requestContext) {
|
|
4857
|
-
const config = validateAdapterConfig$
|
|
4954
|
+
const config = validateAdapterConfig$i(untrustedConfig, getRelatedThreads_ConfigPropertyNames);
|
|
4858
4955
|
// Invalid or incomplete config
|
|
4859
4956
|
if (config === null) {
|
|
4860
4957
|
return null;
|
|
4861
4958
|
}
|
|
4862
4959
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4863
|
-
buildCachedSnapshotCachePolicy$
|
|
4960
|
+
buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
|
|
4864
4961
|
};
|
|
4865
4962
|
|
|
4866
4963
|
const VERSION$7 = "32716a7de3c8810288467155d92e5124";
|
|
@@ -4883,19 +4980,19 @@ function validate$7(obj, path = 'SlackBridgeConversationMarkOutputRepresentation
|
|
|
4883
4980
|
return v_error === undefined ? null : v_error;
|
|
4884
4981
|
}
|
|
4885
4982
|
const RepresentationType$7 = 'SlackBridgeConversationMarkOutputRepresentation';
|
|
4886
|
-
function keyBuilder$
|
|
4983
|
+
function keyBuilder$t(luvio, config) {
|
|
4887
4984
|
return keyPrefix + '::' + RepresentationType$7 + ':' + config.channelId;
|
|
4888
4985
|
}
|
|
4889
4986
|
function keyBuilderFromType$4(luvio, object) {
|
|
4890
4987
|
const keyParams = {
|
|
4891
4988
|
channelId: object.channelId
|
|
4892
4989
|
};
|
|
4893
|
-
return keyBuilder$
|
|
4990
|
+
return keyBuilder$t(luvio, keyParams);
|
|
4894
4991
|
}
|
|
4895
4992
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
4896
4993
|
return input;
|
|
4897
4994
|
}
|
|
4898
|
-
const select$
|
|
4995
|
+
const select$m = function SlackBridgeConversationMarkOutputRepresentationSelect() {
|
|
4899
4996
|
return {
|
|
4900
4997
|
kind: 'Fragment',
|
|
4901
4998
|
version: VERSION$7,
|
|
@@ -4947,19 +5044,19 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4947
5044
|
});
|
|
4948
5045
|
}
|
|
4949
5046
|
|
|
4950
|
-
function select$
|
|
4951
|
-
return select$
|
|
5047
|
+
function select$l(luvio, params) {
|
|
5048
|
+
return select$m();
|
|
4952
5049
|
}
|
|
4953
|
-
function getResponseCacheKeys$
|
|
5050
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
4954
5051
|
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
4955
5052
|
}
|
|
4956
|
-
function ingestSuccess$
|
|
5053
|
+
function ingestSuccess$e(luvio, resourceParams, response) {
|
|
4957
5054
|
const { body } = response;
|
|
4958
5055
|
const key = keyBuilderFromType$4(luvio, body);
|
|
4959
5056
|
luvio.storeIngest(key, ingest$7, body);
|
|
4960
5057
|
const snapshot = luvio.storeLookup({
|
|
4961
5058
|
recordId: key,
|
|
4962
|
-
node: select$
|
|
5059
|
+
node: select$l(),
|
|
4963
5060
|
variables: {},
|
|
4964
5061
|
});
|
|
4965
5062
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4970,7 +5067,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
4970
5067
|
deepFreeze(snapshot.data);
|
|
4971
5068
|
return snapshot;
|
|
4972
5069
|
}
|
|
4973
|
-
function createResourceRequest$
|
|
5070
|
+
function createResourceRequest$h(config) {
|
|
4974
5071
|
const headers = {};
|
|
4975
5072
|
return {
|
|
4976
5073
|
baseUri: '/services/data/v63.0',
|
|
@@ -4984,43 +5081,43 @@ function createResourceRequest$f(config) {
|
|
|
4984
5081
|
};
|
|
4985
5082
|
}
|
|
4986
5083
|
|
|
4987
|
-
const adapterName$
|
|
5084
|
+
const adapterName$h = 'postSlackConversationMark';
|
|
4988
5085
|
const postSlackConversationMark_ConfigPropertyMetadata = [
|
|
4989
5086
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4990
5087
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4991
5088
|
generateParamConfigMetadata('messageTs', true, 1 /* QueryParameter */, 0 /* String */),
|
|
4992
5089
|
];
|
|
4993
|
-
const postSlackConversationMark_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4994
|
-
const createResourceParams$
|
|
4995
|
-
function typeCheckConfig$
|
|
5090
|
+
const postSlackConversationMark_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, postSlackConversationMark_ConfigPropertyMetadata);
|
|
5091
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$o(postSlackConversationMark_ConfigPropertyMetadata);
|
|
5092
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
4996
5093
|
const config = {};
|
|
4997
|
-
typeCheckConfig$
|
|
5094
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackConversationMark_ConfigPropertyMetadata);
|
|
4998
5095
|
return config;
|
|
4999
5096
|
}
|
|
5000
|
-
function validateAdapterConfig$
|
|
5097
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
5001
5098
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5002
5099
|
return null;
|
|
5003
5100
|
}
|
|
5004
5101
|
if (process.env.NODE_ENV !== 'production') {
|
|
5005
5102
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5006
5103
|
}
|
|
5007
|
-
const config = typeCheckConfig$
|
|
5104
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
5008
5105
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5009
5106
|
return null;
|
|
5010
5107
|
}
|
|
5011
5108
|
return config;
|
|
5012
5109
|
}
|
|
5013
|
-
function buildNetworkSnapshot$
|
|
5014
|
-
const resourceParams = createResourceParams$
|
|
5015
|
-
const request = createResourceRequest$
|
|
5110
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
5111
|
+
const resourceParams = createResourceParams$h(config);
|
|
5112
|
+
const request = createResourceRequest$h(resourceParams);
|
|
5016
5113
|
return luvio.dispatchResourceRequest(request, options)
|
|
5017
5114
|
.then((response) => {
|
|
5018
5115
|
return luvio.handleSuccessResponse(() => {
|
|
5019
|
-
const snapshot = ingestSuccess$
|
|
5116
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response);
|
|
5020
5117
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5021
5118
|
}, () => {
|
|
5022
5119
|
const cache = new StoreKeyMap();
|
|
5023
|
-
getResponseCacheKeys$
|
|
5120
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
5024
5121
|
return cache;
|
|
5025
5122
|
});
|
|
5026
5123
|
}, (response) => {
|
|
@@ -5030,12 +5127,12 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
5030
5127
|
}
|
|
5031
5128
|
const postSlackConversationMarkAdapterFactory = (luvio) => {
|
|
5032
5129
|
return function postSlackConversationMark(untrustedConfig) {
|
|
5033
|
-
const config = validateAdapterConfig$
|
|
5130
|
+
const config = validateAdapterConfig$h(untrustedConfig, postSlackConversationMark_ConfigPropertyNames);
|
|
5034
5131
|
// Invalid or incomplete config
|
|
5035
5132
|
if (config === null) {
|
|
5036
5133
|
throw new Error('Invalid config for "postSlackConversationMark"');
|
|
5037
5134
|
}
|
|
5038
|
-
return buildNetworkSnapshot$
|
|
5135
|
+
return buildNetworkSnapshot$h(luvio, config);
|
|
5039
5136
|
};
|
|
5040
5137
|
};
|
|
5041
5138
|
|
|
@@ -5092,19 +5189,19 @@ function validate$6(obj, path = 'SlackBridgeConversationMembersOutputRepresentat
|
|
|
5092
5189
|
return v_error === undefined ? null : v_error;
|
|
5093
5190
|
}
|
|
5094
5191
|
const RepresentationType$6 = 'SlackBridgeConversationMembersOutputRepresentation';
|
|
5095
|
-
function keyBuilder$
|
|
5192
|
+
function keyBuilder$s(luvio, config) {
|
|
5096
5193
|
return keyPrefix + '::' + RepresentationType$6 + ':' + config.channelId;
|
|
5097
5194
|
}
|
|
5098
5195
|
function keyBuilderFromType$3(luvio, object) {
|
|
5099
5196
|
const keyParams = {
|
|
5100
5197
|
channelId: object.channelId
|
|
5101
5198
|
};
|
|
5102
|
-
return keyBuilder$
|
|
5199
|
+
return keyBuilder$s(luvio, keyParams);
|
|
5103
5200
|
}
|
|
5104
5201
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
5105
5202
|
return input;
|
|
5106
5203
|
}
|
|
5107
|
-
const select$
|
|
5204
|
+
const select$k = function SlackBridgeConversationMembersOutputRepresentationSelect() {
|
|
5108
5205
|
return {
|
|
5109
5206
|
kind: 'Fragment',
|
|
5110
5207
|
version: VERSION$6,
|
|
@@ -5171,24 +5268,24 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5171
5268
|
});
|
|
5172
5269
|
}
|
|
5173
5270
|
|
|
5174
|
-
function select$
|
|
5175
|
-
return select$
|
|
5271
|
+
function select$j(luvio, params) {
|
|
5272
|
+
return select$k();
|
|
5176
5273
|
}
|
|
5177
|
-
function keyBuilder$
|
|
5178
|
-
return keyBuilder$
|
|
5274
|
+
function keyBuilder$r(luvio, params) {
|
|
5275
|
+
return keyBuilder$s(luvio, {
|
|
5179
5276
|
channelId: params.urlParams.channelId
|
|
5180
5277
|
});
|
|
5181
5278
|
}
|
|
5182
|
-
function getResponseCacheKeys$
|
|
5279
|
+
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
5183
5280
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
5184
5281
|
}
|
|
5185
|
-
function ingestSuccess$
|
|
5282
|
+
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
5186
5283
|
const { body } = response;
|
|
5187
|
-
const key = keyBuilder$
|
|
5284
|
+
const key = keyBuilder$r(luvio, resourceParams);
|
|
5188
5285
|
luvio.storeIngest(key, ingest$6, body);
|
|
5189
5286
|
const snapshot = luvio.storeLookup({
|
|
5190
5287
|
recordId: key,
|
|
5191
|
-
node: select$
|
|
5288
|
+
node: select$j(),
|
|
5192
5289
|
variables: {},
|
|
5193
5290
|
}, snapshotRefresh);
|
|
5194
5291
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5199,13 +5296,13 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5199
5296
|
deepFreeze(snapshot.data);
|
|
5200
5297
|
return snapshot;
|
|
5201
5298
|
}
|
|
5202
|
-
function ingestError$
|
|
5203
|
-
const key = keyBuilder$
|
|
5299
|
+
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
5300
|
+
const key = keyBuilder$r(luvio, params);
|
|
5204
5301
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5205
5302
|
luvio.storeIngestError(key, errorSnapshot);
|
|
5206
5303
|
return errorSnapshot;
|
|
5207
5304
|
}
|
|
5208
|
-
function createResourceRequest$
|
|
5305
|
+
function createResourceRequest$g(config) {
|
|
5209
5306
|
const headers = {};
|
|
5210
5307
|
return {
|
|
5211
5308
|
baseUri: '/services/data/v63.0',
|
|
@@ -5219,106 +5316,106 @@ function createResourceRequest$e(config) {
|
|
|
5219
5316
|
};
|
|
5220
5317
|
}
|
|
5221
5318
|
|
|
5222
|
-
const adapterName$
|
|
5319
|
+
const adapterName$g = 'getSlackConversationMembers';
|
|
5223
5320
|
const getSlackConversationMembers_ConfigPropertyMetadata = [
|
|
5224
5321
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5225
5322
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5226
5323
|
];
|
|
5227
|
-
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5228
|
-
const createResourceParams$
|
|
5229
|
-
function keyBuilder$
|
|
5230
|
-
const resourceParams = createResourceParams$
|
|
5231
|
-
return keyBuilder$
|
|
5324
|
+
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5325
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$o(getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5326
|
+
function keyBuilder$q(luvio, config) {
|
|
5327
|
+
const resourceParams = createResourceParams$g(config);
|
|
5328
|
+
return keyBuilder$r(luvio, resourceParams);
|
|
5232
5329
|
}
|
|
5233
|
-
function typeCheckConfig$
|
|
5330
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
5234
5331
|
const config = {};
|
|
5235
|
-
typeCheckConfig$
|
|
5332
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5236
5333
|
return config;
|
|
5237
5334
|
}
|
|
5238
|
-
function validateAdapterConfig$
|
|
5335
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
5239
5336
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5240
5337
|
return null;
|
|
5241
5338
|
}
|
|
5242
5339
|
if (process.env.NODE_ENV !== 'production') {
|
|
5243
5340
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5244
5341
|
}
|
|
5245
|
-
const config = typeCheckConfig$
|
|
5342
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
5246
5343
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5247
5344
|
return null;
|
|
5248
5345
|
}
|
|
5249
5346
|
return config;
|
|
5250
5347
|
}
|
|
5251
|
-
function adapterFragment$
|
|
5252
|
-
createResourceParams$
|
|
5253
|
-
return select$
|
|
5348
|
+
function adapterFragment$a(luvio, config) {
|
|
5349
|
+
createResourceParams$g(config);
|
|
5350
|
+
return select$j();
|
|
5254
5351
|
}
|
|
5255
|
-
function onFetchResponseSuccess$
|
|
5256
|
-
const snapshot = ingestSuccess$
|
|
5352
|
+
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
5353
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
5257
5354
|
config,
|
|
5258
|
-
resolve: () => buildNetworkSnapshot$
|
|
5355
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
5259
5356
|
});
|
|
5260
5357
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5261
5358
|
}
|
|
5262
|
-
function onFetchResponseError$
|
|
5263
|
-
const snapshot = ingestError$
|
|
5359
|
+
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
5360
|
+
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
5264
5361
|
config,
|
|
5265
|
-
resolve: () => buildNetworkSnapshot$
|
|
5362
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
5266
5363
|
});
|
|
5267
5364
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5268
5365
|
}
|
|
5269
|
-
function buildNetworkSnapshot$
|
|
5270
|
-
const resourceParams = createResourceParams$
|
|
5271
|
-
const request = createResourceRequest$
|
|
5366
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
5367
|
+
const resourceParams = createResourceParams$g(config);
|
|
5368
|
+
const request = createResourceRequest$g(resourceParams);
|
|
5272
5369
|
return luvio.dispatchResourceRequest(request, options)
|
|
5273
5370
|
.then((response) => {
|
|
5274
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
5371
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
5275
5372
|
const cache = new StoreKeyMap();
|
|
5276
|
-
getResponseCacheKeys$
|
|
5373
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
|
|
5277
5374
|
return cache;
|
|
5278
5375
|
});
|
|
5279
5376
|
}, (response) => {
|
|
5280
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
5377
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
|
|
5281
5378
|
});
|
|
5282
5379
|
}
|
|
5283
|
-
function buildNetworkSnapshotCachePolicy$
|
|
5284
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5380
|
+
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
5381
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
|
|
5285
5382
|
}
|
|
5286
|
-
function buildCachedSnapshotCachePolicy$
|
|
5383
|
+
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
5287
5384
|
const { luvio, config } = context;
|
|
5288
5385
|
const selector = {
|
|
5289
|
-
recordId: keyBuilder$
|
|
5290
|
-
node: adapterFragment$
|
|
5386
|
+
recordId: keyBuilder$q(luvio, config),
|
|
5387
|
+
node: adapterFragment$a(luvio, config),
|
|
5291
5388
|
variables: {},
|
|
5292
5389
|
};
|
|
5293
5390
|
const cacheSnapshot = storeLookup(selector, {
|
|
5294
5391
|
config,
|
|
5295
|
-
resolve: () => buildNetworkSnapshot$
|
|
5392
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
5296
5393
|
});
|
|
5297
5394
|
return cacheSnapshot;
|
|
5298
5395
|
}
|
|
5299
5396
|
const getSlackConversationMembersAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMembers(untrustedConfig, requestContext) {
|
|
5300
|
-
const config = validateAdapterConfig$
|
|
5397
|
+
const config = validateAdapterConfig$g(untrustedConfig, getSlackConversationMembers_ConfigPropertyNames);
|
|
5301
5398
|
// Invalid or incomplete config
|
|
5302
5399
|
if (config === null) {
|
|
5303
5400
|
return null;
|
|
5304
5401
|
}
|
|
5305
5402
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5306
|
-
buildCachedSnapshotCachePolicy$
|
|
5403
|
+
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
5307
5404
|
};
|
|
5308
5405
|
|
|
5309
|
-
function select$
|
|
5310
|
-
return select$
|
|
5406
|
+
function select$i(luvio, params) {
|
|
5407
|
+
return select$k();
|
|
5311
5408
|
}
|
|
5312
|
-
function getResponseCacheKeys$
|
|
5409
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
5313
5410
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
5314
5411
|
}
|
|
5315
|
-
function ingestSuccess$
|
|
5412
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
5316
5413
|
const { body } = response;
|
|
5317
5414
|
const key = keyBuilderFromType$3(luvio, body);
|
|
5318
5415
|
luvio.storeIngest(key, ingest$6, body);
|
|
5319
5416
|
const snapshot = luvio.storeLookup({
|
|
5320
5417
|
recordId: key,
|
|
5321
|
-
node: select$
|
|
5418
|
+
node: select$i(),
|
|
5322
5419
|
variables: {},
|
|
5323
5420
|
});
|
|
5324
5421
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5329,7 +5426,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
5329
5426
|
deepFreeze(snapshot.data);
|
|
5330
5427
|
return snapshot;
|
|
5331
5428
|
}
|
|
5332
|
-
function createResourceRequest$
|
|
5429
|
+
function createResourceRequest$f(config) {
|
|
5333
5430
|
const headers = {};
|
|
5334
5431
|
return {
|
|
5335
5432
|
baseUri: '/services/data/v63.0',
|
|
@@ -5343,43 +5440,43 @@ function createResourceRequest$d(config) {
|
|
|
5343
5440
|
};
|
|
5344
5441
|
}
|
|
5345
5442
|
|
|
5346
|
-
const adapterName$
|
|
5443
|
+
const adapterName$f = 'postSlackConversationMembers';
|
|
5347
5444
|
const postSlackConversationMembers_ConfigPropertyMetadata = [
|
|
5348
5445
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5349
5446
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5350
5447
|
generateParamConfigMetadata('slackUserIds', true, 2 /* Body */, 0 /* String */, true),
|
|
5351
5448
|
];
|
|
5352
|
-
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5353
|
-
const createResourceParams$
|
|
5354
|
-
function typeCheckConfig$
|
|
5449
|
+
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
5450
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$o(postSlackConversationMembers_ConfigPropertyMetadata);
|
|
5451
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
5355
5452
|
const config = {};
|
|
5356
|
-
typeCheckConfig$
|
|
5453
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
5357
5454
|
return config;
|
|
5358
5455
|
}
|
|
5359
|
-
function validateAdapterConfig$
|
|
5456
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
5360
5457
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5361
5458
|
return null;
|
|
5362
5459
|
}
|
|
5363
5460
|
if (process.env.NODE_ENV !== 'production') {
|
|
5364
5461
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5365
5462
|
}
|
|
5366
|
-
const config = typeCheckConfig$
|
|
5463
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
5367
5464
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5368
5465
|
return null;
|
|
5369
5466
|
}
|
|
5370
5467
|
return config;
|
|
5371
5468
|
}
|
|
5372
|
-
function buildNetworkSnapshot$
|
|
5373
|
-
const resourceParams = createResourceParams$
|
|
5374
|
-
const request = createResourceRequest$
|
|
5469
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
5470
|
+
const resourceParams = createResourceParams$f(config);
|
|
5471
|
+
const request = createResourceRequest$f(resourceParams);
|
|
5375
5472
|
return luvio.dispatchResourceRequest(request, options)
|
|
5376
5473
|
.then((response) => {
|
|
5377
5474
|
return luvio.handleSuccessResponse(() => {
|
|
5378
|
-
const snapshot = ingestSuccess$
|
|
5475
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response);
|
|
5379
5476
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5380
5477
|
}, () => {
|
|
5381
5478
|
const cache = new StoreKeyMap();
|
|
5382
|
-
getResponseCacheKeys$
|
|
5479
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
5383
5480
|
return cache;
|
|
5384
5481
|
});
|
|
5385
5482
|
}, (response) => {
|
|
@@ -5389,12 +5486,12 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
5389
5486
|
}
|
|
5390
5487
|
const postSlackConversationMembersAdapterFactory = (luvio) => {
|
|
5391
5488
|
return function postSlackConversationMembers(untrustedConfig) {
|
|
5392
|
-
const config = validateAdapterConfig$
|
|
5489
|
+
const config = validateAdapterConfig$f(untrustedConfig, postSlackConversationMembers_ConfigPropertyNames);
|
|
5393
5490
|
// Invalid or incomplete config
|
|
5394
5491
|
if (config === null) {
|
|
5395
5492
|
throw new Error('Invalid config for "postSlackConversationMembers"');
|
|
5396
5493
|
}
|
|
5397
|
-
return buildNetworkSnapshot$
|
|
5494
|
+
return buildNetworkSnapshot$f(luvio, config);
|
|
5398
5495
|
};
|
|
5399
5496
|
};
|
|
5400
5497
|
|
|
@@ -5418,19 +5515,19 @@ function validate$5(obj, path = 'SlackBridgeConversationMemberOutputRepresentati
|
|
|
5418
5515
|
return v_error === undefined ? null : v_error;
|
|
5419
5516
|
}
|
|
5420
5517
|
const RepresentationType$5 = 'SlackBridgeConversationMemberOutputRepresentation';
|
|
5421
|
-
function keyBuilder$
|
|
5518
|
+
function keyBuilder$p(luvio, config) {
|
|
5422
5519
|
return keyPrefix + '::' + RepresentationType$5 + ':' + config.channelId;
|
|
5423
5520
|
}
|
|
5424
5521
|
function keyBuilderFromType$2(luvio, object) {
|
|
5425
5522
|
const keyParams = {
|
|
5426
5523
|
channelId: object.channelId
|
|
5427
5524
|
};
|
|
5428
|
-
return keyBuilder$
|
|
5525
|
+
return keyBuilder$p(luvio, keyParams);
|
|
5429
5526
|
}
|
|
5430
5527
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
5431
5528
|
return input;
|
|
5432
5529
|
}
|
|
5433
|
-
const select$
|
|
5530
|
+
const select$h = function SlackBridgeConversationMemberOutputRepresentationSelect() {
|
|
5434
5531
|
return {
|
|
5435
5532
|
kind: 'Fragment',
|
|
5436
5533
|
version: VERSION$5,
|
|
@@ -5482,13 +5579,13 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5482
5579
|
});
|
|
5483
5580
|
}
|
|
5484
5581
|
|
|
5485
|
-
function keyBuilder$
|
|
5486
|
-
return keyBuilder$
|
|
5582
|
+
function keyBuilder$o(luvio, params) {
|
|
5583
|
+
return keyBuilder$p(luvio, {
|
|
5487
5584
|
channelId: params.urlParams.channelId
|
|
5488
5585
|
});
|
|
5489
5586
|
}
|
|
5490
|
-
function getResponseCacheKeys$
|
|
5491
|
-
const key = keyBuilder$
|
|
5587
|
+
function getResponseCacheKeys$e(cacheKeyMap, luvio, resourceParams) {
|
|
5588
|
+
const key = keyBuilder$o(luvio, resourceParams);
|
|
5492
5589
|
cacheKeyMap.set(key, {
|
|
5493
5590
|
namespace: keyPrefix,
|
|
5494
5591
|
representationName: RepresentationType$5,
|
|
@@ -5496,10 +5593,10 @@ function getResponseCacheKeys$c(cacheKeyMap, luvio, resourceParams) {
|
|
|
5496
5593
|
});
|
|
5497
5594
|
}
|
|
5498
5595
|
function evictSuccess$2(luvio, resourceParams) {
|
|
5499
|
-
const key = keyBuilder$
|
|
5596
|
+
const key = keyBuilder$o(luvio, resourceParams);
|
|
5500
5597
|
luvio.storeEvict(key);
|
|
5501
5598
|
}
|
|
5502
|
-
function createResourceRequest$
|
|
5599
|
+
function createResourceRequest$e(config) {
|
|
5503
5600
|
const headers = {};
|
|
5504
5601
|
return {
|
|
5505
5602
|
baseUri: '/services/data/v63.0',
|
|
@@ -5513,35 +5610,35 @@ function createResourceRequest$c(config) {
|
|
|
5513
5610
|
};
|
|
5514
5611
|
}
|
|
5515
5612
|
|
|
5516
|
-
const adapterName$
|
|
5613
|
+
const adapterName$e = 'deleteSlackConversationMember';
|
|
5517
5614
|
const deleteSlackConversationMember_ConfigPropertyMetadata = [
|
|
5518
5615
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5519
5616
|
generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5520
5617
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5521
5618
|
];
|
|
5522
|
-
const deleteSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5523
|
-
const createResourceParams$
|
|
5524
|
-
function typeCheckConfig$
|
|
5619
|
+
const deleteSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
5620
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$o(deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
5621
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
5525
5622
|
const config = {};
|
|
5526
|
-
typeCheckConfig$
|
|
5623
|
+
typeCheckConfig$o(untrustedConfig, config, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
5527
5624
|
return config;
|
|
5528
5625
|
}
|
|
5529
|
-
function validateAdapterConfig$
|
|
5626
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
5530
5627
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5531
5628
|
return null;
|
|
5532
5629
|
}
|
|
5533
5630
|
if (process.env.NODE_ENV !== 'production') {
|
|
5534
5631
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5535
5632
|
}
|
|
5536
|
-
const config = typeCheckConfig$
|
|
5633
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
5537
5634
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5538
5635
|
return null;
|
|
5539
5636
|
}
|
|
5540
5637
|
return config;
|
|
5541
5638
|
}
|
|
5542
|
-
function buildNetworkSnapshot$
|
|
5543
|
-
const resourceParams = createResourceParams$
|
|
5544
|
-
const request = createResourceRequest$
|
|
5639
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
5640
|
+
const resourceParams = createResourceParams$e(config);
|
|
5641
|
+
const request = createResourceRequest$e(resourceParams);
|
|
5545
5642
|
return luvio.dispatchResourceRequest(request, options)
|
|
5546
5643
|
.then(() => {
|
|
5547
5644
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -5549,7 +5646,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
5549
5646
|
return luvio.storeBroadcast();
|
|
5550
5647
|
}, () => {
|
|
5551
5648
|
const cache = new StoreKeyMap();
|
|
5552
|
-
getResponseCacheKeys$
|
|
5649
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams);
|
|
5553
5650
|
return cache;
|
|
5554
5651
|
});
|
|
5555
5652
|
}, (response) => {
|
|
@@ -5559,33 +5656,33 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
5559
5656
|
}
|
|
5560
5657
|
const deleteSlackConversationMemberAdapterFactory = (luvio) => {
|
|
5561
5658
|
return function SlackBridgedeleteSlackConversationMember(untrustedConfig) {
|
|
5562
|
-
const config = validateAdapterConfig$
|
|
5659
|
+
const config = validateAdapterConfig$e(untrustedConfig, deleteSlackConversationMember_ConfigPropertyNames);
|
|
5563
5660
|
// Invalid or incomplete config
|
|
5564
5661
|
if (config === null) {
|
|
5565
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
5662
|
+
throw new Error(`Invalid config for "${adapterName$e}"`);
|
|
5566
5663
|
}
|
|
5567
|
-
return buildNetworkSnapshot$
|
|
5664
|
+
return buildNetworkSnapshot$e(luvio, config);
|
|
5568
5665
|
};
|
|
5569
5666
|
};
|
|
5570
5667
|
|
|
5571
|
-
function select$
|
|
5572
|
-
return select$
|
|
5668
|
+
function select$g(luvio, params) {
|
|
5669
|
+
return select$h();
|
|
5573
5670
|
}
|
|
5574
|
-
function keyBuilder$
|
|
5575
|
-
return keyBuilder$
|
|
5671
|
+
function keyBuilder$n(luvio, params) {
|
|
5672
|
+
return keyBuilder$p(luvio, {
|
|
5576
5673
|
channelId: params.urlParams.channelId
|
|
5577
5674
|
});
|
|
5578
5675
|
}
|
|
5579
|
-
function getResponseCacheKeys$
|
|
5676
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
5580
5677
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
5581
5678
|
}
|
|
5582
|
-
function ingestSuccess$
|
|
5679
|
+
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
5583
5680
|
const { body } = response;
|
|
5584
|
-
const key = keyBuilder$
|
|
5681
|
+
const key = keyBuilder$n(luvio, resourceParams);
|
|
5585
5682
|
luvio.storeIngest(key, ingest$5, body);
|
|
5586
5683
|
const snapshot = luvio.storeLookup({
|
|
5587
5684
|
recordId: key,
|
|
5588
|
-
node: select$
|
|
5685
|
+
node: select$g(),
|
|
5589
5686
|
variables: {},
|
|
5590
5687
|
}, snapshotRefresh);
|
|
5591
5688
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5596,13 +5693,13 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5596
5693
|
deepFreeze(snapshot.data);
|
|
5597
5694
|
return snapshot;
|
|
5598
5695
|
}
|
|
5599
|
-
function ingestError$
|
|
5600
|
-
const key = keyBuilder$
|
|
5696
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
5697
|
+
const key = keyBuilder$n(luvio, params);
|
|
5601
5698
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5602
5699
|
luvio.storeIngestError(key, errorSnapshot);
|
|
5603
5700
|
return errorSnapshot;
|
|
5604
5701
|
}
|
|
5605
|
-
function createResourceRequest$
|
|
5702
|
+
function createResourceRequest$d(config) {
|
|
5606
5703
|
const headers = {};
|
|
5607
5704
|
return {
|
|
5608
5705
|
baseUri: '/services/data/v63.0',
|
|
@@ -5616,92 +5713,92 @@ function createResourceRequest$b(config) {
|
|
|
5616
5713
|
};
|
|
5617
5714
|
}
|
|
5618
5715
|
|
|
5619
|
-
const adapterName$
|
|
5716
|
+
const adapterName$d = 'getSlackConversationMember';
|
|
5620
5717
|
const getSlackConversationMember_ConfigPropertyMetadata = [
|
|
5621
5718
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5622
5719
|
generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5623
5720
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5624
5721
|
];
|
|
5625
|
-
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5626
|
-
const createResourceParams$
|
|
5627
|
-
function keyBuilder$
|
|
5628
|
-
const resourceParams = createResourceParams$
|
|
5629
|
-
return keyBuilder$
|
|
5722
|
+
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getSlackConversationMember_ConfigPropertyMetadata);
|
|
5723
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$o(getSlackConversationMember_ConfigPropertyMetadata);
|
|
5724
|
+
function keyBuilder$m(luvio, config) {
|
|
5725
|
+
const resourceParams = createResourceParams$d(config);
|
|
5726
|
+
return keyBuilder$n(luvio, resourceParams);
|
|
5630
5727
|
}
|
|
5631
|
-
function typeCheckConfig$
|
|
5728
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
5632
5729
|
const config = {};
|
|
5633
|
-
typeCheckConfig$
|
|
5730
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversationMember_ConfigPropertyMetadata);
|
|
5634
5731
|
return config;
|
|
5635
5732
|
}
|
|
5636
|
-
function validateAdapterConfig$
|
|
5733
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
5637
5734
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5638
5735
|
return null;
|
|
5639
5736
|
}
|
|
5640
5737
|
if (process.env.NODE_ENV !== 'production') {
|
|
5641
5738
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5642
5739
|
}
|
|
5643
|
-
const config = typeCheckConfig$
|
|
5740
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
5644
5741
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5645
5742
|
return null;
|
|
5646
5743
|
}
|
|
5647
5744
|
return config;
|
|
5648
5745
|
}
|
|
5649
|
-
function adapterFragment$
|
|
5650
|
-
createResourceParams$
|
|
5651
|
-
return select$
|
|
5746
|
+
function adapterFragment$9(luvio, config) {
|
|
5747
|
+
createResourceParams$d(config);
|
|
5748
|
+
return select$g();
|
|
5652
5749
|
}
|
|
5653
|
-
function onFetchResponseSuccess$
|
|
5654
|
-
const snapshot = ingestSuccess$
|
|
5750
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
5751
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
5655
5752
|
config,
|
|
5656
|
-
resolve: () => buildNetworkSnapshot$
|
|
5753
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
5657
5754
|
});
|
|
5658
5755
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5659
5756
|
}
|
|
5660
|
-
function onFetchResponseError$
|
|
5661
|
-
const snapshot = ingestError$
|
|
5757
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
5758
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
5662
5759
|
config,
|
|
5663
|
-
resolve: () => buildNetworkSnapshot$
|
|
5760
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
5664
5761
|
});
|
|
5665
5762
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5666
5763
|
}
|
|
5667
|
-
function buildNetworkSnapshot$
|
|
5668
|
-
const resourceParams = createResourceParams$
|
|
5669
|
-
const request = createResourceRequest$
|
|
5764
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
5765
|
+
const resourceParams = createResourceParams$d(config);
|
|
5766
|
+
const request = createResourceRequest$d(resourceParams);
|
|
5670
5767
|
return luvio.dispatchResourceRequest(request, options)
|
|
5671
5768
|
.then((response) => {
|
|
5672
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
5769
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
5673
5770
|
const cache = new StoreKeyMap();
|
|
5674
|
-
getResponseCacheKeys$
|
|
5771
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
5675
5772
|
return cache;
|
|
5676
5773
|
});
|
|
5677
5774
|
}, (response) => {
|
|
5678
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
5775
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
5679
5776
|
});
|
|
5680
5777
|
}
|
|
5681
|
-
function buildNetworkSnapshotCachePolicy$
|
|
5682
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5778
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
5779
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
5683
5780
|
}
|
|
5684
|
-
function buildCachedSnapshotCachePolicy$
|
|
5781
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
5685
5782
|
const { luvio, config } = context;
|
|
5686
5783
|
const selector = {
|
|
5687
|
-
recordId: keyBuilder$
|
|
5688
|
-
node: adapterFragment$
|
|
5784
|
+
recordId: keyBuilder$m(luvio, config),
|
|
5785
|
+
node: adapterFragment$9(luvio, config),
|
|
5689
5786
|
variables: {},
|
|
5690
5787
|
};
|
|
5691
5788
|
const cacheSnapshot = storeLookup(selector, {
|
|
5692
5789
|
config,
|
|
5693
|
-
resolve: () => buildNetworkSnapshot$
|
|
5790
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
5694
5791
|
});
|
|
5695
5792
|
return cacheSnapshot;
|
|
5696
5793
|
}
|
|
5697
5794
|
const getSlackConversationMemberAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMember(untrustedConfig, requestContext) {
|
|
5698
|
-
const config = validateAdapterConfig$
|
|
5795
|
+
const config = validateAdapterConfig$d(untrustedConfig, getSlackConversationMember_ConfigPropertyNames);
|
|
5699
5796
|
// Invalid or incomplete config
|
|
5700
5797
|
if (config === null) {
|
|
5701
5798
|
return null;
|
|
5702
5799
|
}
|
|
5703
5800
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5704
|
-
buildCachedSnapshotCachePolicy$
|
|
5801
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
5705
5802
|
};
|
|
5706
5803
|
|
|
5707
5804
|
const VERSION$4 = "605674abcbc0dad7e2707e4e00e8d4cd";
|
|
@@ -5729,19 +5826,19 @@ function validate$4(obj, path = 'SlackBridgeMessageFragmentOutputRepresentation'
|
|
|
5729
5826
|
return v_error === undefined ? null : v_error;
|
|
5730
5827
|
}
|
|
5731
5828
|
const RepresentationType$4 = 'SlackBridgeMessageFragmentOutputRepresentation';
|
|
5732
|
-
function keyBuilder$
|
|
5829
|
+
function keyBuilder$l(luvio, config) {
|
|
5733
5830
|
return keyPrefix + '::' + RepresentationType$4 + ':' + config.channelId;
|
|
5734
5831
|
}
|
|
5735
5832
|
function keyBuilderFromType$1(luvio, object) {
|
|
5736
5833
|
const keyParams = {
|
|
5737
5834
|
channelId: object.channelId
|
|
5738
5835
|
};
|
|
5739
|
-
return keyBuilder$
|
|
5836
|
+
return keyBuilder$l(luvio, keyParams);
|
|
5740
5837
|
}
|
|
5741
5838
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
5742
5839
|
return input;
|
|
5743
5840
|
}
|
|
5744
|
-
const select$
|
|
5841
|
+
const select$f = function SlackBridgeMessageFragmentOutputRepresentationSelect() {
|
|
5745
5842
|
return {
|
|
5746
5843
|
kind: 'Fragment',
|
|
5747
5844
|
version: VERSION$4,
|
|
@@ -5802,13 +5899,13 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5802
5899
|
});
|
|
5803
5900
|
}
|
|
5804
5901
|
|
|
5805
|
-
function keyBuilder$
|
|
5806
|
-
return keyBuilder$
|
|
5902
|
+
function keyBuilder$k(luvio, params) {
|
|
5903
|
+
return keyBuilder$l(luvio, {
|
|
5807
5904
|
channelId: params.urlParams.channelId
|
|
5808
5905
|
});
|
|
5809
5906
|
}
|
|
5810
|
-
function getResponseCacheKeys$
|
|
5811
|
-
const key = keyBuilder$
|
|
5907
|
+
function getResponseCacheKeys$c(cacheKeyMap, luvio, resourceParams) {
|
|
5908
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
5812
5909
|
cacheKeyMap.set(key, {
|
|
5813
5910
|
namespace: keyPrefix,
|
|
5814
5911
|
representationName: RepresentationType$4,
|
|
@@ -5816,10 +5913,10 @@ function getResponseCacheKeys$a(cacheKeyMap, luvio, resourceParams) {
|
|
|
5816
5913
|
});
|
|
5817
5914
|
}
|
|
5818
5915
|
function evictSuccess$1(luvio, resourceParams) {
|
|
5819
|
-
const key = keyBuilder$
|
|
5916
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
5820
5917
|
luvio.storeEvict(key);
|
|
5821
5918
|
}
|
|
5822
|
-
function createResourceRequest$
|
|
5919
|
+
function createResourceRequest$c(config) {
|
|
5823
5920
|
const headers = {};
|
|
5824
5921
|
return {
|
|
5825
5922
|
baseUri: '/services/data/v63.0',
|
|
@@ -5833,35 +5930,35 @@ function createResourceRequest$a(config) {
|
|
|
5833
5930
|
};
|
|
5834
5931
|
}
|
|
5835
5932
|
|
|
5836
|
-
const adapterName$
|
|
5933
|
+
const adapterName$c = 'deleteSlackMessage';
|
|
5837
5934
|
const deleteSlackMessage_ConfigPropertyMetadata = [
|
|
5838
5935
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5839
5936
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5840
5937
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5841
5938
|
];
|
|
5842
|
-
const deleteSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5843
|
-
const createResourceParams$
|
|
5844
|
-
function typeCheckConfig$
|
|
5939
|
+
const deleteSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, deleteSlackMessage_ConfigPropertyMetadata);
|
|
5940
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$o(deleteSlackMessage_ConfigPropertyMetadata);
|
|
5941
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
5845
5942
|
const config = {};
|
|
5846
|
-
typeCheckConfig$
|
|
5943
|
+
typeCheckConfig$o(untrustedConfig, config, deleteSlackMessage_ConfigPropertyMetadata);
|
|
5847
5944
|
return config;
|
|
5848
5945
|
}
|
|
5849
|
-
function validateAdapterConfig$
|
|
5946
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
5850
5947
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5851
5948
|
return null;
|
|
5852
5949
|
}
|
|
5853
5950
|
if (process.env.NODE_ENV !== 'production') {
|
|
5854
5951
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5855
5952
|
}
|
|
5856
|
-
const config = typeCheckConfig$
|
|
5953
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
5857
5954
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5858
5955
|
return null;
|
|
5859
5956
|
}
|
|
5860
5957
|
return config;
|
|
5861
5958
|
}
|
|
5862
|
-
function buildNetworkSnapshot$
|
|
5863
|
-
const resourceParams = createResourceParams$
|
|
5864
|
-
const request = createResourceRequest$
|
|
5959
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
5960
|
+
const resourceParams = createResourceParams$c(config);
|
|
5961
|
+
const request = createResourceRequest$c(resourceParams);
|
|
5865
5962
|
return luvio.dispatchResourceRequest(request, options)
|
|
5866
5963
|
.then(() => {
|
|
5867
5964
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -5869,7 +5966,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
5869
5966
|
return luvio.storeBroadcast();
|
|
5870
5967
|
}, () => {
|
|
5871
5968
|
const cache = new StoreKeyMap();
|
|
5872
|
-
getResponseCacheKeys$
|
|
5969
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams);
|
|
5873
5970
|
return cache;
|
|
5874
5971
|
});
|
|
5875
5972
|
}, (response) => {
|
|
@@ -5879,33 +5976,33 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
5879
5976
|
}
|
|
5880
5977
|
const deleteSlackMessageAdapterFactory = (luvio) => {
|
|
5881
5978
|
return function SlackBridgedeleteSlackMessage(untrustedConfig) {
|
|
5882
|
-
const config = validateAdapterConfig$
|
|
5979
|
+
const config = validateAdapterConfig$c(untrustedConfig, deleteSlackMessage_ConfigPropertyNames);
|
|
5883
5980
|
// Invalid or incomplete config
|
|
5884
5981
|
if (config === null) {
|
|
5885
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
5982
|
+
throw new Error(`Invalid config for "${adapterName$c}"`);
|
|
5886
5983
|
}
|
|
5887
|
-
return buildNetworkSnapshot$
|
|
5984
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
5888
5985
|
};
|
|
5889
5986
|
};
|
|
5890
5987
|
|
|
5891
|
-
function select$
|
|
5892
|
-
return select$
|
|
5988
|
+
function select$e(luvio, params) {
|
|
5989
|
+
return select$f();
|
|
5893
5990
|
}
|
|
5894
|
-
function keyBuilder$
|
|
5895
|
-
return keyBuilder$
|
|
5991
|
+
function keyBuilder$j(luvio, params) {
|
|
5992
|
+
return keyBuilder$l(luvio, {
|
|
5896
5993
|
channelId: params.urlParams.channelId
|
|
5897
5994
|
});
|
|
5898
5995
|
}
|
|
5899
|
-
function getResponseCacheKeys$
|
|
5996
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
5900
5997
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
5901
5998
|
}
|
|
5902
|
-
function ingestSuccess$
|
|
5999
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
5903
6000
|
const { body } = response;
|
|
5904
|
-
const key = keyBuilder$
|
|
6001
|
+
const key = keyBuilder$j(luvio, resourceParams);
|
|
5905
6002
|
luvio.storeIngest(key, ingest$4, body);
|
|
5906
6003
|
const snapshot = luvio.storeLookup({
|
|
5907
6004
|
recordId: key,
|
|
5908
|
-
node: select$
|
|
6005
|
+
node: select$e(),
|
|
5909
6006
|
variables: {},
|
|
5910
6007
|
}, snapshotRefresh);
|
|
5911
6008
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5916,13 +6013,13 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5916
6013
|
deepFreeze(snapshot.data);
|
|
5917
6014
|
return snapshot;
|
|
5918
6015
|
}
|
|
5919
|
-
function ingestError$
|
|
5920
|
-
const key = keyBuilder$
|
|
6016
|
+
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
6017
|
+
const key = keyBuilder$j(luvio, params);
|
|
5921
6018
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5922
6019
|
luvio.storeIngestError(key, errorSnapshot);
|
|
5923
6020
|
return errorSnapshot;
|
|
5924
6021
|
}
|
|
5925
|
-
function createResourceRequest$
|
|
6022
|
+
function createResourceRequest$b(config) {
|
|
5926
6023
|
const headers = {};
|
|
5927
6024
|
return {
|
|
5928
6025
|
baseUri: '/services/data/v63.0',
|
|
@@ -5936,107 +6033,107 @@ function createResourceRequest$9(config) {
|
|
|
5936
6033
|
};
|
|
5937
6034
|
}
|
|
5938
6035
|
|
|
5939
|
-
const adapterName$
|
|
6036
|
+
const adapterName$b = 'getSlackMessage';
|
|
5940
6037
|
const getSlackMessage_ConfigPropertyMetadata = [
|
|
5941
6038
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5942
6039
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5943
6040
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5944
6041
|
];
|
|
5945
|
-
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5946
|
-
const createResourceParams$
|
|
5947
|
-
function keyBuilder$
|
|
5948
|
-
const resourceParams = createResourceParams$
|
|
5949
|
-
return keyBuilder$
|
|
6042
|
+
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSlackMessage_ConfigPropertyMetadata);
|
|
6043
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$o(getSlackMessage_ConfigPropertyMetadata);
|
|
6044
|
+
function keyBuilder$i(luvio, config) {
|
|
6045
|
+
const resourceParams = createResourceParams$b(config);
|
|
6046
|
+
return keyBuilder$j(luvio, resourceParams);
|
|
5950
6047
|
}
|
|
5951
|
-
function typeCheckConfig$
|
|
6048
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
5952
6049
|
const config = {};
|
|
5953
|
-
typeCheckConfig$
|
|
6050
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
|
|
5954
6051
|
return config;
|
|
5955
6052
|
}
|
|
5956
|
-
function validateAdapterConfig$
|
|
6053
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
5957
6054
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5958
6055
|
return null;
|
|
5959
6056
|
}
|
|
5960
6057
|
if (process.env.NODE_ENV !== 'production') {
|
|
5961
6058
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5962
6059
|
}
|
|
5963
|
-
const config = typeCheckConfig$
|
|
6060
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
5964
6061
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5965
6062
|
return null;
|
|
5966
6063
|
}
|
|
5967
6064
|
return config;
|
|
5968
6065
|
}
|
|
5969
|
-
function adapterFragment$
|
|
5970
|
-
createResourceParams$
|
|
5971
|
-
return select$
|
|
6066
|
+
function adapterFragment$8(luvio, config) {
|
|
6067
|
+
createResourceParams$b(config);
|
|
6068
|
+
return select$e();
|
|
5972
6069
|
}
|
|
5973
|
-
function onFetchResponseSuccess$
|
|
5974
|
-
const snapshot = ingestSuccess$
|
|
6070
|
+
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
6071
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
5975
6072
|
config,
|
|
5976
|
-
resolve: () => buildNetworkSnapshot$
|
|
6073
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
5977
6074
|
});
|
|
5978
6075
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5979
6076
|
}
|
|
5980
|
-
function onFetchResponseError$
|
|
5981
|
-
const snapshot = ingestError$
|
|
6077
|
+
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
6078
|
+
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
5982
6079
|
config,
|
|
5983
|
-
resolve: () => buildNetworkSnapshot$
|
|
6080
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
5984
6081
|
});
|
|
5985
6082
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5986
6083
|
}
|
|
5987
|
-
function buildNetworkSnapshot$
|
|
5988
|
-
const resourceParams = createResourceParams$
|
|
5989
|
-
const request = createResourceRequest$
|
|
6084
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
6085
|
+
const resourceParams = createResourceParams$b(config);
|
|
6086
|
+
const request = createResourceRequest$b(resourceParams);
|
|
5990
6087
|
return luvio.dispatchResourceRequest(request, options)
|
|
5991
6088
|
.then((response) => {
|
|
5992
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
6089
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
5993
6090
|
const cache = new StoreKeyMap();
|
|
5994
|
-
getResponseCacheKeys$
|
|
6091
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
5995
6092
|
return cache;
|
|
5996
6093
|
});
|
|
5997
6094
|
}, (response) => {
|
|
5998
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
6095
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
|
|
5999
6096
|
});
|
|
6000
6097
|
}
|
|
6001
|
-
function buildNetworkSnapshotCachePolicy$
|
|
6002
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6098
|
+
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
6099
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
6003
6100
|
}
|
|
6004
|
-
function buildCachedSnapshotCachePolicy$
|
|
6101
|
+
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
6005
6102
|
const { luvio, config } = context;
|
|
6006
6103
|
const selector = {
|
|
6007
|
-
recordId: keyBuilder$
|
|
6008
|
-
node: adapterFragment$
|
|
6104
|
+
recordId: keyBuilder$i(luvio, config),
|
|
6105
|
+
node: adapterFragment$8(luvio, config),
|
|
6009
6106
|
variables: {},
|
|
6010
6107
|
};
|
|
6011
6108
|
const cacheSnapshot = storeLookup(selector, {
|
|
6012
6109
|
config,
|
|
6013
|
-
resolve: () => buildNetworkSnapshot$
|
|
6110
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
6014
6111
|
});
|
|
6015
6112
|
return cacheSnapshot;
|
|
6016
6113
|
}
|
|
6017
6114
|
const getSlackMessageAdapterFactory = (luvio) => function SlackBridge__getSlackMessage(untrustedConfig, requestContext) {
|
|
6018
|
-
const config = validateAdapterConfig$
|
|
6115
|
+
const config = validateAdapterConfig$b(untrustedConfig, getSlackMessage_ConfigPropertyNames);
|
|
6019
6116
|
// Invalid or incomplete config
|
|
6020
6117
|
if (config === null) {
|
|
6021
6118
|
return null;
|
|
6022
6119
|
}
|
|
6023
6120
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
6024
|
-
buildCachedSnapshotCachePolicy$
|
|
6121
|
+
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
6025
6122
|
};
|
|
6026
6123
|
|
|
6027
|
-
function select$
|
|
6028
|
-
return select$
|
|
6124
|
+
function select$d(luvio, params) {
|
|
6125
|
+
return select$f();
|
|
6029
6126
|
}
|
|
6030
|
-
function getResponseCacheKeys$
|
|
6127
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
6031
6128
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
6032
6129
|
}
|
|
6033
|
-
function ingestSuccess$
|
|
6130
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
6034
6131
|
const { body } = response;
|
|
6035
6132
|
const key = keyBuilderFromType$1(luvio, body);
|
|
6036
6133
|
luvio.storeIngest(key, ingest$4, body);
|
|
6037
6134
|
const snapshot = luvio.storeLookup({
|
|
6038
6135
|
recordId: key,
|
|
6039
|
-
node: select$
|
|
6136
|
+
node: select$d(),
|
|
6040
6137
|
variables: {},
|
|
6041
6138
|
});
|
|
6042
6139
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6047,7 +6144,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
6047
6144
|
deepFreeze(snapshot.data);
|
|
6048
6145
|
return snapshot;
|
|
6049
6146
|
}
|
|
6050
|
-
function createResourceRequest$
|
|
6147
|
+
function createResourceRequest$a(config) {
|
|
6051
6148
|
const headers = {};
|
|
6052
6149
|
return {
|
|
6053
6150
|
baseUri: '/services/data/v63.0',
|
|
@@ -6061,44 +6158,44 @@ function createResourceRequest$8(config) {
|
|
|
6061
6158
|
};
|
|
6062
6159
|
}
|
|
6063
6160
|
|
|
6064
|
-
const adapterName$
|
|
6161
|
+
const adapterName$a = 'patchSlackMessage';
|
|
6065
6162
|
const patchSlackMessage_ConfigPropertyMetadata = [
|
|
6066
6163
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6067
6164
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6068
6165
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6069
6166
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
6070
6167
|
];
|
|
6071
|
-
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6072
|
-
const createResourceParams$
|
|
6073
|
-
function typeCheckConfig$
|
|
6168
|
+
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, patchSlackMessage_ConfigPropertyMetadata);
|
|
6169
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$o(patchSlackMessage_ConfigPropertyMetadata);
|
|
6170
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
6074
6171
|
const config = {};
|
|
6075
|
-
typeCheckConfig$
|
|
6172
|
+
typeCheckConfig$o(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
|
|
6076
6173
|
return config;
|
|
6077
6174
|
}
|
|
6078
|
-
function validateAdapterConfig$
|
|
6175
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
6079
6176
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6080
6177
|
return null;
|
|
6081
6178
|
}
|
|
6082
6179
|
if (process.env.NODE_ENV !== 'production') {
|
|
6083
6180
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6084
6181
|
}
|
|
6085
|
-
const config = typeCheckConfig$
|
|
6182
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
6086
6183
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6087
6184
|
return null;
|
|
6088
6185
|
}
|
|
6089
6186
|
return config;
|
|
6090
6187
|
}
|
|
6091
|
-
function buildNetworkSnapshot$
|
|
6092
|
-
const resourceParams = createResourceParams$
|
|
6093
|
-
const request = createResourceRequest$
|
|
6188
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
6189
|
+
const resourceParams = createResourceParams$a(config);
|
|
6190
|
+
const request = createResourceRequest$a(resourceParams);
|
|
6094
6191
|
return luvio.dispatchResourceRequest(request, options)
|
|
6095
6192
|
.then((response) => {
|
|
6096
6193
|
return luvio.handleSuccessResponse(() => {
|
|
6097
|
-
const snapshot = ingestSuccess$
|
|
6194
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
6098
6195
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6099
6196
|
}, () => {
|
|
6100
6197
|
const cache = new StoreKeyMap();
|
|
6101
|
-
getResponseCacheKeys$
|
|
6198
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
6102
6199
|
return cache;
|
|
6103
6200
|
});
|
|
6104
6201
|
}, (response) => {
|
|
@@ -6108,12 +6205,12 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
6108
6205
|
}
|
|
6109
6206
|
const patchSlackMessageAdapterFactory = (luvio) => {
|
|
6110
6207
|
return function patchSlackMessage(untrustedConfig) {
|
|
6111
|
-
const config = validateAdapterConfig$
|
|
6208
|
+
const config = validateAdapterConfig$a(untrustedConfig, patchSlackMessage_ConfigPropertyNames);
|
|
6112
6209
|
// Invalid or incomplete config
|
|
6113
6210
|
if (config === null) {
|
|
6114
6211
|
throw new Error('Invalid config for "patchSlackMessage"');
|
|
6115
6212
|
}
|
|
6116
|
-
return buildNetworkSnapshot$
|
|
6213
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
6117
6214
|
};
|
|
6118
6215
|
};
|
|
6119
6216
|
|
|
@@ -6157,20 +6254,20 @@ function validate$3(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
|
6157
6254
|
return v_error === undefined ? null : v_error;
|
|
6158
6255
|
}
|
|
6159
6256
|
const RepresentationType$3 = 'SlackBridgeReactionsOutputRepresentation';
|
|
6160
|
-
function keyBuilder$
|
|
6257
|
+
function keyBuilder$h(luvio, config) {
|
|
6161
6258
|
return keyPrefix + '::' + RepresentationType$3 + ':' + config.channelId;
|
|
6162
6259
|
}
|
|
6163
6260
|
function keyBuilderFromType(luvio, object) {
|
|
6164
6261
|
const keyParams = {
|
|
6165
6262
|
channelId: object.channelId
|
|
6166
6263
|
};
|
|
6167
|
-
return keyBuilder$
|
|
6264
|
+
return keyBuilder$h(luvio, keyParams);
|
|
6168
6265
|
}
|
|
6169
6266
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
6170
6267
|
return input;
|
|
6171
6268
|
}
|
|
6172
|
-
const select$
|
|
6173
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
6269
|
+
const select$c = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
6270
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$D();
|
|
6174
6271
|
return {
|
|
6175
6272
|
kind: 'Fragment',
|
|
6176
6273
|
version: VERSION$3,
|
|
@@ -6247,13 +6344,13 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6247
6344
|
});
|
|
6248
6345
|
}
|
|
6249
6346
|
|
|
6250
|
-
function keyBuilder$
|
|
6251
|
-
return keyBuilder$
|
|
6347
|
+
function keyBuilder$g(luvio, params) {
|
|
6348
|
+
return keyBuilder$h(luvio, {
|
|
6252
6349
|
channelId: params.urlParams.channelId
|
|
6253
6350
|
});
|
|
6254
6351
|
}
|
|
6255
|
-
function getResponseCacheKeys$
|
|
6256
|
-
const key = keyBuilder$
|
|
6352
|
+
function getResponseCacheKeys$9(cacheKeyMap, luvio, resourceParams) {
|
|
6353
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
6257
6354
|
cacheKeyMap.set(key, {
|
|
6258
6355
|
namespace: keyPrefix,
|
|
6259
6356
|
representationName: RepresentationType$3,
|
|
@@ -6261,10 +6358,10 @@ function getResponseCacheKeys$7(cacheKeyMap, luvio, resourceParams) {
|
|
|
6261
6358
|
});
|
|
6262
6359
|
}
|
|
6263
6360
|
function evictSuccess(luvio, resourceParams) {
|
|
6264
|
-
const key = keyBuilder$
|
|
6361
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
6265
6362
|
luvio.storeEvict(key);
|
|
6266
6363
|
}
|
|
6267
|
-
function createResourceRequest$
|
|
6364
|
+
function createResourceRequest$9(config) {
|
|
6268
6365
|
const headers = {};
|
|
6269
6366
|
return {
|
|
6270
6367
|
baseUri: '/services/data/v63.0',
|
|
@@ -6278,36 +6375,36 @@ function createResourceRequest$7(config) {
|
|
|
6278
6375
|
};
|
|
6279
6376
|
}
|
|
6280
6377
|
|
|
6281
|
-
const adapterName$
|
|
6378
|
+
const adapterName$9 = 'deleteSlackMessageReactions';
|
|
6282
6379
|
const deleteSlackMessageReactions_ConfigPropertyMetadata = [
|
|
6283
6380
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6284
6381
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6285
6382
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6286
6383
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6287
6384
|
];
|
|
6288
|
-
const deleteSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6289
|
-
const createResourceParams$
|
|
6290
|
-
function typeCheckConfig$
|
|
6385
|
+
const deleteSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
6386
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$o(deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
6387
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
6291
6388
|
const config = {};
|
|
6292
|
-
typeCheckConfig$
|
|
6389
|
+
typeCheckConfig$o(untrustedConfig, config, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
6293
6390
|
return config;
|
|
6294
6391
|
}
|
|
6295
|
-
function validateAdapterConfig$
|
|
6392
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
6296
6393
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6297
6394
|
return null;
|
|
6298
6395
|
}
|
|
6299
6396
|
if (process.env.NODE_ENV !== 'production') {
|
|
6300
6397
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6301
6398
|
}
|
|
6302
|
-
const config = typeCheckConfig$
|
|
6399
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
6303
6400
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6304
6401
|
return null;
|
|
6305
6402
|
}
|
|
6306
6403
|
return config;
|
|
6307
6404
|
}
|
|
6308
|
-
function buildNetworkSnapshot$
|
|
6309
|
-
const resourceParams = createResourceParams$
|
|
6310
|
-
const request = createResourceRequest$
|
|
6405
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
6406
|
+
const resourceParams = createResourceParams$9(config);
|
|
6407
|
+
const request = createResourceRequest$9(resourceParams);
|
|
6311
6408
|
return luvio.dispatchResourceRequest(request, options)
|
|
6312
6409
|
.then(() => {
|
|
6313
6410
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -6315,7 +6412,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
6315
6412
|
return luvio.storeBroadcast();
|
|
6316
6413
|
}, () => {
|
|
6317
6414
|
const cache = new StoreKeyMap();
|
|
6318
|
-
getResponseCacheKeys$
|
|
6415
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams);
|
|
6319
6416
|
return cache;
|
|
6320
6417
|
});
|
|
6321
6418
|
}, (response) => {
|
|
@@ -6325,30 +6422,391 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
6325
6422
|
}
|
|
6326
6423
|
const deleteSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
6327
6424
|
return function SlackBridgedeleteSlackMessageReactions(untrustedConfig) {
|
|
6328
|
-
const config = validateAdapterConfig$
|
|
6425
|
+
const config = validateAdapterConfig$9(untrustedConfig, deleteSlackMessageReactions_ConfigPropertyNames);
|
|
6426
|
+
// Invalid or incomplete config
|
|
6427
|
+
if (config === null) {
|
|
6428
|
+
throw new Error(`Invalid config for "${adapterName$9}"`);
|
|
6429
|
+
}
|
|
6430
|
+
return buildNetworkSnapshot$9(luvio, config);
|
|
6431
|
+
};
|
|
6432
|
+
};
|
|
6433
|
+
|
|
6434
|
+
function select$b(luvio, params) {
|
|
6435
|
+
return select$c();
|
|
6436
|
+
}
|
|
6437
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
6438
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
6439
|
+
}
|
|
6440
|
+
function ingestSuccess$8(luvio, resourceParams, response) {
|
|
6441
|
+
const { body } = response;
|
|
6442
|
+
const key = keyBuilderFromType(luvio, body);
|
|
6443
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
6444
|
+
const snapshot = luvio.storeLookup({
|
|
6445
|
+
recordId: key,
|
|
6446
|
+
node: select$b(),
|
|
6447
|
+
variables: {},
|
|
6448
|
+
});
|
|
6449
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6450
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
6451
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
6452
|
+
}
|
|
6453
|
+
}
|
|
6454
|
+
deepFreeze(snapshot.data);
|
|
6455
|
+
return snapshot;
|
|
6456
|
+
}
|
|
6457
|
+
function createResourceRequest$8(config) {
|
|
6458
|
+
const headers = {};
|
|
6459
|
+
return {
|
|
6460
|
+
baseUri: '/services/data/v63.0',
|
|
6461
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/messages/' + config.urlParams.messageTs + '/reactions',
|
|
6462
|
+
method: 'post',
|
|
6463
|
+
body: null,
|
|
6464
|
+
urlParams: config.urlParams,
|
|
6465
|
+
queryParams: config.queryParams,
|
|
6466
|
+
headers,
|
|
6467
|
+
priority: 'normal',
|
|
6468
|
+
};
|
|
6469
|
+
}
|
|
6470
|
+
|
|
6471
|
+
const adapterName$8 = 'postSlackMessageReactions';
|
|
6472
|
+
const postSlackMessageReactions_ConfigPropertyMetadata = [
|
|
6473
|
+
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6474
|
+
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6475
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6476
|
+
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6477
|
+
];
|
|
6478
|
+
const postSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
6479
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$o(postSlackMessageReactions_ConfigPropertyMetadata);
|
|
6480
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
6481
|
+
const config = {};
|
|
6482
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
6483
|
+
return config;
|
|
6484
|
+
}
|
|
6485
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
6486
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
6487
|
+
return null;
|
|
6488
|
+
}
|
|
6489
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6490
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
6491
|
+
}
|
|
6492
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
6493
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6494
|
+
return null;
|
|
6495
|
+
}
|
|
6496
|
+
return config;
|
|
6497
|
+
}
|
|
6498
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
6499
|
+
const resourceParams = createResourceParams$8(config);
|
|
6500
|
+
const request = createResourceRequest$8(resourceParams);
|
|
6501
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
6502
|
+
.then((response) => {
|
|
6503
|
+
return luvio.handleSuccessResponse(() => {
|
|
6504
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response);
|
|
6505
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6506
|
+
}, () => {
|
|
6507
|
+
const cache = new StoreKeyMap();
|
|
6508
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
6509
|
+
return cache;
|
|
6510
|
+
});
|
|
6511
|
+
}, (response) => {
|
|
6512
|
+
deepFreeze(response);
|
|
6513
|
+
throw response;
|
|
6514
|
+
});
|
|
6515
|
+
}
|
|
6516
|
+
const postSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
6517
|
+
return function postSlackMessageReactions(untrustedConfig) {
|
|
6518
|
+
const config = validateAdapterConfig$8(untrustedConfig, postSlackMessageReactions_ConfigPropertyNames);
|
|
6329
6519
|
// Invalid or incomplete config
|
|
6330
6520
|
if (config === null) {
|
|
6331
|
-
throw new Error(
|
|
6521
|
+
throw new Error('Invalid config for "postSlackMessageReactions"');
|
|
6522
|
+
}
|
|
6523
|
+
return buildNetworkSnapshot$8(luvio, config);
|
|
6524
|
+
};
|
|
6525
|
+
};
|
|
6526
|
+
|
|
6527
|
+
const VERSION$2 = "0de597a47ca8ecad2cfb7fd9c8f73920";
|
|
6528
|
+
function validate$2(obj, path = 'SlackBridgeConversationInfosOutputRepresentation') {
|
|
6529
|
+
const v_error = (() => {
|
|
6530
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6531
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6532
|
+
}
|
|
6533
|
+
const obj_conversationInfos = obj.conversationInfos;
|
|
6534
|
+
const path_conversationInfos = path + '.conversationInfos';
|
|
6535
|
+
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
6536
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
6537
|
+
}
|
|
6538
|
+
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
6539
|
+
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
6540
|
+
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
6541
|
+
if (typeof obj_conversationInfos_item !== 'object') {
|
|
6542
|
+
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
6543
|
+
}
|
|
6544
|
+
}
|
|
6545
|
+
const obj_searchString = obj.searchString;
|
|
6546
|
+
const path_searchString = path + '.searchString';
|
|
6547
|
+
let obj_searchString_union0 = null;
|
|
6548
|
+
const obj_searchString_union0_error = (() => {
|
|
6549
|
+
if (typeof obj_searchString !== 'string') {
|
|
6550
|
+
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6551
|
+
}
|
|
6552
|
+
})();
|
|
6553
|
+
if (obj_searchString_union0_error != null) {
|
|
6554
|
+
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
6555
|
+
}
|
|
6556
|
+
let obj_searchString_union1 = null;
|
|
6557
|
+
const obj_searchString_union1_error = (() => {
|
|
6558
|
+
if (obj_searchString !== null) {
|
|
6559
|
+
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6560
|
+
}
|
|
6561
|
+
})();
|
|
6562
|
+
if (obj_searchString_union1_error != null) {
|
|
6563
|
+
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
6564
|
+
}
|
|
6565
|
+
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
6566
|
+
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
6567
|
+
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6568
|
+
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6569
|
+
return new TypeError(message);
|
|
6570
|
+
}
|
|
6571
|
+
})();
|
|
6572
|
+
return v_error === undefined ? null : v_error;
|
|
6573
|
+
}
|
|
6574
|
+
const RepresentationType$2 = 'SlackBridgeConversationInfosOutputRepresentation';
|
|
6575
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
6576
|
+
const input_conversationInfos = input.conversationInfos;
|
|
6577
|
+
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
6578
|
+
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
6579
|
+
const input_conversationInfos_item = input_conversationInfos[i];
|
|
6580
|
+
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
6581
|
+
input_conversationInfos[i] = ingest$f(input_conversationInfos_item, {
|
|
6582
|
+
fullPath: input_conversationInfos_item_id,
|
|
6583
|
+
propertyName: i,
|
|
6584
|
+
parent: {
|
|
6585
|
+
data: input,
|
|
6586
|
+
key: path.fullPath,
|
|
6587
|
+
existing: existing,
|
|
6588
|
+
},
|
|
6589
|
+
ttl: path.ttl
|
|
6590
|
+
}, luvio, store, timestamp);
|
|
6591
|
+
}
|
|
6592
|
+
return input;
|
|
6593
|
+
}
|
|
6594
|
+
const select$a = function SlackBridgeConversationInfosOutputRepresentationSelect() {
|
|
6595
|
+
return {
|
|
6596
|
+
kind: 'Fragment',
|
|
6597
|
+
version: VERSION$2,
|
|
6598
|
+
private: [],
|
|
6599
|
+
selections: [
|
|
6600
|
+
{
|
|
6601
|
+
name: 'conversationInfos',
|
|
6602
|
+
kind: 'Link',
|
|
6603
|
+
plural: true,
|
|
6604
|
+
fragment: select$E()
|
|
6605
|
+
},
|
|
6606
|
+
{
|
|
6607
|
+
name: 'searchString',
|
|
6608
|
+
kind: 'Scalar'
|
|
6609
|
+
}
|
|
6610
|
+
]
|
|
6611
|
+
};
|
|
6612
|
+
};
|
|
6613
|
+
function equals$2(existing, incoming) {
|
|
6614
|
+
const existing_conversationInfos = existing.conversationInfos;
|
|
6615
|
+
const incoming_conversationInfos = incoming.conversationInfos;
|
|
6616
|
+
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
6617
|
+
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
6618
|
+
return false;
|
|
6619
|
+
}
|
|
6620
|
+
});
|
|
6621
|
+
if (equals_conversationInfos_items === false) {
|
|
6622
|
+
return false;
|
|
6623
|
+
}
|
|
6624
|
+
const existing_searchString = existing.searchString;
|
|
6625
|
+
const incoming_searchString = incoming.searchString;
|
|
6626
|
+
if (!(existing_searchString === incoming_searchString)) {
|
|
6627
|
+
return false;
|
|
6628
|
+
}
|
|
6629
|
+
return true;
|
|
6630
|
+
}
|
|
6631
|
+
const ingest$2 = function SlackBridgeConversationInfosOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6632
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6633
|
+
const validateError = validate$2(input);
|
|
6634
|
+
if (validateError !== null) {
|
|
6635
|
+
throw validateError;
|
|
6636
|
+
}
|
|
6637
|
+
}
|
|
6638
|
+
const key = path.fullPath;
|
|
6639
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
6640
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "SlackBridge", VERSION$2, RepresentationType$2, equals$2);
|
|
6641
|
+
return createLink(key);
|
|
6642
|
+
};
|
|
6643
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
6644
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6645
|
+
const rootKey = fullPathFactory();
|
|
6646
|
+
rootKeySet.set(rootKey, {
|
|
6647
|
+
namespace: keyPrefix,
|
|
6648
|
+
representationName: RepresentationType$2,
|
|
6649
|
+
mergeable: false
|
|
6650
|
+
});
|
|
6651
|
+
const input_conversationInfos_length = input.conversationInfos.length;
|
|
6652
|
+
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
6653
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfos[i]);
|
|
6654
|
+
}
|
|
6655
|
+
}
|
|
6656
|
+
|
|
6657
|
+
function select$9(luvio, params) {
|
|
6658
|
+
return select$a();
|
|
6659
|
+
}
|
|
6660
|
+
function keyBuilder$f(luvio, params) {
|
|
6661
|
+
return keyPrefix + '::SlackBridgeConversationInfosOutputRepresentation:(' + 'channelIds:' + params.queryParams.channelIds + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
6662
|
+
}
|
|
6663
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
6664
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$f(luvio, resourceParams));
|
|
6665
|
+
}
|
|
6666
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
6667
|
+
const { body } = response;
|
|
6668
|
+
const key = keyBuilder$f(luvio, resourceParams);
|
|
6669
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
6670
|
+
const snapshot = luvio.storeLookup({
|
|
6671
|
+
recordId: key,
|
|
6672
|
+
node: select$9(),
|
|
6673
|
+
variables: {},
|
|
6674
|
+
}, snapshotRefresh);
|
|
6675
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6676
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
6677
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
6332
6678
|
}
|
|
6333
|
-
|
|
6679
|
+
}
|
|
6680
|
+
deepFreeze(snapshot.data);
|
|
6681
|
+
return snapshot;
|
|
6682
|
+
}
|
|
6683
|
+
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
6684
|
+
const key = keyBuilder$f(luvio, params);
|
|
6685
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6686
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
6687
|
+
return errorSnapshot;
|
|
6688
|
+
}
|
|
6689
|
+
function createResourceRequest$7(config) {
|
|
6690
|
+
const headers = {};
|
|
6691
|
+
return {
|
|
6692
|
+
baseUri: '/services/data/v63.0',
|
|
6693
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channels',
|
|
6694
|
+
method: 'get',
|
|
6695
|
+
body: null,
|
|
6696
|
+
urlParams: config.urlParams,
|
|
6697
|
+
queryParams: config.queryParams,
|
|
6698
|
+
headers,
|
|
6699
|
+
priority: 'normal',
|
|
6700
|
+
};
|
|
6701
|
+
}
|
|
6702
|
+
|
|
6703
|
+
const adapterName$7 = 'getSlackConversationInfos';
|
|
6704
|
+
const getSlackConversationInfos_ConfigPropertyMetadata = [
|
|
6705
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6706
|
+
generateParamConfigMetadata('channelIds', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
6707
|
+
];
|
|
6708
|
+
const getSlackConversationInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSlackConversationInfos_ConfigPropertyMetadata);
|
|
6709
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$o(getSlackConversationInfos_ConfigPropertyMetadata);
|
|
6710
|
+
function keyBuilder$e(luvio, config) {
|
|
6711
|
+
const resourceParams = createResourceParams$7(config);
|
|
6712
|
+
return keyBuilder$f(luvio, resourceParams);
|
|
6713
|
+
}
|
|
6714
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
6715
|
+
const config = {};
|
|
6716
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversationInfos_ConfigPropertyMetadata);
|
|
6717
|
+
return config;
|
|
6718
|
+
}
|
|
6719
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
6720
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
6721
|
+
return null;
|
|
6722
|
+
}
|
|
6723
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6724
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
6725
|
+
}
|
|
6726
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
6727
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6728
|
+
return null;
|
|
6729
|
+
}
|
|
6730
|
+
return config;
|
|
6731
|
+
}
|
|
6732
|
+
function adapterFragment$7(luvio, config) {
|
|
6733
|
+
createResourceParams$7(config);
|
|
6734
|
+
return select$9();
|
|
6735
|
+
}
|
|
6736
|
+
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
6737
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
6738
|
+
config,
|
|
6739
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
6740
|
+
});
|
|
6741
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6742
|
+
}
|
|
6743
|
+
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
6744
|
+
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
6745
|
+
config,
|
|
6746
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
6747
|
+
});
|
|
6748
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6749
|
+
}
|
|
6750
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
6751
|
+
const resourceParams = createResourceParams$7(config);
|
|
6752
|
+
const request = createResourceRequest$7(resourceParams);
|
|
6753
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
6754
|
+
.then((response) => {
|
|
6755
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
6756
|
+
const cache = new StoreKeyMap();
|
|
6757
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
6758
|
+
return cache;
|
|
6759
|
+
});
|
|
6760
|
+
}, (response) => {
|
|
6761
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
|
|
6762
|
+
});
|
|
6763
|
+
}
|
|
6764
|
+
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
6765
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
6766
|
+
}
|
|
6767
|
+
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
6768
|
+
const { luvio, config } = context;
|
|
6769
|
+
const selector = {
|
|
6770
|
+
recordId: keyBuilder$e(luvio, config),
|
|
6771
|
+
node: adapterFragment$7(luvio, config),
|
|
6772
|
+
variables: {},
|
|
6334
6773
|
};
|
|
6774
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
6775
|
+
config,
|
|
6776
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
6777
|
+
});
|
|
6778
|
+
return cacheSnapshot;
|
|
6779
|
+
}
|
|
6780
|
+
const getSlackConversationInfosAdapterFactory = (luvio) => function SlackBridge__getSlackConversationInfos(untrustedConfig, requestContext) {
|
|
6781
|
+
const config = validateAdapterConfig$7(untrustedConfig, getSlackConversationInfos_ConfigPropertyNames);
|
|
6782
|
+
// Invalid or incomplete config
|
|
6783
|
+
if (config === null) {
|
|
6784
|
+
return null;
|
|
6785
|
+
}
|
|
6786
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
6787
|
+
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
6335
6788
|
};
|
|
6336
6789
|
|
|
6337
|
-
function select$
|
|
6338
|
-
return select$
|
|
6790
|
+
function select$8(luvio, params) {
|
|
6791
|
+
return select$E();
|
|
6792
|
+
}
|
|
6793
|
+
function keyBuilder$d(luvio, params) {
|
|
6794
|
+
return keyBuilder$D(luvio, {
|
|
6795
|
+
id: params.urlParams.channelId
|
|
6796
|
+
});
|
|
6339
6797
|
}
|
|
6340
6798
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
6341
|
-
getTypeCacheKeys$
|
|
6799
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
6342
6800
|
}
|
|
6343
|
-
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
6801
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
6344
6802
|
const { body } = response;
|
|
6345
|
-
const key =
|
|
6346
|
-
luvio.storeIngest(key, ingest$
|
|
6803
|
+
const key = keyBuilder$d(luvio, resourceParams);
|
|
6804
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
6347
6805
|
const snapshot = luvio.storeLookup({
|
|
6348
6806
|
recordId: key,
|
|
6349
|
-
node: select$
|
|
6807
|
+
node: select$8(),
|
|
6350
6808
|
variables: {},
|
|
6351
|
-
});
|
|
6809
|
+
}, snapshotRefresh);
|
|
6352
6810
|
if (process.env.NODE_ENV !== 'production') {
|
|
6353
6811
|
if (snapshot.state !== 'Fulfilled') {
|
|
6354
6812
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
@@ -6357,32 +6815,46 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
6357
6815
|
deepFreeze(snapshot.data);
|
|
6358
6816
|
return snapshot;
|
|
6359
6817
|
}
|
|
6818
|
+
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
6819
|
+
const key = keyBuilder$d(luvio, params);
|
|
6820
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6821
|
+
const storeMetadataParams = {
|
|
6822
|
+
ttl: TTL$1,
|
|
6823
|
+
namespace: keyPrefix,
|
|
6824
|
+
version: VERSION$j,
|
|
6825
|
+
representationName: RepresentationType$f
|
|
6826
|
+
};
|
|
6827
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
6828
|
+
return errorSnapshot;
|
|
6829
|
+
}
|
|
6360
6830
|
function createResourceRequest$6(config) {
|
|
6361
6831
|
const headers = {};
|
|
6362
6832
|
return {
|
|
6363
6833
|
baseUri: '/services/data/v63.0',
|
|
6364
|
-
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/
|
|
6365
|
-
method: '
|
|
6834
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channels/' + config.urlParams.channelId + '',
|
|
6835
|
+
method: 'get',
|
|
6366
6836
|
body: null,
|
|
6367
6837
|
urlParams: config.urlParams,
|
|
6368
|
-
queryParams:
|
|
6838
|
+
queryParams: {},
|
|
6369
6839
|
headers,
|
|
6370
6840
|
priority: 'normal',
|
|
6371
6841
|
};
|
|
6372
6842
|
}
|
|
6373
6843
|
|
|
6374
|
-
const adapterName$6 = '
|
|
6375
|
-
const
|
|
6844
|
+
const adapterName$6 = 'getSlackConversationInfo';
|
|
6845
|
+
const getSlackConversationInfo_ConfigPropertyMetadata = [
|
|
6376
6846
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6377
|
-
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6378
6847
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6379
|
-
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6380
6848
|
];
|
|
6381
|
-
const
|
|
6382
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
6849
|
+
const getSlackConversationInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSlackConversationInfo_ConfigPropertyMetadata);
|
|
6850
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$o(getSlackConversationInfo_ConfigPropertyMetadata);
|
|
6851
|
+
function keyBuilder$c(luvio, config) {
|
|
6852
|
+
const resourceParams = createResourceParams$6(config);
|
|
6853
|
+
return keyBuilder$d(luvio, resourceParams);
|
|
6854
|
+
}
|
|
6383
6855
|
function typeCheckConfig$6(untrustedConfig) {
|
|
6384
6856
|
const config = {};
|
|
6385
|
-
typeCheckConfig$
|
|
6857
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversationInfo_ConfigPropertyMetadata);
|
|
6386
6858
|
return config;
|
|
6387
6859
|
}
|
|
6388
6860
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -6398,37 +6870,66 @@ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
|
6398
6870
|
}
|
|
6399
6871
|
return config;
|
|
6400
6872
|
}
|
|
6873
|
+
function adapterFragment$6(luvio, config) {
|
|
6874
|
+
createResourceParams$6(config);
|
|
6875
|
+
return select$8();
|
|
6876
|
+
}
|
|
6877
|
+
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
6878
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
6879
|
+
config,
|
|
6880
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
6881
|
+
});
|
|
6882
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6883
|
+
}
|
|
6884
|
+
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
6885
|
+
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
6886
|
+
config,
|
|
6887
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
6888
|
+
});
|
|
6889
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6890
|
+
}
|
|
6401
6891
|
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
6402
6892
|
const resourceParams = createResourceParams$6(config);
|
|
6403
6893
|
const request = createResourceRequest$6(resourceParams);
|
|
6404
6894
|
return luvio.dispatchResourceRequest(request, options)
|
|
6405
6895
|
.then((response) => {
|
|
6406
|
-
return luvio.handleSuccessResponse(() => {
|
|
6407
|
-
const snapshot = ingestSuccess$6(luvio, resourceParams, response);
|
|
6408
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
6409
|
-
}, () => {
|
|
6896
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
6410
6897
|
const cache = new StoreKeyMap();
|
|
6411
6898
|
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
6412
6899
|
return cache;
|
|
6413
6900
|
});
|
|
6414
6901
|
}, (response) => {
|
|
6415
|
-
|
|
6416
|
-
throw response;
|
|
6902
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
6417
6903
|
});
|
|
6418
6904
|
}
|
|
6419
|
-
|
|
6420
|
-
return
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6905
|
+
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
6906
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
6907
|
+
}
|
|
6908
|
+
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
6909
|
+
const { luvio, config } = context;
|
|
6910
|
+
const selector = {
|
|
6911
|
+
recordId: keyBuilder$c(luvio, config),
|
|
6912
|
+
node: adapterFragment$6(luvio, config),
|
|
6913
|
+
variables: {},
|
|
6427
6914
|
};
|
|
6915
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
6916
|
+
config,
|
|
6917
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
6918
|
+
});
|
|
6919
|
+
return cacheSnapshot;
|
|
6920
|
+
}
|
|
6921
|
+
const getSlackConversationInfoAdapterFactory = (luvio) => function SlackBridge__getSlackConversationInfo(untrustedConfig, requestContext) {
|
|
6922
|
+
const config = validateAdapterConfig$6(untrustedConfig, getSlackConversationInfo_ConfigPropertyNames);
|
|
6923
|
+
// Invalid or incomplete config
|
|
6924
|
+
if (config === null) {
|
|
6925
|
+
return null;
|
|
6926
|
+
}
|
|
6927
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
6928
|
+
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
6428
6929
|
};
|
|
6429
6930
|
|
|
6430
|
-
const VERSION$
|
|
6431
|
-
function validate$
|
|
6931
|
+
const VERSION$1 = "da7e3ba240e3ef2a2a6ee0e913ef280c";
|
|
6932
|
+
function validate$1(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
6432
6933
|
const v_error = (() => {
|
|
6433
6934
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6434
6935
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6448,8 +6949,8 @@ function validate$2(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
|
6448
6949
|
})();
|
|
6449
6950
|
return v_error === undefined ? null : v_error;
|
|
6450
6951
|
}
|
|
6451
|
-
const RepresentationType$
|
|
6452
|
-
function normalize$
|
|
6952
|
+
const RepresentationType$1 = 'SlackBridgeEmojisOutputRepresentation';
|
|
6953
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
6453
6954
|
const input_emojis = input.emojis;
|
|
6454
6955
|
const input_emojis_id = path.fullPath + '__emojis';
|
|
6455
6956
|
for (let i = 0; i < input_emojis.length; i++) {
|
|
@@ -6468,22 +6969,22 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
6468
6969
|
}
|
|
6469
6970
|
return input;
|
|
6470
6971
|
}
|
|
6471
|
-
const select$
|
|
6972
|
+
const select$7 = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
6472
6973
|
return {
|
|
6473
6974
|
kind: 'Fragment',
|
|
6474
|
-
version: VERSION$
|
|
6975
|
+
version: VERSION$1,
|
|
6475
6976
|
private: [],
|
|
6476
6977
|
selections: [
|
|
6477
6978
|
{
|
|
6478
6979
|
name: 'emojis',
|
|
6479
6980
|
kind: 'Link',
|
|
6480
6981
|
plural: true,
|
|
6481
|
-
fragment: select$
|
|
6982
|
+
fragment: select$G()
|
|
6482
6983
|
}
|
|
6483
6984
|
]
|
|
6484
6985
|
};
|
|
6485
6986
|
};
|
|
6486
|
-
function equals$
|
|
6987
|
+
function equals$1(existing, incoming) {
|
|
6487
6988
|
const existing_emojis = existing.emojis;
|
|
6488
6989
|
const incoming_emojis = incoming.emojis;
|
|
6489
6990
|
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
@@ -6496,24 +6997,24 @@ function equals$2(existing, incoming) {
|
|
|
6496
6997
|
}
|
|
6497
6998
|
return true;
|
|
6498
6999
|
}
|
|
6499
|
-
const ingest$
|
|
7000
|
+
const ingest$1 = function SlackBridgeEmojisOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6500
7001
|
if (process.env.NODE_ENV !== 'production') {
|
|
6501
|
-
const validateError = validate$
|
|
7002
|
+
const validateError = validate$1(input);
|
|
6502
7003
|
if (validateError !== null) {
|
|
6503
7004
|
throw validateError;
|
|
6504
7005
|
}
|
|
6505
7006
|
}
|
|
6506
7007
|
const key = path.fullPath;
|
|
6507
7008
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
6508
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7009
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "SlackBridge", VERSION$1, RepresentationType$1, equals$1);
|
|
6509
7010
|
return createLink(key);
|
|
6510
7011
|
};
|
|
6511
|
-
function getTypeCacheKeys$
|
|
7012
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
6512
7013
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6513
7014
|
const rootKey = fullPathFactory();
|
|
6514
7015
|
rootKeySet.set(rootKey, {
|
|
6515
7016
|
namespace: keyPrefix,
|
|
6516
|
-
representationName: RepresentationType$
|
|
7017
|
+
representationName: RepresentationType$1,
|
|
6517
7018
|
mergeable: false
|
|
6518
7019
|
});
|
|
6519
7020
|
const input_emojis_length = input.emojis.length;
|
|
@@ -6522,22 +7023,22 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6522
7023
|
}
|
|
6523
7024
|
}
|
|
6524
7025
|
|
|
6525
|
-
function select$
|
|
6526
|
-
return select$
|
|
7026
|
+
function select$6(luvio, params) {
|
|
7027
|
+
return select$7();
|
|
6527
7028
|
}
|
|
6528
7029
|
function keyBuilder$b(luvio, params) {
|
|
6529
7030
|
return keyPrefix + '::SlackBridgeEmojisOutputRepresentation:(' + 'slackEmojiIds:' + params.queryParams.slackEmojiIds + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
6530
7031
|
}
|
|
6531
7032
|
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
6532
|
-
getTypeCacheKeys$
|
|
7033
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
6533
7034
|
}
|
|
6534
7035
|
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
6535
7036
|
const { body } = response;
|
|
6536
7037
|
const key = keyBuilder$b(luvio, resourceParams);
|
|
6537
|
-
luvio.storeIngest(key, ingest$
|
|
7038
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
6538
7039
|
const snapshot = luvio.storeLookup({
|
|
6539
7040
|
recordId: key,
|
|
6540
|
-
node: select$
|
|
7041
|
+
node: select$6(),
|
|
6541
7042
|
variables: {},
|
|
6542
7043
|
}, snapshotRefresh);
|
|
6543
7044
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6574,14 +7075,14 @@ const getSlackEmojis_ConfigPropertyMetadata = [
|
|
|
6574
7075
|
generateParamConfigMetadata('slackEmojiIds', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
6575
7076
|
];
|
|
6576
7077
|
const getSlackEmojis_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSlackEmojis_ConfigPropertyMetadata);
|
|
6577
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
7078
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$o(getSlackEmojis_ConfigPropertyMetadata);
|
|
6578
7079
|
function keyBuilder$a(luvio, config) {
|
|
6579
7080
|
const resourceParams = createResourceParams$5(config);
|
|
6580
7081
|
return keyBuilder$b(luvio, resourceParams);
|
|
6581
7082
|
}
|
|
6582
7083
|
function typeCheckConfig$5(untrustedConfig) {
|
|
6583
7084
|
const config = {};
|
|
6584
|
-
typeCheckConfig$
|
|
7085
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackEmojis_ConfigPropertyMetadata);
|
|
6585
7086
|
return config;
|
|
6586
7087
|
}
|
|
6587
7088
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -6599,7 +7100,7 @@ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
|
6599
7100
|
}
|
|
6600
7101
|
function adapterFragment$5(luvio, config) {
|
|
6601
7102
|
createResourceParams$5(config);
|
|
6602
|
-
return select$
|
|
7103
|
+
return select$6();
|
|
6603
7104
|
}
|
|
6604
7105
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
6605
7106
|
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
@@ -6630,7 +7131,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
6630
7131
|
});
|
|
6631
7132
|
}
|
|
6632
7133
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
6633
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7134
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
6634
7135
|
}
|
|
6635
7136
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
6636
7137
|
const { luvio, config } = context;
|
|
@@ -6655,11 +7156,11 @@ const getSlackEmojisAdapterFactory = (luvio) => function SlackBridge__getSlackEm
|
|
|
6655
7156
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
6656
7157
|
};
|
|
6657
7158
|
|
|
6658
|
-
function select$
|
|
6659
|
-
return select$
|
|
7159
|
+
function select$5(luvio, params) {
|
|
7160
|
+
return select$G();
|
|
6660
7161
|
}
|
|
6661
7162
|
function keyBuilder$9(luvio, params) {
|
|
6662
|
-
return keyBuilder$
|
|
7163
|
+
return keyBuilder$F(luvio, {
|
|
6663
7164
|
name: params.urlParams.slackEmojiId
|
|
6664
7165
|
});
|
|
6665
7166
|
}
|
|
@@ -6672,7 +7173,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6672
7173
|
luvio.storeIngest(key, ingest$h, body);
|
|
6673
7174
|
const snapshot = luvio.storeLookup({
|
|
6674
7175
|
recordId: key,
|
|
6675
|
-
node: select$
|
|
7176
|
+
node: select$5(),
|
|
6676
7177
|
variables: {},
|
|
6677
7178
|
}, snapshotRefresh);
|
|
6678
7179
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6687,7 +7188,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
6687
7188
|
const key = keyBuilder$9(luvio, params);
|
|
6688
7189
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6689
7190
|
const storeMetadataParams = {
|
|
6690
|
-
ttl: TTL$
|
|
7191
|
+
ttl: TTL$3,
|
|
6691
7192
|
namespace: keyPrefix,
|
|
6692
7193
|
version: VERSION$l,
|
|
6693
7194
|
representationName: RepresentationType$h
|
|
@@ -6715,14 +7216,14 @@ const getSlackEmoji_ConfigPropertyMetadata = [
|
|
|
6715
7216
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6716
7217
|
];
|
|
6717
7218
|
const getSlackEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSlackEmoji_ConfigPropertyMetadata);
|
|
6718
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
7219
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$o(getSlackEmoji_ConfigPropertyMetadata);
|
|
6719
7220
|
function keyBuilder$8(luvio, config) {
|
|
6720
7221
|
const resourceParams = createResourceParams$4(config);
|
|
6721
7222
|
return keyBuilder$9(luvio, resourceParams);
|
|
6722
7223
|
}
|
|
6723
7224
|
function typeCheckConfig$4(untrustedConfig) {
|
|
6724
7225
|
const config = {};
|
|
6725
|
-
typeCheckConfig$
|
|
7226
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackEmoji_ConfigPropertyMetadata);
|
|
6726
7227
|
return config;
|
|
6727
7228
|
}
|
|
6728
7229
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -6740,7 +7241,7 @@ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
|
6740
7241
|
}
|
|
6741
7242
|
function adapterFragment$4(luvio, config) {
|
|
6742
7243
|
createResourceParams$4(config);
|
|
6743
|
-
return select$
|
|
7244
|
+
return select$5();
|
|
6744
7245
|
}
|
|
6745
7246
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
6746
7247
|
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
@@ -6771,7 +7272,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
6771
7272
|
});
|
|
6772
7273
|
}
|
|
6773
7274
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
6774
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7275
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
6775
7276
|
}
|
|
6776
7277
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
6777
7278
|
const { luvio, config } = context;
|
|
@@ -6796,149 +7297,19 @@ const getSlackEmojiAdapterFactory = (luvio) => function SlackBridge__getSlackEmo
|
|
|
6796
7297
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
6797
7298
|
};
|
|
6798
7299
|
|
|
6799
|
-
const VERSION$1 = "0de597a47ca8ecad2cfb7fd9c8f73920";
|
|
6800
|
-
function validate$1(obj, path = 'SlackBridgeConversationInfosOutputRepresentation') {
|
|
6801
|
-
const v_error = (() => {
|
|
6802
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6803
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6804
|
-
}
|
|
6805
|
-
const obj_conversationInfos = obj.conversationInfos;
|
|
6806
|
-
const path_conversationInfos = path + '.conversationInfos';
|
|
6807
|
-
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
6808
|
-
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
6809
|
-
}
|
|
6810
|
-
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
6811
|
-
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
6812
|
-
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
6813
|
-
if (typeof obj_conversationInfos_item !== 'object') {
|
|
6814
|
-
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
6815
|
-
}
|
|
6816
|
-
}
|
|
6817
|
-
const obj_searchString = obj.searchString;
|
|
6818
|
-
const path_searchString = path + '.searchString';
|
|
6819
|
-
let obj_searchString_union0 = null;
|
|
6820
|
-
const obj_searchString_union0_error = (() => {
|
|
6821
|
-
if (typeof obj_searchString !== 'string') {
|
|
6822
|
-
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6823
|
-
}
|
|
6824
|
-
})();
|
|
6825
|
-
if (obj_searchString_union0_error != null) {
|
|
6826
|
-
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
6827
|
-
}
|
|
6828
|
-
let obj_searchString_union1 = null;
|
|
6829
|
-
const obj_searchString_union1_error = (() => {
|
|
6830
|
-
if (obj_searchString !== null) {
|
|
6831
|
-
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6832
|
-
}
|
|
6833
|
-
})();
|
|
6834
|
-
if (obj_searchString_union1_error != null) {
|
|
6835
|
-
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
6836
|
-
}
|
|
6837
|
-
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
6838
|
-
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
6839
|
-
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6840
|
-
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6841
|
-
return new TypeError(message);
|
|
6842
|
-
}
|
|
6843
|
-
})();
|
|
6844
|
-
return v_error === undefined ? null : v_error;
|
|
6845
|
-
}
|
|
6846
|
-
const RepresentationType$1 = 'SlackBridgeConversationInfosOutputRepresentation';
|
|
6847
|
-
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
6848
|
-
const input_conversationInfos = input.conversationInfos;
|
|
6849
|
-
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
6850
|
-
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
6851
|
-
const input_conversationInfos_item = input_conversationInfos[i];
|
|
6852
|
-
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
6853
|
-
input_conversationInfos[i] = ingest$f(input_conversationInfos_item, {
|
|
6854
|
-
fullPath: input_conversationInfos_item_id,
|
|
6855
|
-
propertyName: i,
|
|
6856
|
-
parent: {
|
|
6857
|
-
data: input,
|
|
6858
|
-
key: path.fullPath,
|
|
6859
|
-
existing: existing,
|
|
6860
|
-
},
|
|
6861
|
-
ttl: path.ttl
|
|
6862
|
-
}, luvio, store, timestamp);
|
|
6863
|
-
}
|
|
6864
|
-
return input;
|
|
6865
|
-
}
|
|
6866
|
-
const select$5 = function SlackBridgeConversationInfosOutputRepresentationSelect() {
|
|
6867
|
-
return {
|
|
6868
|
-
kind: 'Fragment',
|
|
6869
|
-
version: VERSION$1,
|
|
6870
|
-
private: [],
|
|
6871
|
-
selections: [
|
|
6872
|
-
{
|
|
6873
|
-
name: 'conversationInfos',
|
|
6874
|
-
kind: 'Link',
|
|
6875
|
-
plural: true,
|
|
6876
|
-
fragment: select$C()
|
|
6877
|
-
},
|
|
6878
|
-
{
|
|
6879
|
-
name: 'searchString',
|
|
6880
|
-
kind: 'Scalar'
|
|
6881
|
-
}
|
|
6882
|
-
]
|
|
6883
|
-
};
|
|
6884
|
-
};
|
|
6885
|
-
function equals$1(existing, incoming) {
|
|
6886
|
-
const existing_conversationInfos = existing.conversationInfos;
|
|
6887
|
-
const incoming_conversationInfos = incoming.conversationInfos;
|
|
6888
|
-
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
6889
|
-
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
6890
|
-
return false;
|
|
6891
|
-
}
|
|
6892
|
-
});
|
|
6893
|
-
if (equals_conversationInfos_items === false) {
|
|
6894
|
-
return false;
|
|
6895
|
-
}
|
|
6896
|
-
const existing_searchString = existing.searchString;
|
|
6897
|
-
const incoming_searchString = incoming.searchString;
|
|
6898
|
-
if (!(existing_searchString === incoming_searchString)) {
|
|
6899
|
-
return false;
|
|
6900
|
-
}
|
|
6901
|
-
return true;
|
|
6902
|
-
}
|
|
6903
|
-
const ingest$1 = function SlackBridgeConversationInfosOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6904
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
6905
|
-
const validateError = validate$1(input);
|
|
6906
|
-
if (validateError !== null) {
|
|
6907
|
-
throw validateError;
|
|
6908
|
-
}
|
|
6909
|
-
}
|
|
6910
|
-
const key = path.fullPath;
|
|
6911
|
-
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
6912
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "SlackBridge", VERSION$1, RepresentationType$1, equals$1);
|
|
6913
|
-
return createLink(key);
|
|
6914
|
-
};
|
|
6915
|
-
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
6916
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6917
|
-
const rootKey = fullPathFactory();
|
|
6918
|
-
rootKeySet.set(rootKey, {
|
|
6919
|
-
namespace: keyPrefix,
|
|
6920
|
-
representationName: RepresentationType$1,
|
|
6921
|
-
mergeable: false
|
|
6922
|
-
});
|
|
6923
|
-
const input_conversationInfos_length = input.conversationInfos.length;
|
|
6924
|
-
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
6925
|
-
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfos[i]);
|
|
6926
|
-
}
|
|
6927
|
-
}
|
|
6928
|
-
|
|
6929
7300
|
function select$4(luvio, params) {
|
|
6930
|
-
return select$
|
|
7301
|
+
return select$a();
|
|
6931
7302
|
}
|
|
6932
7303
|
function keyBuilder$7(luvio, params) {
|
|
6933
7304
|
return keyPrefix + '::SlackBridgeConversationInfosOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
6934
7305
|
}
|
|
6935
7306
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
6936
|
-
getTypeCacheKeys$
|
|
7307
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
6937
7308
|
}
|
|
6938
7309
|
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
6939
7310
|
const { body } = response;
|
|
6940
7311
|
const key = keyBuilder$7(luvio, resourceParams);
|
|
6941
|
-
luvio.storeIngest(key, ingest$
|
|
7312
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
6942
7313
|
const snapshot = luvio.storeLookup({
|
|
6943
7314
|
recordId: key,
|
|
6944
7315
|
node: select$4(),
|
|
@@ -6978,14 +7349,14 @@ const getSlackSearchConversation_ConfigPropertyMetadata = [
|
|
|
6978
7349
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6979
7350
|
];
|
|
6980
7351
|
const getSlackSearchConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6981
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
7352
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$o(getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6982
7353
|
function keyBuilder$6(luvio, config) {
|
|
6983
7354
|
const resourceParams = createResourceParams$3(config);
|
|
6984
7355
|
return keyBuilder$7(luvio, resourceParams);
|
|
6985
7356
|
}
|
|
6986
7357
|
function typeCheckConfig$3(untrustedConfig) {
|
|
6987
7358
|
const config = {};
|
|
6988
|
-
typeCheckConfig$
|
|
7359
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6989
7360
|
return config;
|
|
6990
7361
|
}
|
|
6991
7362
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -7034,7 +7405,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
7034
7405
|
});
|
|
7035
7406
|
}
|
|
7036
7407
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
7037
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7408
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
7038
7409
|
}
|
|
7039
7410
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
7040
7411
|
const { luvio, config } = context;
|
|
@@ -7060,18 +7431,18 @@ const getSlackSearchConversationAdapterFactory = (luvio) => function SlackBridge
|
|
|
7060
7431
|
};
|
|
7061
7432
|
|
|
7062
7433
|
function select$3(luvio, params) {
|
|
7063
|
-
return select$
|
|
7434
|
+
return select$7();
|
|
7064
7435
|
}
|
|
7065
7436
|
function keyBuilder$5(luvio, params) {
|
|
7066
7437
|
return keyPrefix + '::SlackBridgeEmojisOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
7067
7438
|
}
|
|
7068
7439
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
7069
|
-
getTypeCacheKeys$
|
|
7440
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
7070
7441
|
}
|
|
7071
7442
|
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
7072
7443
|
const { body } = response;
|
|
7073
7444
|
const key = keyBuilder$5(luvio, resourceParams);
|
|
7074
|
-
luvio.storeIngest(key, ingest$
|
|
7445
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
7075
7446
|
const snapshot = luvio.storeLookup({
|
|
7076
7447
|
recordId: key,
|
|
7077
7448
|
node: select$3(),
|
|
@@ -7111,14 +7482,14 @@ const getSlackSearchEmoji_ConfigPropertyMetadata = [
|
|
|
7111
7482
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7112
7483
|
];
|
|
7113
7484
|
const getSlackSearchEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
7114
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
7485
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$o(getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
7115
7486
|
function keyBuilder$4(luvio, config) {
|
|
7116
7487
|
const resourceParams = createResourceParams$2(config);
|
|
7117
7488
|
return keyBuilder$5(luvio, resourceParams);
|
|
7118
7489
|
}
|
|
7119
7490
|
function typeCheckConfig$2(untrustedConfig) {
|
|
7120
7491
|
const config = {};
|
|
7121
|
-
typeCheckConfig$
|
|
7492
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
7122
7493
|
return config;
|
|
7123
7494
|
}
|
|
7124
7495
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -7167,7 +7538,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
7167
7538
|
});
|
|
7168
7539
|
}
|
|
7169
7540
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
7170
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7541
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
7171
7542
|
}
|
|
7172
7543
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
7173
7544
|
const { luvio, config } = context;
|
|
@@ -7192,12 +7563,38 @@ const getSlackSearchEmojiAdapterFactory = (luvio) => function SlackBridge__getSl
|
|
|
7192
7563
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
7193
7564
|
};
|
|
7194
7565
|
|
|
7195
|
-
const VERSION = "
|
|
7566
|
+
const VERSION = "16b915c502b8a0609446d7ed3907a794";
|
|
7196
7567
|
function validate(obj, path = 'SlackBridgeUserInfosOutputRepresentation') {
|
|
7197
7568
|
const v_error = (() => {
|
|
7198
7569
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7199
7570
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7200
7571
|
}
|
|
7572
|
+
const obj_nextMarker = obj.nextMarker;
|
|
7573
|
+
const path_nextMarker = path + '.nextMarker';
|
|
7574
|
+
let obj_nextMarker_union0 = null;
|
|
7575
|
+
const obj_nextMarker_union0_error = (() => {
|
|
7576
|
+
if (typeof obj_nextMarker !== 'string') {
|
|
7577
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nextMarker + '" (at "' + path_nextMarker + '")');
|
|
7578
|
+
}
|
|
7579
|
+
})();
|
|
7580
|
+
if (obj_nextMarker_union0_error != null) {
|
|
7581
|
+
obj_nextMarker_union0 = obj_nextMarker_union0_error.message;
|
|
7582
|
+
}
|
|
7583
|
+
let obj_nextMarker_union1 = null;
|
|
7584
|
+
const obj_nextMarker_union1_error = (() => {
|
|
7585
|
+
if (obj_nextMarker !== null) {
|
|
7586
|
+
return new TypeError('Expected "null" but received "' + typeof obj_nextMarker + '" (at "' + path_nextMarker + '")');
|
|
7587
|
+
}
|
|
7588
|
+
})();
|
|
7589
|
+
if (obj_nextMarker_union1_error != null) {
|
|
7590
|
+
obj_nextMarker_union1 = obj_nextMarker_union1_error.message;
|
|
7591
|
+
}
|
|
7592
|
+
if (obj_nextMarker_union0 && obj_nextMarker_union1) {
|
|
7593
|
+
let message = 'Object doesn\'t match union (at "' + path_nextMarker + '")';
|
|
7594
|
+
message += '\n' + obj_nextMarker_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7595
|
+
message += '\n' + obj_nextMarker_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7596
|
+
return new TypeError(message);
|
|
7597
|
+
}
|
|
7201
7598
|
const obj_searchString = obj.searchString;
|
|
7202
7599
|
const path_searchString = path + '.searchString';
|
|
7203
7600
|
let obj_searchString_union0 = null;
|
|
@@ -7265,6 +7662,10 @@ const select$2 = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
7265
7662
|
version: VERSION,
|
|
7266
7663
|
private: [],
|
|
7267
7664
|
selections: [
|
|
7665
|
+
{
|
|
7666
|
+
name: 'nextMarker',
|
|
7667
|
+
kind: 'Scalar'
|
|
7668
|
+
},
|
|
7268
7669
|
{
|
|
7269
7670
|
name: 'searchString',
|
|
7270
7671
|
kind: 'Scalar'
|
|
@@ -7273,12 +7674,17 @@ const select$2 = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
7273
7674
|
name: 'userInfos',
|
|
7274
7675
|
kind: 'Link',
|
|
7275
7676
|
plural: true,
|
|
7276
|
-
fragment: select$
|
|
7677
|
+
fragment: select$F()
|
|
7277
7678
|
}
|
|
7278
7679
|
]
|
|
7279
7680
|
};
|
|
7280
7681
|
};
|
|
7281
7682
|
function equals(existing, incoming) {
|
|
7683
|
+
const existing_nextMarker = existing.nextMarker;
|
|
7684
|
+
const incoming_nextMarker = incoming.nextMarker;
|
|
7685
|
+
if (!(existing_nextMarker === incoming_nextMarker)) {
|
|
7686
|
+
return false;
|
|
7687
|
+
}
|
|
7282
7688
|
const existing_searchString = existing.searchString;
|
|
7283
7689
|
const incoming_searchString = incoming.searchString;
|
|
7284
7690
|
if (!(existing_searchString === incoming_searchString)) {
|
|
@@ -7377,14 +7783,14 @@ const getSlackSearchUser_ConfigPropertyMetadata = [
|
|
|
7377
7783
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7378
7784
|
];
|
|
7379
7785
|
const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getSlackSearchUser_ConfigPropertyMetadata);
|
|
7380
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
7786
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$o(getSlackSearchUser_ConfigPropertyMetadata);
|
|
7381
7787
|
function keyBuilder$2(luvio, config) {
|
|
7382
7788
|
const resourceParams = createResourceParams$1(config);
|
|
7383
7789
|
return keyBuilder$3(luvio, resourceParams);
|
|
7384
7790
|
}
|
|
7385
7791
|
function typeCheckConfig$1(untrustedConfig) {
|
|
7386
7792
|
const config = {};
|
|
7387
|
-
typeCheckConfig$
|
|
7793
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
|
|
7388
7794
|
return config;
|
|
7389
7795
|
}
|
|
7390
7796
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -7433,7 +7839,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
7433
7839
|
});
|
|
7434
7840
|
}
|
|
7435
7841
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
7436
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7842
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
7437
7843
|
}
|
|
7438
7844
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
7439
7845
|
const { luvio, config } = context;
|
|
@@ -7459,10 +7865,10 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
|
|
|
7459
7865
|
};
|
|
7460
7866
|
|
|
7461
7867
|
function select(luvio, params) {
|
|
7462
|
-
return select$
|
|
7868
|
+
return select$F();
|
|
7463
7869
|
}
|
|
7464
7870
|
function keyBuilder$1(luvio, params) {
|
|
7465
|
-
return keyBuilder$
|
|
7871
|
+
return keyBuilder$E(luvio, {
|
|
7466
7872
|
slackUserId: params.urlParams.slackUserId
|
|
7467
7873
|
});
|
|
7468
7874
|
}
|
|
@@ -7490,7 +7896,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
7490
7896
|
const key = keyBuilder$1(luvio, params);
|
|
7491
7897
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
7492
7898
|
const storeMetadataParams = {
|
|
7493
|
-
ttl: TTL$
|
|
7899
|
+
ttl: TTL$2,
|
|
7494
7900
|
namespace: keyPrefix,
|
|
7495
7901
|
version: VERSION$k,
|
|
7496
7902
|
representationName: RepresentationType$g
|
|
@@ -7518,14 +7924,14 @@ const getSlackUser_ConfigPropertyMetadata = [
|
|
|
7518
7924
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7519
7925
|
];
|
|
7520
7926
|
const getSlackUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSlackUser_ConfigPropertyMetadata);
|
|
7521
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
7927
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$o(getSlackUser_ConfigPropertyMetadata);
|
|
7522
7928
|
function keyBuilder(luvio, config) {
|
|
7523
7929
|
const resourceParams = createResourceParams(config);
|
|
7524
7930
|
return keyBuilder$1(luvio, resourceParams);
|
|
7525
7931
|
}
|
|
7526
7932
|
function typeCheckConfig(untrustedConfig) {
|
|
7527
7933
|
const config = {};
|
|
7528
|
-
typeCheckConfig$
|
|
7934
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
|
|
7529
7935
|
return config;
|
|
7530
7936
|
}
|
|
7531
7937
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -7574,7 +7980,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
7574
7980
|
});
|
|
7575
7981
|
}
|
|
7576
7982
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
7577
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7983
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
7578
7984
|
}
|
|
7579
7985
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
7580
7986
|
const { luvio, config } = context;
|
|
@@ -7599,4 +8005,4 @@ const getSlackUserAdapterFactory = (luvio) => function SlackBridge__getSlackUser
|
|
|
7599
8005
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
7600
8006
|
};
|
|
7601
8007
|
|
|
7602
|
-
export { deleteSlackConversationMemberAdapterFactory, deleteSlackMessageAdapterFactory, deleteSlackMessageReactionsAdapterFactory, getRelatedThreadsAdapterFactory, getSlackConversationAdapterFactory, getSlackConversationMemberAdapterFactory, getSlackConversationMembersAdapterFactory, getSlackEmojiAdapterFactory, getSlackEmojisAdapterFactory, getSlackMessageAdapterFactory, getSlackRecordChannelInfoAdapterFactory, getSlackSearchConversationAdapterFactory, getSlackSearchEmojiAdapterFactory, getSlackSearchUserAdapterFactory, getSlackUserAdapterFactory, patchSlackMessageAdapterFactory, postSlackConversationAdapterFactory, postSlackConversationMarkAdapterFactory, postSlackConversationMembersAdapterFactory, postSlackFileAdapterFactory, postSlackMessageReactionsAdapterFactory, postSlackRecordChannelInfosAdapterFactory };
|
|
8008
|
+
export { deleteSlackConversationMemberAdapterFactory, deleteSlackMessageAdapterFactory, deleteSlackMessageReactionsAdapterFactory, getRelatedThreadsAdapterFactory, getSlackConversationAdapterFactory, getSlackConversationInfoAdapterFactory, getSlackConversationInfosAdapterFactory, getSlackConversationMemberAdapterFactory, getSlackConversationMembersAdapterFactory, getSlackEmojiAdapterFactory, getSlackEmojisAdapterFactory, getSlackMessageAdapterFactory, getSlackRecordChannelInfoAdapterFactory, getSlackSearchConversationAdapterFactory, getSlackSearchEmojiAdapterFactory, getSlackSearchUserAdapterFactory, getSlackUserAdapterFactory, patchSlackMessageAdapterFactory, postSlackConversationAdapterFactory, postSlackConversationMarkAdapterFactory, postSlackConversationMembersAdapterFactory, postSlackFileAdapterFactory, postSlackMessageReactionsAdapterFactory, postSlackRecordChannelInfosAdapterFactory };
|