@salesforce/lds-adapters-platform-slack-bridge 1.356.0 → 1.357.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/platform-slack-bridge.js +1156 -750
- 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 +976 -503
- package/src/raml/api.raml +56 -1
- 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 = "2871ae193ac5e60b5cc0d6c4111e8615";
|
|
499
499
|
function validate$k(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
500
500
|
const v_error = (() => {
|
|
@@ -921,14 +921,14 @@ function validate$k(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
921
921
|
return v_error === undefined ? null : v_error;
|
|
922
922
|
}
|
|
923
923
|
const RepresentationType$g = 'SlackBridgeUserInfoOutputRepresentation';
|
|
924
|
-
function keyBuilder$
|
|
924
|
+
function keyBuilder$E(luvio, config) {
|
|
925
925
|
return keyPrefix + '::' + RepresentationType$g + ':' + config.slackUserId;
|
|
926
926
|
}
|
|
927
927
|
function keyBuilderFromType$9(luvio, object) {
|
|
928
928
|
const keyParams = {
|
|
929
929
|
slackUserId: object.slackUserId
|
|
930
930
|
};
|
|
931
|
-
return keyBuilder$
|
|
931
|
+
return keyBuilder$E(luvio, keyParams);
|
|
932
932
|
}
|
|
933
933
|
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
934
934
|
const input_statusEmoji = input.statusEmoji;
|
|
@@ -947,7 +947,7 @@ function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
|
947
947
|
}
|
|
948
948
|
return input;
|
|
949
949
|
}
|
|
950
|
-
const select$
|
|
950
|
+
const select$F = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
951
951
|
return {
|
|
952
952
|
kind: 'Fragment',
|
|
953
953
|
version: VERSION$k,
|
|
@@ -1020,7 +1020,7 @@ const select$D = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1020
1020
|
name: 'statusEmoji',
|
|
1021
1021
|
kind: 'Link',
|
|
1022
1022
|
nullable: true,
|
|
1023
|
-
fragment: select$
|
|
1023
|
+
fragment: select$G()
|
|
1024
1024
|
},
|
|
1025
1025
|
{
|
|
1026
1026
|
name: 'statusMessage',
|
|
@@ -1172,7 +1172,7 @@ const ingest$g = function SlackBridgeUserInfoOutputRepresentationIngest(input, p
|
|
|
1172
1172
|
}
|
|
1173
1173
|
}
|
|
1174
1174
|
const key = keyBuilderFromType$9(luvio, input);
|
|
1175
|
-
const ttlToUse = TTL$
|
|
1175
|
+
const ttlToUse = TTL$2;
|
|
1176
1176
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SlackBridge", VERSION$k, RepresentationType$g, equals$k);
|
|
1177
1177
|
return createLink(key);
|
|
1178
1178
|
};
|
|
@@ -1189,6 +1189,7 @@ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
1191
|
|
|
1192
|
+
const TTL$1 = 900000;
|
|
1192
1193
|
const VERSION$j = "252fe3a6509a770a876e36552ad8dd06";
|
|
1193
1194
|
function validate$j(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
|
|
1194
1195
|
const v_error = (() => {
|
|
@@ -1528,19 +1529,19 @@ function validate$j(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1528
1529
|
return v_error === undefined ? null : v_error;
|
|
1529
1530
|
}
|
|
1530
1531
|
const RepresentationType$f = 'SlackBridgeConversationInfoOutputRepresentation';
|
|
1531
|
-
function keyBuilder$
|
|
1532
|
+
function keyBuilder$D(luvio, config) {
|
|
1532
1533
|
return keyPrefix + '::' + RepresentationType$f + ':' + config.id;
|
|
1533
1534
|
}
|
|
1534
1535
|
function keyBuilderFromType$8(luvio, object) {
|
|
1535
1536
|
const keyParams = {
|
|
1536
1537
|
id: object.id
|
|
1537
1538
|
};
|
|
1538
|
-
return keyBuilder$
|
|
1539
|
+
return keyBuilder$D(luvio, keyParams);
|
|
1539
1540
|
}
|
|
1540
1541
|
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
1541
1542
|
return input;
|
|
1542
1543
|
}
|
|
1543
|
-
const select$
|
|
1544
|
+
const select$E = function SlackBridgeConversationInfoOutputRepresentationSelect() {
|
|
1544
1545
|
return {
|
|
1545
1546
|
kind: 'Fragment',
|
|
1546
1547
|
version: VERSION$j,
|
|
@@ -1704,7 +1705,7 @@ const ingest$f = function SlackBridgeConversationInfoOutputRepresentationIngest(
|
|
|
1704
1705
|
}
|
|
1705
1706
|
}
|
|
1706
1707
|
const key = keyBuilderFromType$8(luvio, input);
|
|
1707
|
-
const ttlToUse =
|
|
1708
|
+
const ttlToUse = TTL$1;
|
|
1708
1709
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "SlackBridge", VERSION$j, RepresentationType$f, equals$j);
|
|
1709
1710
|
return createLink(key);
|
|
1710
1711
|
};
|
|
@@ -1796,7 +1797,7 @@ function validate$i(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
|
1796
1797
|
})();
|
|
1797
1798
|
return v_error === undefined ? null : v_error;
|
|
1798
1799
|
}
|
|
1799
|
-
const select$
|
|
1800
|
+
const select$D = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
1800
1801
|
return {
|
|
1801
1802
|
kind: 'Fragment',
|
|
1802
1803
|
version: VERSION$i,
|
|
@@ -1870,7 +1871,7 @@ function validate$h(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
|
1870
1871
|
})();
|
|
1871
1872
|
return v_error === undefined ? null : v_error;
|
|
1872
1873
|
}
|
|
1873
|
-
const select$
|
|
1874
|
+
const select$C = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
1874
1875
|
return {
|
|
1875
1876
|
kind: 'Fragment',
|
|
1876
1877
|
version: VERSION$h,
|
|
@@ -1985,8 +1986,8 @@ function validate$g(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
1985
1986
|
})();
|
|
1986
1987
|
return v_error === undefined ? null : v_error;
|
|
1987
1988
|
}
|
|
1988
|
-
const select$
|
|
1989
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
1989
|
+
const select$B = function SlackBridgeContentVersionOutputRepresentationSelect() {
|
|
1990
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$C();
|
|
1990
1991
|
return {
|
|
1991
1992
|
kind: 'Fragment',
|
|
1992
1993
|
version: VERSION$g,
|
|
@@ -2098,9 +2099,9 @@ function validate$f(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
2098
2099
|
})();
|
|
2099
2100
|
return v_error === undefined ? null : v_error;
|
|
2100
2101
|
}
|
|
2101
|
-
const select$
|
|
2102
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
2103
|
-
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$
|
|
2102
|
+
const select$A = function SlackBridgeContentDocumentOutputRepresentationSelect() {
|
|
2103
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$C();
|
|
2104
|
+
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$B();
|
|
2104
2105
|
return {
|
|
2105
2106
|
kind: 'Fragment',
|
|
2106
2107
|
version: VERSION$f,
|
|
@@ -2333,20 +2334,20 @@ function validate$e(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
2333
2334
|
return v_error === undefined ? null : v_error;
|
|
2334
2335
|
}
|
|
2335
2336
|
const RepresentationType$e = 'SlackBridgeFileOutputRepresentation';
|
|
2336
|
-
function keyBuilder$
|
|
2337
|
+
function keyBuilder$C(luvio, config) {
|
|
2337
2338
|
return keyPrefix + '::' + RepresentationType$e + ':' + (config.uniqueKey === null ? '' : config.uniqueKey);
|
|
2338
2339
|
}
|
|
2339
2340
|
function keyBuilderFromType$7(luvio, object) {
|
|
2340
2341
|
const keyParams = {
|
|
2341
2342
|
uniqueKey: object.uniqueKey
|
|
2342
2343
|
};
|
|
2343
|
-
return keyBuilder$
|
|
2344
|
+
return keyBuilder$C(luvio, keyParams);
|
|
2344
2345
|
}
|
|
2345
2346
|
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
2346
2347
|
return input;
|
|
2347
2348
|
}
|
|
2348
|
-
const select$
|
|
2349
|
-
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$
|
|
2349
|
+
const select$z = function SlackBridgeFileOutputRepresentationSelect() {
|
|
2350
|
+
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$A();
|
|
2350
2351
|
return {
|
|
2351
2352
|
kind: 'Fragment',
|
|
2352
2353
|
version: VERSION$e,
|
|
@@ -2879,8 +2880,8 @@ function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
|
2879
2880
|
}
|
|
2880
2881
|
return input;
|
|
2881
2882
|
}
|
|
2882
|
-
const select$
|
|
2883
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
2883
|
+
const select$y = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
2884
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$D();
|
|
2884
2885
|
return {
|
|
2885
2886
|
kind: 'Fragment',
|
|
2886
2887
|
version: VERSION$d,
|
|
@@ -2904,7 +2905,7 @@ const select$w = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
2904
2905
|
name: 'files',
|
|
2905
2906
|
kind: 'Link',
|
|
2906
2907
|
plural: true,
|
|
2907
|
-
fragment: select$
|
|
2908
|
+
fragment: select$z()
|
|
2908
2909
|
},
|
|
2909
2910
|
{
|
|
2910
2911
|
name: 'includesCustomEmoji',
|
|
@@ -3212,7 +3213,7 @@ function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
|
3212
3213
|
}
|
|
3213
3214
|
return input;
|
|
3214
3215
|
}
|
|
3215
|
-
const select$
|
|
3216
|
+
const select$x = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
|
|
3216
3217
|
return {
|
|
3217
3218
|
kind: 'Fragment',
|
|
3218
3219
|
version: VERSION$c,
|
|
@@ -3226,7 +3227,7 @@ const select$v = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
3226
3227
|
name: 'messages',
|
|
3227
3228
|
kind: 'Link',
|
|
3228
3229
|
plural: true,
|
|
3229
|
-
fragment: select$
|
|
3230
|
+
fragment: select$y()
|
|
3230
3231
|
},
|
|
3231
3232
|
{
|
|
3232
3233
|
name: 'nextCursor',
|
|
@@ -3284,7 +3285,7 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3284
3285
|
}
|
|
3285
3286
|
}
|
|
3286
3287
|
|
|
3287
|
-
const VERSION$b = "
|
|
3288
|
+
const VERSION$b = "1119f2c416d047eefd8303c5a2d590ae";
|
|
3288
3289
|
function validate$b(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
3289
3290
|
const v_error = (() => {
|
|
3290
3291
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3352,6 +3353,30 @@ function validate$b(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
|
3352
3353
|
message += '\n' + obj_conversationInfo_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3353
3354
|
return new TypeError(message);
|
|
3354
3355
|
}
|
|
3356
|
+
const obj_conversationInfos = obj.conversationInfos;
|
|
3357
|
+
const path_conversationInfos = path + '.conversationInfos';
|
|
3358
|
+
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
3359
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
3360
|
+
}
|
|
3361
|
+
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
3362
|
+
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
3363
|
+
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
3364
|
+
if (typeof obj_conversationInfos_item !== 'object') {
|
|
3365
|
+
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
3366
|
+
}
|
|
3367
|
+
}
|
|
3368
|
+
const obj_emojis = obj.emojis;
|
|
3369
|
+
const path_emojis = path + '.emojis';
|
|
3370
|
+
if (!ArrayIsArray(obj_emojis)) {
|
|
3371
|
+
return new TypeError('Expected "array" but received "' + typeof obj_emojis + '" (at "' + path_emojis + '")');
|
|
3372
|
+
}
|
|
3373
|
+
for (let i = 0; i < obj_emojis.length; i++) {
|
|
3374
|
+
const obj_emojis_item = obj_emojis[i];
|
|
3375
|
+
const path_emojis_item = path_emojis + '[' + i + ']';
|
|
3376
|
+
if (typeof obj_emojis_item !== 'object') {
|
|
3377
|
+
return new TypeError('Expected "object" but received "' + typeof obj_emojis_item + '" (at "' + path_emojis_item + '")');
|
|
3378
|
+
}
|
|
3379
|
+
}
|
|
3355
3380
|
const obj_history = obj.history;
|
|
3356
3381
|
const path_history = path + '.history';
|
|
3357
3382
|
if (typeof obj_history !== 'object') {
|
|
@@ -3459,6 +3484,38 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
3459
3484
|
ttl: path.ttl
|
|
3460
3485
|
}, luvio, store, timestamp);
|
|
3461
3486
|
}
|
|
3487
|
+
const input_conversationInfos = input.conversationInfos;
|
|
3488
|
+
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
3489
|
+
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
3490
|
+
const input_conversationInfos_item = input_conversationInfos[i];
|
|
3491
|
+
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
3492
|
+
input_conversationInfos[i] = ingest$f(input_conversationInfos_item, {
|
|
3493
|
+
fullPath: input_conversationInfos_item_id,
|
|
3494
|
+
propertyName: i,
|
|
3495
|
+
parent: {
|
|
3496
|
+
data: input,
|
|
3497
|
+
key: path.fullPath,
|
|
3498
|
+
existing: existing,
|
|
3499
|
+
},
|
|
3500
|
+
ttl: path.ttl
|
|
3501
|
+
}, luvio, store, timestamp);
|
|
3502
|
+
}
|
|
3503
|
+
const input_emojis = input.emojis;
|
|
3504
|
+
const input_emojis_id = path.fullPath + '__emojis';
|
|
3505
|
+
for (let i = 0; i < input_emojis.length; i++) {
|
|
3506
|
+
const input_emojis_item = input_emojis[i];
|
|
3507
|
+
let input_emojis_item_id = input_emojis_id + '__' + i;
|
|
3508
|
+
input_emojis[i] = ingest$h(input_emojis_item, {
|
|
3509
|
+
fullPath: input_emojis_item_id,
|
|
3510
|
+
propertyName: i,
|
|
3511
|
+
parent: {
|
|
3512
|
+
data: input,
|
|
3513
|
+
key: path.fullPath,
|
|
3514
|
+
existing: existing,
|
|
3515
|
+
},
|
|
3516
|
+
ttl: path.ttl
|
|
3517
|
+
}, luvio, store, timestamp);
|
|
3518
|
+
}
|
|
3462
3519
|
const input_history = input.history;
|
|
3463
3520
|
const input_history_id = path.fullPath + '__history';
|
|
3464
3521
|
input.history = ingest$c(input_history, {
|
|
@@ -3489,7 +3546,7 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
3489
3546
|
}
|
|
3490
3547
|
return input;
|
|
3491
3548
|
}
|
|
3492
|
-
const select$
|
|
3549
|
+
const select$w = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
3493
3550
|
return {
|
|
3494
3551
|
kind: 'Fragment',
|
|
3495
3552
|
version: VERSION$b,
|
|
@@ -3507,18 +3564,30 @@ const select$u = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3507
3564
|
name: 'contextUserInfo',
|
|
3508
3565
|
kind: 'Link',
|
|
3509
3566
|
nullable: true,
|
|
3510
|
-
fragment: select$
|
|
3567
|
+
fragment: select$F()
|
|
3511
3568
|
},
|
|
3512
3569
|
{
|
|
3513
3570
|
name: 'conversationInfo',
|
|
3514
3571
|
kind: 'Link',
|
|
3515
3572
|
nullable: true,
|
|
3516
|
-
fragment: select$
|
|
3573
|
+
fragment: select$E()
|
|
3574
|
+
},
|
|
3575
|
+
{
|
|
3576
|
+
name: 'conversationInfos',
|
|
3577
|
+
kind: 'Link',
|
|
3578
|
+
plural: true,
|
|
3579
|
+
fragment: select$E()
|
|
3580
|
+
},
|
|
3581
|
+
{
|
|
3582
|
+
name: 'emojis',
|
|
3583
|
+
kind: 'Link',
|
|
3584
|
+
plural: true,
|
|
3585
|
+
fragment: select$G()
|
|
3517
3586
|
},
|
|
3518
3587
|
{
|
|
3519
3588
|
name: 'history',
|
|
3520
3589
|
kind: 'Link',
|
|
3521
|
-
fragment: select$
|
|
3590
|
+
fragment: select$x()
|
|
3522
3591
|
},
|
|
3523
3592
|
{
|
|
3524
3593
|
name: 'teamId',
|
|
@@ -3532,7 +3601,7 @@ const select$u = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3532
3601
|
name: 'userInfos',
|
|
3533
3602
|
kind: 'Link',
|
|
3534
3603
|
plural: true,
|
|
3535
|
-
fragment: select$
|
|
3604
|
+
fragment: select$F()
|
|
3536
3605
|
},
|
|
3537
3606
|
{
|
|
3538
3607
|
name: 'websocketUrl',
|
|
@@ -3577,6 +3646,26 @@ function equals$b(existing, incoming) {
|
|
|
3577
3646
|
existing_conversationInfo.__ref === incoming_conversationInfo.__ref))) {
|
|
3578
3647
|
return false;
|
|
3579
3648
|
}
|
|
3649
|
+
const existing_conversationInfos = existing.conversationInfos;
|
|
3650
|
+
const incoming_conversationInfos = incoming.conversationInfos;
|
|
3651
|
+
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
3652
|
+
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
3653
|
+
return false;
|
|
3654
|
+
}
|
|
3655
|
+
});
|
|
3656
|
+
if (equals_conversationInfos_items === false) {
|
|
3657
|
+
return false;
|
|
3658
|
+
}
|
|
3659
|
+
const existing_emojis = existing.emojis;
|
|
3660
|
+
const incoming_emojis = incoming.emojis;
|
|
3661
|
+
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
3662
|
+
if (!(existing_emojis_item.__ref === incoming_emojis_item.__ref)) {
|
|
3663
|
+
return false;
|
|
3664
|
+
}
|
|
3665
|
+
});
|
|
3666
|
+
if (equals_emojis_items === false) {
|
|
3667
|
+
return false;
|
|
3668
|
+
}
|
|
3580
3669
|
const existing_history = existing.history;
|
|
3581
3670
|
const incoming_history = incoming.history;
|
|
3582
3671
|
if (!(existing_history.__ref === incoming_history.__ref)) {
|
|
@@ -3630,6 +3719,14 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3630
3719
|
if (input.conversationInfo !== null && typeof input.conversationInfo === 'object') {
|
|
3631
3720
|
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfo);
|
|
3632
3721
|
}
|
|
3722
|
+
const input_conversationInfos_length = input.conversationInfos.length;
|
|
3723
|
+
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
3724
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfos[i]);
|
|
3725
|
+
}
|
|
3726
|
+
const input_emojis_length = input.emojis.length;
|
|
3727
|
+
for (let i = 0; i < input_emojis_length; i++) {
|
|
3728
|
+
getTypeCacheKeys$h(rootKeySet, luvio, input.emojis[i]);
|
|
3729
|
+
}
|
|
3633
3730
|
getTypeCacheKeys$c(rootKeySet, luvio, input.history, () => rootKey + "__" + "history");
|
|
3634
3731
|
const input_userInfos_length = input.userInfos.length;
|
|
3635
3732
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
@@ -3637,22 +3734,22 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3637
3734
|
}
|
|
3638
3735
|
}
|
|
3639
3736
|
|
|
3640
|
-
function select$
|
|
3641
|
-
return select$
|
|
3737
|
+
function select$v(luvio, params) {
|
|
3738
|
+
return select$w();
|
|
3642
3739
|
}
|
|
3643
|
-
function keyBuilder$
|
|
3740
|
+
function keyBuilder$B(luvio, params) {
|
|
3644
3741
|
return keyPrefix + '::SlackBridgeConversationOutputRepresentation:(' + 'channelId:' + params.queryParams.channelId + ',' + 'includeView:' + params.queryParams.includeView + ',' + 'inclusive:' + params.queryParams.inclusive + ',' + 'latestMessageTs:' + params.queryParams.latestMessageTs + ',' + 'limit:' + params.queryParams.limit + ',' + 'oldestMessageTs:' + params.queryParams.oldestMessageTs + ',' + 'parentMessageTs:' + params.queryParams.parentMessageTs + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ',' + 'teamId:' + params.queryParams.teamId + ')';
|
|
3645
3742
|
}
|
|
3646
|
-
function getResponseCacheKeys$
|
|
3647
|
-
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$
|
|
3743
|
+
function getResponseCacheKeys$n(storeKeyMap, luvio, resourceParams, response) {
|
|
3744
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$B(luvio, resourceParams));
|
|
3648
3745
|
}
|
|
3649
|
-
function ingestSuccess$
|
|
3746
|
+
function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
|
|
3650
3747
|
const { body } = response;
|
|
3651
|
-
const key = keyBuilder$
|
|
3748
|
+
const key = keyBuilder$B(luvio, resourceParams);
|
|
3652
3749
|
luvio.storeIngest(key, ingest$b, body);
|
|
3653
3750
|
const snapshot = luvio.storeLookup({
|
|
3654
3751
|
recordId: key,
|
|
3655
|
-
node: select$
|
|
3752
|
+
node: select$v(),
|
|
3656
3753
|
variables: {},
|
|
3657
3754
|
}, snapshotRefresh);
|
|
3658
3755
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3663,16 +3760,16 @@ function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3663
3760
|
deepFreeze(snapshot.data);
|
|
3664
3761
|
return snapshot;
|
|
3665
3762
|
}
|
|
3666
|
-
function ingestError$
|
|
3667
|
-
const key = keyBuilder$
|
|
3763
|
+
function ingestError$d(luvio, params, error, snapshotRefresh) {
|
|
3764
|
+
const key = keyBuilder$B(luvio, params);
|
|
3668
3765
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3669
3766
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3670
3767
|
return errorSnapshot;
|
|
3671
3768
|
}
|
|
3672
|
-
function createResourceRequest$
|
|
3769
|
+
function createResourceRequest$n(config) {
|
|
3673
3770
|
const headers = {};
|
|
3674
3771
|
return {
|
|
3675
|
-
baseUri: '/services/data/
|
|
3772
|
+
baseUri: '/services/data/v65.0',
|
|
3676
3773
|
basePath: '/connect/slackbridge/conversation/messages',
|
|
3677
3774
|
method: 'get',
|
|
3678
3775
|
body: null,
|
|
@@ -3683,7 +3780,7 @@ function createResourceRequest$l(config) {
|
|
|
3683
3780
|
};
|
|
3684
3781
|
}
|
|
3685
3782
|
|
|
3686
|
-
const adapterName$
|
|
3783
|
+
const adapterName$n = 'getSlackConversation';
|
|
3687
3784
|
const getSlackConversation_ConfigPropertyMetadata = [
|
|
3688
3785
|
generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3689
3786
|
generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -3695,86 +3792,86 @@ const getSlackConversation_ConfigPropertyMetadata = [
|
|
|
3695
3792
|
generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3696
3793
|
generateParamConfigMetadata('teamId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3697
3794
|
];
|
|
3698
|
-
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3699
|
-
const createResourceParams$
|
|
3700
|
-
function keyBuilder$
|
|
3701
|
-
const resourceParams = createResourceParams$
|
|
3702
|
-
return keyBuilder$
|
|
3795
|
+
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, getSlackConversation_ConfigPropertyMetadata);
|
|
3796
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$o(getSlackConversation_ConfigPropertyMetadata);
|
|
3797
|
+
function keyBuilder$A(luvio, config) {
|
|
3798
|
+
const resourceParams = createResourceParams$n(config);
|
|
3799
|
+
return keyBuilder$B(luvio, resourceParams);
|
|
3703
3800
|
}
|
|
3704
|
-
function typeCheckConfig$
|
|
3801
|
+
function typeCheckConfig$n(untrustedConfig) {
|
|
3705
3802
|
const config = {};
|
|
3706
|
-
typeCheckConfig$
|
|
3803
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
|
|
3707
3804
|
return config;
|
|
3708
3805
|
}
|
|
3709
|
-
function validateAdapterConfig$
|
|
3806
|
+
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
3710
3807
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3711
3808
|
return null;
|
|
3712
3809
|
}
|
|
3713
3810
|
if (process.env.NODE_ENV !== 'production') {
|
|
3714
3811
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3715
3812
|
}
|
|
3716
|
-
const config = typeCheckConfig$
|
|
3813
|
+
const config = typeCheckConfig$n(untrustedConfig);
|
|
3717
3814
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3718
3815
|
return null;
|
|
3719
3816
|
}
|
|
3720
3817
|
return config;
|
|
3721
3818
|
}
|
|
3722
|
-
function adapterFragment$
|
|
3723
|
-
createResourceParams$
|
|
3724
|
-
return select$
|
|
3819
|
+
function adapterFragment$d(luvio, config) {
|
|
3820
|
+
createResourceParams$n(config);
|
|
3821
|
+
return select$v();
|
|
3725
3822
|
}
|
|
3726
|
-
function onFetchResponseSuccess$
|
|
3727
|
-
const snapshot = ingestSuccess$
|
|
3823
|
+
function onFetchResponseSuccess$d(luvio, config, resourceParams, response) {
|
|
3824
|
+
const snapshot = ingestSuccess$k(luvio, resourceParams, response, {
|
|
3728
3825
|
config,
|
|
3729
|
-
resolve: () => buildNetworkSnapshot$
|
|
3826
|
+
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
|
|
3730
3827
|
});
|
|
3731
3828
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3732
3829
|
}
|
|
3733
|
-
function onFetchResponseError$
|
|
3734
|
-
const snapshot = ingestError$
|
|
3830
|
+
function onFetchResponseError$d(luvio, config, resourceParams, response) {
|
|
3831
|
+
const snapshot = ingestError$d(luvio, resourceParams, response, {
|
|
3735
3832
|
config,
|
|
3736
|
-
resolve: () => buildNetworkSnapshot$
|
|
3833
|
+
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
|
|
3737
3834
|
});
|
|
3738
3835
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3739
3836
|
}
|
|
3740
|
-
function buildNetworkSnapshot$
|
|
3741
|
-
const resourceParams = createResourceParams$
|
|
3742
|
-
const request = createResourceRequest$
|
|
3837
|
+
function buildNetworkSnapshot$n(luvio, config, options) {
|
|
3838
|
+
const resourceParams = createResourceParams$n(config);
|
|
3839
|
+
const request = createResourceRequest$n(resourceParams);
|
|
3743
3840
|
return luvio.dispatchResourceRequest(request, options)
|
|
3744
3841
|
.then((response) => {
|
|
3745
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3842
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$d(luvio, config, resourceParams, response), () => {
|
|
3746
3843
|
const cache = new StoreKeyMap();
|
|
3747
|
-
getResponseCacheKeys$
|
|
3844
|
+
getResponseCacheKeys$n(cache, luvio, resourceParams, response.body);
|
|
3748
3845
|
return cache;
|
|
3749
3846
|
});
|
|
3750
3847
|
}, (response) => {
|
|
3751
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3848
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$d(luvio, config, resourceParams, response));
|
|
3752
3849
|
});
|
|
3753
3850
|
}
|
|
3754
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3755
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3851
|
+
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
3852
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$n, undefined, false);
|
|
3756
3853
|
}
|
|
3757
|
-
function buildCachedSnapshotCachePolicy$
|
|
3854
|
+
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
3758
3855
|
const { luvio, config } = context;
|
|
3759
3856
|
const selector = {
|
|
3760
|
-
recordId: keyBuilder$
|
|
3761
|
-
node: adapterFragment$
|
|
3857
|
+
recordId: keyBuilder$A(luvio, config),
|
|
3858
|
+
node: adapterFragment$d(luvio, config),
|
|
3762
3859
|
variables: {},
|
|
3763
3860
|
};
|
|
3764
3861
|
const cacheSnapshot = storeLookup(selector, {
|
|
3765
3862
|
config,
|
|
3766
|
-
resolve: () => buildNetworkSnapshot$
|
|
3863
|
+
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
|
|
3767
3864
|
});
|
|
3768
3865
|
return cacheSnapshot;
|
|
3769
3866
|
}
|
|
3770
3867
|
const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
|
|
3771
|
-
const config = validateAdapterConfig$
|
|
3868
|
+
const config = validateAdapterConfig$n(untrustedConfig, getSlackConversation_ConfigPropertyNames);
|
|
3772
3869
|
// Invalid or incomplete config
|
|
3773
3870
|
if (config === null) {
|
|
3774
3871
|
return null;
|
|
3775
3872
|
}
|
|
3776
3873
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3777
|
-
buildCachedSnapshotCachePolicy$
|
|
3874
|
+
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
|
|
3778
3875
|
};
|
|
3779
3876
|
|
|
3780
3877
|
const VERSION$a = "769b5b0ed94219341e9be74c08e63aed";
|
|
@@ -3802,14 +3899,14 @@ function validate$a(obj, path = 'SlackBridgePostMessageOutputRepresentation') {
|
|
|
3802
3899
|
return v_error === undefined ? null : v_error;
|
|
3803
3900
|
}
|
|
3804
3901
|
const RepresentationType$a = 'SlackBridgePostMessageOutputRepresentation';
|
|
3805
|
-
function keyBuilder$
|
|
3902
|
+
function keyBuilder$z(luvio, config) {
|
|
3806
3903
|
return keyPrefix + '::' + RepresentationType$a + ':' + config.channelId;
|
|
3807
3904
|
}
|
|
3808
3905
|
function keyBuilderFromType$6(luvio, object) {
|
|
3809
3906
|
const keyParams = {
|
|
3810
3907
|
channelId: object.channelId
|
|
3811
3908
|
};
|
|
3812
|
-
return keyBuilder$
|
|
3909
|
+
return keyBuilder$z(luvio, keyParams);
|
|
3813
3910
|
}
|
|
3814
3911
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
3815
3912
|
const input_postedMessage = input.postedMessage;
|
|
@@ -3826,7 +3923,7 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
3826
3923
|
}, luvio, store, timestamp);
|
|
3827
3924
|
return input;
|
|
3828
3925
|
}
|
|
3829
|
-
const select$
|
|
3926
|
+
const select$u = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
3830
3927
|
return {
|
|
3831
3928
|
kind: 'Fragment',
|
|
3832
3929
|
version: VERSION$a,
|
|
@@ -3839,7 +3936,7 @@ const select$s = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
|
3839
3936
|
{
|
|
3840
3937
|
name: 'postedMessage',
|
|
3841
3938
|
kind: 'Link',
|
|
3842
|
-
fragment: select$
|
|
3939
|
+
fragment: select$y()
|
|
3843
3940
|
},
|
|
3844
3941
|
{
|
|
3845
3942
|
name: 'timestamp',
|
|
@@ -3889,19 +3986,19 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3889
3986
|
getTypeCacheKeys$d(rootKeySet, luvio, input.postedMessage, () => rootKey + "__" + "postedMessage");
|
|
3890
3987
|
}
|
|
3891
3988
|
|
|
3892
|
-
function select$
|
|
3893
|
-
return select$
|
|
3989
|
+
function select$t(luvio, params) {
|
|
3990
|
+
return select$u();
|
|
3894
3991
|
}
|
|
3895
|
-
function getResponseCacheKeys$
|
|
3992
|
+
function getResponseCacheKeys$m(storeKeyMap, luvio, resourceParams, response) {
|
|
3896
3993
|
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
3897
3994
|
}
|
|
3898
|
-
function ingestSuccess$
|
|
3995
|
+
function ingestSuccess$j(luvio, resourceParams, response) {
|
|
3899
3996
|
const { body } = response;
|
|
3900
3997
|
const key = keyBuilderFromType$6(luvio, body);
|
|
3901
3998
|
luvio.storeIngest(key, ingest$a, body);
|
|
3902
3999
|
const snapshot = luvio.storeLookup({
|
|
3903
4000
|
recordId: key,
|
|
3904
|
-
node: select$
|
|
4001
|
+
node: select$t(),
|
|
3905
4002
|
variables: {},
|
|
3906
4003
|
});
|
|
3907
4004
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3912,10 +4009,10 @@ function ingestSuccess$h(luvio, resourceParams, response) {
|
|
|
3912
4009
|
deepFreeze(snapshot.data);
|
|
3913
4010
|
return snapshot;
|
|
3914
4011
|
}
|
|
3915
|
-
function createResourceRequest$
|
|
4012
|
+
function createResourceRequest$m(config) {
|
|
3916
4013
|
const headers = {};
|
|
3917
4014
|
return {
|
|
3918
|
-
baseUri: '/services/data/
|
|
4015
|
+
baseUri: '/services/data/v65.0',
|
|
3919
4016
|
basePath: '/connect/slackbridge/conversation/messages',
|
|
3920
4017
|
method: 'post',
|
|
3921
4018
|
body: config.body,
|
|
@@ -3926,7 +4023,7 @@ function createResourceRequest$k(config) {
|
|
|
3926
4023
|
};
|
|
3927
4024
|
}
|
|
3928
4025
|
|
|
3929
|
-
const adapterName$
|
|
4026
|
+
const adapterName$m = 'postSlackConversation';
|
|
3930
4027
|
const postSlackConversation_ConfigPropertyMetadata = [
|
|
3931
4028
|
generateParamConfigMetadata('channelId', true, 2 /* Body */, 0 /* String */),
|
|
3932
4029
|
generateParamConfigMetadata('linkNames', false, 2 /* Body */, 1 /* Boolean */),
|
|
@@ -3935,37 +4032,37 @@ const postSlackConversation_ConfigPropertyMetadata = [
|
|
|
3935
4032
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
3936
4033
|
generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
|
|
3937
4034
|
];
|
|
3938
|
-
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3939
|
-
const createResourceParams$
|
|
3940
|
-
function typeCheckConfig$
|
|
4035
|
+
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, postSlackConversation_ConfigPropertyMetadata);
|
|
4036
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$o(postSlackConversation_ConfigPropertyMetadata);
|
|
4037
|
+
function typeCheckConfig$m(untrustedConfig) {
|
|
3941
4038
|
const config = {};
|
|
3942
|
-
typeCheckConfig$
|
|
4039
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
|
|
3943
4040
|
return config;
|
|
3944
4041
|
}
|
|
3945
|
-
function validateAdapterConfig$
|
|
4042
|
+
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
3946
4043
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3947
4044
|
return null;
|
|
3948
4045
|
}
|
|
3949
4046
|
if (process.env.NODE_ENV !== 'production') {
|
|
3950
4047
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3951
4048
|
}
|
|
3952
|
-
const config = typeCheckConfig$
|
|
4049
|
+
const config = typeCheckConfig$m(untrustedConfig);
|
|
3953
4050
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3954
4051
|
return null;
|
|
3955
4052
|
}
|
|
3956
4053
|
return config;
|
|
3957
4054
|
}
|
|
3958
|
-
function buildNetworkSnapshot$
|
|
3959
|
-
const resourceParams = createResourceParams$
|
|
3960
|
-
const request = createResourceRequest$
|
|
4055
|
+
function buildNetworkSnapshot$m(luvio, config, options) {
|
|
4056
|
+
const resourceParams = createResourceParams$m(config);
|
|
4057
|
+
const request = createResourceRequest$m(resourceParams);
|
|
3961
4058
|
return luvio.dispatchResourceRequest(request, options)
|
|
3962
4059
|
.then((response) => {
|
|
3963
4060
|
return luvio.handleSuccessResponse(() => {
|
|
3964
|
-
const snapshot = ingestSuccess$
|
|
4061
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response);
|
|
3965
4062
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3966
4063
|
}, () => {
|
|
3967
4064
|
const cache = new StoreKeyMap();
|
|
3968
|
-
getResponseCacheKeys$
|
|
4065
|
+
getResponseCacheKeys$m(cache, luvio, resourceParams, response.body);
|
|
3969
4066
|
return cache;
|
|
3970
4067
|
});
|
|
3971
4068
|
}, (response) => {
|
|
@@ -3975,28 +4072,28 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
3975
4072
|
}
|
|
3976
4073
|
const postSlackConversationAdapterFactory = (luvio) => {
|
|
3977
4074
|
return function postSlackConversation(untrustedConfig) {
|
|
3978
|
-
const config = validateAdapterConfig$
|
|
4075
|
+
const config = validateAdapterConfig$m(untrustedConfig, postSlackConversation_ConfigPropertyNames);
|
|
3979
4076
|
// Invalid or incomplete config
|
|
3980
4077
|
if (config === null) {
|
|
3981
4078
|
throw new Error('Invalid config for "postSlackConversation"');
|
|
3982
4079
|
}
|
|
3983
|
-
return buildNetworkSnapshot$
|
|
4080
|
+
return buildNetworkSnapshot$m(luvio, config);
|
|
3984
4081
|
};
|
|
3985
4082
|
};
|
|
3986
4083
|
|
|
3987
|
-
function select$
|
|
3988
|
-
return select$
|
|
4084
|
+
function select$s(luvio, params) {
|
|
4085
|
+
return select$z();
|
|
3989
4086
|
}
|
|
3990
|
-
function getResponseCacheKeys$
|
|
4087
|
+
function getResponseCacheKeys$l(storeKeyMap, luvio, resourceParams, response) {
|
|
3991
4088
|
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
3992
4089
|
}
|
|
3993
|
-
function ingestSuccess$
|
|
4090
|
+
function ingestSuccess$i(luvio, resourceParams, response) {
|
|
3994
4091
|
const { body } = response;
|
|
3995
4092
|
const key = keyBuilderFromType$7(luvio, body);
|
|
3996
4093
|
luvio.storeIngest(key, ingest$e, body);
|
|
3997
4094
|
const snapshot = luvio.storeLookup({
|
|
3998
4095
|
recordId: key,
|
|
3999
|
-
node: select$
|
|
4096
|
+
node: select$s(),
|
|
4000
4097
|
variables: {},
|
|
4001
4098
|
});
|
|
4002
4099
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4007,10 +4104,10 @@ function ingestSuccess$g(luvio, resourceParams, response) {
|
|
|
4007
4104
|
deepFreeze(snapshot.data);
|
|
4008
4105
|
return snapshot;
|
|
4009
4106
|
}
|
|
4010
|
-
function createResourceRequest$
|
|
4107
|
+
function createResourceRequest$l(config) {
|
|
4011
4108
|
const headers = {};
|
|
4012
4109
|
return {
|
|
4013
|
-
baseUri: '/services/data/
|
|
4110
|
+
baseUri: '/services/data/v65.0',
|
|
4014
4111
|
basePath: '/connect/slackbridge/files',
|
|
4015
4112
|
method: 'post',
|
|
4016
4113
|
body: config.body,
|
|
@@ -4021,7 +4118,7 @@ function createResourceRequest$j(config) {
|
|
|
4021
4118
|
};
|
|
4022
4119
|
}
|
|
4023
4120
|
|
|
4024
|
-
const adapterName$
|
|
4121
|
+
const adapterName$l = 'postSlackFile';
|
|
4025
4122
|
const postSlackFile_ConfigPropertyMetadata = [
|
|
4026
4123
|
generateParamConfigMetadata('base64EncodedFileData', true, 2 /* Body */, 0 /* String */),
|
|
4027
4124
|
generateParamConfigMetadata('channels', true, 2 /* Body */, 0 /* String */, true),
|
|
@@ -4032,37 +4129,37 @@ const postSlackFile_ConfigPropertyMetadata = [
|
|
|
4032
4129
|
generateParamConfigMetadata('threadTs', true, 2 /* Body */, 0 /* String */),
|
|
4033
4130
|
generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
|
|
4034
4131
|
];
|
|
4035
|
-
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4036
|
-
const createResourceParams$
|
|
4037
|
-
function typeCheckConfig$
|
|
4132
|
+
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, postSlackFile_ConfigPropertyMetadata);
|
|
4133
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$o(postSlackFile_ConfigPropertyMetadata);
|
|
4134
|
+
function typeCheckConfig$l(untrustedConfig) {
|
|
4038
4135
|
const config = {};
|
|
4039
|
-
typeCheckConfig$
|
|
4136
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
|
|
4040
4137
|
return config;
|
|
4041
4138
|
}
|
|
4042
|
-
function validateAdapterConfig$
|
|
4139
|
+
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
4043
4140
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4044
4141
|
return null;
|
|
4045
4142
|
}
|
|
4046
4143
|
if (process.env.NODE_ENV !== 'production') {
|
|
4047
4144
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4048
4145
|
}
|
|
4049
|
-
const config = typeCheckConfig$
|
|
4146
|
+
const config = typeCheckConfig$l(untrustedConfig);
|
|
4050
4147
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4051
4148
|
return null;
|
|
4052
4149
|
}
|
|
4053
4150
|
return config;
|
|
4054
4151
|
}
|
|
4055
|
-
function buildNetworkSnapshot$
|
|
4056
|
-
const resourceParams = createResourceParams$
|
|
4057
|
-
const request = createResourceRequest$
|
|
4152
|
+
function buildNetworkSnapshot$l(luvio, config, options) {
|
|
4153
|
+
const resourceParams = createResourceParams$l(config);
|
|
4154
|
+
const request = createResourceRequest$l(resourceParams);
|
|
4058
4155
|
return luvio.dispatchResourceRequest(request, options)
|
|
4059
4156
|
.then((response) => {
|
|
4060
4157
|
return luvio.handleSuccessResponse(() => {
|
|
4061
|
-
const snapshot = ingestSuccess$
|
|
4158
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response);
|
|
4062
4159
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4063
4160
|
}, () => {
|
|
4064
4161
|
const cache = new StoreKeyMap();
|
|
4065
|
-
getResponseCacheKeys$
|
|
4162
|
+
getResponseCacheKeys$l(cache, luvio, resourceParams, response.body);
|
|
4066
4163
|
return cache;
|
|
4067
4164
|
});
|
|
4068
4165
|
}, (response) => {
|
|
@@ -4072,12 +4169,12 @@ function buildNetworkSnapshot$j(luvio, config, options) {
|
|
|
4072
4169
|
}
|
|
4073
4170
|
const postSlackFileAdapterFactory = (luvio) => {
|
|
4074
4171
|
return function postSlackFile(untrustedConfig) {
|
|
4075
|
-
const config = validateAdapterConfig$
|
|
4172
|
+
const config = validateAdapterConfig$l(untrustedConfig, postSlackFile_ConfigPropertyNames);
|
|
4076
4173
|
// Invalid or incomplete config
|
|
4077
4174
|
if (config === null) {
|
|
4078
4175
|
throw new Error('Invalid config for "postSlackFile"');
|
|
4079
4176
|
}
|
|
4080
|
-
return buildNetworkSnapshot$
|
|
4177
|
+
return buildNetworkSnapshot$l(luvio, config);
|
|
4081
4178
|
};
|
|
4082
4179
|
};
|
|
4083
4180
|
|
|
@@ -4106,14 +4203,14 @@ function validate$9(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentatio
|
|
|
4106
4203
|
return v_error === undefined ? null : v_error;
|
|
4107
4204
|
}
|
|
4108
4205
|
const RepresentationType$9 = 'SlackBridgeRecordChannelInfoOutputRepresentation';
|
|
4109
|
-
function keyBuilder$
|
|
4206
|
+
function keyBuilder$y(luvio, config) {
|
|
4110
4207
|
return keyPrefix + '::' + RepresentationType$9 + ':' + config.relatedRecordId;
|
|
4111
4208
|
}
|
|
4112
4209
|
function keyBuilderFromType$5(luvio, object) {
|
|
4113
4210
|
const keyParams = {
|
|
4114
4211
|
relatedRecordId: object.relatedRecordId
|
|
4115
4212
|
};
|
|
4116
|
-
return keyBuilder$
|
|
4213
|
+
return keyBuilder$y(luvio, keyParams);
|
|
4117
4214
|
}
|
|
4118
4215
|
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
4119
4216
|
const input_conversationInfo = input.conversationInfo;
|
|
@@ -4130,7 +4227,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
4130
4227
|
}, luvio, store, timestamp);
|
|
4131
4228
|
return input;
|
|
4132
4229
|
}
|
|
4133
|
-
const select$
|
|
4230
|
+
const select$r = function SlackBridgeRecordChannelInfoOutputRepresentationSelect() {
|
|
4134
4231
|
return {
|
|
4135
4232
|
kind: 'Fragment',
|
|
4136
4233
|
version: VERSION$9,
|
|
@@ -4139,7 +4236,7 @@ const select$p = function SlackBridgeRecordChannelInfoOutputRepresentationSelect
|
|
|
4139
4236
|
{
|
|
4140
4237
|
name: 'conversationInfo',
|
|
4141
4238
|
kind: 'Link',
|
|
4142
|
-
fragment: select$
|
|
4239
|
+
fragment: select$E()
|
|
4143
4240
|
},
|
|
4144
4241
|
{
|
|
4145
4242
|
name: 'relatedRecordId',
|
|
@@ -4193,19 +4290,19 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4193
4290
|
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfo);
|
|
4194
4291
|
}
|
|
4195
4292
|
|
|
4196
|
-
function select$
|
|
4197
|
-
return select$
|
|
4293
|
+
function select$q(luvio, params) {
|
|
4294
|
+
return select$r();
|
|
4198
4295
|
}
|
|
4199
|
-
function getResponseCacheKeys$
|
|
4296
|
+
function getResponseCacheKeys$k(storeKeyMap, luvio, resourceParams, response) {
|
|
4200
4297
|
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
4201
4298
|
}
|
|
4202
|
-
function ingestSuccess$
|
|
4299
|
+
function ingestSuccess$h(luvio, resourceParams, response) {
|
|
4203
4300
|
const { body } = response;
|
|
4204
4301
|
const key = keyBuilderFromType$5(luvio, body);
|
|
4205
4302
|
luvio.storeIngest(key, ingest$9, body);
|
|
4206
4303
|
const snapshot = luvio.storeLookup({
|
|
4207
4304
|
recordId: key,
|
|
4208
|
-
node: select$
|
|
4305
|
+
node: select$q(),
|
|
4209
4306
|
variables: {},
|
|
4210
4307
|
});
|
|
4211
4308
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4216,10 +4313,10 @@ function ingestSuccess$f(luvio, resourceParams, response) {
|
|
|
4216
4313
|
deepFreeze(snapshot.data);
|
|
4217
4314
|
return snapshot;
|
|
4218
4315
|
}
|
|
4219
|
-
function createResourceRequest$
|
|
4316
|
+
function createResourceRequest$k(config) {
|
|
4220
4317
|
const headers = {};
|
|
4221
4318
|
return {
|
|
4222
|
-
baseUri: '/services/data/
|
|
4319
|
+
baseUri: '/services/data/v65.0',
|
|
4223
4320
|
basePath: '/connect/slackbridge/record_channels',
|
|
4224
4321
|
method: 'post',
|
|
4225
4322
|
body: config.body,
|
|
@@ -4230,16 +4327,16 @@ function createResourceRequest$i(config) {
|
|
|
4230
4327
|
};
|
|
4231
4328
|
}
|
|
4232
4329
|
|
|
4233
|
-
const adapterName$
|
|
4330
|
+
const adapterName$k = 'postSlackRecordChannelInfos';
|
|
4234
4331
|
const postSlackRecordChannelInfos_ConfigPropertyMetadata = [
|
|
4235
4332
|
generateParamConfigMetadata('conversationInfo', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4236
4333
|
generateParamConfigMetadata('relatedRecordId', true, 2 /* Body */, 0 /* String */),
|
|
4237
4334
|
];
|
|
4238
|
-
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4239
|
-
const createResourceParams$
|
|
4240
|
-
function typeCheckConfig$
|
|
4335
|
+
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
4336
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$o(postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
4337
|
+
function typeCheckConfig$k(untrustedConfig) {
|
|
4241
4338
|
const config = {};
|
|
4242
|
-
typeCheckConfig$
|
|
4339
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
4243
4340
|
const untrustedConfig_conversationInfo = untrustedConfig.conversationInfo;
|
|
4244
4341
|
if (untrustedIsObject(untrustedConfig_conversationInfo)) {
|
|
4245
4342
|
const untrustedConfig_conversationInfo_object = {};
|
|
@@ -4253,30 +4350,30 @@ function typeCheckConfig$i(untrustedConfig) {
|
|
|
4253
4350
|
}
|
|
4254
4351
|
return config;
|
|
4255
4352
|
}
|
|
4256
|
-
function validateAdapterConfig$
|
|
4353
|
+
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
4257
4354
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4258
4355
|
return null;
|
|
4259
4356
|
}
|
|
4260
4357
|
if (process.env.NODE_ENV !== 'production') {
|
|
4261
4358
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4262
4359
|
}
|
|
4263
|
-
const config = typeCheckConfig$
|
|
4360
|
+
const config = typeCheckConfig$k(untrustedConfig);
|
|
4264
4361
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4265
4362
|
return null;
|
|
4266
4363
|
}
|
|
4267
4364
|
return config;
|
|
4268
4365
|
}
|
|
4269
|
-
function buildNetworkSnapshot$
|
|
4270
|
-
const resourceParams = createResourceParams$
|
|
4271
|
-
const request = createResourceRequest$
|
|
4366
|
+
function buildNetworkSnapshot$k(luvio, config, options) {
|
|
4367
|
+
const resourceParams = createResourceParams$k(config);
|
|
4368
|
+
const request = createResourceRequest$k(resourceParams);
|
|
4272
4369
|
return luvio.dispatchResourceRequest(request, options)
|
|
4273
4370
|
.then((response) => {
|
|
4274
4371
|
return luvio.handleSuccessResponse(() => {
|
|
4275
|
-
const snapshot = ingestSuccess$
|
|
4372
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response);
|
|
4276
4373
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4277
4374
|
}, () => {
|
|
4278
4375
|
const cache = new StoreKeyMap();
|
|
4279
|
-
getResponseCacheKeys$
|
|
4376
|
+
getResponseCacheKeys$k(cache, luvio, resourceParams, response.body);
|
|
4280
4377
|
return cache;
|
|
4281
4378
|
});
|
|
4282
4379
|
}, (response) => {
|
|
@@ -4286,33 +4383,33 @@ function buildNetworkSnapshot$i(luvio, config, options) {
|
|
|
4286
4383
|
}
|
|
4287
4384
|
const postSlackRecordChannelInfosAdapterFactory = (luvio) => {
|
|
4288
4385
|
return function postSlackRecordChannelInfos(untrustedConfig) {
|
|
4289
|
-
const config = validateAdapterConfig$
|
|
4386
|
+
const config = validateAdapterConfig$k(untrustedConfig, postSlackRecordChannelInfos_ConfigPropertyNames);
|
|
4290
4387
|
// Invalid or incomplete config
|
|
4291
4388
|
if (config === null) {
|
|
4292
4389
|
throw new Error('Invalid config for "postSlackRecordChannelInfos"');
|
|
4293
4390
|
}
|
|
4294
|
-
return buildNetworkSnapshot$
|
|
4391
|
+
return buildNetworkSnapshot$k(luvio, config);
|
|
4295
4392
|
};
|
|
4296
4393
|
};
|
|
4297
4394
|
|
|
4298
|
-
function select$
|
|
4299
|
-
return select$
|
|
4395
|
+
function select$p(luvio, params) {
|
|
4396
|
+
return select$r();
|
|
4300
4397
|
}
|
|
4301
|
-
function keyBuilder$
|
|
4302
|
-
return keyBuilder$
|
|
4398
|
+
function keyBuilder$x(luvio, params) {
|
|
4399
|
+
return keyBuilder$y(luvio, {
|
|
4303
4400
|
relatedRecordId: params.urlParams.relatedRecordId
|
|
4304
4401
|
});
|
|
4305
4402
|
}
|
|
4306
|
-
function getResponseCacheKeys$
|
|
4403
|
+
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
4307
4404
|
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
4308
4405
|
}
|
|
4309
|
-
function ingestSuccess$
|
|
4406
|
+
function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
4310
4407
|
const { body } = response;
|
|
4311
|
-
const key = keyBuilder$
|
|
4408
|
+
const key = keyBuilder$x(luvio, resourceParams);
|
|
4312
4409
|
luvio.storeIngest(key, ingest$9, body);
|
|
4313
4410
|
const snapshot = luvio.storeLookup({
|
|
4314
4411
|
recordId: key,
|
|
4315
|
-
node: select$
|
|
4412
|
+
node: select$p(),
|
|
4316
4413
|
variables: {},
|
|
4317
4414
|
}, snapshotRefresh);
|
|
4318
4415
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4323,16 +4420,16 @@ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4323
4420
|
deepFreeze(snapshot.data);
|
|
4324
4421
|
return snapshot;
|
|
4325
4422
|
}
|
|
4326
|
-
function ingestError$
|
|
4327
|
-
const key = keyBuilder$
|
|
4423
|
+
function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
4424
|
+
const key = keyBuilder$x(luvio, params);
|
|
4328
4425
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4329
4426
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4330
4427
|
return errorSnapshot;
|
|
4331
4428
|
}
|
|
4332
|
-
function createResourceRequest$
|
|
4429
|
+
function createResourceRequest$j(config) {
|
|
4333
4430
|
const headers = {};
|
|
4334
4431
|
return {
|
|
4335
|
-
baseUri: '/services/data/
|
|
4432
|
+
baseUri: '/services/data/v65.0',
|
|
4336
4433
|
basePath: '/connect/slackbridge/record_channels/' + config.urlParams.relatedRecordId + '',
|
|
4337
4434
|
method: 'get',
|
|
4338
4435
|
body: null,
|
|
@@ -4343,90 +4440,90 @@ function createResourceRequest$h(config) {
|
|
|
4343
4440
|
};
|
|
4344
4441
|
}
|
|
4345
4442
|
|
|
4346
|
-
const adapterName$
|
|
4443
|
+
const adapterName$j = 'getSlackRecordChannelInfo';
|
|
4347
4444
|
const getSlackRecordChannelInfo_ConfigPropertyMetadata = [
|
|
4348
4445
|
generateParamConfigMetadata('relatedRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4349
4446
|
];
|
|
4350
|
-
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4351
|
-
const createResourceParams$
|
|
4352
|
-
function keyBuilder$
|
|
4353
|
-
const resourceParams = createResourceParams$
|
|
4354
|
-
return keyBuilder$
|
|
4447
|
+
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4448
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$o(getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4449
|
+
function keyBuilder$w(luvio, config) {
|
|
4450
|
+
const resourceParams = createResourceParams$j(config);
|
|
4451
|
+
return keyBuilder$x(luvio, resourceParams);
|
|
4355
4452
|
}
|
|
4356
|
-
function typeCheckConfig$
|
|
4453
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
4357
4454
|
const config = {};
|
|
4358
|
-
typeCheckConfig$
|
|
4455
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4359
4456
|
return config;
|
|
4360
4457
|
}
|
|
4361
|
-
function validateAdapterConfig$
|
|
4458
|
+
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
4362
4459
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4363
4460
|
return null;
|
|
4364
4461
|
}
|
|
4365
4462
|
if (process.env.NODE_ENV !== 'production') {
|
|
4366
4463
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4367
4464
|
}
|
|
4368
|
-
const config = typeCheckConfig$
|
|
4465
|
+
const config = typeCheckConfig$j(untrustedConfig);
|
|
4369
4466
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4370
4467
|
return null;
|
|
4371
4468
|
}
|
|
4372
4469
|
return config;
|
|
4373
4470
|
}
|
|
4374
|
-
function adapterFragment$
|
|
4375
|
-
createResourceParams$
|
|
4376
|
-
return select$
|
|
4471
|
+
function adapterFragment$c(luvio, config) {
|
|
4472
|
+
createResourceParams$j(config);
|
|
4473
|
+
return select$p();
|
|
4377
4474
|
}
|
|
4378
|
-
function onFetchResponseSuccess$
|
|
4379
|
-
const snapshot = ingestSuccess$
|
|
4475
|
+
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
4476
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
4380
4477
|
config,
|
|
4381
|
-
resolve: () => buildNetworkSnapshot$
|
|
4478
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4382
4479
|
});
|
|
4383
4480
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4384
4481
|
}
|
|
4385
|
-
function onFetchResponseError$
|
|
4386
|
-
const snapshot = ingestError$
|
|
4482
|
+
function onFetchResponseError$c(luvio, config, resourceParams, response) {
|
|
4483
|
+
const snapshot = ingestError$c(luvio, resourceParams, response, {
|
|
4387
4484
|
config,
|
|
4388
|
-
resolve: () => buildNetworkSnapshot$
|
|
4485
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4389
4486
|
});
|
|
4390
4487
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4391
4488
|
}
|
|
4392
|
-
function buildNetworkSnapshot$
|
|
4393
|
-
const resourceParams = createResourceParams$
|
|
4394
|
-
const request = createResourceRequest$
|
|
4489
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
4490
|
+
const resourceParams = createResourceParams$j(config);
|
|
4491
|
+
const request = createResourceRequest$j(resourceParams);
|
|
4395
4492
|
return luvio.dispatchResourceRequest(request, options)
|
|
4396
4493
|
.then((response) => {
|
|
4397
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4494
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => {
|
|
4398
4495
|
const cache = new StoreKeyMap();
|
|
4399
|
-
getResponseCacheKeys$
|
|
4496
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
4400
4497
|
return cache;
|
|
4401
4498
|
});
|
|
4402
4499
|
}, (response) => {
|
|
4403
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4500
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$c(luvio, config, resourceParams, response));
|
|
4404
4501
|
});
|
|
4405
4502
|
}
|
|
4406
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4407
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4503
|
+
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
4504
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$j, undefined, false);
|
|
4408
4505
|
}
|
|
4409
|
-
function buildCachedSnapshotCachePolicy$
|
|
4506
|
+
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
4410
4507
|
const { luvio, config } = context;
|
|
4411
4508
|
const selector = {
|
|
4412
|
-
recordId: keyBuilder$
|
|
4413
|
-
node: adapterFragment$
|
|
4509
|
+
recordId: keyBuilder$w(luvio, config),
|
|
4510
|
+
node: adapterFragment$c(luvio, config),
|
|
4414
4511
|
variables: {},
|
|
4415
4512
|
};
|
|
4416
4513
|
const cacheSnapshot = storeLookup(selector, {
|
|
4417
4514
|
config,
|
|
4418
|
-
resolve: () => buildNetworkSnapshot$
|
|
4515
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4419
4516
|
});
|
|
4420
4517
|
return cacheSnapshot;
|
|
4421
4518
|
}
|
|
4422
4519
|
const getSlackRecordChannelInfoAdapterFactory = (luvio) => function SlackBridge__getSlackRecordChannelInfo(untrustedConfig, requestContext) {
|
|
4423
|
-
const config = validateAdapterConfig$
|
|
4520
|
+
const config = validateAdapterConfig$j(untrustedConfig, getSlackRecordChannelInfo_ConfigPropertyNames);
|
|
4424
4521
|
// Invalid or incomplete config
|
|
4425
4522
|
if (config === null) {
|
|
4426
4523
|
return null;
|
|
4427
4524
|
}
|
|
4428
4525
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4429
|
-
buildCachedSnapshotCachePolicy$
|
|
4526
|
+
buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
|
|
4430
4527
|
};
|
|
4431
4528
|
|
|
4432
4529
|
const TTL = 500;
|
|
@@ -4504,7 +4601,7 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
4504
4601
|
}
|
|
4505
4602
|
return input;
|
|
4506
4603
|
}
|
|
4507
|
-
const select$
|
|
4604
|
+
const select$o = function SlackBridgeRelatedThreadsOutputRepresentationSelect() {
|
|
4508
4605
|
return {
|
|
4509
4606
|
kind: 'Fragment',
|
|
4510
4607
|
version: VERSION$8,
|
|
@@ -4514,13 +4611,13 @@ const select$m = function SlackBridgeRelatedThreadsOutputRepresentationSelect()
|
|
|
4514
4611
|
name: 'conversations',
|
|
4515
4612
|
kind: 'Link',
|
|
4516
4613
|
plural: true,
|
|
4517
|
-
fragment: select$
|
|
4614
|
+
fragment: select$E()
|
|
4518
4615
|
},
|
|
4519
4616
|
{
|
|
4520
4617
|
name: 'messages',
|
|
4521
4618
|
kind: 'Link',
|
|
4522
4619
|
plural: true,
|
|
4523
|
-
fragment: select$
|
|
4620
|
+
fragment: select$y()
|
|
4524
4621
|
},
|
|
4525
4622
|
{
|
|
4526
4623
|
name: 'teamId',
|
|
@@ -4587,22 +4684,22 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4587
4684
|
}
|
|
4588
4685
|
}
|
|
4589
4686
|
|
|
4590
|
-
function select$
|
|
4591
|
-
return select$
|
|
4687
|
+
function select$n(luvio, params) {
|
|
4688
|
+
return select$o();
|
|
4592
4689
|
}
|
|
4593
|
-
function keyBuilder$
|
|
4690
|
+
function keyBuilder$v(luvio, params) {
|
|
4594
4691
|
return keyPrefix + '::SlackBridgeRelatedThreadsOutputRepresentation:(' + 'entityId:' + params.urlParams.entityId + ')';
|
|
4595
4692
|
}
|
|
4596
|
-
function getResponseCacheKeys$
|
|
4597
|
-
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$
|
|
4693
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
4694
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$v(luvio, resourceParams));
|
|
4598
4695
|
}
|
|
4599
|
-
function ingestSuccess$
|
|
4696
|
+
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
4600
4697
|
const { body } = response;
|
|
4601
|
-
const key = keyBuilder$
|
|
4698
|
+
const key = keyBuilder$v(luvio, resourceParams);
|
|
4602
4699
|
luvio.storeIngest(key, ingest$8, body);
|
|
4603
4700
|
const snapshot = luvio.storeLookup({
|
|
4604
4701
|
recordId: key,
|
|
4605
|
-
node: select$
|
|
4702
|
+
node: select$n(),
|
|
4606
4703
|
variables: {},
|
|
4607
4704
|
}, snapshotRefresh);
|
|
4608
4705
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4613,8 +4710,8 @@ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4613
4710
|
deepFreeze(snapshot.data);
|
|
4614
4711
|
return snapshot;
|
|
4615
4712
|
}
|
|
4616
|
-
function ingestError$
|
|
4617
|
-
const key = keyBuilder$
|
|
4713
|
+
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
4714
|
+
const key = keyBuilder$v(luvio, params);
|
|
4618
4715
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4619
4716
|
const storeMetadataParams = {
|
|
4620
4717
|
ttl: TTL,
|
|
@@ -4625,10 +4722,10 @@ function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
|
4625
4722
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4626
4723
|
return errorSnapshot;
|
|
4627
4724
|
}
|
|
4628
|
-
function createResourceRequest$
|
|
4725
|
+
function createResourceRequest$i(config) {
|
|
4629
4726
|
const headers = {};
|
|
4630
4727
|
return {
|
|
4631
|
-
baseUri: '/services/data/
|
|
4728
|
+
baseUri: '/services/data/v65.0',
|
|
4632
4729
|
basePath: '/connect/slackbridge/related_threads/entity/' + config.urlParams.entityId + '',
|
|
4633
4730
|
method: 'get',
|
|
4634
4731
|
body: null,
|
|
@@ -4639,90 +4736,90 @@ function createResourceRequest$g(config) {
|
|
|
4639
4736
|
};
|
|
4640
4737
|
}
|
|
4641
4738
|
|
|
4642
|
-
const adapterName$
|
|
4739
|
+
const adapterName$i = 'getRelatedThreads';
|
|
4643
4740
|
const getRelatedThreads_ConfigPropertyMetadata = [
|
|
4644
4741
|
generateParamConfigMetadata('entityId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4645
4742
|
];
|
|
4646
|
-
const getRelatedThreads_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4647
|
-
const createResourceParams$
|
|
4648
|
-
function keyBuilder$
|
|
4649
|
-
const resourceParams = createResourceParams$
|
|
4650
|
-
return keyBuilder$
|
|
4743
|
+
const getRelatedThreads_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getRelatedThreads_ConfigPropertyMetadata);
|
|
4744
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$o(getRelatedThreads_ConfigPropertyMetadata);
|
|
4745
|
+
function keyBuilder$u(luvio, config) {
|
|
4746
|
+
const resourceParams = createResourceParams$i(config);
|
|
4747
|
+
return keyBuilder$v(luvio, resourceParams);
|
|
4651
4748
|
}
|
|
4652
|
-
function typeCheckConfig$
|
|
4749
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
4653
4750
|
const config = {};
|
|
4654
|
-
typeCheckConfig$
|
|
4751
|
+
typeCheckConfig$o(untrustedConfig, config, getRelatedThreads_ConfigPropertyMetadata);
|
|
4655
4752
|
return config;
|
|
4656
4753
|
}
|
|
4657
|
-
function validateAdapterConfig$
|
|
4754
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
4658
4755
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4659
4756
|
return null;
|
|
4660
4757
|
}
|
|
4661
4758
|
if (process.env.NODE_ENV !== 'production') {
|
|
4662
4759
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4663
4760
|
}
|
|
4664
|
-
const config = typeCheckConfig$
|
|
4761
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
4665
4762
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4666
4763
|
return null;
|
|
4667
4764
|
}
|
|
4668
4765
|
return config;
|
|
4669
4766
|
}
|
|
4670
|
-
function adapterFragment$
|
|
4671
|
-
createResourceParams$
|
|
4672
|
-
return select$
|
|
4767
|
+
function adapterFragment$b(luvio, config) {
|
|
4768
|
+
createResourceParams$i(config);
|
|
4769
|
+
return select$n();
|
|
4673
4770
|
}
|
|
4674
|
-
function onFetchResponseSuccess$
|
|
4675
|
-
const snapshot = ingestSuccess$
|
|
4771
|
+
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
4772
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
|
|
4676
4773
|
config,
|
|
4677
|
-
resolve: () => buildNetworkSnapshot$
|
|
4774
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
4678
4775
|
});
|
|
4679
4776
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4680
4777
|
}
|
|
4681
|
-
function onFetchResponseError$
|
|
4682
|
-
const snapshot = ingestError$
|
|
4778
|
+
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
4779
|
+
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
4683
4780
|
config,
|
|
4684
|
-
resolve: () => buildNetworkSnapshot$
|
|
4781
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
4685
4782
|
});
|
|
4686
4783
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4687
4784
|
}
|
|
4688
|
-
function buildNetworkSnapshot$
|
|
4689
|
-
const resourceParams = createResourceParams$
|
|
4690
|
-
const request = createResourceRequest$
|
|
4785
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
4786
|
+
const resourceParams = createResourceParams$i(config);
|
|
4787
|
+
const request = createResourceRequest$i(resourceParams);
|
|
4691
4788
|
return luvio.dispatchResourceRequest(request, options)
|
|
4692
4789
|
.then((response) => {
|
|
4693
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4790
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
|
|
4694
4791
|
const cache = new StoreKeyMap();
|
|
4695
|
-
getResponseCacheKeys$
|
|
4792
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
4696
4793
|
return cache;
|
|
4697
4794
|
});
|
|
4698
4795
|
}, (response) => {
|
|
4699
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4796
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$b(luvio, config, resourceParams, response));
|
|
4700
4797
|
});
|
|
4701
4798
|
}
|
|
4702
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4703
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4799
|
+
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
4800
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
4704
4801
|
}
|
|
4705
|
-
function buildCachedSnapshotCachePolicy$
|
|
4802
|
+
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
4706
4803
|
const { luvio, config } = context;
|
|
4707
4804
|
const selector = {
|
|
4708
|
-
recordId: keyBuilder$
|
|
4709
|
-
node: adapterFragment$
|
|
4805
|
+
recordId: keyBuilder$u(luvio, config),
|
|
4806
|
+
node: adapterFragment$b(luvio, config),
|
|
4710
4807
|
variables: {},
|
|
4711
4808
|
};
|
|
4712
4809
|
const cacheSnapshot = storeLookup(selector, {
|
|
4713
4810
|
config,
|
|
4714
|
-
resolve: () => buildNetworkSnapshot$
|
|
4811
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
4715
4812
|
});
|
|
4716
4813
|
return cacheSnapshot;
|
|
4717
4814
|
}
|
|
4718
4815
|
const getRelatedThreadsAdapterFactory = (luvio) => function SlackBridge__getRelatedThreads(untrustedConfig, requestContext) {
|
|
4719
|
-
const config = validateAdapterConfig$
|
|
4816
|
+
const config = validateAdapterConfig$i(untrustedConfig, getRelatedThreads_ConfigPropertyNames);
|
|
4720
4817
|
// Invalid or incomplete config
|
|
4721
4818
|
if (config === null) {
|
|
4722
4819
|
return null;
|
|
4723
4820
|
}
|
|
4724
4821
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4725
|
-
buildCachedSnapshotCachePolicy$
|
|
4822
|
+
buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
|
|
4726
4823
|
};
|
|
4727
4824
|
|
|
4728
4825
|
const VERSION$7 = "32716a7de3c8810288467155d92e5124";
|
|
@@ -4745,19 +4842,19 @@ function validate$7(obj, path = 'SlackBridgeConversationMarkOutputRepresentation
|
|
|
4745
4842
|
return v_error === undefined ? null : v_error;
|
|
4746
4843
|
}
|
|
4747
4844
|
const RepresentationType$7 = 'SlackBridgeConversationMarkOutputRepresentation';
|
|
4748
|
-
function keyBuilder$
|
|
4845
|
+
function keyBuilder$t(luvio, config) {
|
|
4749
4846
|
return keyPrefix + '::' + RepresentationType$7 + ':' + config.channelId;
|
|
4750
4847
|
}
|
|
4751
4848
|
function keyBuilderFromType$4(luvio, object) {
|
|
4752
4849
|
const keyParams = {
|
|
4753
4850
|
channelId: object.channelId
|
|
4754
4851
|
};
|
|
4755
|
-
return keyBuilder$
|
|
4852
|
+
return keyBuilder$t(luvio, keyParams);
|
|
4756
4853
|
}
|
|
4757
4854
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
4758
4855
|
return input;
|
|
4759
4856
|
}
|
|
4760
|
-
const select$
|
|
4857
|
+
const select$m = function SlackBridgeConversationMarkOutputRepresentationSelect() {
|
|
4761
4858
|
return {
|
|
4762
4859
|
kind: 'Fragment',
|
|
4763
4860
|
version: VERSION$7,
|
|
@@ -4809,19 +4906,19 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4809
4906
|
});
|
|
4810
4907
|
}
|
|
4811
4908
|
|
|
4812
|
-
function select$
|
|
4813
|
-
return select$
|
|
4909
|
+
function select$l(luvio, params) {
|
|
4910
|
+
return select$m();
|
|
4814
4911
|
}
|
|
4815
|
-
function getResponseCacheKeys$
|
|
4912
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
4816
4913
|
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
4817
4914
|
}
|
|
4818
|
-
function ingestSuccess$
|
|
4915
|
+
function ingestSuccess$e(luvio, resourceParams, response) {
|
|
4819
4916
|
const { body } = response;
|
|
4820
4917
|
const key = keyBuilderFromType$4(luvio, body);
|
|
4821
4918
|
luvio.storeIngest(key, ingest$7, body);
|
|
4822
4919
|
const snapshot = luvio.storeLookup({
|
|
4823
4920
|
recordId: key,
|
|
4824
|
-
node: select$
|
|
4921
|
+
node: select$l(),
|
|
4825
4922
|
variables: {},
|
|
4826
4923
|
});
|
|
4827
4924
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4832,10 +4929,10 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
4832
4929
|
deepFreeze(snapshot.data);
|
|
4833
4930
|
return snapshot;
|
|
4834
4931
|
}
|
|
4835
|
-
function createResourceRequest$
|
|
4932
|
+
function createResourceRequest$h(config) {
|
|
4836
4933
|
const headers = {};
|
|
4837
4934
|
return {
|
|
4838
|
-
baseUri: '/services/data/
|
|
4935
|
+
baseUri: '/services/data/v65.0',
|
|
4839
4936
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/mark',
|
|
4840
4937
|
method: 'post',
|
|
4841
4938
|
body: null,
|
|
@@ -4846,43 +4943,43 @@ function createResourceRequest$f(config) {
|
|
|
4846
4943
|
};
|
|
4847
4944
|
}
|
|
4848
4945
|
|
|
4849
|
-
const adapterName$
|
|
4946
|
+
const adapterName$h = 'postSlackConversationMark';
|
|
4850
4947
|
const postSlackConversationMark_ConfigPropertyMetadata = [
|
|
4851
4948
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4852
4949
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4853
4950
|
generateParamConfigMetadata('messageTs', true, 1 /* QueryParameter */, 0 /* String */),
|
|
4854
4951
|
];
|
|
4855
|
-
const postSlackConversationMark_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4856
|
-
const createResourceParams$
|
|
4857
|
-
function typeCheckConfig$
|
|
4952
|
+
const postSlackConversationMark_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, postSlackConversationMark_ConfigPropertyMetadata);
|
|
4953
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$o(postSlackConversationMark_ConfigPropertyMetadata);
|
|
4954
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
4858
4955
|
const config = {};
|
|
4859
|
-
typeCheckConfig$
|
|
4956
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackConversationMark_ConfigPropertyMetadata);
|
|
4860
4957
|
return config;
|
|
4861
4958
|
}
|
|
4862
|
-
function validateAdapterConfig$
|
|
4959
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
4863
4960
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4864
4961
|
return null;
|
|
4865
4962
|
}
|
|
4866
4963
|
if (process.env.NODE_ENV !== 'production') {
|
|
4867
4964
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4868
4965
|
}
|
|
4869
|
-
const config = typeCheckConfig$
|
|
4966
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
4870
4967
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4871
4968
|
return null;
|
|
4872
4969
|
}
|
|
4873
4970
|
return config;
|
|
4874
4971
|
}
|
|
4875
|
-
function buildNetworkSnapshot$
|
|
4876
|
-
const resourceParams = createResourceParams$
|
|
4877
|
-
const request = createResourceRequest$
|
|
4972
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
4973
|
+
const resourceParams = createResourceParams$h(config);
|
|
4974
|
+
const request = createResourceRequest$h(resourceParams);
|
|
4878
4975
|
return luvio.dispatchResourceRequest(request, options)
|
|
4879
4976
|
.then((response) => {
|
|
4880
4977
|
return luvio.handleSuccessResponse(() => {
|
|
4881
|
-
const snapshot = ingestSuccess$
|
|
4978
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response);
|
|
4882
4979
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4883
4980
|
}, () => {
|
|
4884
4981
|
const cache = new StoreKeyMap();
|
|
4885
|
-
getResponseCacheKeys$
|
|
4982
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
4886
4983
|
return cache;
|
|
4887
4984
|
});
|
|
4888
4985
|
}, (response) => {
|
|
@@ -4892,12 +4989,12 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
4892
4989
|
}
|
|
4893
4990
|
const postSlackConversationMarkAdapterFactory = (luvio) => {
|
|
4894
4991
|
return function postSlackConversationMark(untrustedConfig) {
|
|
4895
|
-
const config = validateAdapterConfig$
|
|
4992
|
+
const config = validateAdapterConfig$h(untrustedConfig, postSlackConversationMark_ConfigPropertyNames);
|
|
4896
4993
|
// Invalid or incomplete config
|
|
4897
4994
|
if (config === null) {
|
|
4898
4995
|
throw new Error('Invalid config for "postSlackConversationMark"');
|
|
4899
4996
|
}
|
|
4900
|
-
return buildNetworkSnapshot$
|
|
4997
|
+
return buildNetworkSnapshot$h(luvio, config);
|
|
4901
4998
|
};
|
|
4902
4999
|
};
|
|
4903
5000
|
|
|
@@ -4954,19 +5051,19 @@ function validate$6(obj, path = 'SlackBridgeConversationMembersOutputRepresentat
|
|
|
4954
5051
|
return v_error === undefined ? null : v_error;
|
|
4955
5052
|
}
|
|
4956
5053
|
const RepresentationType$6 = 'SlackBridgeConversationMembersOutputRepresentation';
|
|
4957
|
-
function keyBuilder$
|
|
5054
|
+
function keyBuilder$s(luvio, config) {
|
|
4958
5055
|
return keyPrefix + '::' + RepresentationType$6 + ':' + config.channelId;
|
|
4959
5056
|
}
|
|
4960
5057
|
function keyBuilderFromType$3(luvio, object) {
|
|
4961
5058
|
const keyParams = {
|
|
4962
5059
|
channelId: object.channelId
|
|
4963
5060
|
};
|
|
4964
|
-
return keyBuilder$
|
|
5061
|
+
return keyBuilder$s(luvio, keyParams);
|
|
4965
5062
|
}
|
|
4966
5063
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
4967
5064
|
return input;
|
|
4968
5065
|
}
|
|
4969
|
-
const select$
|
|
5066
|
+
const select$k = function SlackBridgeConversationMembersOutputRepresentationSelect() {
|
|
4970
5067
|
return {
|
|
4971
5068
|
kind: 'Fragment',
|
|
4972
5069
|
version: VERSION$6,
|
|
@@ -5033,24 +5130,24 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5033
5130
|
});
|
|
5034
5131
|
}
|
|
5035
5132
|
|
|
5036
|
-
function select$
|
|
5037
|
-
return select$
|
|
5133
|
+
function select$j(luvio, params) {
|
|
5134
|
+
return select$k();
|
|
5038
5135
|
}
|
|
5039
|
-
function keyBuilder$
|
|
5040
|
-
return keyBuilder$
|
|
5136
|
+
function keyBuilder$r(luvio, params) {
|
|
5137
|
+
return keyBuilder$s(luvio, {
|
|
5041
5138
|
channelId: params.urlParams.channelId
|
|
5042
5139
|
});
|
|
5043
5140
|
}
|
|
5044
|
-
function getResponseCacheKeys$
|
|
5141
|
+
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
5045
5142
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
5046
5143
|
}
|
|
5047
|
-
function ingestSuccess$
|
|
5144
|
+
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
5048
5145
|
const { body } = response;
|
|
5049
|
-
const key = keyBuilder$
|
|
5146
|
+
const key = keyBuilder$r(luvio, resourceParams);
|
|
5050
5147
|
luvio.storeIngest(key, ingest$6, body);
|
|
5051
5148
|
const snapshot = luvio.storeLookup({
|
|
5052
5149
|
recordId: key,
|
|
5053
|
-
node: select$
|
|
5150
|
+
node: select$j(),
|
|
5054
5151
|
variables: {},
|
|
5055
5152
|
}, snapshotRefresh);
|
|
5056
5153
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5061,16 +5158,16 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5061
5158
|
deepFreeze(snapshot.data);
|
|
5062
5159
|
return snapshot;
|
|
5063
5160
|
}
|
|
5064
|
-
function ingestError$
|
|
5065
|
-
const key = keyBuilder$
|
|
5161
|
+
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
5162
|
+
const key = keyBuilder$r(luvio, params);
|
|
5066
5163
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5067
5164
|
luvio.storeIngestError(key, errorSnapshot);
|
|
5068
5165
|
return errorSnapshot;
|
|
5069
5166
|
}
|
|
5070
|
-
function createResourceRequest$
|
|
5167
|
+
function createResourceRequest$g(config) {
|
|
5071
5168
|
const headers = {};
|
|
5072
5169
|
return {
|
|
5073
|
-
baseUri: '/services/data/
|
|
5170
|
+
baseUri: '/services/data/v65.0',
|
|
5074
5171
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members',
|
|
5075
5172
|
method: 'get',
|
|
5076
5173
|
body: null,
|
|
@@ -5081,106 +5178,106 @@ function createResourceRequest$e(config) {
|
|
|
5081
5178
|
};
|
|
5082
5179
|
}
|
|
5083
5180
|
|
|
5084
|
-
const adapterName$
|
|
5181
|
+
const adapterName$g = 'getSlackConversationMembers';
|
|
5085
5182
|
const getSlackConversationMembers_ConfigPropertyMetadata = [
|
|
5086
5183
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5087
5184
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5088
5185
|
];
|
|
5089
|
-
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5090
|
-
const createResourceParams$
|
|
5091
|
-
function keyBuilder$
|
|
5092
|
-
const resourceParams = createResourceParams$
|
|
5093
|
-
return keyBuilder$
|
|
5186
|
+
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5187
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$o(getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5188
|
+
function keyBuilder$q(luvio, config) {
|
|
5189
|
+
const resourceParams = createResourceParams$g(config);
|
|
5190
|
+
return keyBuilder$r(luvio, resourceParams);
|
|
5094
5191
|
}
|
|
5095
|
-
function typeCheckConfig$
|
|
5192
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
5096
5193
|
const config = {};
|
|
5097
|
-
typeCheckConfig$
|
|
5194
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5098
5195
|
return config;
|
|
5099
5196
|
}
|
|
5100
|
-
function validateAdapterConfig$
|
|
5197
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
5101
5198
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5102
5199
|
return null;
|
|
5103
5200
|
}
|
|
5104
5201
|
if (process.env.NODE_ENV !== 'production') {
|
|
5105
5202
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5106
5203
|
}
|
|
5107
|
-
const config = typeCheckConfig$
|
|
5204
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
5108
5205
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5109
5206
|
return null;
|
|
5110
5207
|
}
|
|
5111
5208
|
return config;
|
|
5112
5209
|
}
|
|
5113
|
-
function adapterFragment$
|
|
5114
|
-
createResourceParams$
|
|
5115
|
-
return select$
|
|
5210
|
+
function adapterFragment$a(luvio, config) {
|
|
5211
|
+
createResourceParams$g(config);
|
|
5212
|
+
return select$j();
|
|
5116
5213
|
}
|
|
5117
|
-
function onFetchResponseSuccess$
|
|
5118
|
-
const snapshot = ingestSuccess$
|
|
5214
|
+
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
5215
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
5119
5216
|
config,
|
|
5120
|
-
resolve: () => buildNetworkSnapshot$
|
|
5217
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
5121
5218
|
});
|
|
5122
5219
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5123
5220
|
}
|
|
5124
|
-
function onFetchResponseError$
|
|
5125
|
-
const snapshot = ingestError$
|
|
5221
|
+
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
5222
|
+
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
5126
5223
|
config,
|
|
5127
|
-
resolve: () => buildNetworkSnapshot$
|
|
5224
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
5128
5225
|
});
|
|
5129
5226
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5130
5227
|
}
|
|
5131
|
-
function buildNetworkSnapshot$
|
|
5132
|
-
const resourceParams = createResourceParams$
|
|
5133
|
-
const request = createResourceRequest$
|
|
5228
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
5229
|
+
const resourceParams = createResourceParams$g(config);
|
|
5230
|
+
const request = createResourceRequest$g(resourceParams);
|
|
5134
5231
|
return luvio.dispatchResourceRequest(request, options)
|
|
5135
5232
|
.then((response) => {
|
|
5136
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
5233
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
5137
5234
|
const cache = new StoreKeyMap();
|
|
5138
|
-
getResponseCacheKeys$
|
|
5235
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
|
|
5139
5236
|
return cache;
|
|
5140
5237
|
});
|
|
5141
5238
|
}, (response) => {
|
|
5142
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
5239
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
|
|
5143
5240
|
});
|
|
5144
5241
|
}
|
|
5145
|
-
function buildNetworkSnapshotCachePolicy$
|
|
5146
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5242
|
+
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
5243
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
|
|
5147
5244
|
}
|
|
5148
|
-
function buildCachedSnapshotCachePolicy$
|
|
5245
|
+
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
5149
5246
|
const { luvio, config } = context;
|
|
5150
5247
|
const selector = {
|
|
5151
|
-
recordId: keyBuilder$
|
|
5152
|
-
node: adapterFragment$
|
|
5248
|
+
recordId: keyBuilder$q(luvio, config),
|
|
5249
|
+
node: adapterFragment$a(luvio, config),
|
|
5153
5250
|
variables: {},
|
|
5154
5251
|
};
|
|
5155
5252
|
const cacheSnapshot = storeLookup(selector, {
|
|
5156
5253
|
config,
|
|
5157
|
-
resolve: () => buildNetworkSnapshot$
|
|
5254
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
5158
5255
|
});
|
|
5159
5256
|
return cacheSnapshot;
|
|
5160
5257
|
}
|
|
5161
5258
|
const getSlackConversationMembersAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMembers(untrustedConfig, requestContext) {
|
|
5162
|
-
const config = validateAdapterConfig$
|
|
5259
|
+
const config = validateAdapterConfig$g(untrustedConfig, getSlackConversationMembers_ConfigPropertyNames);
|
|
5163
5260
|
// Invalid or incomplete config
|
|
5164
5261
|
if (config === null) {
|
|
5165
5262
|
return null;
|
|
5166
5263
|
}
|
|
5167
5264
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5168
|
-
buildCachedSnapshotCachePolicy$
|
|
5265
|
+
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
5169
5266
|
};
|
|
5170
5267
|
|
|
5171
|
-
function select$
|
|
5172
|
-
return select$
|
|
5268
|
+
function select$i(luvio, params) {
|
|
5269
|
+
return select$k();
|
|
5173
5270
|
}
|
|
5174
|
-
function getResponseCacheKeys$
|
|
5271
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
5175
5272
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
5176
5273
|
}
|
|
5177
|
-
function ingestSuccess$
|
|
5274
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
5178
5275
|
const { body } = response;
|
|
5179
5276
|
const key = keyBuilderFromType$3(luvio, body);
|
|
5180
5277
|
luvio.storeIngest(key, ingest$6, body);
|
|
5181
5278
|
const snapshot = luvio.storeLookup({
|
|
5182
5279
|
recordId: key,
|
|
5183
|
-
node: select$
|
|
5280
|
+
node: select$i(),
|
|
5184
5281
|
variables: {},
|
|
5185
5282
|
});
|
|
5186
5283
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5191,10 +5288,10 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
5191
5288
|
deepFreeze(snapshot.data);
|
|
5192
5289
|
return snapshot;
|
|
5193
5290
|
}
|
|
5194
|
-
function createResourceRequest$
|
|
5291
|
+
function createResourceRequest$f(config) {
|
|
5195
5292
|
const headers = {};
|
|
5196
5293
|
return {
|
|
5197
|
-
baseUri: '/services/data/
|
|
5294
|
+
baseUri: '/services/data/v65.0',
|
|
5198
5295
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members',
|
|
5199
5296
|
method: 'post',
|
|
5200
5297
|
body: config.body,
|
|
@@ -5205,43 +5302,43 @@ function createResourceRequest$d(config) {
|
|
|
5205
5302
|
};
|
|
5206
5303
|
}
|
|
5207
5304
|
|
|
5208
|
-
const adapterName$
|
|
5305
|
+
const adapterName$f = 'postSlackConversationMembers';
|
|
5209
5306
|
const postSlackConversationMembers_ConfigPropertyMetadata = [
|
|
5210
5307
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5211
5308
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5212
5309
|
generateParamConfigMetadata('slackUserIds', true, 2 /* Body */, 0 /* String */, true),
|
|
5213
5310
|
];
|
|
5214
|
-
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5215
|
-
const createResourceParams$
|
|
5216
|
-
function typeCheckConfig$
|
|
5311
|
+
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
5312
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$o(postSlackConversationMembers_ConfigPropertyMetadata);
|
|
5313
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
5217
5314
|
const config = {};
|
|
5218
|
-
typeCheckConfig$
|
|
5315
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
5219
5316
|
return config;
|
|
5220
5317
|
}
|
|
5221
|
-
function validateAdapterConfig$
|
|
5318
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
5222
5319
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5223
5320
|
return null;
|
|
5224
5321
|
}
|
|
5225
5322
|
if (process.env.NODE_ENV !== 'production') {
|
|
5226
5323
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5227
5324
|
}
|
|
5228
|
-
const config = typeCheckConfig$
|
|
5325
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
5229
5326
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5230
5327
|
return null;
|
|
5231
5328
|
}
|
|
5232
5329
|
return config;
|
|
5233
5330
|
}
|
|
5234
|
-
function buildNetworkSnapshot$
|
|
5235
|
-
const resourceParams = createResourceParams$
|
|
5236
|
-
const request = createResourceRequest$
|
|
5331
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
5332
|
+
const resourceParams = createResourceParams$f(config);
|
|
5333
|
+
const request = createResourceRequest$f(resourceParams);
|
|
5237
5334
|
return luvio.dispatchResourceRequest(request, options)
|
|
5238
5335
|
.then((response) => {
|
|
5239
5336
|
return luvio.handleSuccessResponse(() => {
|
|
5240
|
-
const snapshot = ingestSuccess$
|
|
5337
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response);
|
|
5241
5338
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5242
5339
|
}, () => {
|
|
5243
5340
|
const cache = new StoreKeyMap();
|
|
5244
|
-
getResponseCacheKeys$
|
|
5341
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
5245
5342
|
return cache;
|
|
5246
5343
|
});
|
|
5247
5344
|
}, (response) => {
|
|
@@ -5251,12 +5348,12 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
5251
5348
|
}
|
|
5252
5349
|
const postSlackConversationMembersAdapterFactory = (luvio) => {
|
|
5253
5350
|
return function postSlackConversationMembers(untrustedConfig) {
|
|
5254
|
-
const config = validateAdapterConfig$
|
|
5351
|
+
const config = validateAdapterConfig$f(untrustedConfig, postSlackConversationMembers_ConfigPropertyNames);
|
|
5255
5352
|
// Invalid or incomplete config
|
|
5256
5353
|
if (config === null) {
|
|
5257
5354
|
throw new Error('Invalid config for "postSlackConversationMembers"');
|
|
5258
5355
|
}
|
|
5259
|
-
return buildNetworkSnapshot$
|
|
5356
|
+
return buildNetworkSnapshot$f(luvio, config);
|
|
5260
5357
|
};
|
|
5261
5358
|
};
|
|
5262
5359
|
|
|
@@ -5280,19 +5377,19 @@ function validate$5(obj, path = 'SlackBridgeConversationMemberOutputRepresentati
|
|
|
5280
5377
|
return v_error === undefined ? null : v_error;
|
|
5281
5378
|
}
|
|
5282
5379
|
const RepresentationType$5 = 'SlackBridgeConversationMemberOutputRepresentation';
|
|
5283
|
-
function keyBuilder$
|
|
5380
|
+
function keyBuilder$p(luvio, config) {
|
|
5284
5381
|
return keyPrefix + '::' + RepresentationType$5 + ':' + config.channelId;
|
|
5285
5382
|
}
|
|
5286
5383
|
function keyBuilderFromType$2(luvio, object) {
|
|
5287
5384
|
const keyParams = {
|
|
5288
5385
|
channelId: object.channelId
|
|
5289
5386
|
};
|
|
5290
|
-
return keyBuilder$
|
|
5387
|
+
return keyBuilder$p(luvio, keyParams);
|
|
5291
5388
|
}
|
|
5292
5389
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
5293
5390
|
return input;
|
|
5294
5391
|
}
|
|
5295
|
-
const select$
|
|
5392
|
+
const select$h = function SlackBridgeConversationMemberOutputRepresentationSelect() {
|
|
5296
5393
|
return {
|
|
5297
5394
|
kind: 'Fragment',
|
|
5298
5395
|
version: VERSION$5,
|
|
@@ -5344,13 +5441,13 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5344
5441
|
});
|
|
5345
5442
|
}
|
|
5346
5443
|
|
|
5347
|
-
function keyBuilder$
|
|
5348
|
-
return keyBuilder$
|
|
5444
|
+
function keyBuilder$o(luvio, params) {
|
|
5445
|
+
return keyBuilder$p(luvio, {
|
|
5349
5446
|
channelId: params.urlParams.channelId
|
|
5350
5447
|
});
|
|
5351
5448
|
}
|
|
5352
|
-
function getResponseCacheKeys$
|
|
5353
|
-
const key = keyBuilder$
|
|
5449
|
+
function getResponseCacheKeys$e(cacheKeyMap, luvio, resourceParams) {
|
|
5450
|
+
const key = keyBuilder$o(luvio, resourceParams);
|
|
5354
5451
|
cacheKeyMap.set(key, {
|
|
5355
5452
|
namespace: keyPrefix,
|
|
5356
5453
|
representationName: RepresentationType$5,
|
|
@@ -5358,13 +5455,13 @@ function getResponseCacheKeys$c(cacheKeyMap, luvio, resourceParams) {
|
|
|
5358
5455
|
});
|
|
5359
5456
|
}
|
|
5360
5457
|
function evictSuccess$2(luvio, resourceParams) {
|
|
5361
|
-
const key = keyBuilder$
|
|
5458
|
+
const key = keyBuilder$o(luvio, resourceParams);
|
|
5362
5459
|
luvio.storeEvict(key);
|
|
5363
5460
|
}
|
|
5364
|
-
function createResourceRequest$
|
|
5461
|
+
function createResourceRequest$e(config) {
|
|
5365
5462
|
const headers = {};
|
|
5366
5463
|
return {
|
|
5367
|
-
baseUri: '/services/data/
|
|
5464
|
+
baseUri: '/services/data/v65.0',
|
|
5368
5465
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members/' + config.urlParams.slackUserId + '',
|
|
5369
5466
|
method: 'delete',
|
|
5370
5467
|
body: null,
|
|
@@ -5375,35 +5472,35 @@ function createResourceRequest$c(config) {
|
|
|
5375
5472
|
};
|
|
5376
5473
|
}
|
|
5377
5474
|
|
|
5378
|
-
const adapterName$
|
|
5475
|
+
const adapterName$e = 'deleteSlackConversationMember';
|
|
5379
5476
|
const deleteSlackConversationMember_ConfigPropertyMetadata = [
|
|
5380
5477
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5381
5478
|
generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5382
5479
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5383
5480
|
];
|
|
5384
|
-
const deleteSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5385
|
-
const createResourceParams$
|
|
5386
|
-
function typeCheckConfig$
|
|
5481
|
+
const deleteSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
5482
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$o(deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
5483
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
5387
5484
|
const config = {};
|
|
5388
|
-
typeCheckConfig$
|
|
5485
|
+
typeCheckConfig$o(untrustedConfig, config, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
5389
5486
|
return config;
|
|
5390
5487
|
}
|
|
5391
|
-
function validateAdapterConfig$
|
|
5488
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
5392
5489
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5393
5490
|
return null;
|
|
5394
5491
|
}
|
|
5395
5492
|
if (process.env.NODE_ENV !== 'production') {
|
|
5396
5493
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5397
5494
|
}
|
|
5398
|
-
const config = typeCheckConfig$
|
|
5495
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
5399
5496
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5400
5497
|
return null;
|
|
5401
5498
|
}
|
|
5402
5499
|
return config;
|
|
5403
5500
|
}
|
|
5404
|
-
function buildNetworkSnapshot$
|
|
5405
|
-
const resourceParams = createResourceParams$
|
|
5406
|
-
const request = createResourceRequest$
|
|
5501
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
5502
|
+
const resourceParams = createResourceParams$e(config);
|
|
5503
|
+
const request = createResourceRequest$e(resourceParams);
|
|
5407
5504
|
return luvio.dispatchResourceRequest(request, options)
|
|
5408
5505
|
.then(() => {
|
|
5409
5506
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -5411,7 +5508,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
5411
5508
|
return luvio.storeBroadcast();
|
|
5412
5509
|
}, () => {
|
|
5413
5510
|
const cache = new StoreKeyMap();
|
|
5414
|
-
getResponseCacheKeys$
|
|
5511
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams);
|
|
5415
5512
|
return cache;
|
|
5416
5513
|
});
|
|
5417
5514
|
}, (response) => {
|
|
@@ -5421,33 +5518,33 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
5421
5518
|
}
|
|
5422
5519
|
const deleteSlackConversationMemberAdapterFactory = (luvio) => {
|
|
5423
5520
|
return function SlackBridgedeleteSlackConversationMember(untrustedConfig) {
|
|
5424
|
-
const config = validateAdapterConfig$
|
|
5521
|
+
const config = validateAdapterConfig$e(untrustedConfig, deleteSlackConversationMember_ConfigPropertyNames);
|
|
5425
5522
|
// Invalid or incomplete config
|
|
5426
5523
|
if (config === null) {
|
|
5427
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
5524
|
+
throw new Error(`Invalid config for "${adapterName$e}"`);
|
|
5428
5525
|
}
|
|
5429
|
-
return buildNetworkSnapshot$
|
|
5526
|
+
return buildNetworkSnapshot$e(luvio, config);
|
|
5430
5527
|
};
|
|
5431
5528
|
};
|
|
5432
5529
|
|
|
5433
|
-
function select$
|
|
5434
|
-
return select$
|
|
5530
|
+
function select$g(luvio, params) {
|
|
5531
|
+
return select$h();
|
|
5435
5532
|
}
|
|
5436
|
-
function keyBuilder$
|
|
5437
|
-
return keyBuilder$
|
|
5533
|
+
function keyBuilder$n(luvio, params) {
|
|
5534
|
+
return keyBuilder$p(luvio, {
|
|
5438
5535
|
channelId: params.urlParams.channelId
|
|
5439
5536
|
});
|
|
5440
5537
|
}
|
|
5441
|
-
function getResponseCacheKeys$
|
|
5538
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
5442
5539
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
5443
5540
|
}
|
|
5444
|
-
function ingestSuccess$
|
|
5541
|
+
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
5445
5542
|
const { body } = response;
|
|
5446
|
-
const key = keyBuilder$
|
|
5543
|
+
const key = keyBuilder$n(luvio, resourceParams);
|
|
5447
5544
|
luvio.storeIngest(key, ingest$5, body);
|
|
5448
5545
|
const snapshot = luvio.storeLookup({
|
|
5449
5546
|
recordId: key,
|
|
5450
|
-
node: select$
|
|
5547
|
+
node: select$g(),
|
|
5451
5548
|
variables: {},
|
|
5452
5549
|
}, snapshotRefresh);
|
|
5453
5550
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5458,16 +5555,16 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5458
5555
|
deepFreeze(snapshot.data);
|
|
5459
5556
|
return snapshot;
|
|
5460
5557
|
}
|
|
5461
|
-
function ingestError$
|
|
5462
|
-
const key = keyBuilder$
|
|
5558
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
5559
|
+
const key = keyBuilder$n(luvio, params);
|
|
5463
5560
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5464
5561
|
luvio.storeIngestError(key, errorSnapshot);
|
|
5465
5562
|
return errorSnapshot;
|
|
5466
5563
|
}
|
|
5467
|
-
function createResourceRequest$
|
|
5564
|
+
function createResourceRequest$d(config) {
|
|
5468
5565
|
const headers = {};
|
|
5469
5566
|
return {
|
|
5470
|
-
baseUri: '/services/data/
|
|
5567
|
+
baseUri: '/services/data/v65.0',
|
|
5471
5568
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members/' + config.urlParams.slackUserId + '',
|
|
5472
5569
|
method: 'get',
|
|
5473
5570
|
body: null,
|
|
@@ -5478,92 +5575,92 @@ function createResourceRequest$b(config) {
|
|
|
5478
5575
|
};
|
|
5479
5576
|
}
|
|
5480
5577
|
|
|
5481
|
-
const adapterName$
|
|
5578
|
+
const adapterName$d = 'getSlackConversationMember';
|
|
5482
5579
|
const getSlackConversationMember_ConfigPropertyMetadata = [
|
|
5483
5580
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5484
5581
|
generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5485
5582
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5486
5583
|
];
|
|
5487
|
-
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5488
|
-
const createResourceParams$
|
|
5489
|
-
function keyBuilder$
|
|
5490
|
-
const resourceParams = createResourceParams$
|
|
5491
|
-
return keyBuilder$
|
|
5584
|
+
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getSlackConversationMember_ConfigPropertyMetadata);
|
|
5585
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$o(getSlackConversationMember_ConfigPropertyMetadata);
|
|
5586
|
+
function keyBuilder$m(luvio, config) {
|
|
5587
|
+
const resourceParams = createResourceParams$d(config);
|
|
5588
|
+
return keyBuilder$n(luvio, resourceParams);
|
|
5492
5589
|
}
|
|
5493
|
-
function typeCheckConfig$
|
|
5590
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
5494
5591
|
const config = {};
|
|
5495
|
-
typeCheckConfig$
|
|
5592
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversationMember_ConfigPropertyMetadata);
|
|
5496
5593
|
return config;
|
|
5497
5594
|
}
|
|
5498
|
-
function validateAdapterConfig$
|
|
5595
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
5499
5596
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5500
5597
|
return null;
|
|
5501
5598
|
}
|
|
5502
5599
|
if (process.env.NODE_ENV !== 'production') {
|
|
5503
5600
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5504
5601
|
}
|
|
5505
|
-
const config = typeCheckConfig$
|
|
5602
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
5506
5603
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5507
5604
|
return null;
|
|
5508
5605
|
}
|
|
5509
5606
|
return config;
|
|
5510
5607
|
}
|
|
5511
|
-
function adapterFragment$
|
|
5512
|
-
createResourceParams$
|
|
5513
|
-
return select$
|
|
5608
|
+
function adapterFragment$9(luvio, config) {
|
|
5609
|
+
createResourceParams$d(config);
|
|
5610
|
+
return select$g();
|
|
5514
5611
|
}
|
|
5515
|
-
function onFetchResponseSuccess$
|
|
5516
|
-
const snapshot = ingestSuccess$
|
|
5612
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
5613
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
5517
5614
|
config,
|
|
5518
|
-
resolve: () => buildNetworkSnapshot$
|
|
5615
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
5519
5616
|
});
|
|
5520
5617
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5521
5618
|
}
|
|
5522
|
-
function onFetchResponseError$
|
|
5523
|
-
const snapshot = ingestError$
|
|
5619
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
5620
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
5524
5621
|
config,
|
|
5525
|
-
resolve: () => buildNetworkSnapshot$
|
|
5622
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
5526
5623
|
});
|
|
5527
5624
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5528
5625
|
}
|
|
5529
|
-
function buildNetworkSnapshot$
|
|
5530
|
-
const resourceParams = createResourceParams$
|
|
5531
|
-
const request = createResourceRequest$
|
|
5626
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
5627
|
+
const resourceParams = createResourceParams$d(config);
|
|
5628
|
+
const request = createResourceRequest$d(resourceParams);
|
|
5532
5629
|
return luvio.dispatchResourceRequest(request, options)
|
|
5533
5630
|
.then((response) => {
|
|
5534
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
5631
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
5535
5632
|
const cache = new StoreKeyMap();
|
|
5536
|
-
getResponseCacheKeys$
|
|
5633
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
5537
5634
|
return cache;
|
|
5538
5635
|
});
|
|
5539
5636
|
}, (response) => {
|
|
5540
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
5637
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
5541
5638
|
});
|
|
5542
5639
|
}
|
|
5543
|
-
function buildNetworkSnapshotCachePolicy$
|
|
5544
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5640
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
5641
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
5545
5642
|
}
|
|
5546
|
-
function buildCachedSnapshotCachePolicy$
|
|
5643
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
5547
5644
|
const { luvio, config } = context;
|
|
5548
5645
|
const selector = {
|
|
5549
|
-
recordId: keyBuilder$
|
|
5550
|
-
node: adapterFragment$
|
|
5646
|
+
recordId: keyBuilder$m(luvio, config),
|
|
5647
|
+
node: adapterFragment$9(luvio, config),
|
|
5551
5648
|
variables: {},
|
|
5552
5649
|
};
|
|
5553
5650
|
const cacheSnapshot = storeLookup(selector, {
|
|
5554
5651
|
config,
|
|
5555
|
-
resolve: () => buildNetworkSnapshot$
|
|
5652
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
5556
5653
|
});
|
|
5557
5654
|
return cacheSnapshot;
|
|
5558
5655
|
}
|
|
5559
5656
|
const getSlackConversationMemberAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMember(untrustedConfig, requestContext) {
|
|
5560
|
-
const config = validateAdapterConfig$
|
|
5657
|
+
const config = validateAdapterConfig$d(untrustedConfig, getSlackConversationMember_ConfigPropertyNames);
|
|
5561
5658
|
// Invalid or incomplete config
|
|
5562
5659
|
if (config === null) {
|
|
5563
5660
|
return null;
|
|
5564
5661
|
}
|
|
5565
5662
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5566
|
-
buildCachedSnapshotCachePolicy$
|
|
5663
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
5567
5664
|
};
|
|
5568
5665
|
|
|
5569
5666
|
const VERSION$4 = "605674abcbc0dad7e2707e4e00e8d4cd";
|
|
@@ -5591,19 +5688,19 @@ function validate$4(obj, path = 'SlackBridgeMessageFragmentOutputRepresentation'
|
|
|
5591
5688
|
return v_error === undefined ? null : v_error;
|
|
5592
5689
|
}
|
|
5593
5690
|
const RepresentationType$4 = 'SlackBridgeMessageFragmentOutputRepresentation';
|
|
5594
|
-
function keyBuilder$
|
|
5691
|
+
function keyBuilder$l(luvio, config) {
|
|
5595
5692
|
return keyPrefix + '::' + RepresentationType$4 + ':' + config.channelId;
|
|
5596
5693
|
}
|
|
5597
5694
|
function keyBuilderFromType$1(luvio, object) {
|
|
5598
5695
|
const keyParams = {
|
|
5599
5696
|
channelId: object.channelId
|
|
5600
5697
|
};
|
|
5601
|
-
return keyBuilder$
|
|
5698
|
+
return keyBuilder$l(luvio, keyParams);
|
|
5602
5699
|
}
|
|
5603
5700
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
5604
5701
|
return input;
|
|
5605
5702
|
}
|
|
5606
|
-
const select$
|
|
5703
|
+
const select$f = function SlackBridgeMessageFragmentOutputRepresentationSelect() {
|
|
5607
5704
|
return {
|
|
5608
5705
|
kind: 'Fragment',
|
|
5609
5706
|
version: VERSION$4,
|
|
@@ -5664,13 +5761,13 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5664
5761
|
});
|
|
5665
5762
|
}
|
|
5666
5763
|
|
|
5667
|
-
function keyBuilder$
|
|
5668
|
-
return keyBuilder$
|
|
5764
|
+
function keyBuilder$k(luvio, params) {
|
|
5765
|
+
return keyBuilder$l(luvio, {
|
|
5669
5766
|
channelId: params.urlParams.channelId
|
|
5670
5767
|
});
|
|
5671
5768
|
}
|
|
5672
|
-
function getResponseCacheKeys$
|
|
5673
|
-
const key = keyBuilder$
|
|
5769
|
+
function getResponseCacheKeys$c(cacheKeyMap, luvio, resourceParams) {
|
|
5770
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
5674
5771
|
cacheKeyMap.set(key, {
|
|
5675
5772
|
namespace: keyPrefix,
|
|
5676
5773
|
representationName: RepresentationType$4,
|
|
@@ -5678,13 +5775,13 @@ function getResponseCacheKeys$a(cacheKeyMap, luvio, resourceParams) {
|
|
|
5678
5775
|
});
|
|
5679
5776
|
}
|
|
5680
5777
|
function evictSuccess$1(luvio, resourceParams) {
|
|
5681
|
-
const key = keyBuilder$
|
|
5778
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
5682
5779
|
luvio.storeEvict(key);
|
|
5683
5780
|
}
|
|
5684
|
-
function createResourceRequest$
|
|
5781
|
+
function createResourceRequest$c(config) {
|
|
5685
5782
|
const headers = {};
|
|
5686
5783
|
return {
|
|
5687
|
-
baseUri: '/services/data/
|
|
5784
|
+
baseUri: '/services/data/v65.0',
|
|
5688
5785
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/messages/' + config.urlParams.messageTs + '',
|
|
5689
5786
|
method: 'delete',
|
|
5690
5787
|
body: null,
|
|
@@ -5695,35 +5792,35 @@ function createResourceRequest$a(config) {
|
|
|
5695
5792
|
};
|
|
5696
5793
|
}
|
|
5697
5794
|
|
|
5698
|
-
const adapterName$
|
|
5795
|
+
const adapterName$c = 'deleteSlackMessage';
|
|
5699
5796
|
const deleteSlackMessage_ConfigPropertyMetadata = [
|
|
5700
5797
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5701
5798
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5702
5799
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5703
5800
|
];
|
|
5704
|
-
const deleteSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5705
|
-
const createResourceParams$
|
|
5706
|
-
function typeCheckConfig$
|
|
5801
|
+
const deleteSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, deleteSlackMessage_ConfigPropertyMetadata);
|
|
5802
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$o(deleteSlackMessage_ConfigPropertyMetadata);
|
|
5803
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
5707
5804
|
const config = {};
|
|
5708
|
-
typeCheckConfig$
|
|
5805
|
+
typeCheckConfig$o(untrustedConfig, config, deleteSlackMessage_ConfigPropertyMetadata);
|
|
5709
5806
|
return config;
|
|
5710
5807
|
}
|
|
5711
|
-
function validateAdapterConfig$
|
|
5808
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
5712
5809
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5713
5810
|
return null;
|
|
5714
5811
|
}
|
|
5715
5812
|
if (process.env.NODE_ENV !== 'production') {
|
|
5716
5813
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5717
5814
|
}
|
|
5718
|
-
const config = typeCheckConfig$
|
|
5815
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
5719
5816
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5720
5817
|
return null;
|
|
5721
5818
|
}
|
|
5722
5819
|
return config;
|
|
5723
5820
|
}
|
|
5724
|
-
function buildNetworkSnapshot$
|
|
5725
|
-
const resourceParams = createResourceParams$
|
|
5726
|
-
const request = createResourceRequest$
|
|
5821
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
5822
|
+
const resourceParams = createResourceParams$c(config);
|
|
5823
|
+
const request = createResourceRequest$c(resourceParams);
|
|
5727
5824
|
return luvio.dispatchResourceRequest(request, options)
|
|
5728
5825
|
.then(() => {
|
|
5729
5826
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -5731,7 +5828,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
5731
5828
|
return luvio.storeBroadcast();
|
|
5732
5829
|
}, () => {
|
|
5733
5830
|
const cache = new StoreKeyMap();
|
|
5734
|
-
getResponseCacheKeys$
|
|
5831
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams);
|
|
5735
5832
|
return cache;
|
|
5736
5833
|
});
|
|
5737
5834
|
}, (response) => {
|
|
@@ -5741,33 +5838,33 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
5741
5838
|
}
|
|
5742
5839
|
const deleteSlackMessageAdapterFactory = (luvio) => {
|
|
5743
5840
|
return function SlackBridgedeleteSlackMessage(untrustedConfig) {
|
|
5744
|
-
const config = validateAdapterConfig$
|
|
5841
|
+
const config = validateAdapterConfig$c(untrustedConfig, deleteSlackMessage_ConfigPropertyNames);
|
|
5745
5842
|
// Invalid or incomplete config
|
|
5746
5843
|
if (config === null) {
|
|
5747
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
5844
|
+
throw new Error(`Invalid config for "${adapterName$c}"`);
|
|
5748
5845
|
}
|
|
5749
|
-
return buildNetworkSnapshot$
|
|
5846
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
5750
5847
|
};
|
|
5751
5848
|
};
|
|
5752
5849
|
|
|
5753
|
-
function select$
|
|
5754
|
-
return select$
|
|
5850
|
+
function select$e(luvio, params) {
|
|
5851
|
+
return select$f();
|
|
5755
5852
|
}
|
|
5756
|
-
function keyBuilder$
|
|
5757
|
-
return keyBuilder$
|
|
5853
|
+
function keyBuilder$j(luvio, params) {
|
|
5854
|
+
return keyBuilder$l(luvio, {
|
|
5758
5855
|
channelId: params.urlParams.channelId
|
|
5759
5856
|
});
|
|
5760
5857
|
}
|
|
5761
|
-
function getResponseCacheKeys$
|
|
5858
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
5762
5859
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
5763
5860
|
}
|
|
5764
|
-
function ingestSuccess$
|
|
5861
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
5765
5862
|
const { body } = response;
|
|
5766
|
-
const key = keyBuilder$
|
|
5863
|
+
const key = keyBuilder$j(luvio, resourceParams);
|
|
5767
5864
|
luvio.storeIngest(key, ingest$4, body);
|
|
5768
5865
|
const snapshot = luvio.storeLookup({
|
|
5769
5866
|
recordId: key,
|
|
5770
|
-
node: select$
|
|
5867
|
+
node: select$e(),
|
|
5771
5868
|
variables: {},
|
|
5772
5869
|
}, snapshotRefresh);
|
|
5773
5870
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5778,16 +5875,16 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5778
5875
|
deepFreeze(snapshot.data);
|
|
5779
5876
|
return snapshot;
|
|
5780
5877
|
}
|
|
5781
|
-
function ingestError$
|
|
5782
|
-
const key = keyBuilder$
|
|
5878
|
+
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
5879
|
+
const key = keyBuilder$j(luvio, params);
|
|
5783
5880
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5784
5881
|
luvio.storeIngestError(key, errorSnapshot);
|
|
5785
5882
|
return errorSnapshot;
|
|
5786
5883
|
}
|
|
5787
|
-
function createResourceRequest$
|
|
5884
|
+
function createResourceRequest$b(config) {
|
|
5788
5885
|
const headers = {};
|
|
5789
5886
|
return {
|
|
5790
|
-
baseUri: '/services/data/
|
|
5887
|
+
baseUri: '/services/data/v65.0',
|
|
5791
5888
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/messages/' + config.urlParams.messageTs + '',
|
|
5792
5889
|
method: 'get',
|
|
5793
5890
|
body: null,
|
|
@@ -5798,107 +5895,107 @@ function createResourceRequest$9(config) {
|
|
|
5798
5895
|
};
|
|
5799
5896
|
}
|
|
5800
5897
|
|
|
5801
|
-
const adapterName$
|
|
5898
|
+
const adapterName$b = 'getSlackMessage';
|
|
5802
5899
|
const getSlackMessage_ConfigPropertyMetadata = [
|
|
5803
5900
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5804
5901
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5805
5902
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5806
5903
|
];
|
|
5807
|
-
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5808
|
-
const createResourceParams$
|
|
5809
|
-
function keyBuilder$
|
|
5810
|
-
const resourceParams = createResourceParams$
|
|
5811
|
-
return keyBuilder$
|
|
5904
|
+
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSlackMessage_ConfigPropertyMetadata);
|
|
5905
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$o(getSlackMessage_ConfigPropertyMetadata);
|
|
5906
|
+
function keyBuilder$i(luvio, config) {
|
|
5907
|
+
const resourceParams = createResourceParams$b(config);
|
|
5908
|
+
return keyBuilder$j(luvio, resourceParams);
|
|
5812
5909
|
}
|
|
5813
|
-
function typeCheckConfig$
|
|
5910
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
5814
5911
|
const config = {};
|
|
5815
|
-
typeCheckConfig$
|
|
5912
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
|
|
5816
5913
|
return config;
|
|
5817
5914
|
}
|
|
5818
|
-
function validateAdapterConfig$
|
|
5915
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
5819
5916
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5820
5917
|
return null;
|
|
5821
5918
|
}
|
|
5822
5919
|
if (process.env.NODE_ENV !== 'production') {
|
|
5823
5920
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5824
5921
|
}
|
|
5825
|
-
const config = typeCheckConfig$
|
|
5922
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
5826
5923
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5827
5924
|
return null;
|
|
5828
5925
|
}
|
|
5829
5926
|
return config;
|
|
5830
5927
|
}
|
|
5831
|
-
function adapterFragment$
|
|
5832
|
-
createResourceParams$
|
|
5833
|
-
return select$
|
|
5928
|
+
function adapterFragment$8(luvio, config) {
|
|
5929
|
+
createResourceParams$b(config);
|
|
5930
|
+
return select$e();
|
|
5834
5931
|
}
|
|
5835
|
-
function onFetchResponseSuccess$
|
|
5836
|
-
const snapshot = ingestSuccess$
|
|
5932
|
+
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
5933
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
5837
5934
|
config,
|
|
5838
|
-
resolve: () => buildNetworkSnapshot$
|
|
5935
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
5839
5936
|
});
|
|
5840
5937
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5841
5938
|
}
|
|
5842
|
-
function onFetchResponseError$
|
|
5843
|
-
const snapshot = ingestError$
|
|
5939
|
+
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
5940
|
+
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
5844
5941
|
config,
|
|
5845
|
-
resolve: () => buildNetworkSnapshot$
|
|
5942
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
5846
5943
|
});
|
|
5847
5944
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5848
5945
|
}
|
|
5849
|
-
function buildNetworkSnapshot$
|
|
5850
|
-
const resourceParams = createResourceParams$
|
|
5851
|
-
const request = createResourceRequest$
|
|
5946
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
5947
|
+
const resourceParams = createResourceParams$b(config);
|
|
5948
|
+
const request = createResourceRequest$b(resourceParams);
|
|
5852
5949
|
return luvio.dispatchResourceRequest(request, options)
|
|
5853
5950
|
.then((response) => {
|
|
5854
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
5951
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
5855
5952
|
const cache = new StoreKeyMap();
|
|
5856
|
-
getResponseCacheKeys$
|
|
5953
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
5857
5954
|
return cache;
|
|
5858
5955
|
});
|
|
5859
5956
|
}, (response) => {
|
|
5860
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
5957
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
|
|
5861
5958
|
});
|
|
5862
5959
|
}
|
|
5863
|
-
function buildNetworkSnapshotCachePolicy$
|
|
5864
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5960
|
+
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
5961
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
5865
5962
|
}
|
|
5866
|
-
function buildCachedSnapshotCachePolicy$
|
|
5963
|
+
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
5867
5964
|
const { luvio, config } = context;
|
|
5868
5965
|
const selector = {
|
|
5869
|
-
recordId: keyBuilder$
|
|
5870
|
-
node: adapterFragment$
|
|
5966
|
+
recordId: keyBuilder$i(luvio, config),
|
|
5967
|
+
node: adapterFragment$8(luvio, config),
|
|
5871
5968
|
variables: {},
|
|
5872
5969
|
};
|
|
5873
5970
|
const cacheSnapshot = storeLookup(selector, {
|
|
5874
5971
|
config,
|
|
5875
|
-
resolve: () => buildNetworkSnapshot$
|
|
5972
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
5876
5973
|
});
|
|
5877
5974
|
return cacheSnapshot;
|
|
5878
5975
|
}
|
|
5879
5976
|
const getSlackMessageAdapterFactory = (luvio) => function SlackBridge__getSlackMessage(untrustedConfig, requestContext) {
|
|
5880
|
-
const config = validateAdapterConfig$
|
|
5977
|
+
const config = validateAdapterConfig$b(untrustedConfig, getSlackMessage_ConfigPropertyNames);
|
|
5881
5978
|
// Invalid or incomplete config
|
|
5882
5979
|
if (config === null) {
|
|
5883
5980
|
return null;
|
|
5884
5981
|
}
|
|
5885
5982
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5886
|
-
buildCachedSnapshotCachePolicy$
|
|
5983
|
+
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
5887
5984
|
};
|
|
5888
5985
|
|
|
5889
|
-
function select$
|
|
5890
|
-
return select$
|
|
5986
|
+
function select$d(luvio, params) {
|
|
5987
|
+
return select$f();
|
|
5891
5988
|
}
|
|
5892
|
-
function getResponseCacheKeys$
|
|
5989
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
5893
5990
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
5894
5991
|
}
|
|
5895
|
-
function ingestSuccess$
|
|
5992
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
5896
5993
|
const { body } = response;
|
|
5897
5994
|
const key = keyBuilderFromType$1(luvio, body);
|
|
5898
5995
|
luvio.storeIngest(key, ingest$4, body);
|
|
5899
5996
|
const snapshot = luvio.storeLookup({
|
|
5900
5997
|
recordId: key,
|
|
5901
|
-
node: select$
|
|
5998
|
+
node: select$d(),
|
|
5902
5999
|
variables: {},
|
|
5903
6000
|
});
|
|
5904
6001
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5909,10 +6006,10 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
5909
6006
|
deepFreeze(snapshot.data);
|
|
5910
6007
|
return snapshot;
|
|
5911
6008
|
}
|
|
5912
|
-
function createResourceRequest$
|
|
6009
|
+
function createResourceRequest$a(config) {
|
|
5913
6010
|
const headers = {};
|
|
5914
6011
|
return {
|
|
5915
|
-
baseUri: '/services/data/
|
|
6012
|
+
baseUri: '/services/data/v65.0',
|
|
5916
6013
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/messages/' + config.urlParams.messageTs + '',
|
|
5917
6014
|
method: 'patch',
|
|
5918
6015
|
body: config.body,
|
|
@@ -5923,44 +6020,44 @@ function createResourceRequest$8(config) {
|
|
|
5923
6020
|
};
|
|
5924
6021
|
}
|
|
5925
6022
|
|
|
5926
|
-
const adapterName$
|
|
6023
|
+
const adapterName$a = 'patchSlackMessage';
|
|
5927
6024
|
const patchSlackMessage_ConfigPropertyMetadata = [
|
|
5928
6025
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5929
6026
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5930
6027
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5931
6028
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
5932
6029
|
];
|
|
5933
|
-
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5934
|
-
const createResourceParams$
|
|
5935
|
-
function typeCheckConfig$
|
|
6030
|
+
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, patchSlackMessage_ConfigPropertyMetadata);
|
|
6031
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$o(patchSlackMessage_ConfigPropertyMetadata);
|
|
6032
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
5936
6033
|
const config = {};
|
|
5937
|
-
typeCheckConfig$
|
|
6034
|
+
typeCheckConfig$o(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
|
|
5938
6035
|
return config;
|
|
5939
6036
|
}
|
|
5940
|
-
function validateAdapterConfig$
|
|
6037
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
5941
6038
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5942
6039
|
return null;
|
|
5943
6040
|
}
|
|
5944
6041
|
if (process.env.NODE_ENV !== 'production') {
|
|
5945
6042
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5946
6043
|
}
|
|
5947
|
-
const config = typeCheckConfig$
|
|
6044
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
5948
6045
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5949
6046
|
return null;
|
|
5950
6047
|
}
|
|
5951
6048
|
return config;
|
|
5952
6049
|
}
|
|
5953
|
-
function buildNetworkSnapshot$
|
|
5954
|
-
const resourceParams = createResourceParams$
|
|
5955
|
-
const request = createResourceRequest$
|
|
6050
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
6051
|
+
const resourceParams = createResourceParams$a(config);
|
|
6052
|
+
const request = createResourceRequest$a(resourceParams);
|
|
5956
6053
|
return luvio.dispatchResourceRequest(request, options)
|
|
5957
6054
|
.then((response) => {
|
|
5958
6055
|
return luvio.handleSuccessResponse(() => {
|
|
5959
|
-
const snapshot = ingestSuccess$
|
|
6056
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
5960
6057
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5961
6058
|
}, () => {
|
|
5962
6059
|
const cache = new StoreKeyMap();
|
|
5963
|
-
getResponseCacheKeys$
|
|
6060
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
5964
6061
|
return cache;
|
|
5965
6062
|
});
|
|
5966
6063
|
}, (response) => {
|
|
@@ -5970,12 +6067,12 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
5970
6067
|
}
|
|
5971
6068
|
const patchSlackMessageAdapterFactory = (luvio) => {
|
|
5972
6069
|
return function patchSlackMessage(untrustedConfig) {
|
|
5973
|
-
const config = validateAdapterConfig$
|
|
6070
|
+
const config = validateAdapterConfig$a(untrustedConfig, patchSlackMessage_ConfigPropertyNames);
|
|
5974
6071
|
// Invalid or incomplete config
|
|
5975
6072
|
if (config === null) {
|
|
5976
6073
|
throw new Error('Invalid config for "patchSlackMessage"');
|
|
5977
6074
|
}
|
|
5978
|
-
return buildNetworkSnapshot$
|
|
6075
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
5979
6076
|
};
|
|
5980
6077
|
};
|
|
5981
6078
|
|
|
@@ -6019,20 +6116,20 @@ function validate$3(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
|
6019
6116
|
return v_error === undefined ? null : v_error;
|
|
6020
6117
|
}
|
|
6021
6118
|
const RepresentationType$3 = 'SlackBridgeReactionsOutputRepresentation';
|
|
6022
|
-
function keyBuilder$
|
|
6119
|
+
function keyBuilder$h(luvio, config) {
|
|
6023
6120
|
return keyPrefix + '::' + RepresentationType$3 + ':' + config.channelId;
|
|
6024
6121
|
}
|
|
6025
6122
|
function keyBuilderFromType(luvio, object) {
|
|
6026
6123
|
const keyParams = {
|
|
6027
6124
|
channelId: object.channelId
|
|
6028
6125
|
};
|
|
6029
|
-
return keyBuilder$
|
|
6126
|
+
return keyBuilder$h(luvio, keyParams);
|
|
6030
6127
|
}
|
|
6031
6128
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
6032
6129
|
return input;
|
|
6033
6130
|
}
|
|
6034
|
-
const select$
|
|
6035
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
6131
|
+
const select$c = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
6132
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$D();
|
|
6036
6133
|
return {
|
|
6037
6134
|
kind: 'Fragment',
|
|
6038
6135
|
version: VERSION$3,
|
|
@@ -6109,13 +6206,13 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6109
6206
|
});
|
|
6110
6207
|
}
|
|
6111
6208
|
|
|
6112
|
-
function keyBuilder$
|
|
6113
|
-
return keyBuilder$
|
|
6209
|
+
function keyBuilder$g(luvio, params) {
|
|
6210
|
+
return keyBuilder$h(luvio, {
|
|
6114
6211
|
channelId: params.urlParams.channelId
|
|
6115
6212
|
});
|
|
6116
6213
|
}
|
|
6117
|
-
function getResponseCacheKeys$
|
|
6118
|
-
const key = keyBuilder$
|
|
6214
|
+
function getResponseCacheKeys$9(cacheKeyMap, luvio, resourceParams) {
|
|
6215
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
6119
6216
|
cacheKeyMap.set(key, {
|
|
6120
6217
|
namespace: keyPrefix,
|
|
6121
6218
|
representationName: RepresentationType$3,
|
|
@@ -6123,13 +6220,13 @@ function getResponseCacheKeys$7(cacheKeyMap, luvio, resourceParams) {
|
|
|
6123
6220
|
});
|
|
6124
6221
|
}
|
|
6125
6222
|
function evictSuccess(luvio, resourceParams) {
|
|
6126
|
-
const key = keyBuilder$
|
|
6223
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
6127
6224
|
luvio.storeEvict(key);
|
|
6128
6225
|
}
|
|
6129
|
-
function createResourceRequest$
|
|
6226
|
+
function createResourceRequest$9(config) {
|
|
6130
6227
|
const headers = {};
|
|
6131
6228
|
return {
|
|
6132
|
-
baseUri: '/services/data/
|
|
6229
|
+
baseUri: '/services/data/v65.0',
|
|
6133
6230
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/messages/' + config.urlParams.messageTs + '/reactions',
|
|
6134
6231
|
method: 'delete',
|
|
6135
6232
|
body: null,
|
|
@@ -6140,36 +6237,36 @@ function createResourceRequest$7(config) {
|
|
|
6140
6237
|
};
|
|
6141
6238
|
}
|
|
6142
6239
|
|
|
6143
|
-
const adapterName$
|
|
6240
|
+
const adapterName$9 = 'deleteSlackMessageReactions';
|
|
6144
6241
|
const deleteSlackMessageReactions_ConfigPropertyMetadata = [
|
|
6145
6242
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6146
6243
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6147
6244
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6148
6245
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6149
6246
|
];
|
|
6150
|
-
const deleteSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6151
|
-
const createResourceParams$
|
|
6152
|
-
function typeCheckConfig$
|
|
6247
|
+
const deleteSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
6248
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$o(deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
6249
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
6153
6250
|
const config = {};
|
|
6154
|
-
typeCheckConfig$
|
|
6251
|
+
typeCheckConfig$o(untrustedConfig, config, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
6155
6252
|
return config;
|
|
6156
6253
|
}
|
|
6157
|
-
function validateAdapterConfig$
|
|
6254
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
6158
6255
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6159
6256
|
return null;
|
|
6160
6257
|
}
|
|
6161
6258
|
if (process.env.NODE_ENV !== 'production') {
|
|
6162
6259
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6163
6260
|
}
|
|
6164
|
-
const config = typeCheckConfig$
|
|
6261
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
6165
6262
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6166
6263
|
return null;
|
|
6167
6264
|
}
|
|
6168
6265
|
return config;
|
|
6169
6266
|
}
|
|
6170
|
-
function buildNetworkSnapshot$
|
|
6171
|
-
const resourceParams = createResourceParams$
|
|
6172
|
-
const request = createResourceRequest$
|
|
6267
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
6268
|
+
const resourceParams = createResourceParams$9(config);
|
|
6269
|
+
const request = createResourceRequest$9(resourceParams);
|
|
6173
6270
|
return luvio.dispatchResourceRequest(request, options)
|
|
6174
6271
|
.then(() => {
|
|
6175
6272
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -6177,7 +6274,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
6177
6274
|
return luvio.storeBroadcast();
|
|
6178
6275
|
}, () => {
|
|
6179
6276
|
const cache = new StoreKeyMap();
|
|
6180
|
-
getResponseCacheKeys$
|
|
6277
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams);
|
|
6181
6278
|
return cache;
|
|
6182
6279
|
});
|
|
6183
6280
|
}, (response) => {
|
|
@@ -6187,30 +6284,391 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
6187
6284
|
}
|
|
6188
6285
|
const deleteSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
6189
6286
|
return function SlackBridgedeleteSlackMessageReactions(untrustedConfig) {
|
|
6190
|
-
const config = validateAdapterConfig$
|
|
6287
|
+
const config = validateAdapterConfig$9(untrustedConfig, deleteSlackMessageReactions_ConfigPropertyNames);
|
|
6191
6288
|
// Invalid or incomplete config
|
|
6192
6289
|
if (config === null) {
|
|
6193
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
6290
|
+
throw new Error(`Invalid config for "${adapterName$9}"`);
|
|
6291
|
+
}
|
|
6292
|
+
return buildNetworkSnapshot$9(luvio, config);
|
|
6293
|
+
};
|
|
6294
|
+
};
|
|
6295
|
+
|
|
6296
|
+
function select$b(luvio, params) {
|
|
6297
|
+
return select$c();
|
|
6298
|
+
}
|
|
6299
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
6300
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
6301
|
+
}
|
|
6302
|
+
function ingestSuccess$8(luvio, resourceParams, response) {
|
|
6303
|
+
const { body } = response;
|
|
6304
|
+
const key = keyBuilderFromType(luvio, body);
|
|
6305
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
6306
|
+
const snapshot = luvio.storeLookup({
|
|
6307
|
+
recordId: key,
|
|
6308
|
+
node: select$b(),
|
|
6309
|
+
variables: {},
|
|
6310
|
+
});
|
|
6311
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6312
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
6313
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
6314
|
+
}
|
|
6315
|
+
}
|
|
6316
|
+
deepFreeze(snapshot.data);
|
|
6317
|
+
return snapshot;
|
|
6318
|
+
}
|
|
6319
|
+
function createResourceRequest$8(config) {
|
|
6320
|
+
const headers = {};
|
|
6321
|
+
return {
|
|
6322
|
+
baseUri: '/services/data/v65.0',
|
|
6323
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/messages/' + config.urlParams.messageTs + '/reactions',
|
|
6324
|
+
method: 'post',
|
|
6325
|
+
body: null,
|
|
6326
|
+
urlParams: config.urlParams,
|
|
6327
|
+
queryParams: config.queryParams,
|
|
6328
|
+
headers,
|
|
6329
|
+
priority: 'normal',
|
|
6330
|
+
};
|
|
6331
|
+
}
|
|
6332
|
+
|
|
6333
|
+
const adapterName$8 = 'postSlackMessageReactions';
|
|
6334
|
+
const postSlackMessageReactions_ConfigPropertyMetadata = [
|
|
6335
|
+
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6336
|
+
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6337
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6338
|
+
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6339
|
+
];
|
|
6340
|
+
const postSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
6341
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$o(postSlackMessageReactions_ConfigPropertyMetadata);
|
|
6342
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
6343
|
+
const config = {};
|
|
6344
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
6345
|
+
return config;
|
|
6346
|
+
}
|
|
6347
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
6348
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
6349
|
+
return null;
|
|
6350
|
+
}
|
|
6351
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6352
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
6353
|
+
}
|
|
6354
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
6355
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6356
|
+
return null;
|
|
6357
|
+
}
|
|
6358
|
+
return config;
|
|
6359
|
+
}
|
|
6360
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
6361
|
+
const resourceParams = createResourceParams$8(config);
|
|
6362
|
+
const request = createResourceRequest$8(resourceParams);
|
|
6363
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
6364
|
+
.then((response) => {
|
|
6365
|
+
return luvio.handleSuccessResponse(() => {
|
|
6366
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response);
|
|
6367
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6368
|
+
}, () => {
|
|
6369
|
+
const cache = new StoreKeyMap();
|
|
6370
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
6371
|
+
return cache;
|
|
6372
|
+
});
|
|
6373
|
+
}, (response) => {
|
|
6374
|
+
deepFreeze(response);
|
|
6375
|
+
throw response;
|
|
6376
|
+
});
|
|
6377
|
+
}
|
|
6378
|
+
const postSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
6379
|
+
return function postSlackMessageReactions(untrustedConfig) {
|
|
6380
|
+
const config = validateAdapterConfig$8(untrustedConfig, postSlackMessageReactions_ConfigPropertyNames);
|
|
6381
|
+
// Invalid or incomplete config
|
|
6382
|
+
if (config === null) {
|
|
6383
|
+
throw new Error('Invalid config for "postSlackMessageReactions"');
|
|
6384
|
+
}
|
|
6385
|
+
return buildNetworkSnapshot$8(luvio, config);
|
|
6386
|
+
};
|
|
6387
|
+
};
|
|
6388
|
+
|
|
6389
|
+
const VERSION$2 = "0de597a47ca8ecad2cfb7fd9c8f73920";
|
|
6390
|
+
function validate$2(obj, path = 'SlackBridgeConversationInfosOutputRepresentation') {
|
|
6391
|
+
const v_error = (() => {
|
|
6392
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6393
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6394
|
+
}
|
|
6395
|
+
const obj_conversationInfos = obj.conversationInfos;
|
|
6396
|
+
const path_conversationInfos = path + '.conversationInfos';
|
|
6397
|
+
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
6398
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
6399
|
+
}
|
|
6400
|
+
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
6401
|
+
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
6402
|
+
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
6403
|
+
if (typeof obj_conversationInfos_item !== 'object') {
|
|
6404
|
+
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
6405
|
+
}
|
|
6406
|
+
}
|
|
6407
|
+
const obj_searchString = obj.searchString;
|
|
6408
|
+
const path_searchString = path + '.searchString';
|
|
6409
|
+
let obj_searchString_union0 = null;
|
|
6410
|
+
const obj_searchString_union0_error = (() => {
|
|
6411
|
+
if (typeof obj_searchString !== 'string') {
|
|
6412
|
+
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6413
|
+
}
|
|
6414
|
+
})();
|
|
6415
|
+
if (obj_searchString_union0_error != null) {
|
|
6416
|
+
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
6194
6417
|
}
|
|
6195
|
-
|
|
6418
|
+
let obj_searchString_union1 = null;
|
|
6419
|
+
const obj_searchString_union1_error = (() => {
|
|
6420
|
+
if (obj_searchString !== null) {
|
|
6421
|
+
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6422
|
+
}
|
|
6423
|
+
})();
|
|
6424
|
+
if (obj_searchString_union1_error != null) {
|
|
6425
|
+
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
6426
|
+
}
|
|
6427
|
+
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
6428
|
+
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
6429
|
+
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6430
|
+
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6431
|
+
return new TypeError(message);
|
|
6432
|
+
}
|
|
6433
|
+
})();
|
|
6434
|
+
return v_error === undefined ? null : v_error;
|
|
6435
|
+
}
|
|
6436
|
+
const RepresentationType$2 = 'SlackBridgeConversationInfosOutputRepresentation';
|
|
6437
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
6438
|
+
const input_conversationInfos = input.conversationInfos;
|
|
6439
|
+
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
6440
|
+
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
6441
|
+
const input_conversationInfos_item = input_conversationInfos[i];
|
|
6442
|
+
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
6443
|
+
input_conversationInfos[i] = ingest$f(input_conversationInfos_item, {
|
|
6444
|
+
fullPath: input_conversationInfos_item_id,
|
|
6445
|
+
propertyName: i,
|
|
6446
|
+
parent: {
|
|
6447
|
+
data: input,
|
|
6448
|
+
key: path.fullPath,
|
|
6449
|
+
existing: existing,
|
|
6450
|
+
},
|
|
6451
|
+
ttl: path.ttl
|
|
6452
|
+
}, luvio, store, timestamp);
|
|
6453
|
+
}
|
|
6454
|
+
return input;
|
|
6455
|
+
}
|
|
6456
|
+
const select$a = function SlackBridgeConversationInfosOutputRepresentationSelect() {
|
|
6457
|
+
return {
|
|
6458
|
+
kind: 'Fragment',
|
|
6459
|
+
version: VERSION$2,
|
|
6460
|
+
private: [],
|
|
6461
|
+
selections: [
|
|
6462
|
+
{
|
|
6463
|
+
name: 'conversationInfos',
|
|
6464
|
+
kind: 'Link',
|
|
6465
|
+
plural: true,
|
|
6466
|
+
fragment: select$E()
|
|
6467
|
+
},
|
|
6468
|
+
{
|
|
6469
|
+
name: 'searchString',
|
|
6470
|
+
kind: 'Scalar'
|
|
6471
|
+
}
|
|
6472
|
+
]
|
|
6196
6473
|
};
|
|
6197
6474
|
};
|
|
6475
|
+
function equals$2(existing, incoming) {
|
|
6476
|
+
const existing_conversationInfos = existing.conversationInfos;
|
|
6477
|
+
const incoming_conversationInfos = incoming.conversationInfos;
|
|
6478
|
+
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
6479
|
+
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
6480
|
+
return false;
|
|
6481
|
+
}
|
|
6482
|
+
});
|
|
6483
|
+
if (equals_conversationInfos_items === false) {
|
|
6484
|
+
return false;
|
|
6485
|
+
}
|
|
6486
|
+
const existing_searchString = existing.searchString;
|
|
6487
|
+
const incoming_searchString = incoming.searchString;
|
|
6488
|
+
if (!(existing_searchString === incoming_searchString)) {
|
|
6489
|
+
return false;
|
|
6490
|
+
}
|
|
6491
|
+
return true;
|
|
6492
|
+
}
|
|
6493
|
+
const ingest$2 = function SlackBridgeConversationInfosOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6494
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6495
|
+
const validateError = validate$2(input);
|
|
6496
|
+
if (validateError !== null) {
|
|
6497
|
+
throw validateError;
|
|
6498
|
+
}
|
|
6499
|
+
}
|
|
6500
|
+
const key = path.fullPath;
|
|
6501
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
6502
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "SlackBridge", VERSION$2, RepresentationType$2, equals$2);
|
|
6503
|
+
return createLink(key);
|
|
6504
|
+
};
|
|
6505
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
6506
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6507
|
+
const rootKey = fullPathFactory();
|
|
6508
|
+
rootKeySet.set(rootKey, {
|
|
6509
|
+
namespace: keyPrefix,
|
|
6510
|
+
representationName: RepresentationType$2,
|
|
6511
|
+
mergeable: false
|
|
6512
|
+
});
|
|
6513
|
+
const input_conversationInfos_length = input.conversationInfos.length;
|
|
6514
|
+
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
6515
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfos[i]);
|
|
6516
|
+
}
|
|
6517
|
+
}
|
|
6518
|
+
|
|
6519
|
+
function select$9(luvio, params) {
|
|
6520
|
+
return select$a();
|
|
6521
|
+
}
|
|
6522
|
+
function keyBuilder$f(luvio, params) {
|
|
6523
|
+
return keyPrefix + '::SlackBridgeConversationInfosOutputRepresentation:(' + 'channelIds:' + params.queryParams.channelIds + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
6524
|
+
}
|
|
6525
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
6526
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$f(luvio, resourceParams));
|
|
6527
|
+
}
|
|
6528
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
6529
|
+
const { body } = response;
|
|
6530
|
+
const key = keyBuilder$f(luvio, resourceParams);
|
|
6531
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
6532
|
+
const snapshot = luvio.storeLookup({
|
|
6533
|
+
recordId: key,
|
|
6534
|
+
node: select$9(),
|
|
6535
|
+
variables: {},
|
|
6536
|
+
}, snapshotRefresh);
|
|
6537
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6538
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
6539
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
6540
|
+
}
|
|
6541
|
+
}
|
|
6542
|
+
deepFreeze(snapshot.data);
|
|
6543
|
+
return snapshot;
|
|
6544
|
+
}
|
|
6545
|
+
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
6546
|
+
const key = keyBuilder$f(luvio, params);
|
|
6547
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6548
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
6549
|
+
return errorSnapshot;
|
|
6550
|
+
}
|
|
6551
|
+
function createResourceRequest$7(config) {
|
|
6552
|
+
const headers = {};
|
|
6553
|
+
return {
|
|
6554
|
+
baseUri: '/services/data/v65.0',
|
|
6555
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channels',
|
|
6556
|
+
method: 'get',
|
|
6557
|
+
body: null,
|
|
6558
|
+
urlParams: config.urlParams,
|
|
6559
|
+
queryParams: config.queryParams,
|
|
6560
|
+
headers,
|
|
6561
|
+
priority: 'normal',
|
|
6562
|
+
};
|
|
6563
|
+
}
|
|
6564
|
+
|
|
6565
|
+
const adapterName$7 = 'getSlackConversationInfos';
|
|
6566
|
+
const getSlackConversationInfos_ConfigPropertyMetadata = [
|
|
6567
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6568
|
+
generateParamConfigMetadata('channelIds', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
6569
|
+
];
|
|
6570
|
+
const getSlackConversationInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSlackConversationInfos_ConfigPropertyMetadata);
|
|
6571
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$o(getSlackConversationInfos_ConfigPropertyMetadata);
|
|
6572
|
+
function keyBuilder$e(luvio, config) {
|
|
6573
|
+
const resourceParams = createResourceParams$7(config);
|
|
6574
|
+
return keyBuilder$f(luvio, resourceParams);
|
|
6575
|
+
}
|
|
6576
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
6577
|
+
const config = {};
|
|
6578
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversationInfos_ConfigPropertyMetadata);
|
|
6579
|
+
return config;
|
|
6580
|
+
}
|
|
6581
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
6582
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
6583
|
+
return null;
|
|
6584
|
+
}
|
|
6585
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6586
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
6587
|
+
}
|
|
6588
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
6589
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6590
|
+
return null;
|
|
6591
|
+
}
|
|
6592
|
+
return config;
|
|
6593
|
+
}
|
|
6594
|
+
function adapterFragment$7(luvio, config) {
|
|
6595
|
+
createResourceParams$7(config);
|
|
6596
|
+
return select$9();
|
|
6597
|
+
}
|
|
6598
|
+
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
6599
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
6600
|
+
config,
|
|
6601
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
6602
|
+
});
|
|
6603
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6604
|
+
}
|
|
6605
|
+
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
6606
|
+
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
6607
|
+
config,
|
|
6608
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
6609
|
+
});
|
|
6610
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6611
|
+
}
|
|
6612
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
6613
|
+
const resourceParams = createResourceParams$7(config);
|
|
6614
|
+
const request = createResourceRequest$7(resourceParams);
|
|
6615
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
6616
|
+
.then((response) => {
|
|
6617
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
6618
|
+
const cache = new StoreKeyMap();
|
|
6619
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
6620
|
+
return cache;
|
|
6621
|
+
});
|
|
6622
|
+
}, (response) => {
|
|
6623
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
|
|
6624
|
+
});
|
|
6625
|
+
}
|
|
6626
|
+
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
6627
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
6628
|
+
}
|
|
6629
|
+
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
6630
|
+
const { luvio, config } = context;
|
|
6631
|
+
const selector = {
|
|
6632
|
+
recordId: keyBuilder$e(luvio, config),
|
|
6633
|
+
node: adapterFragment$7(luvio, config),
|
|
6634
|
+
variables: {},
|
|
6635
|
+
};
|
|
6636
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
6637
|
+
config,
|
|
6638
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
6639
|
+
});
|
|
6640
|
+
return cacheSnapshot;
|
|
6641
|
+
}
|
|
6642
|
+
const getSlackConversationInfosAdapterFactory = (luvio) => function SlackBridge__getSlackConversationInfos(untrustedConfig, requestContext) {
|
|
6643
|
+
const config = validateAdapterConfig$7(untrustedConfig, getSlackConversationInfos_ConfigPropertyNames);
|
|
6644
|
+
// Invalid or incomplete config
|
|
6645
|
+
if (config === null) {
|
|
6646
|
+
return null;
|
|
6647
|
+
}
|
|
6648
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
6649
|
+
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
6650
|
+
};
|
|
6198
6651
|
|
|
6199
|
-
function select$
|
|
6200
|
-
return select$
|
|
6652
|
+
function select$8(luvio, params) {
|
|
6653
|
+
return select$E();
|
|
6654
|
+
}
|
|
6655
|
+
function keyBuilder$d(luvio, params) {
|
|
6656
|
+
return keyBuilder$D(luvio, {
|
|
6657
|
+
id: params.urlParams.channelId
|
|
6658
|
+
});
|
|
6201
6659
|
}
|
|
6202
6660
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
6203
|
-
getTypeCacheKeys$
|
|
6661
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
6204
6662
|
}
|
|
6205
|
-
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
6663
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
6206
6664
|
const { body } = response;
|
|
6207
|
-
const key =
|
|
6208
|
-
luvio.storeIngest(key, ingest$
|
|
6665
|
+
const key = keyBuilder$d(luvio, resourceParams);
|
|
6666
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
6209
6667
|
const snapshot = luvio.storeLookup({
|
|
6210
6668
|
recordId: key,
|
|
6211
|
-
node: select$
|
|
6669
|
+
node: select$8(),
|
|
6212
6670
|
variables: {},
|
|
6213
|
-
});
|
|
6671
|
+
}, snapshotRefresh);
|
|
6214
6672
|
if (process.env.NODE_ENV !== 'production') {
|
|
6215
6673
|
if (snapshot.state !== 'Fulfilled') {
|
|
6216
6674
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
@@ -6219,32 +6677,46 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
6219
6677
|
deepFreeze(snapshot.data);
|
|
6220
6678
|
return snapshot;
|
|
6221
6679
|
}
|
|
6680
|
+
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
6681
|
+
const key = keyBuilder$d(luvio, params);
|
|
6682
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6683
|
+
const storeMetadataParams = {
|
|
6684
|
+
ttl: TTL$1,
|
|
6685
|
+
namespace: keyPrefix,
|
|
6686
|
+
version: VERSION$j,
|
|
6687
|
+
representationName: RepresentationType$f
|
|
6688
|
+
};
|
|
6689
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
6690
|
+
return errorSnapshot;
|
|
6691
|
+
}
|
|
6222
6692
|
function createResourceRequest$6(config) {
|
|
6223
6693
|
const headers = {};
|
|
6224
6694
|
return {
|
|
6225
|
-
baseUri: '/services/data/
|
|
6226
|
-
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/
|
|
6227
|
-
method: '
|
|
6695
|
+
baseUri: '/services/data/v65.0',
|
|
6696
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channels/' + config.urlParams.channelId + '',
|
|
6697
|
+
method: 'get',
|
|
6228
6698
|
body: null,
|
|
6229
6699
|
urlParams: config.urlParams,
|
|
6230
|
-
queryParams:
|
|
6700
|
+
queryParams: {},
|
|
6231
6701
|
headers,
|
|
6232
6702
|
priority: 'normal',
|
|
6233
6703
|
};
|
|
6234
6704
|
}
|
|
6235
6705
|
|
|
6236
|
-
const adapterName$6 = '
|
|
6237
|
-
const
|
|
6706
|
+
const adapterName$6 = 'getSlackConversationInfo';
|
|
6707
|
+
const getSlackConversationInfo_ConfigPropertyMetadata = [
|
|
6238
6708
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6239
|
-
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6240
6709
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6241
|
-
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6242
6710
|
];
|
|
6243
|
-
const
|
|
6244
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
6711
|
+
const getSlackConversationInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSlackConversationInfo_ConfigPropertyMetadata);
|
|
6712
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$o(getSlackConversationInfo_ConfigPropertyMetadata);
|
|
6713
|
+
function keyBuilder$c(luvio, config) {
|
|
6714
|
+
const resourceParams = createResourceParams$6(config);
|
|
6715
|
+
return keyBuilder$d(luvio, resourceParams);
|
|
6716
|
+
}
|
|
6245
6717
|
function typeCheckConfig$6(untrustedConfig) {
|
|
6246
6718
|
const config = {};
|
|
6247
|
-
typeCheckConfig$
|
|
6719
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversationInfo_ConfigPropertyMetadata);
|
|
6248
6720
|
return config;
|
|
6249
6721
|
}
|
|
6250
6722
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -6260,37 +6732,66 @@ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
|
6260
6732
|
}
|
|
6261
6733
|
return config;
|
|
6262
6734
|
}
|
|
6735
|
+
function adapterFragment$6(luvio, config) {
|
|
6736
|
+
createResourceParams$6(config);
|
|
6737
|
+
return select$8();
|
|
6738
|
+
}
|
|
6739
|
+
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
6740
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
6741
|
+
config,
|
|
6742
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
6743
|
+
});
|
|
6744
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6745
|
+
}
|
|
6746
|
+
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
6747
|
+
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
6748
|
+
config,
|
|
6749
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
6750
|
+
});
|
|
6751
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6752
|
+
}
|
|
6263
6753
|
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
6264
6754
|
const resourceParams = createResourceParams$6(config);
|
|
6265
6755
|
const request = createResourceRequest$6(resourceParams);
|
|
6266
6756
|
return luvio.dispatchResourceRequest(request, options)
|
|
6267
6757
|
.then((response) => {
|
|
6268
|
-
return luvio.handleSuccessResponse(() => {
|
|
6269
|
-
const snapshot = ingestSuccess$6(luvio, resourceParams, response);
|
|
6270
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
6271
|
-
}, () => {
|
|
6758
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
6272
6759
|
const cache = new StoreKeyMap();
|
|
6273
6760
|
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
6274
6761
|
return cache;
|
|
6275
6762
|
});
|
|
6276
6763
|
}, (response) => {
|
|
6277
|
-
|
|
6278
|
-
throw response;
|
|
6764
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
6279
6765
|
});
|
|
6280
6766
|
}
|
|
6281
|
-
|
|
6282
|
-
return
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6767
|
+
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
6768
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
6769
|
+
}
|
|
6770
|
+
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
6771
|
+
const { luvio, config } = context;
|
|
6772
|
+
const selector = {
|
|
6773
|
+
recordId: keyBuilder$c(luvio, config),
|
|
6774
|
+
node: adapterFragment$6(luvio, config),
|
|
6775
|
+
variables: {},
|
|
6289
6776
|
};
|
|
6777
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
6778
|
+
config,
|
|
6779
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
6780
|
+
});
|
|
6781
|
+
return cacheSnapshot;
|
|
6782
|
+
}
|
|
6783
|
+
const getSlackConversationInfoAdapterFactory = (luvio) => function SlackBridge__getSlackConversationInfo(untrustedConfig, requestContext) {
|
|
6784
|
+
const config = validateAdapterConfig$6(untrustedConfig, getSlackConversationInfo_ConfigPropertyNames);
|
|
6785
|
+
// Invalid or incomplete config
|
|
6786
|
+
if (config === null) {
|
|
6787
|
+
return null;
|
|
6788
|
+
}
|
|
6789
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
6790
|
+
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
6290
6791
|
};
|
|
6291
6792
|
|
|
6292
|
-
const VERSION$
|
|
6293
|
-
function validate$
|
|
6793
|
+
const VERSION$1 = "da7e3ba240e3ef2a2a6ee0e913ef280c";
|
|
6794
|
+
function validate$1(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
6294
6795
|
const v_error = (() => {
|
|
6295
6796
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6296
6797
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6310,8 +6811,8 @@ function validate$2(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
|
6310
6811
|
})();
|
|
6311
6812
|
return v_error === undefined ? null : v_error;
|
|
6312
6813
|
}
|
|
6313
|
-
const RepresentationType$
|
|
6314
|
-
function normalize$
|
|
6814
|
+
const RepresentationType$1 = 'SlackBridgeEmojisOutputRepresentation';
|
|
6815
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
6315
6816
|
const input_emojis = input.emojis;
|
|
6316
6817
|
const input_emojis_id = path.fullPath + '__emojis';
|
|
6317
6818
|
for (let i = 0; i < input_emojis.length; i++) {
|
|
@@ -6330,22 +6831,22 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
6330
6831
|
}
|
|
6331
6832
|
return input;
|
|
6332
6833
|
}
|
|
6333
|
-
const select$
|
|
6834
|
+
const select$7 = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
6334
6835
|
return {
|
|
6335
6836
|
kind: 'Fragment',
|
|
6336
|
-
version: VERSION$
|
|
6837
|
+
version: VERSION$1,
|
|
6337
6838
|
private: [],
|
|
6338
6839
|
selections: [
|
|
6339
6840
|
{
|
|
6340
6841
|
name: 'emojis',
|
|
6341
6842
|
kind: 'Link',
|
|
6342
6843
|
plural: true,
|
|
6343
|
-
fragment: select$
|
|
6844
|
+
fragment: select$G()
|
|
6344
6845
|
}
|
|
6345
6846
|
]
|
|
6346
6847
|
};
|
|
6347
6848
|
};
|
|
6348
|
-
function equals$
|
|
6849
|
+
function equals$1(existing, incoming) {
|
|
6349
6850
|
const existing_emojis = existing.emojis;
|
|
6350
6851
|
const incoming_emojis = incoming.emojis;
|
|
6351
6852
|
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
@@ -6358,24 +6859,24 @@ function equals$2(existing, incoming) {
|
|
|
6358
6859
|
}
|
|
6359
6860
|
return true;
|
|
6360
6861
|
}
|
|
6361
|
-
const ingest$
|
|
6862
|
+
const ingest$1 = function SlackBridgeEmojisOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6362
6863
|
if (process.env.NODE_ENV !== 'production') {
|
|
6363
|
-
const validateError = validate$
|
|
6864
|
+
const validateError = validate$1(input);
|
|
6364
6865
|
if (validateError !== null) {
|
|
6365
6866
|
throw validateError;
|
|
6366
6867
|
}
|
|
6367
6868
|
}
|
|
6368
6869
|
const key = path.fullPath;
|
|
6369
6870
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
6370
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6871
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "SlackBridge", VERSION$1, RepresentationType$1, equals$1);
|
|
6371
6872
|
return createLink(key);
|
|
6372
6873
|
};
|
|
6373
|
-
function getTypeCacheKeys$
|
|
6874
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
6374
6875
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6375
6876
|
const rootKey = fullPathFactory();
|
|
6376
6877
|
rootKeySet.set(rootKey, {
|
|
6377
6878
|
namespace: keyPrefix,
|
|
6378
|
-
representationName: RepresentationType$
|
|
6879
|
+
representationName: RepresentationType$1,
|
|
6379
6880
|
mergeable: false
|
|
6380
6881
|
});
|
|
6381
6882
|
const input_emojis_length = input.emojis.length;
|
|
@@ -6384,22 +6885,22 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6384
6885
|
}
|
|
6385
6886
|
}
|
|
6386
6887
|
|
|
6387
|
-
function select$
|
|
6388
|
-
return select$
|
|
6888
|
+
function select$6(luvio, params) {
|
|
6889
|
+
return select$7();
|
|
6389
6890
|
}
|
|
6390
6891
|
function keyBuilder$b(luvio, params) {
|
|
6391
6892
|
return keyPrefix + '::SlackBridgeEmojisOutputRepresentation:(' + 'slackEmojiIds:' + params.queryParams.slackEmojiIds + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
6392
6893
|
}
|
|
6393
6894
|
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
6394
|
-
getTypeCacheKeys$
|
|
6895
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
6395
6896
|
}
|
|
6396
6897
|
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
6397
6898
|
const { body } = response;
|
|
6398
6899
|
const key = keyBuilder$b(luvio, resourceParams);
|
|
6399
|
-
luvio.storeIngest(key, ingest$
|
|
6900
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
6400
6901
|
const snapshot = luvio.storeLookup({
|
|
6401
6902
|
recordId: key,
|
|
6402
|
-
node: select$
|
|
6903
|
+
node: select$6(),
|
|
6403
6904
|
variables: {},
|
|
6404
6905
|
}, snapshotRefresh);
|
|
6405
6906
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6419,7 +6920,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
|
6419
6920
|
function createResourceRequest$5(config) {
|
|
6420
6921
|
const headers = {};
|
|
6421
6922
|
return {
|
|
6422
|
-
baseUri: '/services/data/
|
|
6923
|
+
baseUri: '/services/data/v65.0',
|
|
6423
6924
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/emojis',
|
|
6424
6925
|
method: 'get',
|
|
6425
6926
|
body: null,
|
|
@@ -6436,14 +6937,14 @@ const getSlackEmojis_ConfigPropertyMetadata = [
|
|
|
6436
6937
|
generateParamConfigMetadata('slackEmojiIds', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
6437
6938
|
];
|
|
6438
6939
|
const getSlackEmojis_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSlackEmojis_ConfigPropertyMetadata);
|
|
6439
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
6940
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$o(getSlackEmojis_ConfigPropertyMetadata);
|
|
6440
6941
|
function keyBuilder$a(luvio, config) {
|
|
6441
6942
|
const resourceParams = createResourceParams$5(config);
|
|
6442
6943
|
return keyBuilder$b(luvio, resourceParams);
|
|
6443
6944
|
}
|
|
6444
6945
|
function typeCheckConfig$5(untrustedConfig) {
|
|
6445
6946
|
const config = {};
|
|
6446
|
-
typeCheckConfig$
|
|
6947
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackEmojis_ConfigPropertyMetadata);
|
|
6447
6948
|
return config;
|
|
6448
6949
|
}
|
|
6449
6950
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -6461,7 +6962,7 @@ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
|
6461
6962
|
}
|
|
6462
6963
|
function adapterFragment$5(luvio, config) {
|
|
6463
6964
|
createResourceParams$5(config);
|
|
6464
|
-
return select$
|
|
6965
|
+
return select$6();
|
|
6465
6966
|
}
|
|
6466
6967
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
6467
6968
|
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
@@ -6492,7 +6993,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
6492
6993
|
});
|
|
6493
6994
|
}
|
|
6494
6995
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
6495
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6996
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
6496
6997
|
}
|
|
6497
6998
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
6498
6999
|
const { luvio, config } = context;
|
|
@@ -6517,11 +7018,11 @@ const getSlackEmojisAdapterFactory = (luvio) => function SlackBridge__getSlackEm
|
|
|
6517
7018
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
6518
7019
|
};
|
|
6519
7020
|
|
|
6520
|
-
function select$
|
|
6521
|
-
return select$
|
|
7021
|
+
function select$5(luvio, params) {
|
|
7022
|
+
return select$G();
|
|
6522
7023
|
}
|
|
6523
7024
|
function keyBuilder$9(luvio, params) {
|
|
6524
|
-
return keyBuilder$
|
|
7025
|
+
return keyBuilder$F(luvio, {
|
|
6525
7026
|
name: params.urlParams.slackEmojiId
|
|
6526
7027
|
});
|
|
6527
7028
|
}
|
|
@@ -6534,7 +7035,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6534
7035
|
luvio.storeIngest(key, ingest$h, body);
|
|
6535
7036
|
const snapshot = luvio.storeLookup({
|
|
6536
7037
|
recordId: key,
|
|
6537
|
-
node: select$
|
|
7038
|
+
node: select$5(),
|
|
6538
7039
|
variables: {},
|
|
6539
7040
|
}, snapshotRefresh);
|
|
6540
7041
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6549,7 +7050,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
6549
7050
|
const key = keyBuilder$9(luvio, params);
|
|
6550
7051
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6551
7052
|
const storeMetadataParams = {
|
|
6552
|
-
ttl: TTL$
|
|
7053
|
+
ttl: TTL$3,
|
|
6553
7054
|
namespace: keyPrefix,
|
|
6554
7055
|
version: VERSION$l,
|
|
6555
7056
|
representationName: RepresentationType$h
|
|
@@ -6560,7 +7061,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
6560
7061
|
function createResourceRequest$4(config) {
|
|
6561
7062
|
const headers = {};
|
|
6562
7063
|
return {
|
|
6563
|
-
baseUri: '/services/data/
|
|
7064
|
+
baseUri: '/services/data/v65.0',
|
|
6564
7065
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/emojis/' + config.urlParams.slackEmojiId + '',
|
|
6565
7066
|
method: 'get',
|
|
6566
7067
|
body: null,
|
|
@@ -6577,14 +7078,14 @@ const getSlackEmoji_ConfigPropertyMetadata = [
|
|
|
6577
7078
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6578
7079
|
];
|
|
6579
7080
|
const getSlackEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSlackEmoji_ConfigPropertyMetadata);
|
|
6580
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
7081
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$o(getSlackEmoji_ConfigPropertyMetadata);
|
|
6581
7082
|
function keyBuilder$8(luvio, config) {
|
|
6582
7083
|
const resourceParams = createResourceParams$4(config);
|
|
6583
7084
|
return keyBuilder$9(luvio, resourceParams);
|
|
6584
7085
|
}
|
|
6585
7086
|
function typeCheckConfig$4(untrustedConfig) {
|
|
6586
7087
|
const config = {};
|
|
6587
|
-
typeCheckConfig$
|
|
7088
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackEmoji_ConfigPropertyMetadata);
|
|
6588
7089
|
return config;
|
|
6589
7090
|
}
|
|
6590
7091
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -6602,7 +7103,7 @@ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
|
6602
7103
|
}
|
|
6603
7104
|
function adapterFragment$4(luvio, config) {
|
|
6604
7105
|
createResourceParams$4(config);
|
|
6605
|
-
return select$
|
|
7106
|
+
return select$5();
|
|
6606
7107
|
}
|
|
6607
7108
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
6608
7109
|
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
@@ -6633,7 +7134,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
6633
7134
|
});
|
|
6634
7135
|
}
|
|
6635
7136
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
6636
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7137
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
6637
7138
|
}
|
|
6638
7139
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
6639
7140
|
const { luvio, config } = context;
|
|
@@ -6658,149 +7159,19 @@ const getSlackEmojiAdapterFactory = (luvio) => function SlackBridge__getSlackEmo
|
|
|
6658
7159
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
6659
7160
|
};
|
|
6660
7161
|
|
|
6661
|
-
const VERSION$1 = "0de597a47ca8ecad2cfb7fd9c8f73920";
|
|
6662
|
-
function validate$1(obj, path = 'SlackBridgeConversationInfosOutputRepresentation') {
|
|
6663
|
-
const v_error = (() => {
|
|
6664
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6665
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6666
|
-
}
|
|
6667
|
-
const obj_conversationInfos = obj.conversationInfos;
|
|
6668
|
-
const path_conversationInfos = path + '.conversationInfos';
|
|
6669
|
-
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
6670
|
-
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
6671
|
-
}
|
|
6672
|
-
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
6673
|
-
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
6674
|
-
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
6675
|
-
if (typeof obj_conversationInfos_item !== 'object') {
|
|
6676
|
-
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
6677
|
-
}
|
|
6678
|
-
}
|
|
6679
|
-
const obj_searchString = obj.searchString;
|
|
6680
|
-
const path_searchString = path + '.searchString';
|
|
6681
|
-
let obj_searchString_union0 = null;
|
|
6682
|
-
const obj_searchString_union0_error = (() => {
|
|
6683
|
-
if (typeof obj_searchString !== 'string') {
|
|
6684
|
-
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6685
|
-
}
|
|
6686
|
-
})();
|
|
6687
|
-
if (obj_searchString_union0_error != null) {
|
|
6688
|
-
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
6689
|
-
}
|
|
6690
|
-
let obj_searchString_union1 = null;
|
|
6691
|
-
const obj_searchString_union1_error = (() => {
|
|
6692
|
-
if (obj_searchString !== null) {
|
|
6693
|
-
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6694
|
-
}
|
|
6695
|
-
})();
|
|
6696
|
-
if (obj_searchString_union1_error != null) {
|
|
6697
|
-
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
6698
|
-
}
|
|
6699
|
-
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
6700
|
-
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
6701
|
-
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6702
|
-
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6703
|
-
return new TypeError(message);
|
|
6704
|
-
}
|
|
6705
|
-
})();
|
|
6706
|
-
return v_error === undefined ? null : v_error;
|
|
6707
|
-
}
|
|
6708
|
-
const RepresentationType$1 = 'SlackBridgeConversationInfosOutputRepresentation';
|
|
6709
|
-
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
6710
|
-
const input_conversationInfos = input.conversationInfos;
|
|
6711
|
-
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
6712
|
-
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
6713
|
-
const input_conversationInfos_item = input_conversationInfos[i];
|
|
6714
|
-
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
6715
|
-
input_conversationInfos[i] = ingest$f(input_conversationInfos_item, {
|
|
6716
|
-
fullPath: input_conversationInfos_item_id,
|
|
6717
|
-
propertyName: i,
|
|
6718
|
-
parent: {
|
|
6719
|
-
data: input,
|
|
6720
|
-
key: path.fullPath,
|
|
6721
|
-
existing: existing,
|
|
6722
|
-
},
|
|
6723
|
-
ttl: path.ttl
|
|
6724
|
-
}, luvio, store, timestamp);
|
|
6725
|
-
}
|
|
6726
|
-
return input;
|
|
6727
|
-
}
|
|
6728
|
-
const select$5 = function SlackBridgeConversationInfosOutputRepresentationSelect() {
|
|
6729
|
-
return {
|
|
6730
|
-
kind: 'Fragment',
|
|
6731
|
-
version: VERSION$1,
|
|
6732
|
-
private: [],
|
|
6733
|
-
selections: [
|
|
6734
|
-
{
|
|
6735
|
-
name: 'conversationInfos',
|
|
6736
|
-
kind: 'Link',
|
|
6737
|
-
plural: true,
|
|
6738
|
-
fragment: select$C()
|
|
6739
|
-
},
|
|
6740
|
-
{
|
|
6741
|
-
name: 'searchString',
|
|
6742
|
-
kind: 'Scalar'
|
|
6743
|
-
}
|
|
6744
|
-
]
|
|
6745
|
-
};
|
|
6746
|
-
};
|
|
6747
|
-
function equals$1(existing, incoming) {
|
|
6748
|
-
const existing_conversationInfos = existing.conversationInfos;
|
|
6749
|
-
const incoming_conversationInfos = incoming.conversationInfos;
|
|
6750
|
-
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
6751
|
-
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
6752
|
-
return false;
|
|
6753
|
-
}
|
|
6754
|
-
});
|
|
6755
|
-
if (equals_conversationInfos_items === false) {
|
|
6756
|
-
return false;
|
|
6757
|
-
}
|
|
6758
|
-
const existing_searchString = existing.searchString;
|
|
6759
|
-
const incoming_searchString = incoming.searchString;
|
|
6760
|
-
if (!(existing_searchString === incoming_searchString)) {
|
|
6761
|
-
return false;
|
|
6762
|
-
}
|
|
6763
|
-
return true;
|
|
6764
|
-
}
|
|
6765
|
-
const ingest$1 = function SlackBridgeConversationInfosOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6766
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
6767
|
-
const validateError = validate$1(input);
|
|
6768
|
-
if (validateError !== null) {
|
|
6769
|
-
throw validateError;
|
|
6770
|
-
}
|
|
6771
|
-
}
|
|
6772
|
-
const key = path.fullPath;
|
|
6773
|
-
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
6774
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "SlackBridge", VERSION$1, RepresentationType$1, equals$1);
|
|
6775
|
-
return createLink(key);
|
|
6776
|
-
};
|
|
6777
|
-
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
6778
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6779
|
-
const rootKey = fullPathFactory();
|
|
6780
|
-
rootKeySet.set(rootKey, {
|
|
6781
|
-
namespace: keyPrefix,
|
|
6782
|
-
representationName: RepresentationType$1,
|
|
6783
|
-
mergeable: false
|
|
6784
|
-
});
|
|
6785
|
-
const input_conversationInfos_length = input.conversationInfos.length;
|
|
6786
|
-
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
6787
|
-
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfos[i]);
|
|
6788
|
-
}
|
|
6789
|
-
}
|
|
6790
|
-
|
|
6791
7162
|
function select$4(luvio, params) {
|
|
6792
|
-
return select$
|
|
7163
|
+
return select$a();
|
|
6793
7164
|
}
|
|
6794
7165
|
function keyBuilder$7(luvio, params) {
|
|
6795
7166
|
return keyPrefix + '::SlackBridgeConversationInfosOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
6796
7167
|
}
|
|
6797
7168
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
6798
|
-
getTypeCacheKeys$
|
|
7169
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
6799
7170
|
}
|
|
6800
7171
|
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
6801
7172
|
const { body } = response;
|
|
6802
7173
|
const key = keyBuilder$7(luvio, resourceParams);
|
|
6803
|
-
luvio.storeIngest(key, ingest$
|
|
7174
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
6804
7175
|
const snapshot = luvio.storeLookup({
|
|
6805
7176
|
recordId: key,
|
|
6806
7177
|
node: select$4(),
|
|
@@ -6823,7 +7194,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
6823
7194
|
function createResourceRequest$3(config) {
|
|
6824
7195
|
const headers = {};
|
|
6825
7196
|
return {
|
|
6826
|
-
baseUri: '/services/data/
|
|
7197
|
+
baseUri: '/services/data/v65.0',
|
|
6827
7198
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/search/conversations',
|
|
6828
7199
|
method: 'get',
|
|
6829
7200
|
body: null,
|
|
@@ -6840,14 +7211,14 @@ const getSlackSearchConversation_ConfigPropertyMetadata = [
|
|
|
6840
7211
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6841
7212
|
];
|
|
6842
7213
|
const getSlackSearchConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6843
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
7214
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$o(getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6844
7215
|
function keyBuilder$6(luvio, config) {
|
|
6845
7216
|
const resourceParams = createResourceParams$3(config);
|
|
6846
7217
|
return keyBuilder$7(luvio, resourceParams);
|
|
6847
7218
|
}
|
|
6848
7219
|
function typeCheckConfig$3(untrustedConfig) {
|
|
6849
7220
|
const config = {};
|
|
6850
|
-
typeCheckConfig$
|
|
7221
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6851
7222
|
return config;
|
|
6852
7223
|
}
|
|
6853
7224
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -6896,7 +7267,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
6896
7267
|
});
|
|
6897
7268
|
}
|
|
6898
7269
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
6899
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7270
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
6900
7271
|
}
|
|
6901
7272
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
6902
7273
|
const { luvio, config } = context;
|
|
@@ -6922,18 +7293,18 @@ const getSlackSearchConversationAdapterFactory = (luvio) => function SlackBridge
|
|
|
6922
7293
|
};
|
|
6923
7294
|
|
|
6924
7295
|
function select$3(luvio, params) {
|
|
6925
|
-
return select$
|
|
7296
|
+
return select$7();
|
|
6926
7297
|
}
|
|
6927
7298
|
function keyBuilder$5(luvio, params) {
|
|
6928
7299
|
return keyPrefix + '::SlackBridgeEmojisOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
6929
7300
|
}
|
|
6930
7301
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
6931
|
-
getTypeCacheKeys$
|
|
7302
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
6932
7303
|
}
|
|
6933
7304
|
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
6934
7305
|
const { body } = response;
|
|
6935
7306
|
const key = keyBuilder$5(luvio, resourceParams);
|
|
6936
|
-
luvio.storeIngest(key, ingest$
|
|
7307
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
6937
7308
|
const snapshot = luvio.storeLookup({
|
|
6938
7309
|
recordId: key,
|
|
6939
7310
|
node: select$3(),
|
|
@@ -6956,7 +7327,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
6956
7327
|
function createResourceRequest$2(config) {
|
|
6957
7328
|
const headers = {};
|
|
6958
7329
|
return {
|
|
6959
|
-
baseUri: '/services/data/
|
|
7330
|
+
baseUri: '/services/data/v65.0',
|
|
6960
7331
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/search/emojis',
|
|
6961
7332
|
method: 'get',
|
|
6962
7333
|
body: null,
|
|
@@ -6973,14 +7344,14 @@ const getSlackSearchEmoji_ConfigPropertyMetadata = [
|
|
|
6973
7344
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6974
7345
|
];
|
|
6975
7346
|
const getSlackSearchEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6976
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
7347
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$o(getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6977
7348
|
function keyBuilder$4(luvio, config) {
|
|
6978
7349
|
const resourceParams = createResourceParams$2(config);
|
|
6979
7350
|
return keyBuilder$5(luvio, resourceParams);
|
|
6980
7351
|
}
|
|
6981
7352
|
function typeCheckConfig$2(untrustedConfig) {
|
|
6982
7353
|
const config = {};
|
|
6983
|
-
typeCheckConfig$
|
|
7354
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6984
7355
|
return config;
|
|
6985
7356
|
}
|
|
6986
7357
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -7029,7 +7400,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
7029
7400
|
});
|
|
7030
7401
|
}
|
|
7031
7402
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
7032
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7403
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
7033
7404
|
}
|
|
7034
7405
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
7035
7406
|
const { luvio, config } = context;
|
|
@@ -7054,12 +7425,38 @@ const getSlackSearchEmojiAdapterFactory = (luvio) => function SlackBridge__getSl
|
|
|
7054
7425
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
7055
7426
|
};
|
|
7056
7427
|
|
|
7057
|
-
const VERSION = "
|
|
7428
|
+
const VERSION = "16b915c502b8a0609446d7ed3907a794";
|
|
7058
7429
|
function validate(obj, path = 'SlackBridgeUserInfosOutputRepresentation') {
|
|
7059
7430
|
const v_error = (() => {
|
|
7060
7431
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7061
7432
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7062
7433
|
}
|
|
7434
|
+
const obj_nextMarker = obj.nextMarker;
|
|
7435
|
+
const path_nextMarker = path + '.nextMarker';
|
|
7436
|
+
let obj_nextMarker_union0 = null;
|
|
7437
|
+
const obj_nextMarker_union0_error = (() => {
|
|
7438
|
+
if (typeof obj_nextMarker !== 'string') {
|
|
7439
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nextMarker + '" (at "' + path_nextMarker + '")');
|
|
7440
|
+
}
|
|
7441
|
+
})();
|
|
7442
|
+
if (obj_nextMarker_union0_error != null) {
|
|
7443
|
+
obj_nextMarker_union0 = obj_nextMarker_union0_error.message;
|
|
7444
|
+
}
|
|
7445
|
+
let obj_nextMarker_union1 = null;
|
|
7446
|
+
const obj_nextMarker_union1_error = (() => {
|
|
7447
|
+
if (obj_nextMarker !== null) {
|
|
7448
|
+
return new TypeError('Expected "null" but received "' + typeof obj_nextMarker + '" (at "' + path_nextMarker + '")');
|
|
7449
|
+
}
|
|
7450
|
+
})();
|
|
7451
|
+
if (obj_nextMarker_union1_error != null) {
|
|
7452
|
+
obj_nextMarker_union1 = obj_nextMarker_union1_error.message;
|
|
7453
|
+
}
|
|
7454
|
+
if (obj_nextMarker_union0 && obj_nextMarker_union1) {
|
|
7455
|
+
let message = 'Object doesn\'t match union (at "' + path_nextMarker + '")';
|
|
7456
|
+
message += '\n' + obj_nextMarker_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7457
|
+
message += '\n' + obj_nextMarker_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7458
|
+
return new TypeError(message);
|
|
7459
|
+
}
|
|
7063
7460
|
const obj_searchString = obj.searchString;
|
|
7064
7461
|
const path_searchString = path + '.searchString';
|
|
7065
7462
|
let obj_searchString_union0 = null;
|
|
@@ -7127,6 +7524,10 @@ const select$2 = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
7127
7524
|
version: VERSION,
|
|
7128
7525
|
private: [],
|
|
7129
7526
|
selections: [
|
|
7527
|
+
{
|
|
7528
|
+
name: 'nextMarker',
|
|
7529
|
+
kind: 'Scalar'
|
|
7530
|
+
},
|
|
7130
7531
|
{
|
|
7131
7532
|
name: 'searchString',
|
|
7132
7533
|
kind: 'Scalar'
|
|
@@ -7135,12 +7536,17 @@ const select$2 = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
7135
7536
|
name: 'userInfos',
|
|
7136
7537
|
kind: 'Link',
|
|
7137
7538
|
plural: true,
|
|
7138
|
-
fragment: select$
|
|
7539
|
+
fragment: select$F()
|
|
7139
7540
|
}
|
|
7140
7541
|
]
|
|
7141
7542
|
};
|
|
7142
7543
|
};
|
|
7143
7544
|
function equals(existing, incoming) {
|
|
7545
|
+
const existing_nextMarker = existing.nextMarker;
|
|
7546
|
+
const incoming_nextMarker = incoming.nextMarker;
|
|
7547
|
+
if (!(existing_nextMarker === incoming_nextMarker)) {
|
|
7548
|
+
return false;
|
|
7549
|
+
}
|
|
7144
7550
|
const existing_searchString = existing.searchString;
|
|
7145
7551
|
const incoming_searchString = incoming.searchString;
|
|
7146
7552
|
if (!(existing_searchString === incoming_searchString)) {
|
|
@@ -7219,7 +7625,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
7219
7625
|
function createResourceRequest$1(config) {
|
|
7220
7626
|
const headers = {};
|
|
7221
7627
|
return {
|
|
7222
|
-
baseUri: '/services/data/
|
|
7628
|
+
baseUri: '/services/data/v65.0',
|
|
7223
7629
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/search/users',
|
|
7224
7630
|
method: 'get',
|
|
7225
7631
|
body: null,
|
|
@@ -7239,14 +7645,14 @@ const getSlackSearchUser_ConfigPropertyMetadata = [
|
|
|
7239
7645
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7240
7646
|
];
|
|
7241
7647
|
const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getSlackSearchUser_ConfigPropertyMetadata);
|
|
7242
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
7648
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$o(getSlackSearchUser_ConfigPropertyMetadata);
|
|
7243
7649
|
function keyBuilder$2(luvio, config) {
|
|
7244
7650
|
const resourceParams = createResourceParams$1(config);
|
|
7245
7651
|
return keyBuilder$3(luvio, resourceParams);
|
|
7246
7652
|
}
|
|
7247
7653
|
function typeCheckConfig$1(untrustedConfig) {
|
|
7248
7654
|
const config = {};
|
|
7249
|
-
typeCheckConfig$
|
|
7655
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
|
|
7250
7656
|
return config;
|
|
7251
7657
|
}
|
|
7252
7658
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -7295,7 +7701,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
7295
7701
|
});
|
|
7296
7702
|
}
|
|
7297
7703
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
7298
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7704
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
7299
7705
|
}
|
|
7300
7706
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
7301
7707
|
const { luvio, config } = context;
|
|
@@ -7321,10 +7727,10 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
|
|
|
7321
7727
|
};
|
|
7322
7728
|
|
|
7323
7729
|
function select(luvio, params) {
|
|
7324
|
-
return select$
|
|
7730
|
+
return select$F();
|
|
7325
7731
|
}
|
|
7326
7732
|
function keyBuilder$1(luvio, params) {
|
|
7327
|
-
return keyBuilder$
|
|
7733
|
+
return keyBuilder$E(luvio, {
|
|
7328
7734
|
slackUserId: params.urlParams.slackUserId
|
|
7329
7735
|
});
|
|
7330
7736
|
}
|
|
@@ -7352,7 +7758,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
7352
7758
|
const key = keyBuilder$1(luvio, params);
|
|
7353
7759
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
7354
7760
|
const storeMetadataParams = {
|
|
7355
|
-
ttl: TTL$
|
|
7761
|
+
ttl: TTL$2,
|
|
7356
7762
|
namespace: keyPrefix,
|
|
7357
7763
|
version: VERSION$k,
|
|
7358
7764
|
representationName: RepresentationType$g
|
|
@@ -7363,7 +7769,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
7363
7769
|
function createResourceRequest(config) {
|
|
7364
7770
|
const headers = {};
|
|
7365
7771
|
return {
|
|
7366
|
-
baseUri: '/services/data/
|
|
7772
|
+
baseUri: '/services/data/v65.0',
|
|
7367
7773
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/user/' + config.urlParams.slackUserId + '',
|
|
7368
7774
|
method: 'get',
|
|
7369
7775
|
body: null,
|
|
@@ -7380,14 +7786,14 @@ const getSlackUser_ConfigPropertyMetadata = [
|
|
|
7380
7786
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7381
7787
|
];
|
|
7382
7788
|
const getSlackUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSlackUser_ConfigPropertyMetadata);
|
|
7383
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
7789
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$o(getSlackUser_ConfigPropertyMetadata);
|
|
7384
7790
|
function keyBuilder(luvio, config) {
|
|
7385
7791
|
const resourceParams = createResourceParams(config);
|
|
7386
7792
|
return keyBuilder$1(luvio, resourceParams);
|
|
7387
7793
|
}
|
|
7388
7794
|
function typeCheckConfig(untrustedConfig) {
|
|
7389
7795
|
const config = {};
|
|
7390
|
-
typeCheckConfig$
|
|
7796
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
|
|
7391
7797
|
return config;
|
|
7392
7798
|
}
|
|
7393
7799
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -7436,7 +7842,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
7436
7842
|
});
|
|
7437
7843
|
}
|
|
7438
7844
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
7439
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7845
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
7440
7846
|
}
|
|
7441
7847
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
7442
7848
|
const { luvio, config } = context;
|
|
@@ -7461,4 +7867,4 @@ const getSlackUserAdapterFactory = (luvio) => function SlackBridge__getSlackUser
|
|
|
7461
7867
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
7462
7868
|
};
|
|
7463
7869
|
|
|
7464
|
-
export { deleteSlackConversationMemberAdapterFactory, deleteSlackMessageAdapterFactory, deleteSlackMessageReactionsAdapterFactory, getRelatedThreadsAdapterFactory, getSlackConversationAdapterFactory, getSlackConversationMemberAdapterFactory, getSlackConversationMembersAdapterFactory, getSlackEmojiAdapterFactory, getSlackEmojisAdapterFactory, getSlackMessageAdapterFactory, getSlackRecordChannelInfoAdapterFactory, getSlackSearchConversationAdapterFactory, getSlackSearchEmojiAdapterFactory, getSlackSearchUserAdapterFactory, getSlackUserAdapterFactory, patchSlackMessageAdapterFactory, postSlackConversationAdapterFactory, postSlackConversationMarkAdapterFactory, postSlackConversationMembersAdapterFactory, postSlackFileAdapterFactory, postSlackMessageReactionsAdapterFactory, postSlackRecordChannelInfosAdapterFactory };
|
|
7870
|
+
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 };
|