@salesforce/lds-adapters-platform-slack-bridge 1.332.0-dev10 → 1.332.0-dev11
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 +555 -379
- package/dist/es/es2018/types/src/generated/adapters/postSlackConversationMark.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectSlackbridgeTeamChannelMarkByChannelIdAndTeamId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationMarkOutputRepresentation.d.ts +40 -0
- package/package.json +3 -3
- package/sfdc/index.js +1002 -823
- package/src/raml/api.raml +36 -0
- package/src/raml/luvio.raml +7 -0
|
@@ -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$a, typeCheckConfig as typeCheckConfig$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$a, typeCheckConfig as typeCheckConfig$k, StoreKeyMap, createResourceParams as createResourceParams$k } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -112,8 +112,8 @@ function createLink(ref) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
const VERSION$
|
|
116
|
-
function validate$
|
|
115
|
+
const VERSION$l = "20bf7311db81b4fc5559874e8f8c7502";
|
|
116
|
+
function validate$l(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
117
117
|
const v_error = (() => {
|
|
118
118
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
119
119
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -230,10 +230,10 @@ function validate$k(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
|
230
230
|
})();
|
|
231
231
|
return v_error === undefined ? null : v_error;
|
|
232
232
|
}
|
|
233
|
-
const select$
|
|
233
|
+
const select$C = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
234
234
|
return {
|
|
235
235
|
kind: 'Fragment',
|
|
236
|
-
version: VERSION$
|
|
236
|
+
version: VERSION$l,
|
|
237
237
|
private: [],
|
|
238
238
|
selections: [
|
|
239
239
|
{
|
|
@@ -259,7 +259,7 @@ const select$A = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
|
259
259
|
]
|
|
260
260
|
};
|
|
261
261
|
};
|
|
262
|
-
function equals$
|
|
262
|
+
function equals$l(existing, incoming) {
|
|
263
263
|
const existing_name = existing.name;
|
|
264
264
|
const incoming_name = incoming.name;
|
|
265
265
|
if (!(existing_name === incoming_name)) {
|
|
@@ -289,8 +289,8 @@ function equals$k(existing, incoming) {
|
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
const TTL = 600000;
|
|
292
|
-
const VERSION$
|
|
293
|
-
function validate$
|
|
292
|
+
const VERSION$k = "c15d4769a77b0ce9f7c5d06c3210c0d8";
|
|
293
|
+
function validate$k(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
294
294
|
const v_error = (() => {
|
|
295
295
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
296
296
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -574,7 +574,7 @@ function validate$j(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
574
574
|
const path_statusEmoji = path + '.statusEmoji';
|
|
575
575
|
let obj_statusEmoji_union0 = null;
|
|
576
576
|
const obj_statusEmoji_union0_error = (() => {
|
|
577
|
-
const referencepath_statusEmojiValidationError = validate$
|
|
577
|
+
const referencepath_statusEmojiValidationError = validate$l(obj_statusEmoji, path_statusEmoji);
|
|
578
578
|
if (referencepath_statusEmojiValidationError !== null) {
|
|
579
579
|
let message = 'Object doesn\'t match SlackBridgeEmojiOutputRepresentation (at "' + path_statusEmoji + '")\n';
|
|
580
580
|
message += referencepath_statusEmojiValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -659,25 +659,25 @@ function validate$j(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
659
659
|
})();
|
|
660
660
|
return v_error === undefined ? null : v_error;
|
|
661
661
|
}
|
|
662
|
-
const RepresentationType$
|
|
663
|
-
function keyBuilder$
|
|
664
|
-
return keyPrefix + '::' + RepresentationType$
|
|
662
|
+
const RepresentationType$g = 'SlackBridgeUserInfoOutputRepresentation';
|
|
663
|
+
function keyBuilder$w(luvio, config) {
|
|
664
|
+
return keyPrefix + '::' + RepresentationType$g + ':' + config.teamId + ':' + config.slackUserId;
|
|
665
665
|
}
|
|
666
|
-
function keyBuilderFromType$
|
|
666
|
+
function keyBuilderFromType$9(luvio, object) {
|
|
667
667
|
const keyParams = {
|
|
668
668
|
teamId: object.teamId,
|
|
669
669
|
slackUserId: object.slackUserId
|
|
670
670
|
};
|
|
671
|
-
return keyBuilder$
|
|
671
|
+
return keyBuilder$w(luvio, keyParams);
|
|
672
672
|
}
|
|
673
|
-
function normalize$
|
|
673
|
+
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
674
674
|
return input;
|
|
675
675
|
}
|
|
676
|
-
const select$
|
|
677
|
-
const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$
|
|
676
|
+
const select$B = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
677
|
+
const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$C();
|
|
678
678
|
return {
|
|
679
679
|
kind: 'Fragment',
|
|
680
|
-
version: VERSION$
|
|
680
|
+
version: VERSION$k,
|
|
681
681
|
private: [],
|
|
682
682
|
selections: [
|
|
683
683
|
{
|
|
@@ -753,7 +753,7 @@ const select$z = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
753
753
|
]
|
|
754
754
|
};
|
|
755
755
|
};
|
|
756
|
-
function equals$
|
|
756
|
+
function equals$k(existing, incoming) {
|
|
757
757
|
const existing_bot = existing.bot;
|
|
758
758
|
const incoming_bot = incoming.bot;
|
|
759
759
|
if (!(existing_bot === incoming_bot)) {
|
|
@@ -829,7 +829,7 @@ function equals$j(existing, incoming) {
|
|
|
829
829
|
if (!(existing_statusEmoji === incoming_statusEmoji
|
|
830
830
|
|| (existing_statusEmoji != null &&
|
|
831
831
|
incoming_statusEmoji != null &&
|
|
832
|
-
equals$
|
|
832
|
+
equals$l(existing_statusEmoji, incoming_statusEmoji)))) {
|
|
833
833
|
return false;
|
|
834
834
|
}
|
|
835
835
|
const existing_statusMessage = existing.statusMessage;
|
|
@@ -844,30 +844,30 @@ function equals$j(existing, incoming) {
|
|
|
844
844
|
}
|
|
845
845
|
return true;
|
|
846
846
|
}
|
|
847
|
-
const ingest$
|
|
847
|
+
const ingest$g = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
848
848
|
if (process.env.NODE_ENV !== 'production') {
|
|
849
|
-
const validateError = validate$
|
|
849
|
+
const validateError = validate$k(input);
|
|
850
850
|
if (validateError !== null) {
|
|
851
851
|
throw validateError;
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
|
-
const key = keyBuilderFromType$
|
|
854
|
+
const key = keyBuilderFromType$9(luvio, input);
|
|
855
855
|
const ttlToUse = TTL;
|
|
856
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
856
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SlackBridge", VERSION$k, RepresentationType$g, equals$k);
|
|
857
857
|
return createLink(key);
|
|
858
858
|
};
|
|
859
|
-
function getTypeCacheKeys$
|
|
859
|
+
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
860
860
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
861
|
-
const rootKey = keyBuilderFromType$
|
|
861
|
+
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
862
862
|
rootKeySet.set(rootKey, {
|
|
863
863
|
namespace: keyPrefix,
|
|
864
|
-
representationName: RepresentationType$
|
|
864
|
+
representationName: RepresentationType$g,
|
|
865
865
|
mergeable: false
|
|
866
866
|
});
|
|
867
867
|
}
|
|
868
868
|
|
|
869
|
-
const VERSION$
|
|
870
|
-
function validate$
|
|
869
|
+
const VERSION$j = "252fe3a6509a770a876e36552ad8dd06";
|
|
870
|
+
function validate$j(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
|
|
871
871
|
const v_error = (() => {
|
|
872
872
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
873
873
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1204,23 +1204,23 @@ function validate$i(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1204
1204
|
})();
|
|
1205
1205
|
return v_error === undefined ? null : v_error;
|
|
1206
1206
|
}
|
|
1207
|
-
const RepresentationType$
|
|
1208
|
-
function keyBuilder$
|
|
1209
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1207
|
+
const RepresentationType$f = 'SlackBridgeConversationInfoOutputRepresentation';
|
|
1208
|
+
function keyBuilder$v(luvio, config) {
|
|
1209
|
+
return keyPrefix + '::' + RepresentationType$f + ':' + config.id;
|
|
1210
1210
|
}
|
|
1211
|
-
function keyBuilderFromType$
|
|
1211
|
+
function keyBuilderFromType$8(luvio, object) {
|
|
1212
1212
|
const keyParams = {
|
|
1213
1213
|
id: object.id
|
|
1214
1214
|
};
|
|
1215
|
-
return keyBuilder$
|
|
1215
|
+
return keyBuilder$v(luvio, keyParams);
|
|
1216
1216
|
}
|
|
1217
|
-
function normalize$
|
|
1217
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
1218
1218
|
return input;
|
|
1219
1219
|
}
|
|
1220
|
-
const select$
|
|
1220
|
+
const select$A = function SlackBridgeConversationInfoOutputRepresentationSelect() {
|
|
1221
1221
|
return {
|
|
1222
1222
|
kind: 'Fragment',
|
|
1223
|
-
version: VERSION$
|
|
1223
|
+
version: VERSION$j,
|
|
1224
1224
|
private: [],
|
|
1225
1225
|
selections: [
|
|
1226
1226
|
{
|
|
@@ -1287,7 +1287,7 @@ const select$y = function SlackBridgeConversationInfoOutputRepresentationSelect(
|
|
|
1287
1287
|
]
|
|
1288
1288
|
};
|
|
1289
1289
|
};
|
|
1290
|
-
function equals$
|
|
1290
|
+
function equals$j(existing, incoming) {
|
|
1291
1291
|
const existing_id = existing.id;
|
|
1292
1292
|
const incoming_id = incoming.id;
|
|
1293
1293
|
if (!(existing_id === incoming_id)) {
|
|
@@ -1373,30 +1373,30 @@ function equals$i(existing, incoming) {
|
|
|
1373
1373
|
}
|
|
1374
1374
|
return true;
|
|
1375
1375
|
}
|
|
1376
|
-
const ingest$
|
|
1376
|
+
const ingest$f = function SlackBridgeConversationInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1377
1377
|
if (process.env.NODE_ENV !== 'production') {
|
|
1378
|
-
const validateError = validate$
|
|
1378
|
+
const validateError = validate$j(input);
|
|
1379
1379
|
if (validateError !== null) {
|
|
1380
1380
|
throw validateError;
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
1383
|
-
const key = keyBuilderFromType$
|
|
1383
|
+
const key = keyBuilderFromType$8(luvio, input);
|
|
1384
1384
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
1385
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1385
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "SlackBridge", VERSION$j, RepresentationType$f, equals$j);
|
|
1386
1386
|
return createLink(key);
|
|
1387
1387
|
};
|
|
1388
|
-
function getTypeCacheKeys$
|
|
1388
|
+
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
1389
1389
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1390
|
-
const rootKey = keyBuilderFromType$
|
|
1390
|
+
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
1391
1391
|
rootKeySet.set(rootKey, {
|
|
1392
1392
|
namespace: keyPrefix,
|
|
1393
|
-
representationName: RepresentationType$
|
|
1393
|
+
representationName: RepresentationType$f,
|
|
1394
1394
|
mergeable: false
|
|
1395
1395
|
});
|
|
1396
1396
|
}
|
|
1397
1397
|
|
|
1398
|
-
const VERSION$
|
|
1399
|
-
function validate$
|
|
1398
|
+
const VERSION$i = "7820a930852347bb0506c08d8b528281";
|
|
1399
|
+
function validate$i(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
1400
1400
|
const v_error = (() => {
|
|
1401
1401
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1402
1402
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1473,10 +1473,10 @@ function validate$h(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
|
1473
1473
|
})();
|
|
1474
1474
|
return v_error === undefined ? null : v_error;
|
|
1475
1475
|
}
|
|
1476
|
-
const select$
|
|
1476
|
+
const select$z = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
1477
1477
|
return {
|
|
1478
1478
|
kind: 'Fragment',
|
|
1479
|
-
version: VERSION$
|
|
1479
|
+
version: VERSION$i,
|
|
1480
1480
|
private: [],
|
|
1481
1481
|
selections: [
|
|
1482
1482
|
{
|
|
@@ -1499,7 +1499,7 @@ const select$x = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
|
1499
1499
|
]
|
|
1500
1500
|
};
|
|
1501
1501
|
};
|
|
1502
|
-
function equals$
|
|
1502
|
+
function equals$i(existing, incoming) {
|
|
1503
1503
|
const existing_name = existing.name;
|
|
1504
1504
|
const incoming_name = incoming.name;
|
|
1505
1505
|
if (!(existing_name === incoming_name)) {
|
|
@@ -1528,8 +1528,8 @@ function equals$h(existing, incoming) {
|
|
|
1528
1528
|
return true;
|
|
1529
1529
|
}
|
|
1530
1530
|
|
|
1531
|
-
const VERSION$
|
|
1532
|
-
function validate$
|
|
1531
|
+
const VERSION$h = "4634cd404d8392ac4ca9f0e1be03bfbd";
|
|
1532
|
+
function validate$h(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
1533
1533
|
const v_error = (() => {
|
|
1534
1534
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1535
1535
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1547,10 +1547,10 @@ function validate$g(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
|
1547
1547
|
})();
|
|
1548
1548
|
return v_error === undefined ? null : v_error;
|
|
1549
1549
|
}
|
|
1550
|
-
const select$
|
|
1550
|
+
const select$y = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
1551
1551
|
return {
|
|
1552
1552
|
kind: 'Fragment',
|
|
1553
|
-
version: VERSION$
|
|
1553
|
+
version: VERSION$h,
|
|
1554
1554
|
private: [],
|
|
1555
1555
|
selections: [
|
|
1556
1556
|
{
|
|
@@ -1564,7 +1564,7 @@ const select$w = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
|
1564
1564
|
]
|
|
1565
1565
|
};
|
|
1566
1566
|
};
|
|
1567
|
-
function equals$
|
|
1567
|
+
function equals$h(existing, incoming) {
|
|
1568
1568
|
const existing_extension = existing.extension;
|
|
1569
1569
|
const incoming_extension = incoming.extension;
|
|
1570
1570
|
if (!(existing_extension === incoming_extension)) {
|
|
@@ -1578,8 +1578,8 @@ function equals$g(existing, incoming) {
|
|
|
1578
1578
|
return true;
|
|
1579
1579
|
}
|
|
1580
1580
|
|
|
1581
|
-
const VERSION$
|
|
1582
|
-
function validate$
|
|
1581
|
+
const VERSION$g = "3ef7c0314c9cc37a0b6c3b0dbd6a76a5";
|
|
1582
|
+
function validate$g(obj, path = 'SlackBridgeContentVersionOutputRepresentation') {
|
|
1583
1583
|
const v_error = (() => {
|
|
1584
1584
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1585
1585
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1593,7 +1593,7 @@ function validate$f(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
1593
1593
|
const path_filetype = path + '.filetype';
|
|
1594
1594
|
let obj_filetype_union0 = null;
|
|
1595
1595
|
const obj_filetype_union0_error = (() => {
|
|
1596
|
-
const referencepath_filetypeValidationError = validate$
|
|
1596
|
+
const referencepath_filetypeValidationError = validate$h(obj_filetype, path_filetype);
|
|
1597
1597
|
if (referencepath_filetypeValidationError !== null) {
|
|
1598
1598
|
let message = 'Object doesn\'t match SlackBridgeFileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
1599
1599
|
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1662,11 +1662,11 @@ function validate$f(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
1662
1662
|
})();
|
|
1663
1663
|
return v_error === undefined ? null : v_error;
|
|
1664
1664
|
}
|
|
1665
|
-
const select$
|
|
1666
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
1665
|
+
const select$x = function SlackBridgeContentVersionOutputRepresentationSelect() {
|
|
1666
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$y();
|
|
1667
1667
|
return {
|
|
1668
1668
|
kind: 'Fragment',
|
|
1669
|
-
version: VERSION$
|
|
1669
|
+
version: VERSION$g,
|
|
1670
1670
|
private: [],
|
|
1671
1671
|
selections: [
|
|
1672
1672
|
{
|
|
@@ -1698,7 +1698,7 @@ const select$v = function SlackBridgeContentVersionOutputRepresentationSelect()
|
|
|
1698
1698
|
]
|
|
1699
1699
|
};
|
|
1700
1700
|
};
|
|
1701
|
-
function equals$
|
|
1701
|
+
function equals$g(existing, incoming) {
|
|
1702
1702
|
const existing_size = existing.size;
|
|
1703
1703
|
const incoming_size = incoming.size;
|
|
1704
1704
|
if (!(existing_size === incoming_size)) {
|
|
@@ -1724,7 +1724,7 @@ function equals$f(existing, incoming) {
|
|
|
1724
1724
|
if (!(existing_filetype === incoming_filetype
|
|
1725
1725
|
|| (existing_filetype != null &&
|
|
1726
1726
|
incoming_filetype != null &&
|
|
1727
|
-
equals$
|
|
1727
|
+
equals$h(existing_filetype, incoming_filetype)))) {
|
|
1728
1728
|
return false;
|
|
1729
1729
|
}
|
|
1730
1730
|
const existing_versionUrl = existing.versionUrl;
|
|
@@ -1735,15 +1735,15 @@ function equals$f(existing, incoming) {
|
|
|
1735
1735
|
return true;
|
|
1736
1736
|
}
|
|
1737
1737
|
|
|
1738
|
-
const VERSION$
|
|
1739
|
-
function validate$
|
|
1738
|
+
const VERSION$f = "effdd259bc622bee05493fc2a3ecd276";
|
|
1739
|
+
function validate$f(obj, path = 'SlackBridgeContentDocumentOutputRepresentation') {
|
|
1740
1740
|
const v_error = (() => {
|
|
1741
1741
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1742
1742
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1743
1743
|
}
|
|
1744
1744
|
const obj_filetype = obj.filetype;
|
|
1745
1745
|
const path_filetype = path + '.filetype';
|
|
1746
|
-
const referencepath_filetypeValidationError = validate$
|
|
1746
|
+
const referencepath_filetypeValidationError = validate$h(obj_filetype, path_filetype);
|
|
1747
1747
|
if (referencepath_filetypeValidationError !== null) {
|
|
1748
1748
|
let message = 'Object doesn\'t match SlackBridgeFileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
1749
1749
|
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1756,7 +1756,7 @@ function validate$e(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
1756
1756
|
}
|
|
1757
1757
|
const obj_latestPublishedVersion = obj.latestPublishedVersion;
|
|
1758
1758
|
const path_latestPublishedVersion = path + '.latestPublishedVersion';
|
|
1759
|
-
const referencepath_latestPublishedVersionValidationError = validate$
|
|
1759
|
+
const referencepath_latestPublishedVersionValidationError = validate$g(obj_latestPublishedVersion, path_latestPublishedVersion);
|
|
1760
1760
|
if (referencepath_latestPublishedVersionValidationError !== null) {
|
|
1761
1761
|
let message = 'Object doesn\'t match SlackBridgeContentVersionOutputRepresentation (at "' + path_latestPublishedVersion + '")\n';
|
|
1762
1762
|
message += referencepath_latestPublishedVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1775,12 +1775,12 @@ function validate$e(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
1775
1775
|
})();
|
|
1776
1776
|
return v_error === undefined ? null : v_error;
|
|
1777
1777
|
}
|
|
1778
|
-
const select$
|
|
1779
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
1780
|
-
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$
|
|
1778
|
+
const select$w = function SlackBridgeContentDocumentOutputRepresentationSelect() {
|
|
1779
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$y();
|
|
1780
|
+
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$x();
|
|
1781
1781
|
return {
|
|
1782
1782
|
kind: 'Fragment',
|
|
1783
|
-
version: VERSION$
|
|
1783
|
+
version: VERSION$f,
|
|
1784
1784
|
private: [],
|
|
1785
1785
|
selections: [
|
|
1786
1786
|
{
|
|
@@ -1808,7 +1808,7 @@ const select$u = function SlackBridgeContentDocumentOutputRepresentationSelect()
|
|
|
1808
1808
|
]
|
|
1809
1809
|
};
|
|
1810
1810
|
};
|
|
1811
|
-
function equals$
|
|
1811
|
+
function equals$f(existing, incoming) {
|
|
1812
1812
|
const existing_size = existing.size;
|
|
1813
1813
|
const incoming_size = incoming.size;
|
|
1814
1814
|
if (!(existing_size === incoming_size)) {
|
|
@@ -1826,19 +1826,19 @@ function equals$e(existing, incoming) {
|
|
|
1826
1826
|
}
|
|
1827
1827
|
const existing_filetype = existing.filetype;
|
|
1828
1828
|
const incoming_filetype = incoming.filetype;
|
|
1829
|
-
if (!(equals$
|
|
1829
|
+
if (!(equals$h(existing_filetype, incoming_filetype))) {
|
|
1830
1830
|
return false;
|
|
1831
1831
|
}
|
|
1832
1832
|
const existing_latestPublishedVersion = existing.latestPublishedVersion;
|
|
1833
1833
|
const incoming_latestPublishedVersion = incoming.latestPublishedVersion;
|
|
1834
|
-
if (!(equals$
|
|
1834
|
+
if (!(equals$g(existing_latestPublishedVersion, incoming_latestPublishedVersion))) {
|
|
1835
1835
|
return false;
|
|
1836
1836
|
}
|
|
1837
1837
|
return true;
|
|
1838
1838
|
}
|
|
1839
1839
|
|
|
1840
|
-
const VERSION$
|
|
1841
|
-
function validate$
|
|
1840
|
+
const VERSION$e = "15fa7211c500ebba9537b3c9921b39cf";
|
|
1841
|
+
function validate$e(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
1842
1842
|
const v_error = (() => {
|
|
1843
1843
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1844
1844
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1847,7 +1847,7 @@ function validate$d(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
1847
1847
|
const path_contentDocument = path + '.contentDocument';
|
|
1848
1848
|
let obj_contentDocument_union0 = null;
|
|
1849
1849
|
const obj_contentDocument_union0_error = (() => {
|
|
1850
|
-
const referencepath_contentDocumentValidationError = validate$
|
|
1850
|
+
const referencepath_contentDocumentValidationError = validate$f(obj_contentDocument, path_contentDocument);
|
|
1851
1851
|
if (referencepath_contentDocumentValidationError !== null) {
|
|
1852
1852
|
let message = 'Object doesn\'t match SlackBridgeContentDocumentOutputRepresentation (at "' + path_contentDocument + '")\n';
|
|
1853
1853
|
message += referencepath_contentDocumentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2009,24 +2009,24 @@ function validate$d(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
2009
2009
|
})();
|
|
2010
2010
|
return v_error === undefined ? null : v_error;
|
|
2011
2011
|
}
|
|
2012
|
-
const RepresentationType$
|
|
2013
|
-
function keyBuilder$
|
|
2014
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2012
|
+
const RepresentationType$e = 'SlackBridgeFileOutputRepresentation';
|
|
2013
|
+
function keyBuilder$u(luvio, config) {
|
|
2014
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + (config.uniqueKey === null ? '' : config.uniqueKey);
|
|
2015
2015
|
}
|
|
2016
|
-
function keyBuilderFromType$
|
|
2016
|
+
function keyBuilderFromType$7(luvio, object) {
|
|
2017
2017
|
const keyParams = {
|
|
2018
2018
|
uniqueKey: object.uniqueKey
|
|
2019
2019
|
};
|
|
2020
|
-
return keyBuilder$
|
|
2020
|
+
return keyBuilder$u(luvio, keyParams);
|
|
2021
2021
|
}
|
|
2022
|
-
function normalize$
|
|
2022
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
2023
2023
|
return input;
|
|
2024
2024
|
}
|
|
2025
|
-
const select$
|
|
2026
|
-
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$
|
|
2025
|
+
const select$v = function SlackBridgeFileOutputRepresentationSelect() {
|
|
2026
|
+
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$w();
|
|
2027
2027
|
return {
|
|
2028
2028
|
kind: 'Fragment',
|
|
2029
|
-
version: VERSION$
|
|
2029
|
+
version: VERSION$e,
|
|
2030
2030
|
private: [],
|
|
2031
2031
|
selections: [
|
|
2032
2032
|
{
|
|
@@ -2078,7 +2078,7 @@ const select$t = function SlackBridgeFileOutputRepresentationSelect() {
|
|
|
2078
2078
|
]
|
|
2079
2079
|
};
|
|
2080
2080
|
};
|
|
2081
|
-
function equals$
|
|
2081
|
+
function equals$e(existing, incoming) {
|
|
2082
2082
|
const existing_filetype = existing.filetype;
|
|
2083
2083
|
const incoming_filetype = incoming.filetype;
|
|
2084
2084
|
if (!(existing_filetype === incoming_filetype)) {
|
|
@@ -2114,7 +2114,7 @@ function equals$d(existing, incoming) {
|
|
|
2114
2114
|
if (!(existing_contentDocument === incoming_contentDocument
|
|
2115
2115
|
|| (existing_contentDocument != null &&
|
|
2116
2116
|
incoming_contentDocument != null &&
|
|
2117
|
-
equals$
|
|
2117
|
+
equals$f(existing_contentDocument, incoming_contentDocument)))) {
|
|
2118
2118
|
return false;
|
|
2119
2119
|
}
|
|
2120
2120
|
const existing_size = existing.size;
|
|
@@ -2139,30 +2139,30 @@ function equals$d(existing, incoming) {
|
|
|
2139
2139
|
}
|
|
2140
2140
|
return true;
|
|
2141
2141
|
}
|
|
2142
|
-
const ingest$
|
|
2142
|
+
const ingest$e = function SlackBridgeFileOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2143
2143
|
if (process.env.NODE_ENV !== 'production') {
|
|
2144
|
-
const validateError = validate$
|
|
2144
|
+
const validateError = validate$e(input);
|
|
2145
2145
|
if (validateError !== null) {
|
|
2146
2146
|
throw validateError;
|
|
2147
2147
|
}
|
|
2148
2148
|
}
|
|
2149
|
-
const key = keyBuilderFromType$
|
|
2149
|
+
const key = keyBuilderFromType$7(luvio, input);
|
|
2150
2150
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2151
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2151
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SlackBridge", VERSION$e, RepresentationType$e, equals$e);
|
|
2152
2152
|
return createLink(key);
|
|
2153
2153
|
};
|
|
2154
|
-
function getTypeCacheKeys$
|
|
2154
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
2155
2155
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2156
|
-
const rootKey = keyBuilderFromType$
|
|
2156
|
+
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
2157
2157
|
rootKeySet.set(rootKey, {
|
|
2158
2158
|
namespace: keyPrefix,
|
|
2159
|
-
representationName: RepresentationType$
|
|
2159
|
+
representationName: RepresentationType$e,
|
|
2160
2160
|
mergeable: false
|
|
2161
2161
|
});
|
|
2162
2162
|
}
|
|
2163
2163
|
|
|
2164
|
-
const VERSION$
|
|
2165
|
-
function validate$
|
|
2164
|
+
const VERSION$d = "a8502e4e4bb65313c6fbaa1f89f1e539";
|
|
2165
|
+
function validate$d(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
2166
2166
|
const v_error = (() => {
|
|
2167
2167
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2168
2168
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2348,7 +2348,7 @@ function validate$c(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
2348
2348
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
2349
2349
|
const obj_reactions_item = obj_reactions[i];
|
|
2350
2350
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
2351
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
2351
|
+
const referencepath_reactions_itemValidationError = validate$i(obj_reactions_item, path_reactions_item);
|
|
2352
2352
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
2353
2353
|
let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
2354
2354
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2510,14 +2510,14 @@ function validate$c(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
2510
2510
|
})();
|
|
2511
2511
|
return v_error === undefined ? null : v_error;
|
|
2512
2512
|
}
|
|
2513
|
-
const RepresentationType$
|
|
2514
|
-
function normalize$
|
|
2513
|
+
const RepresentationType$d = 'SlackBridgeMessageOutputRepresentation';
|
|
2514
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
2515
2515
|
const input_files = input.files;
|
|
2516
2516
|
const input_files_id = path.fullPath + '__files';
|
|
2517
2517
|
for (let i = 0; i < input_files.length; i++) {
|
|
2518
2518
|
const input_files_item = input_files[i];
|
|
2519
2519
|
let input_files_item_id = input_files_id + '__' + i;
|
|
2520
|
-
input_files[i] = ingest$
|
|
2520
|
+
input_files[i] = ingest$e(input_files_item, {
|
|
2521
2521
|
fullPath: input_files_item_id,
|
|
2522
2522
|
propertyName: i,
|
|
2523
2523
|
parent: {
|
|
@@ -2530,11 +2530,11 @@ function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
|
2530
2530
|
}
|
|
2531
2531
|
return input;
|
|
2532
2532
|
}
|
|
2533
|
-
const select$
|
|
2534
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
2533
|
+
const select$u = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
2534
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$z();
|
|
2535
2535
|
return {
|
|
2536
2536
|
kind: 'Fragment',
|
|
2537
|
-
version: VERSION$
|
|
2537
|
+
version: VERSION$d,
|
|
2538
2538
|
private: [],
|
|
2539
2539
|
selections: [
|
|
2540
2540
|
{
|
|
@@ -2551,7 +2551,7 @@ const select$s = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
2551
2551
|
name: 'files',
|
|
2552
2552
|
kind: 'Link',
|
|
2553
2553
|
plural: true,
|
|
2554
|
-
fragment: select$
|
|
2554
|
+
fragment: select$v()
|
|
2555
2555
|
},
|
|
2556
2556
|
{
|
|
2557
2557
|
name: 'includesCustomEmoji',
|
|
@@ -2623,7 +2623,7 @@ const select$s = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
2623
2623
|
]
|
|
2624
2624
|
};
|
|
2625
2625
|
};
|
|
2626
|
-
function equals$
|
|
2626
|
+
function equals$d(existing, incoming) {
|
|
2627
2627
|
const existing_isEditable = existing.isEditable;
|
|
2628
2628
|
const incoming_isEditable = incoming.isEditable;
|
|
2629
2629
|
if (!(existing_isEditable === incoming_isEditable)) {
|
|
@@ -2712,7 +2712,7 @@ function equals$c(existing, incoming) {
|
|
|
2712
2712
|
const existing_reactions = existing.reactions;
|
|
2713
2713
|
const incoming_reactions = incoming.reactions;
|
|
2714
2714
|
const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
|
|
2715
|
-
if (!(equals$
|
|
2715
|
+
if (!(equals$i(existing_reactions_item, incoming_reactions_item))) {
|
|
2716
2716
|
return false;
|
|
2717
2717
|
}
|
|
2718
2718
|
});
|
|
@@ -2756,34 +2756,34 @@ function equals$c(existing, incoming) {
|
|
|
2756
2756
|
}
|
|
2757
2757
|
return true;
|
|
2758
2758
|
}
|
|
2759
|
-
const ingest$
|
|
2759
|
+
const ingest$d = function SlackBridgeMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2760
2760
|
if (process.env.NODE_ENV !== 'production') {
|
|
2761
|
-
const validateError = validate$
|
|
2761
|
+
const validateError = validate$d(input);
|
|
2762
2762
|
if (validateError !== null) {
|
|
2763
2763
|
throw validateError;
|
|
2764
2764
|
}
|
|
2765
2765
|
}
|
|
2766
2766
|
const key = path.fullPath;
|
|
2767
2767
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2768
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2768
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SlackBridge", VERSION$d, RepresentationType$d, equals$d);
|
|
2769
2769
|
return createLink(key);
|
|
2770
2770
|
};
|
|
2771
|
-
function getTypeCacheKeys$
|
|
2771
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
2772
2772
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2773
2773
|
const rootKey = fullPathFactory();
|
|
2774
2774
|
rootKeySet.set(rootKey, {
|
|
2775
2775
|
namespace: keyPrefix,
|
|
2776
|
-
representationName: RepresentationType$
|
|
2776
|
+
representationName: RepresentationType$d,
|
|
2777
2777
|
mergeable: false
|
|
2778
2778
|
});
|
|
2779
2779
|
const input_files_length = input.files.length;
|
|
2780
2780
|
for (let i = 0; i < input_files_length; i++) {
|
|
2781
|
-
getTypeCacheKeys$
|
|
2781
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.files[i]);
|
|
2782
2782
|
}
|
|
2783
2783
|
}
|
|
2784
2784
|
|
|
2785
|
-
const VERSION$
|
|
2786
|
-
function validate$
|
|
2785
|
+
const VERSION$c = "5145ac2c241c561e4baa29b3884748dc";
|
|
2786
|
+
function validate$c(obj, path = 'SlackBridgeConversationHistoryOutputRepresentation') {
|
|
2787
2787
|
const v_error = (() => {
|
|
2788
2788
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2789
2789
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2834,14 +2834,14 @@ function validate$b(obj, path = 'SlackBridgeConversationHistoryOutputRepresentat
|
|
|
2834
2834
|
})();
|
|
2835
2835
|
return v_error === undefined ? null : v_error;
|
|
2836
2836
|
}
|
|
2837
|
-
const RepresentationType$
|
|
2838
|
-
function normalize$
|
|
2837
|
+
const RepresentationType$c = 'SlackBridgeConversationHistoryOutputRepresentation';
|
|
2838
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
2839
2839
|
const input_messages = input.messages;
|
|
2840
2840
|
const input_messages_id = path.fullPath + '__messages';
|
|
2841
2841
|
for (let i = 0; i < input_messages.length; i++) {
|
|
2842
2842
|
const input_messages_item = input_messages[i];
|
|
2843
2843
|
let input_messages_item_id = input_messages_id + '__' + i;
|
|
2844
|
-
input_messages[i] = ingest$
|
|
2844
|
+
input_messages[i] = ingest$d(input_messages_item, {
|
|
2845
2845
|
fullPath: input_messages_item_id,
|
|
2846
2846
|
propertyName: i,
|
|
2847
2847
|
parent: {
|
|
@@ -2854,10 +2854,10 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
2854
2854
|
}
|
|
2855
2855
|
return input;
|
|
2856
2856
|
}
|
|
2857
|
-
const select$
|
|
2857
|
+
const select$t = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
|
|
2858
2858
|
return {
|
|
2859
2859
|
kind: 'Fragment',
|
|
2860
|
-
version: VERSION$
|
|
2860
|
+
version: VERSION$c,
|
|
2861
2861
|
private: [],
|
|
2862
2862
|
selections: [
|
|
2863
2863
|
{
|
|
@@ -2868,7 +2868,7 @@ const select$r = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
2868
2868
|
name: 'messages',
|
|
2869
2869
|
kind: 'Link',
|
|
2870
2870
|
plural: true,
|
|
2871
|
-
fragment: select$
|
|
2871
|
+
fragment: select$u()
|
|
2872
2872
|
},
|
|
2873
2873
|
{
|
|
2874
2874
|
name: 'nextCursor',
|
|
@@ -2877,7 +2877,7 @@ const select$r = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
2877
2877
|
]
|
|
2878
2878
|
};
|
|
2879
2879
|
};
|
|
2880
|
-
function equals$
|
|
2880
|
+
function equals$c(existing, incoming) {
|
|
2881
2881
|
const existing_hasMore = existing.hasMore;
|
|
2882
2882
|
const incoming_hasMore = incoming.hasMore;
|
|
2883
2883
|
if (!(existing_hasMore === incoming_hasMore)) {
|
|
@@ -2900,34 +2900,34 @@ function equals$b(existing, incoming) {
|
|
|
2900
2900
|
}
|
|
2901
2901
|
return true;
|
|
2902
2902
|
}
|
|
2903
|
-
const ingest$
|
|
2903
|
+
const ingest$c = function SlackBridgeConversationHistoryOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2904
2904
|
if (process.env.NODE_ENV !== 'production') {
|
|
2905
|
-
const validateError = validate$
|
|
2905
|
+
const validateError = validate$c(input);
|
|
2906
2906
|
if (validateError !== null) {
|
|
2907
2907
|
throw validateError;
|
|
2908
2908
|
}
|
|
2909
2909
|
}
|
|
2910
2910
|
const key = path.fullPath;
|
|
2911
2911
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2912
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2912
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SlackBridge", VERSION$c, RepresentationType$c, equals$c);
|
|
2913
2913
|
return createLink(key);
|
|
2914
2914
|
};
|
|
2915
|
-
function getTypeCacheKeys$
|
|
2915
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
2916
2916
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2917
2917
|
const rootKey = fullPathFactory();
|
|
2918
2918
|
rootKeySet.set(rootKey, {
|
|
2919
2919
|
namespace: keyPrefix,
|
|
2920
|
-
representationName: RepresentationType$
|
|
2920
|
+
representationName: RepresentationType$c,
|
|
2921
2921
|
mergeable: false
|
|
2922
2922
|
});
|
|
2923
2923
|
const input_messages_length = input.messages.length;
|
|
2924
2924
|
for (let i = 0; i < input_messages_length; i++) {
|
|
2925
|
-
getTypeCacheKeys$
|
|
2925
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.messages[i], () => '');
|
|
2926
2926
|
}
|
|
2927
2927
|
}
|
|
2928
2928
|
|
|
2929
|
-
const VERSION$
|
|
2930
|
-
function validate$
|
|
2929
|
+
const VERSION$b = "7ec6cbca3e2948ff5ef00e4034f365d5";
|
|
2930
|
+
function validate$b(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
2931
2931
|
const v_error = (() => {
|
|
2932
2932
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2933
2933
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3071,12 +3071,12 @@ function validate$a(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
|
3071
3071
|
})();
|
|
3072
3072
|
return v_error === undefined ? null : v_error;
|
|
3073
3073
|
}
|
|
3074
|
-
const RepresentationType$
|
|
3075
|
-
function normalize$
|
|
3074
|
+
const RepresentationType$b = 'SlackBridgeConversationOutputRepresentation';
|
|
3075
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
3076
3076
|
const input_contextUserInfo = input.contextUserInfo;
|
|
3077
3077
|
const input_contextUserInfo_id = path.fullPath + '__contextUserInfo';
|
|
3078
3078
|
if (input_contextUserInfo !== null && typeof input_contextUserInfo === 'object') {
|
|
3079
|
-
input.contextUserInfo = ingest$
|
|
3079
|
+
input.contextUserInfo = ingest$g(input_contextUserInfo, {
|
|
3080
3080
|
fullPath: input_contextUserInfo_id,
|
|
3081
3081
|
propertyName: 'contextUserInfo',
|
|
3082
3082
|
parent: {
|
|
@@ -3090,7 +3090,7 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
3090
3090
|
const input_conversationInfo = input.conversationInfo;
|
|
3091
3091
|
const input_conversationInfo_id = path.fullPath + '__conversationInfo';
|
|
3092
3092
|
if (input_conversationInfo !== null && typeof input_conversationInfo === 'object') {
|
|
3093
|
-
input.conversationInfo = ingest$
|
|
3093
|
+
input.conversationInfo = ingest$f(input_conversationInfo, {
|
|
3094
3094
|
fullPath: input_conversationInfo_id,
|
|
3095
3095
|
propertyName: 'conversationInfo',
|
|
3096
3096
|
parent: {
|
|
@@ -3103,7 +3103,7 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
3103
3103
|
}
|
|
3104
3104
|
const input_history = input.history;
|
|
3105
3105
|
const input_history_id = path.fullPath + '__history';
|
|
3106
|
-
input.history = ingest$
|
|
3106
|
+
input.history = ingest$c(input_history, {
|
|
3107
3107
|
fullPath: input_history_id,
|
|
3108
3108
|
propertyName: 'history',
|
|
3109
3109
|
parent: {
|
|
@@ -3118,7 +3118,7 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
3118
3118
|
for (let i = 0; i < input_userInfos.length; i++) {
|
|
3119
3119
|
const input_userInfos_item = input_userInfos[i];
|
|
3120
3120
|
let input_userInfos_item_id = input_userInfos_id + '__' + i;
|
|
3121
|
-
input_userInfos[i] = ingest$
|
|
3121
|
+
input_userInfos[i] = ingest$g(input_userInfos_item, {
|
|
3122
3122
|
fullPath: input_userInfos_item_id,
|
|
3123
3123
|
propertyName: i,
|
|
3124
3124
|
parent: {
|
|
@@ -3131,10 +3131,10 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
3131
3131
|
}
|
|
3132
3132
|
return input;
|
|
3133
3133
|
}
|
|
3134
|
-
const select$
|
|
3134
|
+
const select$s = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
3135
3135
|
return {
|
|
3136
3136
|
kind: 'Fragment',
|
|
3137
|
-
version: VERSION$
|
|
3137
|
+
version: VERSION$b,
|
|
3138
3138
|
private: [],
|
|
3139
3139
|
selections: [
|
|
3140
3140
|
{
|
|
@@ -3149,18 +3149,18 @@ const select$q = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3149
3149
|
name: 'contextUserInfo',
|
|
3150
3150
|
kind: 'Link',
|
|
3151
3151
|
nullable: true,
|
|
3152
|
-
fragment: select$
|
|
3152
|
+
fragment: select$B()
|
|
3153
3153
|
},
|
|
3154
3154
|
{
|
|
3155
3155
|
name: 'conversationInfo',
|
|
3156
3156
|
kind: 'Link',
|
|
3157
3157
|
nullable: true,
|
|
3158
|
-
fragment: select$
|
|
3158
|
+
fragment: select$A()
|
|
3159
3159
|
},
|
|
3160
3160
|
{
|
|
3161
3161
|
name: 'history',
|
|
3162
3162
|
kind: 'Link',
|
|
3163
|
-
fragment: select$
|
|
3163
|
+
fragment: select$t()
|
|
3164
3164
|
},
|
|
3165
3165
|
{
|
|
3166
3166
|
name: 'teamId',
|
|
@@ -3174,7 +3174,7 @@ const select$q = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3174
3174
|
name: 'userInfos',
|
|
3175
3175
|
kind: 'Link',
|
|
3176
3176
|
plural: true,
|
|
3177
|
-
fragment: select$
|
|
3177
|
+
fragment: select$B()
|
|
3178
3178
|
},
|
|
3179
3179
|
{
|
|
3180
3180
|
name: 'websocketUrl',
|
|
@@ -3183,7 +3183,7 @@ const select$q = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3183
3183
|
]
|
|
3184
3184
|
};
|
|
3185
3185
|
};
|
|
3186
|
-
function equals$
|
|
3186
|
+
function equals$b(existing, incoming) {
|
|
3187
3187
|
const existing_channelId = existing.channelId;
|
|
3188
3188
|
const incoming_channelId = incoming.channelId;
|
|
3189
3189
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -3246,55 +3246,55 @@ function equals$a(existing, incoming) {
|
|
|
3246
3246
|
}
|
|
3247
3247
|
return true;
|
|
3248
3248
|
}
|
|
3249
|
-
const ingest$
|
|
3249
|
+
const ingest$b = function SlackBridgeConversationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3250
3250
|
if (process.env.NODE_ENV !== 'production') {
|
|
3251
|
-
const validateError = validate$
|
|
3251
|
+
const validateError = validate$b(input);
|
|
3252
3252
|
if (validateError !== null) {
|
|
3253
3253
|
throw validateError;
|
|
3254
3254
|
}
|
|
3255
3255
|
}
|
|
3256
3256
|
const key = path.fullPath;
|
|
3257
3257
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3258
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3258
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SlackBridge", VERSION$b, RepresentationType$b, equals$b);
|
|
3259
3259
|
return createLink(key);
|
|
3260
3260
|
};
|
|
3261
|
-
function getTypeCacheKeys$
|
|
3261
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
3262
3262
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3263
3263
|
const rootKey = fullPathFactory();
|
|
3264
3264
|
rootKeySet.set(rootKey, {
|
|
3265
3265
|
namespace: keyPrefix,
|
|
3266
|
-
representationName: RepresentationType$
|
|
3266
|
+
representationName: RepresentationType$b,
|
|
3267
3267
|
mergeable: false
|
|
3268
3268
|
});
|
|
3269
3269
|
if (input.contextUserInfo !== null && typeof input.contextUserInfo === 'object') {
|
|
3270
|
-
getTypeCacheKeys$
|
|
3270
|
+
getTypeCacheKeys$g(rootKeySet, luvio, input.contextUserInfo);
|
|
3271
3271
|
}
|
|
3272
3272
|
if (input.conversationInfo !== null && typeof input.conversationInfo === 'object') {
|
|
3273
|
-
getTypeCacheKeys$
|
|
3273
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfo);
|
|
3274
3274
|
}
|
|
3275
|
-
getTypeCacheKeys$
|
|
3275
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.history, () => rootKey + "__" + "history");
|
|
3276
3276
|
const input_userInfos_length = input.userInfos.length;
|
|
3277
3277
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
3278
|
-
getTypeCacheKeys$
|
|
3278
|
+
getTypeCacheKeys$g(rootKeySet, luvio, input.userInfos[i]);
|
|
3279
3279
|
}
|
|
3280
3280
|
}
|
|
3281
3281
|
|
|
3282
|
-
function select$
|
|
3283
|
-
return select$
|
|
3282
|
+
function select$r(luvio, params) {
|
|
3283
|
+
return select$s();
|
|
3284
3284
|
}
|
|
3285
|
-
function keyBuilder$
|
|
3285
|
+
function keyBuilder$t(luvio, params) {
|
|
3286
3286
|
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 + ')';
|
|
3287
3287
|
}
|
|
3288
|
-
function getResponseCacheKeys$
|
|
3289
|
-
getTypeCacheKeys$
|
|
3288
|
+
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
3289
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$t(luvio, resourceParams));
|
|
3290
3290
|
}
|
|
3291
|
-
function ingestSuccess$
|
|
3291
|
+
function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
3292
3292
|
const { body } = response;
|
|
3293
|
-
const key = keyBuilder$
|
|
3294
|
-
luvio.storeIngest(key, ingest$
|
|
3293
|
+
const key = keyBuilder$t(luvio, resourceParams);
|
|
3294
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
3295
3295
|
const snapshot = luvio.storeLookup({
|
|
3296
3296
|
recordId: key,
|
|
3297
|
-
node: select$
|
|
3297
|
+
node: select$r(),
|
|
3298
3298
|
variables: {},
|
|
3299
3299
|
}, snapshotRefresh);
|
|
3300
3300
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3306,12 +3306,12 @@ function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3306
3306
|
return snapshot;
|
|
3307
3307
|
}
|
|
3308
3308
|
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
3309
|
-
const key = keyBuilder$
|
|
3309
|
+
const key = keyBuilder$t(luvio, params);
|
|
3310
3310
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3311
3311
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3312
3312
|
return errorSnapshot;
|
|
3313
3313
|
}
|
|
3314
|
-
function createResourceRequest$
|
|
3314
|
+
function createResourceRequest$j(config) {
|
|
3315
3315
|
const headers = {};
|
|
3316
3316
|
return {
|
|
3317
3317
|
baseUri: '/services/data/v63.0',
|
|
@@ -3325,7 +3325,7 @@ function createResourceRequest$i(config) {
|
|
|
3325
3325
|
};
|
|
3326
3326
|
}
|
|
3327
3327
|
|
|
3328
|
-
const adapterName$
|
|
3328
|
+
const adapterName$j = 'getSlackConversation';
|
|
3329
3329
|
const getSlackConversation_ConfigPropertyMetadata = [
|
|
3330
3330
|
generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3331
3331
|
generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -3337,56 +3337,56 @@ const getSlackConversation_ConfigPropertyMetadata = [
|
|
|
3337
3337
|
generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3338
3338
|
generateParamConfigMetadata('teamId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3339
3339
|
];
|
|
3340
|
-
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3341
|
-
const createResourceParams$
|
|
3342
|
-
function keyBuilder$
|
|
3343
|
-
const resourceParams = createResourceParams$
|
|
3344
|
-
return keyBuilder$
|
|
3340
|
+
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, getSlackConversation_ConfigPropertyMetadata);
|
|
3341
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$k(getSlackConversation_ConfigPropertyMetadata);
|
|
3342
|
+
function keyBuilder$s(luvio, config) {
|
|
3343
|
+
const resourceParams = createResourceParams$j(config);
|
|
3344
|
+
return keyBuilder$t(luvio, resourceParams);
|
|
3345
3345
|
}
|
|
3346
|
-
function typeCheckConfig$
|
|
3346
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
3347
3347
|
const config = {};
|
|
3348
|
-
typeCheckConfig$
|
|
3348
|
+
typeCheckConfig$k(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
|
|
3349
3349
|
return config;
|
|
3350
3350
|
}
|
|
3351
|
-
function validateAdapterConfig$
|
|
3351
|
+
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
3352
3352
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3353
3353
|
return null;
|
|
3354
3354
|
}
|
|
3355
3355
|
if (process.env.NODE_ENV !== 'production') {
|
|
3356
3356
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3357
3357
|
}
|
|
3358
|
-
const config = typeCheckConfig$
|
|
3358
|
+
const config = typeCheckConfig$j(untrustedConfig);
|
|
3359
3359
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3360
3360
|
return null;
|
|
3361
3361
|
}
|
|
3362
3362
|
return config;
|
|
3363
3363
|
}
|
|
3364
3364
|
function adapterFragment$9(luvio, config) {
|
|
3365
|
-
createResourceParams$
|
|
3366
|
-
return select$
|
|
3365
|
+
createResourceParams$j(config);
|
|
3366
|
+
return select$r();
|
|
3367
3367
|
}
|
|
3368
3368
|
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
3369
|
-
const snapshot = ingestSuccess$
|
|
3369
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
3370
3370
|
config,
|
|
3371
|
-
resolve: () => buildNetworkSnapshot$
|
|
3371
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
3372
3372
|
});
|
|
3373
3373
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3374
3374
|
}
|
|
3375
3375
|
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
3376
3376
|
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
3377
3377
|
config,
|
|
3378
|
-
resolve: () => buildNetworkSnapshot$
|
|
3378
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
3379
3379
|
});
|
|
3380
3380
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3381
3381
|
}
|
|
3382
|
-
function buildNetworkSnapshot$
|
|
3383
|
-
const resourceParams = createResourceParams$
|
|
3384
|
-
const request = createResourceRequest$
|
|
3382
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
3383
|
+
const resourceParams = createResourceParams$j(config);
|
|
3384
|
+
const request = createResourceRequest$j(resourceParams);
|
|
3385
3385
|
return luvio.dispatchResourceRequest(request, options)
|
|
3386
3386
|
.then((response) => {
|
|
3387
3387
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
3388
3388
|
const cache = new StoreKeyMap();
|
|
3389
|
-
getResponseCacheKeys$
|
|
3389
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
3390
3390
|
return cache;
|
|
3391
3391
|
});
|
|
3392
3392
|
}, (response) => {
|
|
@@ -3394,23 +3394,23 @@ function buildNetworkSnapshot$i(luvio, config, options) {
|
|
|
3394
3394
|
});
|
|
3395
3395
|
}
|
|
3396
3396
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
3397
|
-
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
3397
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$j, undefined, false);
|
|
3398
3398
|
}
|
|
3399
3399
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
3400
3400
|
const { luvio, config } = context;
|
|
3401
3401
|
const selector = {
|
|
3402
|
-
recordId: keyBuilder$
|
|
3402
|
+
recordId: keyBuilder$s(luvio, config),
|
|
3403
3403
|
node: adapterFragment$9(luvio, config),
|
|
3404
3404
|
variables: {},
|
|
3405
3405
|
};
|
|
3406
3406
|
const cacheSnapshot = storeLookup(selector, {
|
|
3407
3407
|
config,
|
|
3408
|
-
resolve: () => buildNetworkSnapshot$
|
|
3408
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
3409
3409
|
});
|
|
3410
3410
|
return cacheSnapshot;
|
|
3411
3411
|
}
|
|
3412
3412
|
const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
|
|
3413
|
-
const config = validateAdapterConfig$
|
|
3413
|
+
const config = validateAdapterConfig$j(untrustedConfig, getSlackConversation_ConfigPropertyNames);
|
|
3414
3414
|
// Invalid or incomplete config
|
|
3415
3415
|
if (config === null) {
|
|
3416
3416
|
return null;
|
|
@@ -3419,8 +3419,8 @@ const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getS
|
|
|
3419
3419
|
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
3420
3420
|
};
|
|
3421
3421
|
|
|
3422
|
-
const VERSION$
|
|
3423
|
-
function validate$
|
|
3422
|
+
const VERSION$a = "769b5b0ed94219341e9be74c08e63aed";
|
|
3423
|
+
function validate$a(obj, path = 'SlackBridgePostMessageOutputRepresentation') {
|
|
3424
3424
|
const v_error = (() => {
|
|
3425
3425
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3426
3426
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3443,20 +3443,20 @@ function validate$9(obj, path = 'SlackBridgePostMessageOutputRepresentation') {
|
|
|
3443
3443
|
})();
|
|
3444
3444
|
return v_error === undefined ? null : v_error;
|
|
3445
3445
|
}
|
|
3446
|
-
const RepresentationType$
|
|
3447
|
-
function keyBuilder$
|
|
3448
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3446
|
+
const RepresentationType$a = 'SlackBridgePostMessageOutputRepresentation';
|
|
3447
|
+
function keyBuilder$r(luvio, config) {
|
|
3448
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.channelId;
|
|
3449
3449
|
}
|
|
3450
|
-
function keyBuilderFromType$
|
|
3450
|
+
function keyBuilderFromType$6(luvio, object) {
|
|
3451
3451
|
const keyParams = {
|
|
3452
3452
|
channelId: object.channelId
|
|
3453
3453
|
};
|
|
3454
|
-
return keyBuilder$
|
|
3454
|
+
return keyBuilder$r(luvio, keyParams);
|
|
3455
3455
|
}
|
|
3456
|
-
function normalize$
|
|
3456
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
3457
3457
|
const input_postedMessage = input.postedMessage;
|
|
3458
3458
|
const input_postedMessage_id = path.fullPath + '__postedMessage';
|
|
3459
|
-
input.postedMessage = ingest$
|
|
3459
|
+
input.postedMessage = ingest$d(input_postedMessage, {
|
|
3460
3460
|
fullPath: input_postedMessage_id,
|
|
3461
3461
|
propertyName: 'postedMessage',
|
|
3462
3462
|
parent: {
|
|
@@ -3468,10 +3468,10 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
3468
3468
|
}, luvio, store, timestamp);
|
|
3469
3469
|
return input;
|
|
3470
3470
|
}
|
|
3471
|
-
const select$
|
|
3471
|
+
const select$q = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
3472
3472
|
return {
|
|
3473
3473
|
kind: 'Fragment',
|
|
3474
|
-
version: VERSION$
|
|
3474
|
+
version: VERSION$a,
|
|
3475
3475
|
private: [],
|
|
3476
3476
|
selections: [
|
|
3477
3477
|
{
|
|
@@ -3481,7 +3481,7 @@ const select$o = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
|
3481
3481
|
{
|
|
3482
3482
|
name: 'postedMessage',
|
|
3483
3483
|
kind: 'Link',
|
|
3484
|
-
fragment: select$
|
|
3484
|
+
fragment: select$u()
|
|
3485
3485
|
},
|
|
3486
3486
|
{
|
|
3487
3487
|
name: 'timestamp',
|
|
@@ -3490,7 +3490,7 @@ const select$o = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
|
3490
3490
|
]
|
|
3491
3491
|
};
|
|
3492
3492
|
};
|
|
3493
|
-
function equals$
|
|
3493
|
+
function equals$a(existing, incoming) {
|
|
3494
3494
|
const existing_channelId = existing.channelId;
|
|
3495
3495
|
const incoming_channelId = incoming.channelId;
|
|
3496
3496
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -3508,42 +3508,42 @@ function equals$9(existing, incoming) {
|
|
|
3508
3508
|
}
|
|
3509
3509
|
return true;
|
|
3510
3510
|
}
|
|
3511
|
-
const ingest$
|
|
3511
|
+
const ingest$a = function SlackBridgePostMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3512
3512
|
if (process.env.NODE_ENV !== 'production') {
|
|
3513
|
-
const validateError = validate$
|
|
3513
|
+
const validateError = validate$a(input);
|
|
3514
3514
|
if (validateError !== null) {
|
|
3515
3515
|
throw validateError;
|
|
3516
3516
|
}
|
|
3517
3517
|
}
|
|
3518
|
-
const key = keyBuilderFromType$
|
|
3518
|
+
const key = keyBuilderFromType$6(luvio, input);
|
|
3519
3519
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3520
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3520
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SlackBridge", VERSION$a, RepresentationType$a, equals$a);
|
|
3521
3521
|
return createLink(key);
|
|
3522
3522
|
};
|
|
3523
|
-
function getTypeCacheKeys$
|
|
3523
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
3524
3524
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3525
|
-
const rootKey = keyBuilderFromType$
|
|
3525
|
+
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
3526
3526
|
rootKeySet.set(rootKey, {
|
|
3527
3527
|
namespace: keyPrefix,
|
|
3528
|
-
representationName: RepresentationType$
|
|
3528
|
+
representationName: RepresentationType$a,
|
|
3529
3529
|
mergeable: false
|
|
3530
3530
|
});
|
|
3531
|
-
getTypeCacheKeys$
|
|
3531
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.postedMessage, () => rootKey + "__" + "postedMessage");
|
|
3532
3532
|
}
|
|
3533
3533
|
|
|
3534
|
-
function select$
|
|
3535
|
-
return select$
|
|
3534
|
+
function select$p(luvio, params) {
|
|
3535
|
+
return select$q();
|
|
3536
3536
|
}
|
|
3537
|
-
function getResponseCacheKeys$
|
|
3538
|
-
getTypeCacheKeys$
|
|
3537
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
3538
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
3539
3539
|
}
|
|
3540
|
-
function ingestSuccess$
|
|
3540
|
+
function ingestSuccess$f(luvio, resourceParams, response) {
|
|
3541
3541
|
const { body } = response;
|
|
3542
|
-
const key = keyBuilderFromType$
|
|
3543
|
-
luvio.storeIngest(key, ingest$
|
|
3542
|
+
const key = keyBuilderFromType$6(luvio, body);
|
|
3543
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
3544
3544
|
const snapshot = luvio.storeLookup({
|
|
3545
3545
|
recordId: key,
|
|
3546
|
-
node: select$
|
|
3546
|
+
node: select$p(),
|
|
3547
3547
|
variables: {},
|
|
3548
3548
|
});
|
|
3549
3549
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3554,7 +3554,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
|
|
|
3554
3554
|
deepFreeze(snapshot.data);
|
|
3555
3555
|
return snapshot;
|
|
3556
3556
|
}
|
|
3557
|
-
function createResourceRequest$
|
|
3557
|
+
function createResourceRequest$i(config) {
|
|
3558
3558
|
const headers = {};
|
|
3559
3559
|
return {
|
|
3560
3560
|
baseUri: '/services/data/v63.0',
|
|
@@ -3568,7 +3568,7 @@ function createResourceRequest$h(config) {
|
|
|
3568
3568
|
};
|
|
3569
3569
|
}
|
|
3570
3570
|
|
|
3571
|
-
const adapterName$
|
|
3571
|
+
const adapterName$i = 'postSlackConversation';
|
|
3572
3572
|
const postSlackConversation_ConfigPropertyMetadata = [
|
|
3573
3573
|
generateParamConfigMetadata('channelId', true, 2 /* Body */, 0 /* String */),
|
|
3574
3574
|
generateParamConfigMetadata('linkNames', false, 2 /* Body */, 1 /* Boolean */),
|
|
@@ -3577,37 +3577,37 @@ const postSlackConversation_ConfigPropertyMetadata = [
|
|
|
3577
3577
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
3578
3578
|
generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
|
|
3579
3579
|
];
|
|
3580
|
-
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3581
|
-
const createResourceParams$
|
|
3582
|
-
function typeCheckConfig$
|
|
3580
|
+
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, postSlackConversation_ConfigPropertyMetadata);
|
|
3581
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$k(postSlackConversation_ConfigPropertyMetadata);
|
|
3582
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
3583
3583
|
const config = {};
|
|
3584
|
-
typeCheckConfig$
|
|
3584
|
+
typeCheckConfig$k(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
|
|
3585
3585
|
return config;
|
|
3586
3586
|
}
|
|
3587
|
-
function validateAdapterConfig$
|
|
3587
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
3588
3588
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3589
3589
|
return null;
|
|
3590
3590
|
}
|
|
3591
3591
|
if (process.env.NODE_ENV !== 'production') {
|
|
3592
3592
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3593
3593
|
}
|
|
3594
|
-
const config = typeCheckConfig$
|
|
3594
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
3595
3595
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3596
3596
|
return null;
|
|
3597
3597
|
}
|
|
3598
3598
|
return config;
|
|
3599
3599
|
}
|
|
3600
|
-
function buildNetworkSnapshot$
|
|
3601
|
-
const resourceParams = createResourceParams$
|
|
3602
|
-
const request = createResourceRequest$
|
|
3600
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
3601
|
+
const resourceParams = createResourceParams$i(config);
|
|
3602
|
+
const request = createResourceRequest$i(resourceParams);
|
|
3603
3603
|
return luvio.dispatchResourceRequest(request, options)
|
|
3604
3604
|
.then((response) => {
|
|
3605
3605
|
return luvio.handleSuccessResponse(() => {
|
|
3606
|
-
const snapshot = ingestSuccess$
|
|
3606
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response);
|
|
3607
3607
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3608
3608
|
}, () => {
|
|
3609
3609
|
const cache = new StoreKeyMap();
|
|
3610
|
-
getResponseCacheKeys$
|
|
3610
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
3611
3611
|
return cache;
|
|
3612
3612
|
});
|
|
3613
3613
|
}, (response) => {
|
|
@@ -3617,28 +3617,28 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
3617
3617
|
}
|
|
3618
3618
|
const postSlackConversationAdapterFactory = (luvio) => {
|
|
3619
3619
|
return function postSlackConversation(untrustedConfig) {
|
|
3620
|
-
const config = validateAdapterConfig$
|
|
3620
|
+
const config = validateAdapterConfig$i(untrustedConfig, postSlackConversation_ConfigPropertyNames);
|
|
3621
3621
|
// Invalid or incomplete config
|
|
3622
3622
|
if (config === null) {
|
|
3623
3623
|
throw new Error('Invalid config for "postSlackConversation"');
|
|
3624
3624
|
}
|
|
3625
|
-
return buildNetworkSnapshot$
|
|
3625
|
+
return buildNetworkSnapshot$i(luvio, config);
|
|
3626
3626
|
};
|
|
3627
3627
|
};
|
|
3628
3628
|
|
|
3629
|
-
function select$
|
|
3630
|
-
return select$
|
|
3629
|
+
function select$o(luvio, params) {
|
|
3630
|
+
return select$v();
|
|
3631
3631
|
}
|
|
3632
|
-
function getResponseCacheKeys$
|
|
3633
|
-
getTypeCacheKeys$
|
|
3632
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
3633
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
3634
3634
|
}
|
|
3635
|
-
function ingestSuccess$
|
|
3635
|
+
function ingestSuccess$e(luvio, resourceParams, response) {
|
|
3636
3636
|
const { body } = response;
|
|
3637
|
-
const key = keyBuilderFromType$
|
|
3638
|
-
luvio.storeIngest(key, ingest$
|
|
3637
|
+
const key = keyBuilderFromType$7(luvio, body);
|
|
3638
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
3639
3639
|
const snapshot = luvio.storeLookup({
|
|
3640
3640
|
recordId: key,
|
|
3641
|
-
node: select$
|
|
3641
|
+
node: select$o(),
|
|
3642
3642
|
variables: {},
|
|
3643
3643
|
});
|
|
3644
3644
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3649,7 +3649,7 @@ function ingestSuccess$d(luvio, resourceParams, response) {
|
|
|
3649
3649
|
deepFreeze(snapshot.data);
|
|
3650
3650
|
return snapshot;
|
|
3651
3651
|
}
|
|
3652
|
-
function createResourceRequest$
|
|
3652
|
+
function createResourceRequest$h(config) {
|
|
3653
3653
|
const headers = {};
|
|
3654
3654
|
return {
|
|
3655
3655
|
baseUri: '/services/data/v63.0',
|
|
@@ -3663,7 +3663,7 @@ function createResourceRequest$g(config) {
|
|
|
3663
3663
|
};
|
|
3664
3664
|
}
|
|
3665
3665
|
|
|
3666
|
-
const adapterName$
|
|
3666
|
+
const adapterName$h = 'postSlackFile';
|
|
3667
3667
|
const postSlackFile_ConfigPropertyMetadata = [
|
|
3668
3668
|
generateParamConfigMetadata('base64EncodedFileData', true, 2 /* Body */, 0 /* String */),
|
|
3669
3669
|
generateParamConfigMetadata('channels', true, 2 /* Body */, 0 /* String */, true),
|
|
@@ -3674,37 +3674,37 @@ const postSlackFile_ConfigPropertyMetadata = [
|
|
|
3674
3674
|
generateParamConfigMetadata('threadTs', true, 2 /* Body */, 0 /* String */),
|
|
3675
3675
|
generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
|
|
3676
3676
|
];
|
|
3677
|
-
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3678
|
-
const createResourceParams$
|
|
3679
|
-
function typeCheckConfig$
|
|
3677
|
+
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, postSlackFile_ConfigPropertyMetadata);
|
|
3678
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$k(postSlackFile_ConfigPropertyMetadata);
|
|
3679
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
3680
3680
|
const config = {};
|
|
3681
|
-
typeCheckConfig$
|
|
3681
|
+
typeCheckConfig$k(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
|
|
3682
3682
|
return config;
|
|
3683
3683
|
}
|
|
3684
|
-
function validateAdapterConfig$
|
|
3684
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
3685
3685
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3686
3686
|
return null;
|
|
3687
3687
|
}
|
|
3688
3688
|
if (process.env.NODE_ENV !== 'production') {
|
|
3689
3689
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3690
3690
|
}
|
|
3691
|
-
const config = typeCheckConfig$
|
|
3691
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
3692
3692
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3693
3693
|
return null;
|
|
3694
3694
|
}
|
|
3695
3695
|
return config;
|
|
3696
3696
|
}
|
|
3697
|
-
function buildNetworkSnapshot$
|
|
3698
|
-
const resourceParams = createResourceParams$
|
|
3699
|
-
const request = createResourceRequest$
|
|
3697
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
3698
|
+
const resourceParams = createResourceParams$h(config);
|
|
3699
|
+
const request = createResourceRequest$h(resourceParams);
|
|
3700
3700
|
return luvio.dispatchResourceRequest(request, options)
|
|
3701
3701
|
.then((response) => {
|
|
3702
3702
|
return luvio.handleSuccessResponse(() => {
|
|
3703
|
-
const snapshot = ingestSuccess$
|
|
3703
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response);
|
|
3704
3704
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3705
3705
|
}, () => {
|
|
3706
3706
|
const cache = new StoreKeyMap();
|
|
3707
|
-
getResponseCacheKeys$
|
|
3707
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
3708
3708
|
return cache;
|
|
3709
3709
|
});
|
|
3710
3710
|
}, (response) => {
|
|
@@ -3714,17 +3714,17 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
3714
3714
|
}
|
|
3715
3715
|
const postSlackFileAdapterFactory = (luvio) => {
|
|
3716
3716
|
return function postSlackFile(untrustedConfig) {
|
|
3717
|
-
const config = validateAdapterConfig$
|
|
3717
|
+
const config = validateAdapterConfig$h(untrustedConfig, postSlackFile_ConfigPropertyNames);
|
|
3718
3718
|
// Invalid or incomplete config
|
|
3719
3719
|
if (config === null) {
|
|
3720
3720
|
throw new Error('Invalid config for "postSlackFile"');
|
|
3721
3721
|
}
|
|
3722
|
-
return buildNetworkSnapshot$
|
|
3722
|
+
return buildNetworkSnapshot$h(luvio, config);
|
|
3723
3723
|
};
|
|
3724
3724
|
};
|
|
3725
3725
|
|
|
3726
|
-
const VERSION$
|
|
3727
|
-
function validate$
|
|
3726
|
+
const VERSION$9 = "ed15e6ba6e9dd618e72c6eea210ee7a8";
|
|
3727
|
+
function validate$9(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentation') {
|
|
3728
3728
|
const v_error = (() => {
|
|
3729
3729
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3730
3730
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3747,20 +3747,20 @@ function validate$8(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentatio
|
|
|
3747
3747
|
})();
|
|
3748
3748
|
return v_error === undefined ? null : v_error;
|
|
3749
3749
|
}
|
|
3750
|
-
const RepresentationType$
|
|
3751
|
-
function keyBuilder$
|
|
3752
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3750
|
+
const RepresentationType$9 = 'SlackBridgeRecordChannelInfoOutputRepresentation';
|
|
3751
|
+
function keyBuilder$q(luvio, config) {
|
|
3752
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.relatedRecordId;
|
|
3753
3753
|
}
|
|
3754
|
-
function keyBuilderFromType$
|
|
3754
|
+
function keyBuilderFromType$5(luvio, object) {
|
|
3755
3755
|
const keyParams = {
|
|
3756
3756
|
relatedRecordId: object.relatedRecordId
|
|
3757
3757
|
};
|
|
3758
|
-
return keyBuilder$
|
|
3758
|
+
return keyBuilder$q(luvio, keyParams);
|
|
3759
3759
|
}
|
|
3760
|
-
function normalize$
|
|
3760
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
3761
3761
|
const input_conversationInfo = input.conversationInfo;
|
|
3762
3762
|
const input_conversationInfo_id = path.fullPath + '__conversationInfo';
|
|
3763
|
-
input.conversationInfo = ingest$
|
|
3763
|
+
input.conversationInfo = ingest$f(input_conversationInfo, {
|
|
3764
3764
|
fullPath: input_conversationInfo_id,
|
|
3765
3765
|
propertyName: 'conversationInfo',
|
|
3766
3766
|
parent: {
|
|
@@ -3772,16 +3772,16 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
3772
3772
|
}, luvio, store, timestamp);
|
|
3773
3773
|
return input;
|
|
3774
3774
|
}
|
|
3775
|
-
const select$
|
|
3775
|
+
const select$n = function SlackBridgeRecordChannelInfoOutputRepresentationSelect() {
|
|
3776
3776
|
return {
|
|
3777
3777
|
kind: 'Fragment',
|
|
3778
|
-
version: VERSION$
|
|
3778
|
+
version: VERSION$9,
|
|
3779
3779
|
private: [],
|
|
3780
3780
|
selections: [
|
|
3781
3781
|
{
|
|
3782
3782
|
name: 'conversationInfo',
|
|
3783
3783
|
kind: 'Link',
|
|
3784
|
-
fragment: select$
|
|
3784
|
+
fragment: select$A()
|
|
3785
3785
|
},
|
|
3786
3786
|
{
|
|
3787
3787
|
name: 'relatedRecordId',
|
|
@@ -3794,7 +3794,7 @@ const select$l = function SlackBridgeRecordChannelInfoOutputRepresentationSelect
|
|
|
3794
3794
|
]
|
|
3795
3795
|
};
|
|
3796
3796
|
};
|
|
3797
|
-
function equals$
|
|
3797
|
+
function equals$9(existing, incoming) {
|
|
3798
3798
|
const existing_relatedRecordId = existing.relatedRecordId;
|
|
3799
3799
|
const incoming_relatedRecordId = incoming.relatedRecordId;
|
|
3800
3800
|
if (!(existing_relatedRecordId === incoming_relatedRecordId)) {
|
|
@@ -3812,42 +3812,42 @@ function equals$8(existing, incoming) {
|
|
|
3812
3812
|
}
|
|
3813
3813
|
return true;
|
|
3814
3814
|
}
|
|
3815
|
-
const ingest$
|
|
3815
|
+
const ingest$9 = function SlackBridgeRecordChannelInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3816
3816
|
if (process.env.NODE_ENV !== 'production') {
|
|
3817
|
-
const validateError = validate$
|
|
3817
|
+
const validateError = validate$9(input);
|
|
3818
3818
|
if (validateError !== null) {
|
|
3819
3819
|
throw validateError;
|
|
3820
3820
|
}
|
|
3821
3821
|
}
|
|
3822
|
-
const key = keyBuilderFromType$
|
|
3822
|
+
const key = keyBuilderFromType$5(luvio, input);
|
|
3823
3823
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3824
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3824
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SlackBridge", VERSION$9, RepresentationType$9, equals$9);
|
|
3825
3825
|
return createLink(key);
|
|
3826
3826
|
};
|
|
3827
|
-
function getTypeCacheKeys$
|
|
3827
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
3828
3828
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3829
|
-
const rootKey = keyBuilderFromType$
|
|
3829
|
+
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
3830
3830
|
rootKeySet.set(rootKey, {
|
|
3831
3831
|
namespace: keyPrefix,
|
|
3832
|
-
representationName: RepresentationType$
|
|
3832
|
+
representationName: RepresentationType$9,
|
|
3833
3833
|
mergeable: false
|
|
3834
3834
|
});
|
|
3835
|
-
getTypeCacheKeys$
|
|
3835
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfo);
|
|
3836
3836
|
}
|
|
3837
3837
|
|
|
3838
|
-
function select$
|
|
3839
|
-
return select$
|
|
3838
|
+
function select$m(luvio, params) {
|
|
3839
|
+
return select$n();
|
|
3840
3840
|
}
|
|
3841
|
-
function getResponseCacheKeys$
|
|
3842
|
-
getTypeCacheKeys$
|
|
3841
|
+
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
3842
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
3843
3843
|
}
|
|
3844
|
-
function ingestSuccess$
|
|
3844
|
+
function ingestSuccess$d(luvio, resourceParams, response) {
|
|
3845
3845
|
const { body } = response;
|
|
3846
|
-
const key = keyBuilderFromType$
|
|
3847
|
-
luvio.storeIngest(key, ingest$
|
|
3846
|
+
const key = keyBuilderFromType$5(luvio, body);
|
|
3847
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
3848
3848
|
const snapshot = luvio.storeLookup({
|
|
3849
3849
|
recordId: key,
|
|
3850
|
-
node: select$
|
|
3850
|
+
node: select$m(),
|
|
3851
3851
|
variables: {},
|
|
3852
3852
|
});
|
|
3853
3853
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3858,7 +3858,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
3858
3858
|
deepFreeze(snapshot.data);
|
|
3859
3859
|
return snapshot;
|
|
3860
3860
|
}
|
|
3861
|
-
function createResourceRequest$
|
|
3861
|
+
function createResourceRequest$g(config) {
|
|
3862
3862
|
const headers = {};
|
|
3863
3863
|
return {
|
|
3864
3864
|
baseUri: '/services/data/v63.0',
|
|
@@ -3872,16 +3872,16 @@ function createResourceRequest$f(config) {
|
|
|
3872
3872
|
};
|
|
3873
3873
|
}
|
|
3874
3874
|
|
|
3875
|
-
const adapterName$
|
|
3875
|
+
const adapterName$g = 'postSlackRecordChannelInfos';
|
|
3876
3876
|
const postSlackRecordChannelInfos_ConfigPropertyMetadata = [
|
|
3877
3877
|
generateParamConfigMetadata('conversationInfo', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3878
3878
|
generateParamConfigMetadata('relatedRecordId', true, 2 /* Body */, 0 /* String */),
|
|
3879
3879
|
];
|
|
3880
|
-
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3881
|
-
const createResourceParams$
|
|
3882
|
-
function typeCheckConfig$
|
|
3880
|
+
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
3881
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$k(postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
3882
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
3883
3883
|
const config = {};
|
|
3884
|
-
typeCheckConfig$
|
|
3884
|
+
typeCheckConfig$k(untrustedConfig, config, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
3885
3885
|
const untrustedConfig_conversationInfo = untrustedConfig.conversationInfo;
|
|
3886
3886
|
if (untrustedIsObject(untrustedConfig_conversationInfo)) {
|
|
3887
3887
|
const untrustedConfig_conversationInfo_object = {};
|
|
@@ -3895,30 +3895,30 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
3895
3895
|
}
|
|
3896
3896
|
return config;
|
|
3897
3897
|
}
|
|
3898
|
-
function validateAdapterConfig$
|
|
3898
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
3899
3899
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3900
3900
|
return null;
|
|
3901
3901
|
}
|
|
3902
3902
|
if (process.env.NODE_ENV !== 'production') {
|
|
3903
3903
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3904
3904
|
}
|
|
3905
|
-
const config = typeCheckConfig$
|
|
3905
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
3906
3906
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3907
3907
|
return null;
|
|
3908
3908
|
}
|
|
3909
3909
|
return config;
|
|
3910
3910
|
}
|
|
3911
|
-
function buildNetworkSnapshot$
|
|
3912
|
-
const resourceParams = createResourceParams$
|
|
3913
|
-
const request = createResourceRequest$
|
|
3911
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
3912
|
+
const resourceParams = createResourceParams$g(config);
|
|
3913
|
+
const request = createResourceRequest$g(resourceParams);
|
|
3914
3914
|
return luvio.dispatchResourceRequest(request, options)
|
|
3915
3915
|
.then((response) => {
|
|
3916
3916
|
return luvio.handleSuccessResponse(() => {
|
|
3917
|
-
const snapshot = ingestSuccess$
|
|
3917
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response);
|
|
3918
3918
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3919
3919
|
}, () => {
|
|
3920
3920
|
const cache = new StoreKeyMap();
|
|
3921
|
-
getResponseCacheKeys$
|
|
3921
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
|
|
3922
3922
|
return cache;
|
|
3923
3923
|
});
|
|
3924
3924
|
}, (response) => {
|
|
@@ -3928,33 +3928,33 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
3928
3928
|
}
|
|
3929
3929
|
const postSlackRecordChannelInfosAdapterFactory = (luvio) => {
|
|
3930
3930
|
return function postSlackRecordChannelInfos(untrustedConfig) {
|
|
3931
|
-
const config = validateAdapterConfig$
|
|
3931
|
+
const config = validateAdapterConfig$g(untrustedConfig, postSlackRecordChannelInfos_ConfigPropertyNames);
|
|
3932
3932
|
// Invalid or incomplete config
|
|
3933
3933
|
if (config === null) {
|
|
3934
3934
|
throw new Error('Invalid config for "postSlackRecordChannelInfos"');
|
|
3935
3935
|
}
|
|
3936
|
-
return buildNetworkSnapshot$
|
|
3936
|
+
return buildNetworkSnapshot$g(luvio, config);
|
|
3937
3937
|
};
|
|
3938
3938
|
};
|
|
3939
3939
|
|
|
3940
|
-
function select$
|
|
3941
|
-
return select$
|
|
3940
|
+
function select$l(luvio, params) {
|
|
3941
|
+
return select$n();
|
|
3942
3942
|
}
|
|
3943
|
-
function keyBuilder$
|
|
3944
|
-
return keyBuilder$
|
|
3943
|
+
function keyBuilder$p(luvio, params) {
|
|
3944
|
+
return keyBuilder$q(luvio, {
|
|
3945
3945
|
relatedRecordId: params.urlParams.relatedRecordId
|
|
3946
3946
|
});
|
|
3947
3947
|
}
|
|
3948
|
-
function getResponseCacheKeys$
|
|
3949
|
-
getTypeCacheKeys$
|
|
3948
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
3949
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
3950
3950
|
}
|
|
3951
|
-
function ingestSuccess$
|
|
3951
|
+
function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
3952
3952
|
const { body } = response;
|
|
3953
|
-
const key = keyBuilder$
|
|
3954
|
-
luvio.storeIngest(key, ingest$
|
|
3953
|
+
const key = keyBuilder$p(luvio, resourceParams);
|
|
3954
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
3955
3955
|
const snapshot = luvio.storeLookup({
|
|
3956
3956
|
recordId: key,
|
|
3957
|
-
node: select$
|
|
3957
|
+
node: select$l(),
|
|
3958
3958
|
variables: {},
|
|
3959
3959
|
}, snapshotRefresh);
|
|
3960
3960
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3966,12 +3966,12 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3966
3966
|
return snapshot;
|
|
3967
3967
|
}
|
|
3968
3968
|
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
3969
|
-
const key = keyBuilder$
|
|
3969
|
+
const key = keyBuilder$p(luvio, params);
|
|
3970
3970
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3971
3971
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3972
3972
|
return errorSnapshot;
|
|
3973
3973
|
}
|
|
3974
|
-
function createResourceRequest$
|
|
3974
|
+
function createResourceRequest$f(config) {
|
|
3975
3975
|
const headers = {};
|
|
3976
3976
|
return {
|
|
3977
3977
|
baseUri: '/services/data/v63.0',
|
|
@@ -3985,60 +3985,60 @@ function createResourceRequest$e(config) {
|
|
|
3985
3985
|
};
|
|
3986
3986
|
}
|
|
3987
3987
|
|
|
3988
|
-
const adapterName$
|
|
3988
|
+
const adapterName$f = 'getSlackRecordChannelInfo';
|
|
3989
3989
|
const getSlackRecordChannelInfo_ConfigPropertyMetadata = [
|
|
3990
3990
|
generateParamConfigMetadata('relatedRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3991
3991
|
];
|
|
3992
|
-
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3993
|
-
const createResourceParams$
|
|
3994
|
-
function keyBuilder$
|
|
3995
|
-
const resourceParams = createResourceParams$
|
|
3996
|
-
return keyBuilder$
|
|
3992
|
+
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
3993
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$k(getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
3994
|
+
function keyBuilder$o(luvio, config) {
|
|
3995
|
+
const resourceParams = createResourceParams$f(config);
|
|
3996
|
+
return keyBuilder$p(luvio, resourceParams);
|
|
3997
3997
|
}
|
|
3998
|
-
function typeCheckConfig$
|
|
3998
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
3999
3999
|
const config = {};
|
|
4000
|
-
typeCheckConfig$
|
|
4000
|
+
typeCheckConfig$k(untrustedConfig, config, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4001
4001
|
return config;
|
|
4002
4002
|
}
|
|
4003
|
-
function validateAdapterConfig$
|
|
4003
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
4004
4004
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4005
4005
|
return null;
|
|
4006
4006
|
}
|
|
4007
4007
|
if (process.env.NODE_ENV !== 'production') {
|
|
4008
4008
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4009
4009
|
}
|
|
4010
|
-
const config = typeCheckConfig$
|
|
4010
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
4011
4011
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4012
4012
|
return null;
|
|
4013
4013
|
}
|
|
4014
4014
|
return config;
|
|
4015
4015
|
}
|
|
4016
4016
|
function adapterFragment$8(luvio, config) {
|
|
4017
|
-
createResourceParams$
|
|
4018
|
-
return select$
|
|
4017
|
+
createResourceParams$f(config);
|
|
4018
|
+
return select$l();
|
|
4019
4019
|
}
|
|
4020
4020
|
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
4021
|
-
const snapshot = ingestSuccess$
|
|
4021
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
4022
4022
|
config,
|
|
4023
|
-
resolve: () => buildNetworkSnapshot$
|
|
4023
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
4024
4024
|
});
|
|
4025
4025
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4026
4026
|
}
|
|
4027
4027
|
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
4028
4028
|
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
4029
4029
|
config,
|
|
4030
|
-
resolve: () => buildNetworkSnapshot$
|
|
4030
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
4031
4031
|
});
|
|
4032
4032
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4033
4033
|
}
|
|
4034
|
-
function buildNetworkSnapshot$
|
|
4035
|
-
const resourceParams = createResourceParams$
|
|
4036
|
-
const request = createResourceRequest$
|
|
4034
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
4035
|
+
const resourceParams = createResourceParams$f(config);
|
|
4036
|
+
const request = createResourceRequest$f(resourceParams);
|
|
4037
4037
|
return luvio.dispatchResourceRequest(request, options)
|
|
4038
4038
|
.then((response) => {
|
|
4039
4039
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
4040
4040
|
const cache = new StoreKeyMap();
|
|
4041
|
-
getResponseCacheKeys$
|
|
4041
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
4042
4042
|
return cache;
|
|
4043
4043
|
});
|
|
4044
4044
|
}, (response) => {
|
|
@@ -4046,23 +4046,23 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
4046
4046
|
});
|
|
4047
4047
|
}
|
|
4048
4048
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
4049
|
-
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
4049
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
4050
4050
|
}
|
|
4051
4051
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
4052
4052
|
const { luvio, config } = context;
|
|
4053
4053
|
const selector = {
|
|
4054
|
-
recordId: keyBuilder$
|
|
4054
|
+
recordId: keyBuilder$o(luvio, config),
|
|
4055
4055
|
node: adapterFragment$8(luvio, config),
|
|
4056
4056
|
variables: {},
|
|
4057
4057
|
};
|
|
4058
4058
|
const cacheSnapshot = storeLookup(selector, {
|
|
4059
4059
|
config,
|
|
4060
|
-
resolve: () => buildNetworkSnapshot$
|
|
4060
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
4061
4061
|
});
|
|
4062
4062
|
return cacheSnapshot;
|
|
4063
4063
|
}
|
|
4064
4064
|
const getSlackRecordChannelInfoAdapterFactory = (luvio) => function SlackBridge__getSlackRecordChannelInfo(untrustedConfig, requestContext) {
|
|
4065
|
-
const config = validateAdapterConfig$
|
|
4065
|
+
const config = validateAdapterConfig$f(untrustedConfig, getSlackRecordChannelInfo_ConfigPropertyNames);
|
|
4066
4066
|
// Invalid or incomplete config
|
|
4067
4067
|
if (config === null) {
|
|
4068
4068
|
return null;
|
|
@@ -4071,6 +4071,182 @@ const getSlackRecordChannelInfoAdapterFactory = (luvio) => function SlackBridge_
|
|
|
4071
4071
|
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
4072
4072
|
};
|
|
4073
4073
|
|
|
4074
|
+
const VERSION$8 = "32716a7de3c8810288467155d92e5124";
|
|
4075
|
+
function validate$8(obj, path = 'SlackBridgeConversationMarkOutputRepresentation') {
|
|
4076
|
+
const v_error = (() => {
|
|
4077
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4078
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4079
|
+
}
|
|
4080
|
+
const obj_channelId = obj.channelId;
|
|
4081
|
+
const path_channelId = path + '.channelId';
|
|
4082
|
+
if (typeof obj_channelId !== 'string') {
|
|
4083
|
+
return new TypeError('Expected "string" but received "' + typeof obj_channelId + '" (at "' + path_channelId + '")');
|
|
4084
|
+
}
|
|
4085
|
+
const obj_messageTs = obj.messageTs;
|
|
4086
|
+
const path_messageTs = path + '.messageTs';
|
|
4087
|
+
if (typeof obj_messageTs !== 'string') {
|
|
4088
|
+
return new TypeError('Expected "string" but received "' + typeof obj_messageTs + '" (at "' + path_messageTs + '")');
|
|
4089
|
+
}
|
|
4090
|
+
})();
|
|
4091
|
+
return v_error === undefined ? null : v_error;
|
|
4092
|
+
}
|
|
4093
|
+
const RepresentationType$8 = 'SlackBridgeConversationMarkOutputRepresentation';
|
|
4094
|
+
function keyBuilder$n(luvio, config) {
|
|
4095
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + config.channelId;
|
|
4096
|
+
}
|
|
4097
|
+
function keyBuilderFromType$4(luvio, object) {
|
|
4098
|
+
const keyParams = {
|
|
4099
|
+
channelId: object.channelId
|
|
4100
|
+
};
|
|
4101
|
+
return keyBuilder$n(luvio, keyParams);
|
|
4102
|
+
}
|
|
4103
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
4104
|
+
return input;
|
|
4105
|
+
}
|
|
4106
|
+
const select$k = function SlackBridgeConversationMarkOutputRepresentationSelect() {
|
|
4107
|
+
return {
|
|
4108
|
+
kind: 'Fragment',
|
|
4109
|
+
version: VERSION$8,
|
|
4110
|
+
private: [],
|
|
4111
|
+
selections: [
|
|
4112
|
+
{
|
|
4113
|
+
name: 'channelId',
|
|
4114
|
+
kind: 'Scalar'
|
|
4115
|
+
},
|
|
4116
|
+
{
|
|
4117
|
+
name: 'messageTs',
|
|
4118
|
+
kind: 'Scalar'
|
|
4119
|
+
}
|
|
4120
|
+
]
|
|
4121
|
+
};
|
|
4122
|
+
};
|
|
4123
|
+
function equals$8(existing, incoming) {
|
|
4124
|
+
const existing_channelId = existing.channelId;
|
|
4125
|
+
const incoming_channelId = incoming.channelId;
|
|
4126
|
+
if (!(existing_channelId === incoming_channelId)) {
|
|
4127
|
+
return false;
|
|
4128
|
+
}
|
|
4129
|
+
const existing_messageTs = existing.messageTs;
|
|
4130
|
+
const incoming_messageTs = incoming.messageTs;
|
|
4131
|
+
if (!(existing_messageTs === incoming_messageTs)) {
|
|
4132
|
+
return false;
|
|
4133
|
+
}
|
|
4134
|
+
return true;
|
|
4135
|
+
}
|
|
4136
|
+
const ingest$8 = function SlackBridgeConversationMarkOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4137
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4138
|
+
const validateError = validate$8(input);
|
|
4139
|
+
if (validateError !== null) {
|
|
4140
|
+
throw validateError;
|
|
4141
|
+
}
|
|
4142
|
+
}
|
|
4143
|
+
const key = keyBuilderFromType$4(luvio, input);
|
|
4144
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
4145
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SlackBridge", VERSION$8, RepresentationType$8, equals$8);
|
|
4146
|
+
return createLink(key);
|
|
4147
|
+
};
|
|
4148
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
4149
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4150
|
+
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
4151
|
+
rootKeySet.set(rootKey, {
|
|
4152
|
+
namespace: keyPrefix,
|
|
4153
|
+
representationName: RepresentationType$8,
|
|
4154
|
+
mergeable: false
|
|
4155
|
+
});
|
|
4156
|
+
}
|
|
4157
|
+
|
|
4158
|
+
function select$j(luvio, params) {
|
|
4159
|
+
return select$k();
|
|
4160
|
+
}
|
|
4161
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
4162
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
4163
|
+
}
|
|
4164
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
4165
|
+
const { body } = response;
|
|
4166
|
+
const key = keyBuilderFromType$4(luvio, body);
|
|
4167
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
4168
|
+
const snapshot = luvio.storeLookup({
|
|
4169
|
+
recordId: key,
|
|
4170
|
+
node: select$j(),
|
|
4171
|
+
variables: {},
|
|
4172
|
+
});
|
|
4173
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4174
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4175
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4176
|
+
}
|
|
4177
|
+
}
|
|
4178
|
+
deepFreeze(snapshot.data);
|
|
4179
|
+
return snapshot;
|
|
4180
|
+
}
|
|
4181
|
+
function createResourceRequest$e(config) {
|
|
4182
|
+
const headers = {};
|
|
4183
|
+
return {
|
|
4184
|
+
baseUri: '/services/data/v63.0',
|
|
4185
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/mark',
|
|
4186
|
+
method: 'post',
|
|
4187
|
+
body: null,
|
|
4188
|
+
urlParams: config.urlParams,
|
|
4189
|
+
queryParams: config.queryParams,
|
|
4190
|
+
headers,
|
|
4191
|
+
priority: 'normal',
|
|
4192
|
+
};
|
|
4193
|
+
}
|
|
4194
|
+
|
|
4195
|
+
const adapterName$e = 'postSlackConversationMark';
|
|
4196
|
+
const postSlackConversationMark_ConfigPropertyMetadata = [
|
|
4197
|
+
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4198
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4199
|
+
generateParamConfigMetadata('messageTs', true, 1 /* QueryParameter */, 0 /* String */),
|
|
4200
|
+
];
|
|
4201
|
+
const postSlackConversationMark_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, postSlackConversationMark_ConfigPropertyMetadata);
|
|
4202
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$k(postSlackConversationMark_ConfigPropertyMetadata);
|
|
4203
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
4204
|
+
const config = {};
|
|
4205
|
+
typeCheckConfig$k(untrustedConfig, config, postSlackConversationMark_ConfigPropertyMetadata);
|
|
4206
|
+
return config;
|
|
4207
|
+
}
|
|
4208
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
4209
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4210
|
+
return null;
|
|
4211
|
+
}
|
|
4212
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4213
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4214
|
+
}
|
|
4215
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
4216
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4217
|
+
return null;
|
|
4218
|
+
}
|
|
4219
|
+
return config;
|
|
4220
|
+
}
|
|
4221
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
4222
|
+
const resourceParams = createResourceParams$e(config);
|
|
4223
|
+
const request = createResourceRequest$e(resourceParams);
|
|
4224
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4225
|
+
.then((response) => {
|
|
4226
|
+
return luvio.handleSuccessResponse(() => {
|
|
4227
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response);
|
|
4228
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4229
|
+
}, () => {
|
|
4230
|
+
const cache = new StoreKeyMap();
|
|
4231
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
4232
|
+
return cache;
|
|
4233
|
+
});
|
|
4234
|
+
}, (response) => {
|
|
4235
|
+
deepFreeze(response);
|
|
4236
|
+
throw response;
|
|
4237
|
+
});
|
|
4238
|
+
}
|
|
4239
|
+
const postSlackConversationMarkAdapterFactory = (luvio) => {
|
|
4240
|
+
return function postSlackConversationMark(untrustedConfig) {
|
|
4241
|
+
const config = validateAdapterConfig$e(untrustedConfig, postSlackConversationMark_ConfigPropertyNames);
|
|
4242
|
+
// Invalid or incomplete config
|
|
4243
|
+
if (config === null) {
|
|
4244
|
+
throw new Error('Invalid config for "postSlackConversationMark"');
|
|
4245
|
+
}
|
|
4246
|
+
return buildNetworkSnapshot$e(luvio, config);
|
|
4247
|
+
};
|
|
4248
|
+
};
|
|
4249
|
+
|
|
4074
4250
|
const VERSION$7 = "30b0f3c5bd175b72d9b304944fd9d682";
|
|
4075
4251
|
function validate$7(obj, path = 'SlackBridgeConversationMembersOutputRepresentation') {
|
|
4076
4252
|
const v_error = (() => {
|
|
@@ -4257,14 +4433,14 @@ const getSlackConversationMembers_ConfigPropertyMetadata = [
|
|
|
4257
4433
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4258
4434
|
];
|
|
4259
4435
|
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
4260
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
4436
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$k(getSlackConversationMembers_ConfigPropertyMetadata);
|
|
4261
4437
|
function keyBuilder$k(luvio, config) {
|
|
4262
4438
|
const resourceParams = createResourceParams$d(config);
|
|
4263
4439
|
return keyBuilder$l(luvio, resourceParams);
|
|
4264
4440
|
}
|
|
4265
4441
|
function typeCheckConfig$d(untrustedConfig) {
|
|
4266
4442
|
const config = {};
|
|
4267
|
-
typeCheckConfig$
|
|
4443
|
+
typeCheckConfig$k(untrustedConfig, config, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
4268
4444
|
return config;
|
|
4269
4445
|
}
|
|
4270
4446
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -4382,10 +4558,10 @@ const postSlackConversationMembers_ConfigPropertyMetadata = [
|
|
|
4382
4558
|
generateParamConfigMetadata('slackUserIds', true, 2 /* Body */, 0 /* String */, true),
|
|
4383
4559
|
];
|
|
4384
4560
|
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
4385
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
4561
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$k(postSlackConversationMembers_ConfigPropertyMetadata);
|
|
4386
4562
|
function typeCheckConfig$c(untrustedConfig) {
|
|
4387
4563
|
const config = {};
|
|
4388
|
-
typeCheckConfig$
|
|
4564
|
+
typeCheckConfig$k(untrustedConfig, config, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
4389
4565
|
return config;
|
|
4390
4566
|
}
|
|
4391
4567
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -4552,10 +4728,10 @@ const deleteSlackConversationMember_ConfigPropertyMetadata = [
|
|
|
4552
4728
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4553
4729
|
];
|
|
4554
4730
|
const deleteSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
4555
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
4731
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$k(deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
4556
4732
|
function typeCheckConfig$b(untrustedConfig) {
|
|
4557
4733
|
const config = {};
|
|
4558
|
-
typeCheckConfig$
|
|
4734
|
+
typeCheckConfig$k(untrustedConfig, config, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
4559
4735
|
return config;
|
|
4560
4736
|
}
|
|
4561
4737
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -4655,14 +4831,14 @@ const getSlackConversationMember_ConfigPropertyMetadata = [
|
|
|
4655
4831
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4656
4832
|
];
|
|
4657
4833
|
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getSlackConversationMember_ConfigPropertyMetadata);
|
|
4658
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
4834
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$k(getSlackConversationMember_ConfigPropertyMetadata);
|
|
4659
4835
|
function keyBuilder$g(luvio, config) {
|
|
4660
4836
|
const resourceParams = createResourceParams$a(config);
|
|
4661
4837
|
return keyBuilder$h(luvio, resourceParams);
|
|
4662
4838
|
}
|
|
4663
4839
|
function typeCheckConfig$a(untrustedConfig) {
|
|
4664
4840
|
const config = {};
|
|
4665
|
-
typeCheckConfig$
|
|
4841
|
+
typeCheckConfig$k(untrustedConfig, config, getSlackConversationMember_ConfigPropertyMetadata);
|
|
4666
4842
|
return config;
|
|
4667
4843
|
}
|
|
4668
4844
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -4872,10 +5048,10 @@ const deleteSlackMessage_ConfigPropertyMetadata = [
|
|
|
4872
5048
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4873
5049
|
];
|
|
4874
5050
|
const deleteSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, deleteSlackMessage_ConfigPropertyMetadata);
|
|
4875
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
5051
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$k(deleteSlackMessage_ConfigPropertyMetadata);
|
|
4876
5052
|
function typeCheckConfig$9(untrustedConfig) {
|
|
4877
5053
|
const config = {};
|
|
4878
|
-
typeCheckConfig$
|
|
5054
|
+
typeCheckConfig$k(untrustedConfig, config, deleteSlackMessage_ConfigPropertyMetadata);
|
|
4879
5055
|
return config;
|
|
4880
5056
|
}
|
|
4881
5057
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -4975,14 +5151,14 @@ const getSlackMessage_ConfigPropertyMetadata = [
|
|
|
4975
5151
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4976
5152
|
];
|
|
4977
5153
|
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSlackMessage_ConfigPropertyMetadata);
|
|
4978
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
5154
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$k(getSlackMessage_ConfigPropertyMetadata);
|
|
4979
5155
|
function keyBuilder$c(luvio, config) {
|
|
4980
5156
|
const resourceParams = createResourceParams$8(config);
|
|
4981
5157
|
return keyBuilder$d(luvio, resourceParams);
|
|
4982
5158
|
}
|
|
4983
5159
|
function typeCheckConfig$8(untrustedConfig) {
|
|
4984
5160
|
const config = {};
|
|
4985
|
-
typeCheckConfig$
|
|
5161
|
+
typeCheckConfig$k(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
|
|
4986
5162
|
return config;
|
|
4987
5163
|
}
|
|
4988
5164
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -5101,10 +5277,10 @@ const patchSlackMessage_ConfigPropertyMetadata = [
|
|
|
5101
5277
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
5102
5278
|
];
|
|
5103
5279
|
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, patchSlackMessage_ConfigPropertyMetadata);
|
|
5104
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
5280
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$k(patchSlackMessage_ConfigPropertyMetadata);
|
|
5105
5281
|
function typeCheckConfig$7(untrustedConfig) {
|
|
5106
5282
|
const config = {};
|
|
5107
|
-
typeCheckConfig$
|
|
5283
|
+
typeCheckConfig$k(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
|
|
5108
5284
|
return config;
|
|
5109
5285
|
}
|
|
5110
5286
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -5173,7 +5349,7 @@ function validate$4(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
|
5173
5349
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
5174
5350
|
const obj_reactions_item = obj_reactions[i];
|
|
5175
5351
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
5176
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
5352
|
+
const referencepath_reactions_itemValidationError = validate$i(obj_reactions_item, path_reactions_item);
|
|
5177
5353
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
5178
5354
|
let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
5179
5355
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5202,7 +5378,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
5202
5378
|
return input;
|
|
5203
5379
|
}
|
|
5204
5380
|
const select$a = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
5205
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
5381
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$z();
|
|
5206
5382
|
return {
|
|
5207
5383
|
kind: 'Fragment',
|
|
5208
5384
|
version: VERSION$4,
|
|
@@ -5248,7 +5424,7 @@ function equals$4(existing, incoming) {
|
|
|
5248
5424
|
const existing_reactions = existing.reactions;
|
|
5249
5425
|
const incoming_reactions = incoming.reactions;
|
|
5250
5426
|
const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
|
|
5251
|
-
if (!(equals$
|
|
5427
|
+
if (!(equals$i(existing_reactions_item, incoming_reactions_item))) {
|
|
5252
5428
|
return false;
|
|
5253
5429
|
}
|
|
5254
5430
|
});
|
|
@@ -5318,10 +5494,10 @@ const deleteSlackMessageReactions_ConfigPropertyMetadata = [
|
|
|
5318
5494
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5319
5495
|
];
|
|
5320
5496
|
const deleteSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
5321
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
5497
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$k(deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
5322
5498
|
function typeCheckConfig$6(untrustedConfig) {
|
|
5323
5499
|
const config = {};
|
|
5324
|
-
typeCheckConfig$
|
|
5500
|
+
typeCheckConfig$k(untrustedConfig, config, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
5325
5501
|
return config;
|
|
5326
5502
|
}
|
|
5327
5503
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -5411,10 +5587,10 @@ const postSlackMessageReactions_ConfigPropertyMetadata = [
|
|
|
5411
5587
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5412
5588
|
];
|
|
5413
5589
|
const postSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
5414
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
5590
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$k(postSlackMessageReactions_ConfigPropertyMetadata);
|
|
5415
5591
|
function typeCheckConfig$5(untrustedConfig) {
|
|
5416
5592
|
const config = {};
|
|
5417
|
-
typeCheckConfig$
|
|
5593
|
+
typeCheckConfig$k(untrustedConfig, config, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
5418
5594
|
return config;
|
|
5419
5595
|
}
|
|
5420
5596
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -5600,14 +5776,14 @@ const getSlackCustomEmoji_ConfigPropertyMetadata = [
|
|
|
5600
5776
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5601
5777
|
];
|
|
5602
5778
|
const getSlackCustomEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSlackCustomEmoji_ConfigPropertyMetadata);
|
|
5603
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
5779
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$k(getSlackCustomEmoji_ConfigPropertyMetadata);
|
|
5604
5780
|
function keyBuilder$8(luvio, config) {
|
|
5605
5781
|
const resourceParams = createResourceParams$4(config);
|
|
5606
5782
|
return keyBuilder$9(luvio, resourceParams);
|
|
5607
5783
|
}
|
|
5608
5784
|
function typeCheckConfig$4(untrustedConfig) {
|
|
5609
5785
|
const config = {};
|
|
5610
|
-
typeCheckConfig$
|
|
5786
|
+
typeCheckConfig$k(untrustedConfig, config, getSlackCustomEmoji_ConfigPropertyMetadata);
|
|
5611
5787
|
return config;
|
|
5612
5788
|
}
|
|
5613
5789
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -5735,7 +5911,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
5735
5911
|
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
5736
5912
|
const input_conversationInfos_item = input_conversationInfos[i];
|
|
5737
5913
|
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
5738
|
-
input_conversationInfos[i] = ingest$
|
|
5914
|
+
input_conversationInfos[i] = ingest$f(input_conversationInfos_item, {
|
|
5739
5915
|
fullPath: input_conversationInfos_item_id,
|
|
5740
5916
|
propertyName: i,
|
|
5741
5917
|
parent: {
|
|
@@ -5758,7 +5934,7 @@ const select$6 = function SlackBridgeConversationInfosOutputRepresentationSelect
|
|
|
5758
5934
|
name: 'conversationInfos',
|
|
5759
5935
|
kind: 'Link',
|
|
5760
5936
|
plural: true,
|
|
5761
|
-
fragment: select$
|
|
5937
|
+
fragment: select$A()
|
|
5762
5938
|
},
|
|
5763
5939
|
{
|
|
5764
5940
|
name: 'searchString',
|
|
@@ -5807,7 +5983,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5807
5983
|
});
|
|
5808
5984
|
const input_conversationInfos_length = input.conversationInfos.length;
|
|
5809
5985
|
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
5810
|
-
getTypeCacheKeys$
|
|
5986
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfos[i]);
|
|
5811
5987
|
}
|
|
5812
5988
|
}
|
|
5813
5989
|
|
|
@@ -5863,14 +6039,14 @@ const getSlackSearchConversation_ConfigPropertyMetadata = [
|
|
|
5863
6039
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5864
6040
|
];
|
|
5865
6041
|
const getSlackSearchConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
5866
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
6042
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$k(getSlackSearchConversation_ConfigPropertyMetadata);
|
|
5867
6043
|
function keyBuilder$6(luvio, config) {
|
|
5868
6044
|
const resourceParams = createResourceParams$3(config);
|
|
5869
6045
|
return keyBuilder$7(luvio, resourceParams);
|
|
5870
6046
|
}
|
|
5871
6047
|
function typeCheckConfig$3(untrustedConfig) {
|
|
5872
6048
|
const config = {};
|
|
5873
|
-
typeCheckConfig$
|
|
6049
|
+
typeCheckConfig$k(untrustedConfig, config, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
5874
6050
|
return config;
|
|
5875
6051
|
}
|
|
5876
6052
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -5958,7 +6134,7 @@ function validate$1(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
|
5958
6134
|
for (let i = 0; i < obj_emojis.length; i++) {
|
|
5959
6135
|
const obj_emojis_item = obj_emojis[i];
|
|
5960
6136
|
const path_emojis_item = path_emojis + '[' + i + ']';
|
|
5961
|
-
const referencepath_emojis_itemValidationError = validate$
|
|
6137
|
+
const referencepath_emojis_itemValidationError = validate$l(obj_emojis_item, path_emojis_item);
|
|
5962
6138
|
if (referencepath_emojis_itemValidationError !== null) {
|
|
5963
6139
|
let message = 'Object doesn\'t match SlackBridgeEmojiOutputRepresentation (at "' + path_emojis_item + '")\n';
|
|
5964
6140
|
message += referencepath_emojis_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5999,7 +6175,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
5999
6175
|
return input;
|
|
6000
6176
|
}
|
|
6001
6177
|
const select$4 = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
6002
|
-
const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$
|
|
6178
|
+
const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$C();
|
|
6003
6179
|
return {
|
|
6004
6180
|
kind: 'Fragment',
|
|
6005
6181
|
version: VERSION$1,
|
|
@@ -6022,7 +6198,7 @@ function equals$1(existing, incoming) {
|
|
|
6022
6198
|
const existing_emojis = existing.emojis;
|
|
6023
6199
|
const incoming_emojis = incoming.emojis;
|
|
6024
6200
|
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
6025
|
-
if (!(equals$
|
|
6201
|
+
if (!(equals$l(existing_emojis_item, incoming_emojis_item))) {
|
|
6026
6202
|
return false;
|
|
6027
6203
|
}
|
|
6028
6204
|
});
|
|
@@ -6110,14 +6286,14 @@ const getSlackSearchEmoji_ConfigPropertyMetadata = [
|
|
|
6110
6286
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6111
6287
|
];
|
|
6112
6288
|
const getSlackSearchEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6113
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
6289
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$k(getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6114
6290
|
function keyBuilder$4(luvio, config) {
|
|
6115
6291
|
const resourceParams = createResourceParams$2(config);
|
|
6116
6292
|
return keyBuilder$5(luvio, resourceParams);
|
|
6117
6293
|
}
|
|
6118
6294
|
function typeCheckConfig$2(untrustedConfig) {
|
|
6119
6295
|
const config = {};
|
|
6120
|
-
typeCheckConfig$
|
|
6296
|
+
typeCheckConfig$k(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6121
6297
|
return config;
|
|
6122
6298
|
}
|
|
6123
6299
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -6245,7 +6421,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
6245
6421
|
for (let i = 0; i < input_userInfos.length; i++) {
|
|
6246
6422
|
const input_userInfos_item = input_userInfos[i];
|
|
6247
6423
|
let input_userInfos_item_id = input_userInfos_id + '__' + i;
|
|
6248
|
-
input_userInfos[i] = ingest$
|
|
6424
|
+
input_userInfos[i] = ingest$g(input_userInfos_item, {
|
|
6249
6425
|
fullPath: input_userInfos_item_id,
|
|
6250
6426
|
propertyName: i,
|
|
6251
6427
|
parent: {
|
|
@@ -6272,7 +6448,7 @@ const select$2 = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
6272
6448
|
name: 'userInfos',
|
|
6273
6449
|
kind: 'Link',
|
|
6274
6450
|
plural: true,
|
|
6275
|
-
fragment: select$
|
|
6451
|
+
fragment: select$B()
|
|
6276
6452
|
}
|
|
6277
6453
|
]
|
|
6278
6454
|
};
|
|
@@ -6317,7 +6493,7 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6317
6493
|
});
|
|
6318
6494
|
const input_userInfos_length = input.userInfos.length;
|
|
6319
6495
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
6320
|
-
getTypeCacheKeys$
|
|
6496
|
+
getTypeCacheKeys$g(rootKeySet, luvio, input.userInfos[i]);
|
|
6321
6497
|
}
|
|
6322
6498
|
}
|
|
6323
6499
|
|
|
@@ -6376,14 +6552,14 @@ const getSlackSearchUser_ConfigPropertyMetadata = [
|
|
|
6376
6552
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6377
6553
|
];
|
|
6378
6554
|
const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getSlackSearchUser_ConfigPropertyMetadata);
|
|
6379
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
6555
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$k(getSlackSearchUser_ConfigPropertyMetadata);
|
|
6380
6556
|
function keyBuilder$2(luvio, config) {
|
|
6381
6557
|
const resourceParams = createResourceParams$1(config);
|
|
6382
6558
|
return keyBuilder$3(luvio, resourceParams);
|
|
6383
6559
|
}
|
|
6384
6560
|
function typeCheckConfig$1(untrustedConfig) {
|
|
6385
6561
|
const config = {};
|
|
6386
|
-
typeCheckConfig$
|
|
6562
|
+
typeCheckConfig$k(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
|
|
6387
6563
|
return config;
|
|
6388
6564
|
}
|
|
6389
6565
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -6458,21 +6634,21 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
|
|
|
6458
6634
|
};
|
|
6459
6635
|
|
|
6460
6636
|
function select(luvio, params) {
|
|
6461
|
-
return select$
|
|
6637
|
+
return select$B();
|
|
6462
6638
|
}
|
|
6463
6639
|
function keyBuilder$1(luvio, params) {
|
|
6464
|
-
return keyBuilder$
|
|
6640
|
+
return keyBuilder$w(luvio, {
|
|
6465
6641
|
slackUserId: params.urlParams.slackUserId,
|
|
6466
6642
|
teamId: params.urlParams.teamId
|
|
6467
6643
|
});
|
|
6468
6644
|
}
|
|
6469
6645
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
6470
|
-
getTypeCacheKeys$
|
|
6646
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
6471
6647
|
}
|
|
6472
6648
|
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
6473
6649
|
const { body } = response;
|
|
6474
6650
|
const key = keyBuilder$1(luvio, resourceParams);
|
|
6475
|
-
luvio.storeIngest(key, ingest$
|
|
6651
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
6476
6652
|
const snapshot = luvio.storeLookup({
|
|
6477
6653
|
recordId: key,
|
|
6478
6654
|
node: select(),
|
|
@@ -6492,8 +6668,8 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
6492
6668
|
const storeMetadataParams = {
|
|
6493
6669
|
ttl: TTL,
|
|
6494
6670
|
namespace: keyPrefix,
|
|
6495
|
-
version: VERSION$
|
|
6496
|
-
representationName: RepresentationType$
|
|
6671
|
+
version: VERSION$k,
|
|
6672
|
+
representationName: RepresentationType$g
|
|
6497
6673
|
};
|
|
6498
6674
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
6499
6675
|
return errorSnapshot;
|
|
@@ -6518,14 +6694,14 @@ const getSlackUser_ConfigPropertyMetadata = [
|
|
|
6518
6694
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6519
6695
|
];
|
|
6520
6696
|
const getSlackUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSlackUser_ConfigPropertyMetadata);
|
|
6521
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
6697
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$k(getSlackUser_ConfigPropertyMetadata);
|
|
6522
6698
|
function keyBuilder(luvio, config) {
|
|
6523
6699
|
const resourceParams = createResourceParams(config);
|
|
6524
6700
|
return keyBuilder$1(luvio, resourceParams);
|
|
6525
6701
|
}
|
|
6526
6702
|
function typeCheckConfig(untrustedConfig) {
|
|
6527
6703
|
const config = {};
|
|
6528
|
-
typeCheckConfig$
|
|
6704
|
+
typeCheckConfig$k(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
|
|
6529
6705
|
return config;
|
|
6530
6706
|
}
|
|
6531
6707
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -6599,4 +6775,4 @@ const getSlackUserAdapterFactory = (luvio) => function SlackBridge__getSlackUser
|
|
|
6599
6775
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
6600
6776
|
};
|
|
6601
6777
|
|
|
6602
|
-
export { deleteSlackConversationMemberAdapterFactory, deleteSlackMessageAdapterFactory, deleteSlackMessageReactionsAdapterFactory, getSlackConversationAdapterFactory, getSlackConversationMemberAdapterFactory, getSlackConversationMembersAdapterFactory, getSlackCustomEmojiAdapterFactory, getSlackMessageAdapterFactory, getSlackRecordChannelInfoAdapterFactory, getSlackSearchConversationAdapterFactory, getSlackSearchEmojiAdapterFactory, getSlackSearchUserAdapterFactory, getSlackUserAdapterFactory, patchSlackMessageAdapterFactory, postSlackConversationAdapterFactory, postSlackConversationMembersAdapterFactory, postSlackFileAdapterFactory, postSlackMessageReactionsAdapterFactory, postSlackRecordChannelInfosAdapterFactory };
|
|
6778
|
+
export { deleteSlackConversationMemberAdapterFactory, deleteSlackMessageAdapterFactory, deleteSlackMessageReactionsAdapterFactory, getSlackConversationAdapterFactory, getSlackConversationMemberAdapterFactory, getSlackConversationMembersAdapterFactory, getSlackCustomEmojiAdapterFactory, getSlackMessageAdapterFactory, getSlackRecordChannelInfoAdapterFactory, getSlackSearchConversationAdapterFactory, getSlackSearchEmojiAdapterFactory, getSlackSearchUserAdapterFactory, getSlackUserAdapterFactory, patchSlackMessageAdapterFactory, postSlackConversationAdapterFactory, postSlackConversationMarkAdapterFactory, postSlackConversationMembersAdapterFactory, postSlackFileAdapterFactory, postSlackMessageReactionsAdapterFactory, postSlackRecordChannelInfosAdapterFactory };
|